/* ===================================================
   ImmoBrain – Claude-inspired Admin Layout
   Dark sidebar · Warm cream content · Amber accent
   =================================================== */

:root {
    /* Content area */
    --color-bg:        #f7f7f2;
    --color-surface:   #ffffff;
    --color-surface-2: #f0f0e8;
    --color-border:    #e4e4d8;
    --color-border-2:  #ccccc0;

    /* Typography */
    --color-primary:   #111110;
    --color-text:      #1f1f1e;
    --color-muted:     #6b6b60;
    --color-muted-2:   #a0a094;

    /* Accent — Yellow / Black */
    --color-accent:    #f0d000;
    --color-accent-h:  #d4b800;
    --color-accent-bg: #fefce8;
    --color-accent-text: #111110;

    /* Sidebar */
    --sidebar-bg:      #ffffff;
    --sidebar-border:  #e8e8e0;
    --sidebar-text:    #6b6b60;
    --sidebar-hover:   #f5f5ef;
    --sidebar-active:  #fefce8;
    --sidebar-width:   228px;

    /* Status */
    --color-success:    #15803d;
    --color-success-bg: #dcfce7;
    --color-warning:    #92400e;
    --color-warning-bg: #fef3c7;
    --color-danger:     #b91c1c;
    --color-danger-bg:  #fee2e2;

    --radius:    8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===================================================
   Reset / Base
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 15px;
    height: 100%;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    margin: 0;
    height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ===================================================
   App Shell — sidebar + main
   =================================================== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ===================================================
   Sidebar
   =================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.logo-link:hover { color: var(--color-primary); }

.brand-dot {
    width: 9px;
    height: 9px;
    background: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted-2);
    padding: 6px 10px 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sidebar-text);
    margin-bottom: 2px;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.6; }
.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--color-primary);
}
.sidebar-link:hover svg { opacity: 1; }
.sidebar-link.active {
    background: var(--sidebar-active);
    color: var(--color-primary);
    font-weight: 600;
}
.sidebar-link.active svg { opacity: 1; }

/* CTA Button */
.sidebar-footer {
    padding: 14px 10px;
    flex-shrink: 0;
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 700;
}
.sidebar-cta:hover {
    background: var(--color-accent-h);
    color: var(--color-accent-text);
}

/* ===================================================
   Mobile Topbar
   =================================================== */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    align-items: center;
    padding: 0 16px;
    gap: 14px;
    z-index: 300;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}
.sidebar-toggle:hover { color: var(--color-primary); }

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}
.sidebar-overlay.show { display: block; }

/* Mobile sidebar slide */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }
}

/* ===================================================
   Main Content
   =================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    padding: 32px 36px;
    width: 100%;
}

@media (max-width: 767px) {
    .main-content { margin-left: 0; padding-top: 52px; }
    .content-wrapper { padding: 20px 16px; }
}

/* ===================================================
   Footer
   =================================================== */
.ib-footer {
    padding: 16px 36px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
}
.ib-footer a { color: var(--color-muted); }
.ib-footer a:hover { color: var(--color-primary); }

/* ===================================================
   Cards
   =================================================== */
.ib-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ib-card-header {
    padding: 13px 20px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text);
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ib-card-header.dark {
    background: var(--color-primary);
    color: #fff;
    border-bottom-color: transparent;
}

.ib-card-header.slate {
    background: #44403c;
    color: #fff;
    border-bottom-color: transparent;
}

.ib-card-body { padding: 20px; }
.ib-card-body.flush { padding: 0; }

/* ===================================================
   Forms
   =================================================== */
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 9px 13px;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-surface);
    box-shadow: none;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(240,208,0,0.28);
    outline: none;
}
.form-control[readonly] {
    background: var(--color-surface-2);
    color: var(--color-muted);
}
.form-control::placeholder { color: var(--color-muted-2); }

/* ===================================================
   Buttons
   =================================================== */
