:root {
    --color-primary: #1B4332;
    --color-secondary: #2D6A4F;
    --color-accent: #D4A843;
    --color-bg: #F8F9FA;
    --color-surface: #FFFFFF;
    --color-text: #1A1A2E;
    --color-muted: #6B7280;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    background: var(--color-bg);
}

.page-shell {
    background:
        radial-gradient(circle at top, rgba(45, 106, 79, 0.16), transparent 40%),
        linear-gradient(180deg, #f8f9fa 0%, #eef2ee 100%);
}

.auth-shell {
    width: 100%;
}

.auth-frame {
    display: grid;
    width: 100%;
    gap: 2rem;
    border: 1px solid #e7e5e4;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 32px 80px rgba(28, 37, 33, 0.14);
    overflow: hidden;
}

.auth-brand-panel {
    background:
        linear-gradient(180deg, rgba(27, 67, 50, 0.96), rgba(45, 106, 79, 0.94)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    color: #ffffff;
    position: relative;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: auto -5% -20% auto;
    width: 260px;
    height: 260px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.28), transparent 65%);
    pointer-events: none;
}

.auth-form-panel {
    display: flex;
    align-items: center;
}

.ui-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ui-card-muted {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--color-muted);
}

.page-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.page-title-sm {
    font-size: clamp(1.875rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.page-copy {
    color: #d1fae5;
    max-width: 34rem;
}

.metric-tile {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 16px;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(27, 67, 50, 0.18);
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    border: 1px solid #e7e5e4;
    background: #ffffff;
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-link {
    color: var(--color-primary);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--color-secondary);
}

.field-control {
    width: 100%;
    border: 1px solid #d6d3d1;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.9rem 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
    outline: none;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.ui-badge-success {
    background: #d1fae5;
    color: #047857;
}

.ui-badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.ui-badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.table-shell {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.form-shell {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.field-help {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.panel-sidebar {
    background:
        linear-gradient(180deg, rgba(27, 67, 50, 0.98), rgba(31, 84, 60, 0.98)),
        radial-gradient(circle at top, rgba(212, 168, 67, 0.12), transparent 40%);
    color: #ffffff;
}

.panel-brand {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(10px);
}

.panel-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.panel-nav-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ecfdf5;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.panel-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.panel-nav-link.is-active {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.96)),
        #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.stat-value {
    font-size: clamp(1.75rem, 2vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.muted-label {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.empty-illustration {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(212, 168, 67, 0.14), transparent 60%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #ede9e8;
}

.empty-orbit {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 2px solid rgba(27, 67, 50, 0.16);
    position: relative;
}

.empty-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(212, 168, 67, 0.12);
}

.filter-bar {
    display: grid;
    gap: 1rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #e7e5e4;
    background: #ffffff;
    color: var(--color-text);
    font-weight: 600;
}

.pagination-link.is-current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.field-error {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #b91c1c;
}

.field-invalid {
    border-color: #fca5a5;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.summary-panel {
    border-radius: 20px;
    background: linear-gradient(180deg, #fcfcfb, #f4f7f5);
    border: 1px solid #e7e5e4;
}

.availability-ok {
    color: #047857;
}

.availability-bad {
    color: #b91c1c;
}

.upgrade-banner {
    border: 1px solid rgba(212, 168, 67, 0.35);
    background: linear-gradient(180deg, #fff9eb, #fff4d6);
    color: #7c5a11;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid rgba(45, 106, 79, 0.22);
    outline-offset: 2px;
}

table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.7);
}

.card-enter {
    animation: cardEnter 220ms ease-out;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 1024px) {
    .auth-frame {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .panel-brand {
        position: static;
        backdrop-filter: none;
    }

    .panel-nav {
        display: block;
        overflow: visible;
        padding-bottom: 0;
    }

    .panel-nav-link {
        display: flex;
        margin-bottom: 0.25rem;
    }
}
