/* ═══════════════════════════════════════════════
   NeoGen Design System — Clean & Global
   Primary: Deep Navy | Accent: Neo Cyan
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand */
    --neo-navy:      #0a0f1e;
    --neo-navy-mid:  #0f172a;
    --neo-navy-soft: #1e293b;
    --neo-cyan:      #06b6d4;
    --neo-cyan-dim:  #0e7490;
    --neo-blue:      #06b6d4;

    /* Surface — Dark Theme */
    --bg-page:       #0a0f1e;
    --bg-card:       #0f172a;
    --bg-subtle:     #1e293b;

    /* Text */
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;

    /* Border */
    --border:        rgba(255,255,255,0.08);
    --border-focus:  #06b6d4;

    /* Status */
    --green:  #10b981;
    --red:    #ef4444;
    --yellow: #f59e0b;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ── Reset ───────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Layout ──────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* ── Header ──────────────────────────────────── */
.header {
    background: var(--neo-navy);
    color: white;
    text-align: center;
    padding: 36px 24px 48px;
    position: relative;
    margin-bottom: -20px;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(6,182,212,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% -10%, rgba(37,99,235,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 14px;
    border-radius: 99px;
    backdrop-filter: blur(12px);
    transition: background 0.2s;
}

.language-switcher:hover { background: rgba(255,255,255,0.14); }

.lang-current {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.lang-separator {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

.lang-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.lang-link:hover { color: var(--neo-cyan); }

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    position: relative;
}

.header h1 img {
    width: 44px;
    height: 44px;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(0 0 16px rgba(6,182,212,0.6));
}

.header > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    position: relative;
}

.intro-section {
    display: none; /* 헤더 아래 소개 텍스트 - 탭 위에 위치해서 숨김 */
}

/* ── Ad container (top) ──────────────────────── */
.ad-container {
    margin: 24px 0 0;
}
.ad-container > div {
    background: var(--bg-subtle);
    border: 1.5px dashed var(--border);
    padding: 16px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ── Navigation Tabs ─────────────────────────── */
.nav-tabs {
    display: flex;
    gap: 2px;
    background: var(--neo-navy);
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 2;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    flex-shrink: 0;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: rgba(255,255,255,0.85);
}

.tab-btn.active {
    color: var(--neo-cyan);
    border-bottom-color: var(--neo-cyan);
    background: transparent;
}

/* 파일가져오기 특별 스타일 */
.tab-btn[onclick*="file-import"] {
    color: var(--neo-cyan) !important;
    background: rgba(6,182,212,0.08) !important;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

/* ── Tab Content ─────────────────────────────── */
.tab-content {
    display: none;
    background: transparent;
    padding-top: 24px;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.tab-content.active { display: block; }

/* ── Cards ───────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0 0 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h3, .card > h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── Dashboard ───────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.financial-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.summary-item span:first-child {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span:last-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neo-blue);
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6,182,212,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    justify-content: center;
}

/* ── Forms ───────────────────────────────────── */
form { padding: 0; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-subtle);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--neo-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* ── Smart Input ─────────────────────────────── */
.smart-input-form {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.smart-input-form small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* AI 추천 결과 */
.ai-recommendation {
    background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(6,182,212,0.06) 100%);
    border: 1.5px solid rgba(37,99,235,0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px 0;
    animation: slideIn 0.3s ease-out;
}

.ai-recommendation h4 {
    color: var(--neo-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.recommendation-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.recommendation-confidence {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--green);
    margin: 10px 0;
}

.recommendation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.recommended-entry {
    background: var(--bg-subtle);
    padding: 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green);
    margin-bottom: 10px;
}

.entry-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.entry-line:last-child { border-bottom: none; }

.account-info { font-weight: 500; }
.amount-info  { font-weight: 600; color: var(--neo-blue); }
.debit-side   { color: var(--green); }
.credit-side  { color: var(--red); }

/* Learning patterns */
.learning-patterns {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.learning-patterns h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.pattern-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.pattern-description { font-weight: 500; }
.pattern-classification { color: var(--text-muted); }

.pattern-count {
    background: var(--neo-navy);
    color: white;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

/* Confidence */
.confidence-high   { color: var(--green); }
.confidence-medium { color: var(--yellow); }
.confidence-low    { color: var(--red); }

/* ── Accounts ─────────────────────────────────── */
.account-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.category h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--neo-blue);
    font-size: 13px;
}

.account-code {
    font-weight: 600;
    color: var(--neo-blue);
    font-size: 12px;
    margin-right: 8px;
}

.account-balance {
    font-weight: 600;
    color: var(--green);
}

/* ── Journal ─────────────────────────────────── */
.journal-entries-form {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
}

.journal-entry-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.balance-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(37,99,235,0.05);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
}

.balance-check.balanced {
    background: rgba(16,185,129,0.06);
    border-color: rgba(16,185,129,0.25);
    color: var(--green);
}

.balance-check.unbalanced {
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.2);
    color: var(--red);
}

/* ── Tables ──────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 13px;
}

th, td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(6,182,212,0.06);
    font-weight: 600;
    font-size: 12px;
    color: var(--neo-cyan);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ── Modals ──────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    margin: 4% auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.close:hover { background: var(--bg-subtle); color: var(--text-primary); }

/* ── Reports ─────────────────────────────────── */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.financial-statement {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.statement-header {
    background: var(--neo-navy);
    color: white;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.statement-body { padding: 20px; }

.statement-section { margin-bottom: 20px; }

.statement-section h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.statement-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--bg-subtle);
    color: var(--text-secondary);
}

.statement-total {
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1.5px solid var(--neo-navy);
    padding-top: 10px;
    margin-top: 8px;
    font-size: 14px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.summary-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.summary-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--bg-subtle);
    font-size: 13px;
    color: var(--text-secondary);
}

.metric-value { font-weight: 600; color: var(--neo-blue); }
.metric-positive { color: var(--green); font-weight: 600; }
.metric-negative { color: var(--red);   font-weight: 600; }

/* ── Annual Report ───────────────────────────── */
.annual-setup {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.setup-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.annual-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-container {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 10px;
}

/* ── Usage Guide ─────────────────────────────── */
.usage-guide {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius);
}

.step-number {
    background: var(--neo-navy);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.feature-highlights {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 18px;
}

.feature-highlights h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 10px;
}

.feature-highlights ul { margin: 0; padding-left: 18px; }

.feature-highlights li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ── Export Buttons ──────────────────────────── */
.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Global selectors ────────────────────────── */
.global-selectors {
    display: flex;
    gap: 10px;
    align-items: center;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 99px;
}

.selector-group label { font-size: 14px; margin: 0; }

.selector-group select {
    border: none;
    background: transparent;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 99px;
}

.currency-selector label { font-size: 14px; margin: 0; }

.currency-selector select {
    border: none;
    background: transparent;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* ── Neo Character ───────────────────────────── */
.neo-character {
    width: 72px;
    height: 72px;
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: neoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 16px rgba(6,182,212,0.4));
}

.neo-character:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 6px 24px rgba(6,182,212,0.7));
}

.neo-character.analyzing {
    animation: neoAnalyzing 0.8s ease-in-out infinite;
}

@keyframes neoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes neoAnalyzing {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%       { transform: scale(1.05) rotate(3deg); }
}

/* ── Neo Bubble ──────────────────────────────── */
.neo-bubble {
    position: fixed;
    bottom: 112px;
    right: 24px;
    background: var(--neo-navy);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    max-width: 260px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(6,182,212,0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.neo-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.neo-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 26px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--neo-navy);
}

/* Smart Input - Neo */
.smart-neo {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    filter: drop-shadow(0 8px 24px rgba(6,182,212,0.4));
}

.smart-neo.show {
    opacity: 1;
    transform: scale(1);
}

/* ── Neo Search Suggestions ──────────────────── */
.neo-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.suggestion-item {
    padding: 11px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-subtle);
    transition: background 0.15s, color 0.15s;
}