.btn {
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.btn-primary-ib {
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 700;
}
.btn-primary-ib:hover { background: var(--color-accent-h); color: var(--color-accent-text); }

.btn-dark-ib {
    background: var(--color-primary);
    color: #fff;
}
.btn-dark-ib:hover { background: #0c0a09; color: #fff; }

.btn-outline-ib {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-2);
}
.btn-outline-ib:hover {
    background: var(--color-surface-2);
    color: var(--color-primary);
    border-color: var(--color-border-2);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240,208,0,0.35);
}

/* ===================================================
   Step Indicator
   =================================================== */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-border);
    color: var(--color-muted);
    flex-shrink: 0;
}
.step-dot.active { background: var(--color-accent); color: #fff; }
.step-dot.done   { background: var(--color-success); color: #fff; }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    max-width: 40px;
}
.step-line.done { background: var(--color-success); }

.step-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* ===================================================
   Page Title
   =================================================== */
.page-title { margin-bottom: 28px; }
.page-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.page-title p {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* ===================================================
   Tables
   =================================================== */
.ib-table { width: 100%; font-size: 0.875rem; }
.ib-table td {
    padding: 9px 18px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.ib-table td:first-child { color: var(--color-muted); width: 45%; }
.ib-table td:last-child  { font-weight: 600; color: var(--color-primary); }
.ib-table tr:last-child td { border-bottom: none; }

.table-sm > :not(caption) > * > * { padding: 8px 14px; }

/* ===================================================
   Badges
   =================================================== */
.ib-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ib-badge-primary { background: var(--color-accent-bg);  color: var(--color-accent-h); }
.ib-badge-success { background: var(--color-success-bg); color: var(--color-success); }
.ib-badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.ib-badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger); }
.ib-badge-neutral { background: var(--color-surface-2);  color: var(--color-muted); }

/* ===================================================
   Divider
   =================================================== */
.ib-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 22px 0;
}

/* ===================================================
   Landing / Hero
   =================================================== */
.hero-section {
    padding: 48px 0 36px;
    text-align: center;
}
.hero-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hero-section p {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.hero-section .hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
}
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
}
.feature-card .feature-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.feature-card .feature-icon svg { width: 17px; height: 17px; stroke: var(--color-accent); }
.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===================================================
   Form Pages (Create / Edit)
   =================================================== */
.form-page {
    width: 100%;
}

.fg-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin: 0 0 14px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 5px 0 0;
}

.form-hint-error {
    font-size: 0.75rem;
    color: var(--color-danger);
    display: block;
    margin-top: 4px;
}

.form-alert-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.form-alert-error:empty { display: none; }

.form-alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ===================================================
   Data Table
   =================================================== */
.dt-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dt {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dt thead tr {
    border-bottom: 2px solid var(--color-border);
}

.dt thead th {
    padding: 11px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-muted);
    white-space: nowrap;
    background: var(--color-surface-2);
}

.dt thead th:first-child { border-radius: 0; }

.dt thead th .sort-ico {
    display: inline-flex;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.4;
}
.dt thead th:hover .sort-ico,
.dt thead th.th-asc .sort-ico,
.dt thead th.th-desc .sort-ico {
    opacity: 1;
}
.dt thead th.th-asc .sort-ico,
.dt thead th.th-desc .sort-ico {
    color: var(--color-accent);
}

/* Search input inside card header */
.dt-search {
    position: relative;
    display: flex;
    align-items: center;
}
.dt-search svg {
    position: absolute;
    left: 10px;
    color: var(--color-muted);
    pointer-events: none;
}
.dt-search input {
    padding: 6px 12px 6px 32px;
    font-size: 0.8125rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-text);
    width: 220px;
    outline: none;
}
.dt-search input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(240,208,0,0.2);
}
.dt-search input::placeholder { color: var(--color-muted-2); }

.dt tbody tr {
    border-bottom: 1px solid var(--color-border);
}
.dt tbody tr:last-child { border-bottom: none; }
.dt tbody tr:hover { background: var(--color-surface-2); }

