/* Customer-ready navigation shell v1 — intentionally scoped to the public header/drawer. */
:root {
    --tcr-shell-bg: rgba(3, 5, 10, .86);
    --tcr-shell-panel: #0a0d13;
    --tcr-shell-panel-soft: #10141d;
    --tcr-shell-text: #f7f5ef;
    --tcr-shell-muted: #a6acb8;
    --tcr-shell-line: rgba(255, 255, 255, .11);
    --tcr-shell-gold: #d8b45b;
    --tcr-shell-gold-strong: #f0c96a;
    --tcr-shell-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

html[data-tna-theme="light"] {
    --tcr-shell-bg: rgba(249, 248, 244, .94);
    --tcr-shell-panel: #fbfaf7;
    --tcr-shell-panel-soft: #f1efe9;
    --tcr-shell-text: #171815;
    --tcr-shell-muted: #66665f;
    --tcr-shell-line: rgba(24, 24, 20, .12);
    --tcr-shell-gold: #9a6a0b;
    --tcr-shell-gold-strong: #815606;
    --tcr-shell-shadow: 0 24px 60px rgba(55, 50, 38, .13);
}

.tna-site-header {
    --tcr-header-text: var(--tcr-shell-text);
}

.tna-site-menu-button {
    color: var(--tcr-shell-text) !important;
    border-color: var(--tcr-shell-line) !important;
    background: color-mix(in srgb, var(--tcr-shell-panel) 92%, transparent) !important;
    box-shadow: none !important;
}

.tna-site-menu-button > span i {
    background: currentColor !important;
}

.tna-site-menu-button:hover,
.tna-site-menu-button:focus-visible {
    border-color: color-mix(in srgb, var(--tcr-shell-gold) 55%, var(--tcr-shell-line)) !important;
    background: var(--tcr-shell-panel-soft) !important;
}

.tcr-drawer {
    color: var(--tcr-shell-text);
}

@media (max-width: 1199px) {
    .tna-menu-backdrop {
        background: rgba(0, 0, 0, .48) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    html[data-tna-theme="light"] .tna-menu-backdrop {
        background: rgba(42, 39, 31, .22) !important;
    }

    .tna-site-drawer.tcr-drawer {
        position: fixed !important;
        z-index: 1002 !important;
        inset-block: 0 !important;
        inset-inline-end: 0 !important;
        inset-inline-start: auto !important;
        width: min(100%, 440px) !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        border-inline-start: 1px solid var(--tcr-shell-line) !important;
        background:
            radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--tcr-shell-gold) 10%, transparent), transparent 16rem),
            var(--tcr-shell-panel) !important;
        color: var(--tcr-shell-text) !important;
        box-shadow: var(--tcr-shell-shadow) !important;
        transform: translateX(calc((1 - 2 * var(--tcr-dir-sign, 0)) * 104%));
        transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility .24s ease !important;
    }

    html[dir="rtl"] .tna-site-drawer.tcr-drawer {
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        border-inline-start: 0 !important;
        border-inline-end: 1px solid var(--tcr-shell-line) !important;
        transform: translateX(104%) !important;
    }

    html[dir="ltr"] .tna-site-drawer.tcr-drawer {
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        border-inline-start: 0 !important;
        border-inline-end: 1px solid var(--tcr-shell-line) !important;
        transform: translateX(-104%) !important;
    }

    .tna-site-drawer.tcr-drawer.is-open,
    html[dir="rtl"] .tna-site-drawer.tcr-drawer.is-open,
    html[dir="ltr"] .tna-site-drawer.tcr-drawer.is-open {
        transform: translateX(0) !important;
    }

    .tcr-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-block-end: 16px;
        border-bottom: 1px solid var(--tcr-shell-line);
    }

    .tcr-drawer__brand {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 11px;
        color: inherit;
        text-decoration: none;
    }

    .tcr-drawer__logo {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
        object-fit: contain;
    }

    .tcr-drawer__brand > span {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .tcr-drawer__brand strong {
        overflow: hidden;
        color: var(--tcr-shell-text);
        font-size: .94rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tcr-drawer__brand small {
        overflow: hidden;
        color: var(--tcr-shell-muted);
        font-size: .72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tcr-drawer__close {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        display: grid;
        place-items: center;
        border: 1px solid var(--tcr-shell-line);
        border-radius: 14px;
        background: var(--tcr-shell-panel-soft);
        color: var(--tcr-shell-text);
    }

    .tcr-drawer__close svg {
        width: 21px;
        height: 21px;
    }

    .tcr-drawer__account {
        display: grid;
        gap: 12px;
        margin-block: 16px 4px;
        padding: 14px;
        border: 1px solid var(--tcr-shell-line);
        border-radius: 20px;
        background: color-mix(in srgb, var(--tcr-shell-panel-soft) 86%, transparent);
    }

    .tcr-drawer__identity {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .tcr-drawer__avatar {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--tcr-shell-gold) 40%, var(--tcr-shell-line));
        border-radius: 16px;
        background: color-mix(in srgb, var(--tcr-shell-gold) 12%, var(--tcr-shell-panel));
        color: var(--tcr-shell-gold);
        font-weight: 900;
    }

    .tcr-drawer__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tcr-drawer__identity > span:last-child {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .tcr-drawer__identity strong {
        overflow: hidden;
        color: var(--tcr-shell-text);
        font-size: .93rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tcr-drawer__identity small {
        color: var(--tcr-shell-muted);
        font-size: .74rem;
    }

    .tcr-drawer__quick {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tcr-drawer__quick a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding-inline: 10px;
        border: 1px solid var(--tcr-shell-line);
        border-radius: 12px;
        background: var(--tcr-shell-panel);
        color: var(--tcr-shell-text);
        font-size: .78rem;
        font-weight: 800;
        text-decoration: none;
    }

    .tcr-drawer__quick b {
        min-width: 20px;
        height: 20px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--tcr-shell-gold);
        color: #12110e;
        font-size: .66rem;
    }

    .tcr-drawer__admin {
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 13px;
        border: 1px solid color-mix(in srgb, var(--tcr-shell-gold) 55%, transparent);
        border-radius: 15px;
        background: linear-gradient(135deg, color-mix(in srgb, var(--tcr-shell-gold) 18%, var(--tcr-shell-panel)), var(--tcr-shell-panel-soft));
        color: var(--tcr-shell-text);
        text-decoration: none;
    }

    .tcr-drawer__admin > span {
        display: grid;
        gap: 3px;
    }

    .tcr-drawer__admin strong {
        color: var(--tcr-shell-gold-strong);
        font-size: .86rem;
        font-weight: 900;
    }

    html[data-tna-theme="dark"] .tcr-drawer__admin strong {
        color: var(--tcr-shell-gold-strong);
    }

    .tcr-drawer__admin small {
        color: var(--tcr-shell-muted);
        font-size: .7rem;
        line-height: 1.5;
    }

    .tcr-drawer__admin svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    html[dir="rtl"] .tcr-drawer__admin svg,
    html[dir="rtl"] .tcr-service-card__action svg {
        transform: scaleX(-1);
    }

    .tcr-drawer__nav {
        display: grid;
        margin-block: 10px auto;
        padding-block: 6px 12px;
    }

    .tcr-drawer__nav a {
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid var(--tcr-shell-line);
        color: var(--tcr-shell-text);
        text-decoration: none;
    }

    .tcr-drawer__nav a:first-child {
        border-top: 1px solid var(--tcr-shell-line);
    }

    .tcr-drawer__nav span {
        font-size: .96rem;
        font-weight: 850;
    }

    .tcr-drawer__nav small {
        color: var(--tcr-shell-muted);
        font-size: .67rem;
        font-variant-numeric: tabular-nums;
    }

    .tcr-drawer__footer {
        display: grid;
        gap: 10px;
        padding-block-start: 14px;
        border-top: 1px solid var(--tcr-shell-line);
    }

    .tcr-drawer__preferences,
    .tcr-drawer__guest-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tcr-drawer__preferences > *,
    .tcr-drawer__guest-actions > *,
    .tcr-drawer__logout {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding-inline: 11px;
        border: 1px solid var(--tcr-shell-line);
        border-radius: 13px;
        background: var(--tcr-shell-panel-soft);
        color: var(--tcr-shell-text);
        font-size: .78rem;
        font-weight: 800;
        text-decoration: none;
    }

    .tcr-drawer__preferences svg {
        width: 18px;
        height: 18px;
    }

    .tcr-drawer__preferences strong {
        color: var(--tcr-shell-gold-strong);
    }

    .tcr-drawer__logout {
        width: 100%;
        background: transparent;
        color: var(--tcr-shell-muted);
    }

    .tcr-drawer__consult {
        border-color: transparent !important;
        background: var(--tcr-shell-gold) !important;
        color: #17140d !important;
    }
}

@media (max-width: 480px) {
    .tna-site-drawer.tcr-drawer {
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .tcr-drawer__quick,
    .tcr-drawer__preferences,
    .tcr-drawer__guest-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tna-site-drawer.tcr-drawer {
        transition-duration: .01ms !important;
    }
}
