:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --sidebar: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.05), 0 20px 40px rgba(15, 23, 42, 0.1);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    overflow: hidden;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand span {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.15rem;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-item .icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }

.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: #64748b;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body { padding: 1.5rem; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #d1fae5; }
.stat-icon.purple { background: #ede9fe; }
.stat-icon.orange { background: #ffedd5; }
.stat-icon.red { background: #fee2e2; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); color: var(--text); }

.btn-meta {
    background: #1877f2;
    color: #fff;
}

.btn-meta:hover { background: #166fe5; color: #fff; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.btn-block { width: 100%; }

/* Alerts */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Table */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: #f1f5f9; color: #64748b; }

/* Template grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.template-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.template-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.template-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.template-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Wizard steps */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.wizard-step {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    position: relative;
}

.wizard-step:last-child { border-right: none; }
.wizard-step.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.wizard-step.done { color: var(--success); }

.wizard-step .step-num {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

.wizard-step.active .step-num { background: var(--primary); color: #fff; }
.wizard-step.done .step-num { background: var(--success); color: #fff; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Quick action */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Utilities */
.desktop-only { display: block; }
.mobile-only { display: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.sidebar-brand-link { text-decoration: none; color: inherit; }

/* Public / Landing */
.public-body { background: var(--bg); }
.public-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.public-header-inner {
    max-width: 1100px; margin: 0 auto; padding: 0.85rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
}
.public-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.public-nav { display: flex; gap: 0.5rem; align-items: center; }
.public-main { min-height: calc(100vh - 120px); }
.public-footer {
    padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 45%, #1d4ed8 100%);
    color: #fff; padding: 4rem 0 3.5rem;
}
.hero-inner { text-align: center; }
.hero-badge {
    display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
    background: rgba(255,255,255,0.12); font-size: 0.8rem; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: #93c5fd; }
.hero-desc { font-size: 1.05rem; opacity: 0.9; max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.25rem; }
.hero-stats span { font-size: 0.8rem; opacity: 0.75; }

.features { padding: 4rem 0; }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

.cta-section { padding: 0 0 4rem; }
.cta-box {
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
    border-radius: 20px; padding: 2.5rem; text-align: center;
}
.cta-box h2 { margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-box .btn-primary { background: #fff; color: #1d4ed8; box-shadow: none; }

/* Panel mobile */
.panel-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mobile-topbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--sidebar); color: #fff;
    padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between;
}
.mobile-topbar-logo { color: #fff; font-weight: 700; font-size: 1rem; }
.mobile-topbar-action { color: #fff; font-size: 1.25rem; padding: 0.25rem; }

.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
}
.mob-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.25rem; font-size: 0.65rem; font-weight: 600; color: var(--text-muted);
    background: none; border: none; font-family: inherit; cursor: pointer;
    text-decoration: none;
}
.mob-nav-item.active { color: var(--primary); }
.mob-icon { font-size: 1.25rem; line-height: 1; }

.mobile-menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 200;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 201;
    background: var(--surface); border-radius: 20px 20px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform 0.28s ease;
    max-height: 75vh; overflow-y: auto;
}
.mobile-menu-sheet.open { transform: translateY(0); }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem;
}
.mobile-menu-close {
    background: var(--bg); border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1rem; cursor: pointer;
}
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
    padding: 0.85rem 0.5rem; color: var(--text); font-weight: 500; font-size: 0.95rem;
    border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-menu-links a.meta-link { color: #1877f2; }
.mobile-menu-links a.logout-link { color: var(--danger); border-bottom: none; }

/* Responsive */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .mobile-bottom-nav { display: flex; }

    .app-layout { flex-direction: column; }
    .main-content {
        margin-left: 0; padding: 1rem 1rem 5.5rem;
        max-width: 100%;
    }
    .page-header h1 { font-size: 1.4rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.25rem; }
    .quick-actions { gap: 0.5rem; }
    .quick-actions .btn { flex: 1; min-width: calc(50% - 0.25rem); font-size: 0.8rem; padding: 0.55rem 0.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .wizard-steps { flex-direction: column; }
    .wizard-step { border-right: none; border-bottom: 1px solid var(--border); }
    .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab { white-space: nowrap; flex-shrink: 0; }
    .template-grid { grid-template-columns: 1fr; }
    .auth-page { padding: 1rem; }
    .auth-card { padding: 1.75rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-actions .btn { width: 100%; }
    .public-nav .btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
    table { font-size: 0.8rem; }
    th, td { padding: 0.6rem 0.5rem; }
}

@media (min-width: 769px) {
    .panel-wrap { margin-left: 260px; width: calc(100% - 260px); }
    .sidebar { position: fixed; }
}

/* Public nav links — mobile menu in public-premium.css */
.public-nav a:not(.btn) { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0.6rem; }
.public-nav a:not(.btn):hover { color: var(--primary); }
.public-nav .wa-link { color: #25d366 !important; }

.section-sub { text-align: center; color: var(--text-muted); margin: -1rem 0 2rem; }
.how-section, .pricing-section, .faq-section { padding: 3.5rem 0; }
.how-section { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.step-card {
    background: var(--bg); border-radius: var(--radius); padding: 1.5rem; text-align: center; border: 1px solid var(--border);
}
.step-card .step-num {
    display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.75rem;
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pricing-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; position: relative; box-shadow: var(--shadow);
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.pricing-badge {
    position: absolute; top: -10px; right: 1rem; background: var(--primary); color: #fff;
    font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600;
}
.pricing-card .price { font-size: 2rem; font-weight: 800; margin: 0.75rem 0 1rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.pricing-card li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.pricing-card li::before { content: '✓ '; color: var(--success); }

.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 0.75rem; padding: 0.25rem 1rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; padding-bottom: 0.75rem; }

.btn-whatsapp { background: #25d366 !important; color: #fff !important; border: none; }
.btn-whatsapp:hover { background: #1da851 !important; color: #fff !important; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--text-muted); margin-bottom: 0.35rem; }
.footer-copy { opacity: 0.7; }

/* Auth pro */
.auth-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #eef2f8;
}
.auth-page-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(160deg, #eef2f8 0%, #e2e8f4 50%, #eef2f8 100%);
}
.auth-page-pro {
    min-height: 100vh;
    padding: 1.25rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(160deg, #eef2f8 0%, #e2e8f4 50%, #eef2f8 100%);
}
.auth-public-footer { margin-top: 0; }
.auth-topbar {
    width: 100%; max-width: 960px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; padding: 0 0.25rem;
}
.auth-topbar-logo {
    font-weight: 700; font-size: 1.05rem; color: var(--text);
    text-decoration: none;
}
.auth-main { width: 100%; max-width: 960px; flex: 1; display: flex; align-items: center; justify-content: center; }
.auth-footer { width: 100%; max-width: 960px; text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-footer a { color: var(--text-muted); text-decoration: none; }
.auth-footer a:hover { color: var(--primary); }

.auth-split {
    display: grid; grid-template-columns: 1fr 1fr;
    width: 100%; max-width: 920px;
    background: var(--surface); border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(15,23,42,0.1);
    border: 1px solid rgba(226,232,240,0.8);
}
.auth-split-wide { max-width: 960px; }
.auth-split-left {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
    color: #fff; padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 480px;
}
.auth-brand-badge {
    display: inline-block; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 1rem; opacity: 0.95;
}
.auth-split-left h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 0.65rem; line-height: 1.3; color: #fff; }
.auth-split-left p { opacity: 0.88; margin-bottom: 1.25rem; font-size: 0.92rem; line-height: 1.5; color: #e2e8f0; }
.auth-features { list-style: none; margin-bottom: 1.5rem; }
.auth-features li { padding: 0.35rem 0; opacity: 0.92; font-size: 0.9rem; color: #f1f5f9; }
.auth-split-right {
    padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 480px;
}
.auth-form-header { margin-bottom: 0.25rem; }
.auth-form-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--text); line-height: 1.25; }
.auth-form-sub { color: var(--text-muted); margin: 0 0 1.25rem; font-size: 0.9rem; line-height: 1.45; }
.auth-alerts { min-height: 0; margin-bottom: 0.75rem; }
.auth-alerts:empty { margin-bottom: 0; }
.auth-alerts .alert { margin-bottom: 0; }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-form .form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--text); }
.auth-form .form-control {
    width: 100%; padding: 0.7rem 0.85rem; font-size: 0.95rem;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form .form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.85rem; }
.auth-link { color: var(--primary); font-weight: 500; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-flash-wrap { width: 100%; max-width: 960px; margin-bottom: 0.75rem; }
.auth-success-box { text-align: center; padding: 1rem 0; }
.auth-success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.auth-success-box p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.req { color: #dc2626; }
.terms-label { font-size: 0.85rem; line-height: 1.45; align-items: flex-start; }
.terms-label input { margin-top: 0.2rem; flex-shrink: 0; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; color: var(--text); }
.auth-form .btn-lg { padding: 0.8rem 1.25rem; font-size: 1rem; border-radius: 10px; }
.dash-plan-badge { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.35rem; }
.dash-plan-badge a { color: var(--primary); font-weight: 500; }
.nav-badge {
    display: inline-block; background: #ef4444; color: #fff;
    font-weight: 700;
    font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 999px; margin-left: 0.25rem;
    min-width: 1.1rem; text-align: center;
}
.mob-nav-badge {
    position: absolute; top: -2px; right: -6px;
    background: #ef4444; color: #fff; font-size: 0.55rem; font-weight: 700;
    min-width: 14px; height: 14px; line-height: 14px; text-align: center;
    border-radius: 999px; padding: 0 3px;
}
.mob-icon { position: relative; display: inline-block; }
.announcement-unread { border-left: 3px solid var(--primary); }
.announcement-card .badge-warning { background: #ef4444; color: #fff; }
.auth-lang-bar { display: none; }

/* Admin panel */
.admin-body { background: #f1f5f9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: #1e293b; color: #fff; position: fixed; top: 0; left: 0;
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; overflow: hidden;
    padding: 0;
}
.admin-brand { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.admin-sidebar-scroll {
    flex: 1; min-height: 0; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
}
.admin-sidebar-scroll::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.admin-sidebar-scroll::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Sidebar scroll — görünür kaydırma çubuğu */
.sidebar-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 130, 246, 0.6) rgba(255, 255, 255, 0.06);
    scrollbar-gutter: stable;
}
.sidebar-scrollable::-webkit-scrollbar { width: 8px; }
.sidebar-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 6px 2px;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.75), rgba(59, 130, 246, 0.55));
    border-radius: 6px;
    min-height: 40px;
}
.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(165, 180, 252, 0.9), rgba(96, 165, 250, 0.75));
}

/* Koyu üst bar — TR/EN renk uyumu */
.mobile-topbar .lang-switcher,
.admin-topbar .lang-switcher,
.public-header-actions .lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}
.mobile-topbar .lang-btn,
.admin-topbar .lang-btn,
.public-header-actions .lang-btn {
    color: #94a3b8;
}
.mobile-topbar .lang-btn:hover,
.admin-topbar .lang-btn:hover,
.public-header-actions .lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.mobile-topbar .lang-btn.active,
.admin-topbar .lang-btn.active,
.public-header-actions .lang-btn.active {
    background: #3b82f6;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}

/* Tablolar — yatay kaydırma, taşma yok */
.table-responsive,
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table,
.table-responsive .data-table,
.table-wrap table {
    min-width: 520px;
}
.data-table { width: 100%; border-collapse: collapse; }

.admin-brand a.admin-brand-link,
.admin-brand > .brand-logo {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: block;
}
.admin-brand small { color: #94a3b8; font-size: 0.75rem; }
.admin-sidebar nav a {
    display: block; padding: 0.7rem 1.25rem; color: #94a3b8; text-decoration: none; font-size: 0.9rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0.75rem 1.25rem; }
.admin-main-wrap { flex: 1; margin-left: 252px; }
@media (max-width: 768px) {
    .admin-main-wrap { margin-left: 0; }
    .admin-content { padding: 1rem 1rem 5.5rem; }
    .admin-bottom-nav { display: flex !important; }
}
.admin-content { padding: 2rem; max-width: 1100px; }
.admin-topbar {
    background: #1e293b; color: #fff; padding: 0.85rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.admin-topbar button { background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer; }
.admin-mobile-nav {
    display: none;
}

/* Lang switcher */
.lang-switcher {
    display: inline-flex; gap: 0.2rem; align-items: center;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.15rem;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.1rem; height: 1.85rem; padding: 0 0.55rem;
    font-size: 0.72rem; font-weight: 700; text-decoration: none;
    border-radius: 6px; border: none;
    color: #64748b; background: transparent;
    transition: all 0.15s ease;
}
.lang-btn:hover { color: var(--primary, #2563eb); background: #f1f5f9; }
.lang-btn.active {
    background: var(--primary, #2563eb);
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(37,99,235,0.35);
}
.sidebar-brand .lang-switcher, .admin-brand .lang-switcher,
.panel-sidebar-brand .lang-switcher {
    margin-top: 0;
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    padding: 0.2rem;
}
.panel-sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.sidebar-panel-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.35;
}
.sidebar-panel-label.sidebar-tagline {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-size: 0.72rem;
    color: #64748b;
}
.sidebar-lang-bar {
    width: 100%;
}
.sidebar-lang-bar .lang-btn {
    flex: 1;
}
.admin-brand .lang-btn { color: #cbd5e1; }
.admin-brand .lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.admin-brand .lang-btn.active { background: #2563eb; color: #fff !important; }
.sidebar-brand .lang-btn { color: #94a3b8; }
.sidebar-brand .lang-btn.active { color: #fff !important; }
.public-nav .lang-switcher, .public-header-actions .lang-switcher { margin: 0 0.35rem; }
.public-header .lang-btn.active { color: #fff !important; }
.public-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.mobile-topbar-actions, .admin-topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.auth-lang-bar { display: none; }

/* Admin panel */
.gateway-option {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem; margin-bottom: 0.5rem;
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.gateway-option:hover { border-color: var(--primary); background: #f8fafc; }
.gateway-option input { width: auto; }
.crypto-amount { text-align: center; padding: 1.5rem; margin-bottom: 1.5rem; background: #f8fafc; border-radius: 12px; }
.crypto-amount strong { display: block; font-size: 1.75rem; margin-top: 0.5rem; color: var(--primary); }
.copy-field { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.copy-field code { flex: 1; padding: 0.75rem; background: #f1f5f9; border-radius: 8px; word-break: break-all; font-size: 0.85rem; }
.btn-copy { white-space: nowrap; }
.btn-copy.copied { background: #dcfce7; color: #166534; border-color: #86efac; }

/* Auth register wide grid — merged into auth-form-grid above */

/* Admin mobile bottom nav */
.admin-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #1e293b; border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.admin-mob-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.2rem; font-size: 0.6rem; font-weight: 600; color: #94a3b8;
    background: none; border: none; font-family: inherit; cursor: pointer;
    text-decoration: none;
}
.admin-mob-item.active { color: #60a5fa; }
.admin-mob-icon { font-size: 1.2rem; line-height: 1; }
.admin-menu-sheet { background: #1e293b; color: #fff; }
.admin-menu-sheet .mobile-menu-header { border-color: rgba(255,255,255,0.1); color: #fff; }
.admin-menu-sheet .mobile-menu-links a { color: #e2e8f0; border-color: rgba(255,255,255,0.08); }
.admin-menu-sheet .mobile-menu-close { background: rgba(255,255,255,0.1); color: #fff; }
.admin-menu-sheet .admin-legal-accordion {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 0.35rem 0;
}
.admin-menu-sheet .admin-legal-accordion summary {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}
.admin-menu-sheet .admin-legal-accordion .mobile-legal-links {
    background: rgba(0, 0, 0, 0.2);
}
.admin-menu-sheet .admin-legal-accordion .mobile-legal-links a {
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

/* Revenue chart */
.revenue-chart { display: flex; gap: 0.35rem; align-items: flex-end; min-height: 140px; overflow-x: auto; padding-bottom: 0.25rem; }
.revenue-chart.compact { min-height: 100px; }
.revenue-chart-col { flex: 1; min-width: 36px; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.revenue-bars { display: flex; gap: 3px; align-items: flex-end; height: 100px; width: 100%; justify-content: center; }
.revenue-chart.compact .revenue-bars { height: 70px; }
.revenue-bar { width: 10px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.2s; }
.revenue-bar.try { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.revenue-bar.usd { background: linear-gradient(180deg, #10b981, #059669); }
.revenue-label { font-size: 0.62rem; color: var(--text-muted); text-align: center; white-space: nowrap; }
.revenue-legend { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.revenue-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.25rem; vertical-align: middle; }
.revenue-legend .dot.try { background: #3b82f6; }
.revenue-legend .dot.usd { background: #10b981; }

@media (max-width: 768px) {
    .auth-split { grid-template-columns: 1fr; max-width: 100%; }
    .auth-split-left { min-height: auto; padding: 2rem 1.75rem; }
    .auth-split-right { min-height: auto; padding: 1.75rem; }
    .auth-form-grid { grid-template-columns: 1fr; }
    .admin-main-wrap { margin-left: 0; padding-bottom: 5rem; width: 100%; min-width: 0; }
    .admin-content { padding: 1rem 1rem 5.5rem; overflow-x: hidden; }
    .panel-wrap { width: 100%; min-width: 0; }
    .main-content { padding: 1rem 1rem 5.5rem; overflow-x: hidden; }
    .admin-bottom-nav,
    .mobile-bottom-nav { display: flex !important; }
    .mobile-bottom-nav {
        justify-content: space-around;
        align-items: stretch;
    }
    .mob-nav-item,
    .admin-mob-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: 20%;
    }
    .mob-nav-item span:last-child,
    .admin-mob-item span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        white-space: nowrap;
    }
    .table-responsive table,
    .table-responsive .data-table {
        font-size: 0.78rem;
    }
    .table-responsive th,
    .table-responsive td {
        padding: 0.55rem 0.65rem;
        white-space: nowrap;
    }
    .page-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .public-header-inner { padding: 0.65rem 1rem; }
}

.table-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; margin: 0; }
.row-muted { opacity: 0.75; }
.text-muted { color: var(--text-muted); }