.dt td {
    padding: 12px 16px;
    vertical-align: middle;
}

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

.dt-muted {
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.dt-num {
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
}

/* Action buttons */
.dt-actions {
    white-space: nowrap;
    text-align: right;
    padding-right: 12px !important;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--color-muted);
    background: transparent;
    border: 1px solid transparent;
    margin-left: 2px;
}
.dt-btn:hover {
    background: var(--color-border);
    color: var(--color-primary);
    border-color: var(--color-border);
}
.dt-btn-danger:hover {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: var(--color-danger-bg);
}

/* Inline badges */
.dt-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.dt-badge-dark   { background: var(--color-primary); color: #fff; }
.dt-badge-yellow { background: var(--color-accent);  color: var(--color-accent-text); }
.dt-badge-green  { background: var(--color-success-bg); color: var(--color-success); }
.dt-badge-red    { background: var(--color-danger-bg);  color: var(--color-danger); }

/* Price bar (Preishistorie) */
.price-bar-wrap {
    width: 80px;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}
.price-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    min-width: 4px;
}

/* Count badge in title */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 1px 8px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 20px;
    color: var(--color-muted);
}
.empty-state svg { stroke: var(--color-muted-2); }
.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* ===================================================
   Stat Cards (Dashboard)
   =================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.stat-grid-sm {
    gap: 12px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-sm {
    padding: 14px 16px;
    gap: 12px;
}

.stat-card.stat-card-cta {
    background: var(--color-accent);
    border-color: var(--color-accent-h);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-accent);
}

.stat-icon-sm {
    width: 32px;
    height: 32px;
}
.stat-icon-sm svg { width: 15px; height: 15px; }

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-value-sm {
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
}

.btn-stat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 4px;
}
.btn-stat-cta:hover {
    background: #2a2a28;
    color: #ffffff;
}

/* ===================================================
   Chart Row (Dashboard)
   =================================================== */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.chart-main, .chart-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-canvas-wrap {
    flex: 1;
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-canvas-wrap canvas {
    width: 100% !important;
    max-height: 280px;
}

@media (max-width: 960px) {
    .chart-row { grid-template-columns: 1fr; }
}

/* Top 3 ranking list */
.top3-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top3-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.top3-rank {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.top3-body {
    flex: 1;
    min-width: 0;
}

.top3-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.top3-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.top3-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.top3-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-left: 2px;
}

.top3-bar-wrap {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.top3-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ===================================================
   KI Result
   =================================================== */
.ki-result-card { }

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
    color: var(--color-accent) !important;
}

/* ===================================================
   Auth Layout (Login / Register)
   =================================================== */
.auth-body {
    min-height: 100vh;
    background: var(--color-surface);
}

/* Centered wrapper (Register page) */
.auth-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--color-bg);
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

/* Split layout (Login page) */
.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 64px;
    background: var(--color-surface);
}

.auth-form-wrap {
    width: 100%;
    max-width: 360px;
}

.auth-right {
    flex: 1;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?fit=crop&w=1400&q=85');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(17,17,16,0.25) 0%, rgba(17,17,16,0.80) 100%);
    z-index: 0;
}

.auth-right-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px 52px;
    z-index: 1;
}

.auth-right-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.auth-right-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.auth-right-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    max-width: 340px;
}

/* Shared auth elements */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.025em;
    margin: 0 0 6px;
}

.auth-sub {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0 0 28px;
}

.auth-footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted);
}
.auth-footer-link a {
    color: var(--color-primary);
    font-weight: 600;
}
.auth-footer-link a:hover { color: var(--color-accent-h); }

/* Responsive */
@media (max-width: 900px) {
    .auth-left { flex: none; width: 100%; padding: 48px 32px; }
    .auth-right { display: none; }
}

/* ===================================================
   Sidebar User Footer
   =================================================== */
.sidebar-user {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    border-radius: 4px;
    flex-shrink: 0;
}
.sidebar-logout-btn:hover {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}