.suggestion-item:hover {
    background: var(--bg-subtle);
    color: var(--neo-blue);
}

.suggestion-item:last-child { border-bottom: none; }

/* ── AI Performance Badge ────────────────────── */
.ai-performance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* ── Sync indicator ──────────────────────────── */
.sync-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--neo-navy);
    color: var(--neo-cyan);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.3s ease;
}

.sync-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.sync-indicator .sync-icon {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 4px;
}

/* ── Utilities ───────────────────────────────── */
.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 48px 20px;
    font-size: 13px;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }

/* ── Animations ──────────────────────────────── */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

@keyframes pulse-update {
    0%   { background: inherit; }
    50%  { background: rgba(16,185,129,0.08); }
    100% { background: inherit; }
}

.card { animation: fadeIn 0.3s ease-out; }

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .dashboard-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px 40px; }

    .header { padding: 28px 16px 40px; }
    .header h1 { font-size: 1.6rem; }

    .nav-tabs { padding: 0 12px; }
    .tab-btn  { padding: 12px 12px; font-size: 12px; }

    .account-categories { grid-template-columns: 1fr; }
    .guide-steps        { grid-template-columns: 1fr; }
    .setup-form         { grid-template-columns: 1fr; }

    .journal-entry-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .balance-check {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .modal-content { width: 95%; margin: 8px auto; }

    .neo-character { width: 58px; height: 58px; bottom: 20px; right: 20px; }
    .neo-bubble    { bottom: 88px; right: 16px; max-width: 220px; }
    .smart-neo     { width: 140px; height: 140px; }

    .header-controls { top: 14px; right: 16px; }

    #smart-input > div {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .side-ad-panel {
        position: static !important;
        order: 2;
    }
}
