:root {
    --bg: #07111f;
    --bg-soft: #0d1b2f;
    --panel: rgba(10, 26, 46, 0.96);
    --panel-2: rgba(17, 35, 60, 0.96);
    --text: #eff6ff;
    --muted: #a7b5ca;
    --border: rgba(125, 157, 200, 0.18);
    --primary: #27c6ff;
    --primary-2: #74dcff;
    --navy: #203d60;
    --success: #3ddc97;
    --danger: #ff7c7c;
    --warning: #ffcf5a;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
    --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #06101c 0%, #08182a 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; }

.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 110px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(7, 17, 31, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: sticky;
    top: 12px;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.brand-logo-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-logout-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #072236 !important;
    font-weight: 700;
}
.page-container { padding-top: 26px; }

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    align-items: center;
    padding: 32px 0 18px;
}

.hero-copy h1, .section-heading h1, .dashboard-header h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 10px 0 14px;
}

.hero-copy p, .section-heading p, .dashboard-header p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.eyebrow {
    display: inline-block;
    color: var(--primary-2);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-actions, .header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #08253b; }
.btn-secondary { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.full { width: 100%; }
.btn-save-main { width: 100%; }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.hero-tags span, .mock-progress, .feature-card, .metric-card, .panel, .flash, .auth-card, .history-card, .empty-state-card {
    border: 1px solid var(--border);
}
.hero-tags span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
}

.hero-panel, .glass-card, .panel, .auth-card, .metric-card, .feature-card, .history-card, .empty-state-card {
    background: linear-gradient(180deg, rgba(14, 28, 47, 0.98), rgba(8, 21, 39, 0.98));
    box-shadow: var(--shadow);
}
.glass-card, .panel, .auth-card, .metric-card, .feature-card, .history-card, .empty-state-card {
    border-radius: var(--radius);
    padding: 24px;
}
.glass-card h3, .panel h2 { margin-top: 0; }
.metric-big { font-size: 2.2rem; font-weight: 800; margin: 12px 0 8px; }
.mock-progress {
    width: 100%; height: 12px; border-radius: 999px; overflow: hidden;
    background: rgba(255,255,255,0.05); margin-top: 18px;
}
.mock-progress span, .progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; }
.mini-list { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }

.feature-grid, .metrics-grid, .insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }

.feature-card h3, .metric-card strong, .insight-box strong { font-size: 1.15rem; }
.metric-card span, .insight-box span, .mini-metric span { color: var(--muted); display: block; margin-bottom: 8px; }
.metric-card strong, .insight-box strong, .mini-metric strong { display: block; font-size: 1.55rem; }
.metric-card small { display: block; margin-top: 8px; color: var(--muted); }
.highlight { background: linear-gradient(135deg, rgba(39, 198, 255, 0.20), rgba(9, 25, 45, 0.98)); }

