:root {
    --bg: #071018;
    --bg-soft: #0d1725;
    --panel: rgba(13, 22, 37, 0.86);
    --panel-strong: rgba(9, 16, 28, 0.94);
    --surface-bg: rgba(6, 12, 21, 0.66);
    --surface-elevated: rgba(9, 16, 28, 0.82);
    --surface-soft: rgba(255, 255, 255, 0.028);
    --surface-soft-strong: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f7f4ec;
    --text-soft: rgba(224, 230, 240, 0.76);
    --text-faint: rgba(224, 230, 240, 0.56);
    --primary: #d6bb18;
    --primary-soft: #efe16a;
    --accent: #61b5ff;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.24);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.28);
    --font-ui: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", "Verdana", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --content-width: 2300px;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at top left, rgba(214, 187, 24, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(97, 181, 255, 0.1), transparent 28%),
        linear-gradient(180deg, #071018, #050d18 54%, #091523);
    color: var(--text);
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 187, 24, 0.78) rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 187, 24, 0.68) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(5, 11, 20, 0.72);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(5, 11, 20, 0.72);
    background:
        linear-gradient(180deg, rgba(214, 187, 24, 0.92), rgba(166, 145, 20, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(246, 231, 149, 0.98), rgba(166, 145, 20, 0.98));
}

*::-webkit-scrollbar-corner {
    background: rgba(5, 11, 20, 0.72);
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

.public-layout-shell {
    min-height: 100vh;
}

.public-whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(131, 255, 186, 0.2);
    background:
        linear-gradient(180deg, rgba(31, 181, 96, 0.98), rgba(20, 141, 74, 0.98));
    color: #f5fff8;
    text-decoration: none;
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.public-whatsapp-fab:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.public-whatsapp-fab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.78);
    outline-offset: 3px;
}

.public-whatsapp-fab__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    flex: 0 0 34px;
}

.public-whatsapp-fab__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.public-whatsapp-fab__label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.muted {
    color: var(--text-soft);
    line-height: 1.58;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 11px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
    line-height: 1.2;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button.button-link {
    font: inherit;
}

.button-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
}

.button-link.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #07111c;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(214, 187, 24, 0.18);
}

.button-link.secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)), var(--surface-bg);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.11);
}

.button-link.ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: rgba(255, 255, 255, 0.1);
}

.button-link.ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.button-link.success {
    background: rgba(45, 182, 108, 0.12);
    color: #d4ffe3;
    border-color: rgba(45, 182, 108, 0.24);
}

.button-link.danger {
    background: rgba(255, 123, 114, 0.12);
    color: #ffd1cc;
    border-color: rgba(255, 123, 114, 0.24);
}

.button-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button-small {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.section-tag {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    margin-bottom: 0;
    background: rgba(193, 168, 27, 0.16);
    color: #f6e48e;
    border: 1px solid rgba(193, 168, 27, 0.3);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-tag.subtle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1.15;
}

.status-chip.ok {
    color: #d4ffe3;
    background: rgba(45, 182, 108, 0.14);
    border-color: rgba(45, 182, 108, 0.24);
}

.status-chip.warn {
    color: #f4e890;
    background: rgba(214, 187, 24, 0.12);
    border-color: rgba(214, 187, 24, 0.28);
}

.status-chip.danger {
    color: #ffd1cc;
    background: rgba(255, 123, 114, 0.12);
    border-color: rgba(255, 123, 114, 0.24);
}

.status-chip.info {
    color: #d7efff;
    background: rgba(97, 181, 255, 0.14);
    border-color: rgba(97, 181, 255, 0.28);
}

.context-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.15;
}

.context-pill.subtle {
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.03);
}

#blazor-error-ui {
    background: #b32121;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 720px) {
    .public-whatsapp-fab {
        right: 14px;
        bottom: 14px;
        min-height: 54px;
        padding: 0 14px 0 12px;
    }

    .public-whatsapp-fab__label {
        display: none;
    }
}
