:root {
    --bg-primary: #0f172a;
    --bg-secondary: #111827;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-dark: #172036;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-soft: rgba(148, 163, 184, 0.2);
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body.admin-body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 24%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
    color: var(--text-primary);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar-desktop {
    flex: 0 0 290px;
}

.sidebar {
    width: 290px;
    padding: 1.5rem;
    background: linear-gradient(180deg, #0f172a 0%, #16213b 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-mobile {
    width: 100%;
    min-height: 100vh;
    height: 100%;
}

.sidebar-brand {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 1.75rem;
}

.sidebar-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.9rem 0 0.35rem;
}

.sidebar-text {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.95rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.65rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: rgba(226, 232, 240, 0.88);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-link-mark {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-offcanvas {
    --bs-offcanvas-width: 320px;
    background: linear-gradient(180deg, #0f172a 0%, #16213b 100%);
    color: #fff;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem 0;
}

.topbar-mobile-bar,
.topbar-desktop-row {
    width: 100%;
}

.topbar-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.topbar-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: none;
}

.topbar-menu-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18);
    border-radius: 0.85rem;
}

.topbar-menu-icon {
    width: 1.5rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.24rem;
}

.topbar-menu-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 999px;
    background: #0f172a;
}

.topbar-brand {
    min-width: 0;
}

.topbar-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.topbar-user-pill-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-kicker {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar-chip-mark {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.topbar-logout-btn {
    border-radius: 999px;
    padding-inline: 1rem;
}

.topbar-logout-btn-mobile {
    padding: 0.55rem 0.9rem;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.topbar-title {
    font-size: 1.7rem;
    font-weight: 700;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(67, 56, 202, 0.28);
}

.hero-badge {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero-text {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-premium,
.btn-premium-outline {
    border-radius: 0.9rem;
    padding: 0.9rem 1.2rem;
    font-weight: 600;
}

.metric-card {
    height: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.35rem;
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.metric-card-highlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.9) 100%);
}

.currency-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(236, 253, 245, 0.82) 100%);
}

.metric-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.metric-value {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.metric-text {
    color: var(--text-muted);
}

.page-section {
    max-width: 1400px;
}

.section-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.section-kicker {
    display: inline-block;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 700;
}

.section-text {
    color: var(--text-muted);
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    background: rgba(79, 70, 229, 0.08);
    color: #312e81;
    font-size: 0.92rem;
    font-weight: 600;
}

.soft-badge-inline {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

.form-control-premium {
    min-height: 3.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

textarea.form-control-premium {
    min-height: auto;
    padding-top: 0.9rem;
}

.form-control-premium:focus,
.form-select.form-control-premium:focus {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.12);
}

.btn-premium-action {
    border-radius: 1rem;
    padding: 0.9rem 1.3rem;
    font-weight: 600;
    box-shadow: 0 16px 35px rgba(79, 70, 229, 0.24);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.45) 50%, transparent 100%);
}

.table-premium {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: rgba(148, 163, 184, 0.18);
}

.table-premium thead th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 1px;
}

.table-premium tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.quote-item-list {
    display: grid;
    gap: 1rem;
}

.quote-item-card {
    padding: 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.quote-item-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quote-item-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.quote-item-card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.quote-item-remove {
    border-radius: 0.9rem;
    min-width: 120px;
}

.quote-item-remove:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.quote-item-total {
    min-height: 3.1rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.14);
    font-weight: 700;
    color: #312e81;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.22), transparent 24%),
        linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #eef2ff 100%);
}

.auth-shell {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 1rem;
}

.auth-card-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    padding: 2rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.auth-card-hero {
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.auth-text {
    color: var(--text-muted);
}

.footer-wrap {
    margin-top: auto;
    padding: 0 1.75rem 1.5rem;
}

@media (max-width: 991.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        padding: 1.25rem 1rem 0;
    }

    .topbar-user-pill-text {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-wrap {
        padding: 0 1rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .quote-item-card {
        padding: 1rem;
    }

    .quote-item-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-item-remove {
        width: 100%;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .topbar-mobile-actions {
        gap: 0.45rem;
    }

    .topbar-user-pill {
        padding: 0.5rem 0.7rem;
    }

    .topbar-user-pill-text {
        max-width: 82px;
        font-size: 0.85rem;
    }

    .topbar-logout-btn-mobile {
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }
}
