:root {
    --brand-color: #2563eb;
    --primary: var(--brand-color);
    --primary-dark: var(--brand-color);
    --secondary: var(--brand-color);
    --dark: #0f172a;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --white: #ffffff;
    --bg-1: #f8fafc;
    --bg-2: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 20px 45px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.18);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: all 0.28s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 22%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 6%, transparent), transparent 24%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

body.site-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

a {
    text-decoration: none;
}

/* Make sure page content can properly occupy the middle row */
main,
.auth-main,
.page-main,
.dashboard-main {
    min-width: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.header-shell {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--dark);
}

.brand-mark:hover {
    color: var(--dark);
}

.brand-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow:
        0 14px 30px color-mix(in srgb, var(--primary) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand-icon-core {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.26), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-header-light,
.btn-light-soft {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-header-light:hover,
.btn-light-soft:hover {
    color: var(--dark);
    background: #fff;
}

.btn-header-brand,
.btn-brand {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 18%, transparent);
}

.btn-header-brand:hover,
.btn-brand:hover,
.btn-header-brand:focus,
.btn-brand:focus {
    color: #fff;
}

/* Homepage */
.home-hero {
    display: flex;
    align-items: center;
    padding: 70px 0 50px;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
}

.hero-left {
    padding-right: 10px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(229,231,235,0.95);
    box-shadow: var(--shadow-sm);
    color: var(--dark);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--dark);
    margin: 0 0 20px;
    max-width: 700px;
}

.hero-subtitle {
    max-width: 590px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
}

.hero-proof-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.92);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.hero-proof-card small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-proof-card strong {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--dark);
}

.hero-right {
    position: relative;
}

.hero-right::before {
    content: "";
    position: absolute;
    inset: 20px -10px -18px 24px;
    border-radius: 36px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--primary) 16%, transparent));
    filter: blur(10px);
    z-index: 0;
}

.showcase-card {
    position: relative;
    z-index: 1;
    background: var(--surface-strong);
    border: 1px solid rgba(255,255,255,0.94);
    border-radius: 34px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--primary) 18%, transparent));
    color: var(--dark);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.showcase-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.showcase-text {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

.showcase-panel {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 26px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 20px 40px color-mix(in srgb, var(--primary) 22%, transparent);
}

.showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.showcase-dots {
    display: flex;
    gap: 8px;
}

.showcase-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    display: inline-block;
}

.showcase-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    font-size: 0.78rem;
    font-weight: 700;
}

.showcase-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.showcase-stat {
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
}

.showcase-stat small {
    display: block;
    color: rgba(255,255,255,0.70);
    margin-bottom: 8px;
}

.showcase-stat strong {
    font-size: 1.35rem;
    font-weight: 900;
}

.showcase-bottom {
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 16px;
}

.showcase-bottom-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.90);
}

.showcase-bottom-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
}

/* Benefits */
.home-benefits {
    padding: 10px 0 70px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card {
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--primary) 22%, transparent));
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 18px;
}

.benefit-card h4 {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.benefit-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

/* CTA */
.home-cta {
    padding: 0 0 80px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: 34px;
    padding: 38px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.cta-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
}

.cta-card p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    max-width: 620px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-actions .btn-light-soft {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.cta-actions .btn-light-soft:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* Footer */
.site-footer {
    background: rgba(255,255,255,0.72);
    border-top: 1px solid rgba(229,231,235,0.84);
    backdrop-filter: blur(12px);
}

.footer-shell {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 4px;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Existing app styles kept compatible */
.form-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.98);
    box-shadow: none;
    transition: var(--transition);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--primary) 34%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.content-card {
    background: var(--surface);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.84);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.sidebar-card {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
}

.side-link {
    color: rgba(255,255,255,0.95);
    padding: 12px 14px;
    border-radius: 14px;
    display: block;
    transition: var(--transition);
    font-weight: 600;
}

.side-link:hover,
.side-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.top-pagebar {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    margin-bottom: 22px;
}

.summary-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.summary-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 600;
}

.summary-card h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.filter-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.custom-table {
    width: 100%;
}