.dashboard-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 20px;
    align-items: start;
}
.content-stack, .sidebar-stack { display: grid; gap: 20px; }
.panel-head, .section-heading, .dashboard-header { margin-bottom: 18px; }
.compact-panel h2 { font-size: 1.1rem; }
.mini-metric { padding: 14px 0; border-top: 1px solid var(--border); }
.mini-metric:first-of-type { border-top: 0; padding-top: 4px; }
.insight-box {
    background: rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.auth-section {
    min-height: calc(100vh - 200px);
    display: grid;
    place-items: center;
}
.auth-card {
    width: min(560px, 100%);
}
.auth-footer { color: var(--muted); text-align: center; margin-top: 18px; }
.auth-footer a { color: var(--primary-2); }

.form-grid { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.field-error { display: block; margin-top: 8px; color: #ffc0c0; font-size: 0.9rem; }
.field-help { display: block; margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.input, .textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
}
.input:focus, .textarea:focus {
    border-color: rgba(116, 220, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(39, 198, 255, 0.10);
}
.textarea { min-height: 130px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-form { max-width: 720px; }
.narrow { max-width: 820px; }
.center-panel { text-align: center; margin: 0 auto; }

.toggle-field {
    padding: 4px 0;
}
.toggle-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}
.toggle-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
}
#commissionField.is-disabled {
    opacity: 0.55;
}

.check-grid { display: grid; gap: 12px; }
.check-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 16px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.check-item input { width: 18px; height: 18px; }

.table-wrap { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    vertical-align: top;
}
th { color: var(--muted); font-size: 0.92rem; }

.flash-stack { display: grid; gap: 12px; margin-bottom: 18px; }
.flash {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}
.flash-success { background: rgba(61, 220, 151, 0.12); color: #aaf4d1; }
.flash-error { background: rgba(255, 124, 124, 0.12); color: #ffc0c0; }
.flash-info { background: rgba(39, 198, 255, 0.12); color: #b7efff; }

.chart-wrap {
    position: relative;
    min-height: 260px;
}
canvas { width: 100% !important; }

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: start;
}
.support-panel { display: grid; gap: 18px; }
.support-heading { margin-bottom: 0; }
.support-card-list { display: grid; gap: 12px; }
.support-card-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}
.support-card-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.empty-state-card {
    display: grid;
    gap: 10px;
    justify-items: start;
}
.empty-state-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.history-list-mobile {
    display: none;
    gap: 14px;
}
.history-card {
    display: grid;
    gap: 14px;
}
.history-card-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.history-card-chip,
.history-card-metric,
.history-card-notes {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}
.history-card-chip-highlight { background: rgba(39, 198, 255, 0.08); }
.history-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.history-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.84rem;
}
.history-card strong {
    display: block;
    line-height: 1.4;
    font-size: 1rem;
}
.history-card-notes p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    word-break: break-word;
}

.mobile-bottom-nav { display: none; }
.mobile-nav-link {
    color: var(--muted);
    text-align: center;
    padding: 10px 6px;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    justify-items: center;
    min-height: 60px;
}
.mobile-nav-link.is-active {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}
.mobile-nav-icon { font-size: 1rem; line-height: 1; }
.mobile-nav-text { font-size: 0.7rem; line-height: 1.1; font-weight: 700; }

@media (max-width: 1080px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-left {
        justify-content: space-between;
        width: 100%;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav a { flex: 0 0 auto; }
}

@media (max-width: 980px) {
    .hero, .dashboard-layout, .metrics-grid, .feature-grid, .insight-grid, .settings-layout {
        grid-template-columns: 1fr;
    }

    .site-header { position: static; }
    .brand-subtitle { max-width: 160px; }
}

@media (max-width: 768px) {
    .app-shell { width: min(100% - 20px, 1180px); padding-bottom: 110px; }
    .site-header, .panel, .auth-card, .glass-card, .metric-card, .feature-card, .history-card, .empty-state-card { padding: 18px; }
    .hero-copy h1, .section-heading h1, .dashboard-header h1 { font-size: 2rem; }
    .two-col { grid-template-columns: 1fr; }

    .brand-logo-box {
        width: 34px;
        height: 34px;
        min-width: 34px;
        max-width: 34px;
        min-height: 34px;
        max-height: 34px;
        border-radius: 8px;
    }

    .brand-title { font-size: 0.92rem; }
    .brand-subtitle { display: none; }

    .header-left {
        gap: 10px;
        align-items: center;
    }

    .header-logout-btn {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.88rem;
        flex-shrink: 0;
    }

    .site-nav { display: none; }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 10px;
        background: rgba(7, 17, 31, 0.96);
        border: 1px solid var(--border);
        border-radius: 22px;
        backdrop-filter: blur(8px);
        box-shadow: var(--shadow);
    }

    .history-table-desktop { display: none; }
    .history-list-mobile { display: grid; }
    .history-card-top, .history-card-grid { grid-template-columns: 1fr; }
    body { background: #08182a; }
}

@media (max-width: 420px) {
    .app-shell { width: calc(100% - 16px); }
    .site-header { padding: 14px; border-radius: 20px; }
    .brand-wrap { gap: 10px; min-width: 0; }
    .brand-title { font-size: 0.88rem; }
    .header-logout-btn { padding: 0 10px; font-size: 0.82rem; }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 6px;
        padding: 8px;
    }

    .mobile-nav-link { min-height: 58px; padding: 8px 4px; }
    .mobile-nav-text { font-size: 0.64rem; }

    .btn-primary, .btn-secondary { width: 100%; }
    .header-actions, .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


.field-help { display:block; margin-top:8px; font-size:0.86rem; min-height:1.2em; }
.feedback-success { color: var(--success); }
.feedback-error { color: var(--danger); }
.lead-hero { display:grid; grid-template-columns:1.15fr 0.85fr; gap:24px; align-items:start; }
.lead-card, .blocked-card, .table-panel { background: linear-gradient(180deg, rgba(14, 28, 47, 0.98), rgba(8, 21, 39, 0.98)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.table-wrap { width:100%; overflow:auto; }
.data-table { width:100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align:left; }
.data-table th { color: var(--primary-2); font-size:0.9rem; }
.inline-form { display:inline-flex; }
@media (max-width: 900px) {
    .lead-hero, .hero, .feature-grid, .metrics-grid, .insight-grid { grid-template-columns: 1fr; }
}


.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.badge-success { background: rgba(16, 185, 129, 0.14); color: #047857; }
.badge-danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.badge-warning { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.badge-admin { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }

.btn-danger {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger:hover { opacity: 0.92; }

.admin-actions-stack {
    display: grid;
    gap: 0.75rem;
    min-width: 280px;
}

.admin-inline-form {
    display: grid;
    gap: 0.5rem;
}

.admin-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.input-small {
    max-width: 100px;
}

@media (max-width: 900px) {
    .admin-search-form {
        grid-template-columns: 1fr;
    }

    .admin-actions-stack {
        min-width: 220px;
    }
}


/* G Tech Apple-level landing + finance + AI */
.gt-hero{position:relative;overflow:hidden;padding:64px 0 36px}.gt-hero-bg{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(39,198,255,.22),transparent 32%),radial-gradient(circle at 80% 10%,rgba(116,220,255,.14),transparent 28%);pointer-events:none}.gt-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:28px;align-items:center}.gt-pill{display:inline-flex;width:fit-content;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;color:var(--primary-2);background:rgba(255,255,255,.04);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.gt-hero-copy h1{margin:18px 0;max-width:860px;font-size:clamp(2.5rem,6vw,5.6rem);line-height:.96;letter-spacing:-.06em}.gt-hero-copy p{max-width:720px;color:var(--muted);font-size:1.12rem;line-height:1.75}.gt-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.gt-hero-actions.center{justify-content:center}.gt-proof-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.gt-proof-row span{padding:10px 12px;border-radius:999px;border:1px solid var(--border);color:var(--muted);background:rgba(255,255,255,.035)}.gt-device-card{border:1px solid var(--border);border-radius:34px;padding:24px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.03)),linear-gradient(180deg,rgba(14,28,47,.98),rgba(8,21,39,.98));box-shadow:0 30px 80px rgba(0,0,0,.35)}.gt-device-top{display:flex;justify-content:space-between;color:var(--muted);margin-bottom:18px}.gt-device-top strong{color:var(--text)}.gt-balance-card{padding:22px;border-radius:26px;background:rgba(255,255,255,.06);border:1px solid var(--border)}.gt-balance-card span,.gt-mini-grid span{display:block;color:var(--muted);margin-bottom:8px}.gt-balance-card strong{display:block;font-size:2.2rem;letter-spacing:-.04em}.gt-balance-card small{display:block;color:var(--muted);margin-top:8px}.gt-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.gt-mini-grid div{padding:16px;border-radius:22px;border:1px solid var(--border);background:rgba(255,255,255,.04)}.gt-mini-grid strong{display:block;font-size:1.3rem}.gt-chart-fake{height:180px;display:flex;align-items:end;gap:12px;padding:18px;border-radius:26px;border:1px solid var(--border);background:rgba(255,255,255,.035)}.gt-chart-fake i{flex:1;display:block;border-radius:999px 999px 8px 8px;background:linear-gradient(180deg,var(--primary-2),var(--primary))}.gt-section{padding:64px 0 24px}.gt-section-head{max-width:820px;margin-bottom:28px}.gt-section-head h2{margin:16px 0 10px;font-size:clamp(2rem,4vw,3.6rem);line-height:1;letter-spacing:-.05em}.gt-section-head p{color:var(--muted);line-height:1.7;font-size:1.05rem}.gt-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gt-plan-card{position:relative;padding:28px;border-radius:32px;border:1px solid var(--border);background:linear-gradient(180deg,rgba(14,28,47,.98),rgba(8,21,39,.98));box-shadow:var(--shadow)}.gt-featured{background:radial-gradient(circle at 100% 0%,rgba(39,198,255,.18),transparent 34%),linear-gradient(180deg,rgba(14,28,47,.98),rgba(8,21,39,.98));border-color:rgba(116,220,255,.32)}.gt-plan-badge{position:absolute;top:18px;right:18px;padding:8px 10px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#08253b;font-weight:900;font-size:.76rem}.gt-plan-tag{display:block;color:var(--primary-2);font-weight:800;margin-bottom:12px}.gt-plan-top h3{margin:0 0 10px;font-size:1.8rem;letter-spacing:-.03em}.gt-plan-top p{color:var(--muted);line-height:1.7}.gt-price{margin:24px 0}.gt-price strong{font-size:2.4rem;letter-spacing:-.05em}.gt-price span{color:var(--muted)}.gt-list{display:grid;gap:12px;padding:0;margin:0 0 24px;list-style:none}.gt-list li{padding:12px 14px;border-radius:16px;border:1px solid var(--border);background:rgba(255,255,255,.035);color:var(--text)}.gt-list li:before{content:'✓';color:var(--primary-2);font-weight:900;margin-right:8px}.gt-plan-actions{display:grid;gap:10px}.gt-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.gt-feature-grid article{padding:22px;border-radius:26px;border:1px solid var(--border);background:rgba(255,255,255,.04)}.gt-feature-grid strong{display:block;font-size:1.2rem;margin-bottom:10px}.gt-feature-grid p{color:var(--muted);line-height:1.65;margin:0}.gt-bottom-cta{margin:64px 0 24px;padding:42px;border-radius:36px;border:1px solid var(--border);text-align:center;background:radial-gradient(circle at 50% 0%,rgba(39,198,255,.18),transparent 34%),linear-gradient(180deg,rgba(14,28,47,.98),rgba(8,21,39,.98))}.gt-bottom-cta h2{max-width:760px;margin:18px auto 10px;font-size:clamp(2rem,4vw,3.4rem);line-height:1;letter-spacing:-.05em}.gt-bottom-cta p{max-width:720px;margin:0 auto;color:var(--muted);line-height:1.7}.ai-answer{margin-top:22px;padding:22px;border-radius:22px;background:rgba(39,198,255,.10);border:1px solid rgba(116,220,255,.22)}.ai-answer strong{display:block;margin-bottom:10px}.ai-answer p{color:var(--text);line-height:1.8;margin:0}@media(max-width:980px){.gt-hero-grid,.gt-plan-grid,.gt-feature-grid{grid-template-columns:1fr}.gt-device-card{max-width:620px}}@media(max-width:560px){.gt-hero{padding-top:36px}.gt-hero-copy h1{font-size:2.7rem}.gt-device-card,.gt-plan-card,.gt-bottom-cta{border-radius:26px;padding:20px}.gt-mini-grid{grid-template-columns:1fr}.gt-price strong{font-size:2rem}}

/* Ajustes finais G Tech — landing para cliente final e contraste premium */
.client-hero .gt-hero-copy p,
.gt-section-head p,
.gt-plan-top p,
.gt-bottom-cta p,
.gt-client-note { color: #d8e6f7; }
.clean-price strong,
.billing-card span,
.billing-card strong { color: #ffffff; }
.clean-price span,
.billing-card small { color: #cfe0f4; }
.billing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}
.billing-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(180, 210, 255, 0.24);
    background: rgba(255, 255, 255, 0.075);
    min-height: 124px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.billing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(116, 220, 255, .55);
    background: rgba(255, 255, 255, 0.11);
}
.billing-card strong { font-size: .98rem; }
.billing-card span { font-size: 1.22rem; font-weight: 900; letter-spacing: -0.03em; }
.billing-card small { line-height: 1.35; }
.billing-card.is-highlight {
    background: linear-gradient(180deg, rgba(39,198,255,.22), rgba(255,255,255,.08));
    border-color: rgba(116, 220, 255, .55);
}
.gt-client-note {
    margin-top: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(39,198,255,.10);
    line-height: 1.65;
}
.flash-warning { background: rgba(255, 207, 90, 0.14); color: #ffe7a0; }
@media(max-width: 720px){ .billing-grid { grid-template-columns: 1fr; } }

/* =========================================================
   G Tech — Ajustes finais Controle de Gastos
   Dashboard mobile, gráfico, ações editar/excluir e RPA
   ========================================================= */

   .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(61, 220, 151, 0.35);
    background: rgba(61, 220, 151, 0.12);
    color: #d8ffe9;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.btn-small {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1;
}

.btn-danger.btn-small {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.82rem;
}

.payment-options {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.payment-options a {
    text-align: center;
}

.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 330px;
    height: 330px;
}

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

.dashboard-header {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 0%, rgba(39, 198, 255, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(14, 28, 47, 0.98), rgba(8, 21, 39, 0.98));
    box-shadow: var(--shadow);
}

.dashboard-header p {
    max-width: 860px;
}

.panel-head p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 6px;
}

.metric-card,
.insight-box,
.panel {
    overflow: hidden;
}

.metric-card strong,
.insight-box strong {
    word-break: break-word;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    min-width: 860px;
}

td,
th {
    white-space: normal;
}

td:nth-child(5) {
    max-width: 240px;
    word-break: break-word;
}

.empty-state-card a {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-stack {
        order: 2;
    }

    .content-stack {
        order: 1;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .chart-wrap {
        min-height: 310px;
        height: 310px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px;
        border-radius: 22px;
    }

    .dashboard-header h1 {
        font-size: 1.9rem;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .dashboard-header p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .header-actions a,
    .header-actions button,
    .header-actions .status-pill {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .metric-card {
        padding: 18px;
    }

    .metric-card strong {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .panel {
        padding: 18px;
        border-radius: 22px;
    }

    .panel h2 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .insight-box {
        padding: 16px;
        border-radius: 18px;
    }

    .chart-wrap {
        min-height: 280px;
        height: 280px;
    }

    .table-wrap {
        margin: 0 -2px;
        padding-bottom: 6px;
    }

    .table-wrap table {
        min-width: 780px;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
        min-width: 110px;
    }

    .table-actions a,
    .table-actions button {
        width: 100%;
        text-align: center;
    }

    .compact-panel {
        padding: 18px;
    }

    .payment-options {
        gap: 9px;
    }

    .status-pill {
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 420px) {
    .dashboard-header {
        padding: 18px;
    }

    .dashboard-header h1 {
        font-size: 1.7rem;
    }

    .dashboard-header p {
        font-size: 0.94rem;
    }

    .panel,
    .metric-card,
    .insight-box,
    .auth-card,
    .empty-state-card {
        border-radius: 20px;
    }

    .chart-wrap {
        min-height: 250px;
        height: 250px;
    }

    .table-wrap table {
        min-width: 720px;
    }

    th,
    td {
        font-size: 0.84rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .status-pill {
        min-height: 46px;
    }
}