.custom-table thead th {
    border: none;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.custom-table td,
.custom-table th {
    padding: 14px 12px;
    vertical-align: middle;
}

.text-muted {
    color: var(--muted) !important;
}

.alert {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-shell,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .header-shell {
        min-height: auto;
        padding: 12px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
    }

    .home-hero {
        padding: 42px 0 34px;
    }

    .hero-proof-row,
    .benefit-grid,
    .showcase-stat-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card,
    .benefit-card,
    .cta-card,
    .content-card,
    .sidebar-card,
    .top-pagebar,
    .summary-card,
    .filter-card {
        border-radius: 22px;
    }

    .showcase-card,
    .cta-card {
        padding: 24px;
    }

    .brand-subtitle {
        display: none;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   AUTH PAGES MOBILE FIX
========================= */
@media (max-width: 767px) {

    .auth-main {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .auth-main .hero-shell {
        display: flex;
        flex-direction: column-reverse;
        gap: 18px;
    }

    .auth-main .hero-left {
        padding-right: 0;
    }

    .auth-main .hero-kicker {
        margin-bottom: 12px;
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .auth-main .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin: 0 0 12px;
    }

    .auth-main .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .auth-main .hero-proof-row {
        gap: 10px;
    }

    .auth-main .hero-proof-card {
        padding: 14px;
        border-radius: 18px;
    }

    .auth-main .showcase-card {
        padding: 20px;
        border-radius: 20px;
    }

    .auth-main .showcase-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .auth-main .showcase-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .auth-main .form-control,
    .auth-main .form-select {
        min-height: 50px;
    }

    .auth-main .btn.btn-brand {
        min-height: 50px;
    }

    .auth-main .row {
        --bs-gutter-x: 12px;
    }

    .auth-divider {
        margin: 18px 0;
    }
}

.auth-header {
    background: rgba(255, 255, 255, 0.88);
}

.btn.active {
    outline: 2px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    transition: var(--transition);
}

.password-toggle:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.admin-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 22%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 5%, transparent), transparent 24%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.admin-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

.admin-topbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-menu-toggle {
    min-width: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-menu-toggle:hover,
.admin-menu-toggle:focus {
    background: #fff;
    color: var(--dark);
    transform: translateY(-1px);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--dark);
    text-decoration: none;
    min-width: 0;
}

.admin-brand:hover {
    color: var(--dark);
}

.admin-brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow:
        0 14px 30px color-mix(in srgb, var(--primary) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    flex-shrink: 0;
}

.admin-brand-badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.26), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.admin-brand-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.admin-brand-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: 10px;
    min-height: 56px;
    padding: 10px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-sm);
    text-align: right;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.admin-user-chip-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
    white-space: nowrap;
}

.admin-user-chip .btn {
    margin: 0 !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-user-chip strong {
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
}

.admin-main {
    min-width: 0;
    flex: 1 0 auto;
    display: block;
}

.page-content {
    flex: 1 0 auto;
}

@media (max-width: 767px) {
    .admin-topbar-inner {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .admin-brand-badge {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .admin-brand-badge-inner {
        border-radius: 16px;
    }

    .admin-brand-title {
        font-size: 1rem;
    }

    .admin-brand-subtitle {
        display: none;
    }

    .admin-user-chip {
        padding: 10px 12px;
        min-height: 50px;
    }

    .admin-user-chip-label {
        font-size: 0.72rem;
    }

    .admin-user-chip strong {
        font-size: 0.88rem;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.admin-footer {
    margin-top: auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.admin-footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.admin-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-footer-brand {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--dark);
}

.admin-footer-text {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-footer-right {
    text-align: right;
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: auto;
}

@media (min-width: 1600px) {
    .admin-footer-inner {
        max-width: 1650px;
    }
}

@media (max-width: 900px) {
    .admin-footer {
        padding: 0;
    }

    .admin-footer-inner {
        padding: 16px 18px;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .admin-footer-inner {
        padding: 14px 16px;
        gap: 4px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .admin-footer-left {
        justify-content: center;
        gap: 6px;
    }

    .admin-footer-right {
        text-align: center;
        white-space: normal;
        margin-left: 0;
    }
}

/* Clean logo (no round, no badge) */
.admin-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 58px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}

.admin-brand-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 767px) {
    .admin-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-user-chip {
        flex-direction: row;
        padding: 10px 12px;
        min-height: 50px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .admin-user-chip-label {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .admin-topbar-inner {
        flex-wrap: wrap;
    }

    .admin-topbar-right {
        width: 100%;
        justify-content: center;
    }

    .admin-user-chip {
        justify-content: center;
    }
}