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

:root {
    --bg-canvas: #FAFBF7;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-hero-green: #34A853;
    --bg-tab-active: #34A853;
    --brand-green: #34A853;
    --brand-green-dark: #2A8C44;
    --brand-gold: #F2C94C;
    --brand-gold-light: #FCE38B;
    --soft-mint: #E8F5EC;
    --soft-blue: #E4EFF8;
    --soft-yellow: #FFF6CC;
    --soft-purple: #ECE4F4;
    --soft-pink: #FBE4E4;
    --soft-cyan: #E0F2F4;
    --text-primary: #1A2620;
    --text-secondary: #5C6B66;
    --text-muted: #9AA59F;
    --text-on-green: #FFFFFF;
    --border-subtle: #E8E2D5;
    --border-default: #DDD4C2;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', system-ui, sans-serif;
    /* Admin */
    --admin-bg-canvas: #F7F7F5;
    --admin-bg-sidebar: #1F2A24;
    --admin-text-sidebar: #B8C4BC;
    --admin-text-sidebar-active: #FFFFFF;
    --admin-bg-sidebar-active: #34A853;
    --admin-bg-card: #FFFFFF;
    --admin-border: #E5E7EB;
    --admin-text-primary: #1A2620;
    --admin-text-secondary: #6B7280;
    --admin-shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
    /* Savdo diagrammalari: sotib olindi / sotildi / omborda — rang ko'r uchun ham ajraladi */
    --s-bought: #2A78D6;
    --s-sold: #EB6834;
    --s-stock: #1BAF7A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-canvas); }

/* ── LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 10; }
.main-content { margin-left: 260px; flex: 1; padding: 32px; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar-logo { padding: 24px; display: flex; align-items: center; gap: 8px; }
.sidebar-logo .logo-p { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--brand-green); }
.sidebar-logo .logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text-primary); }
.sidebar-nav { flex: 1; padding: 8px 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--radius-md); color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 14px; margin-bottom: 4px; transition: all .15s; }
.sidebar-nav a:hover { background: var(--soft-mint); color: var(--brand-green); }
.sidebar-nav a.active { background: var(--brand-green); color: var(--text-on-green); }
.sidebar-nav a .nav-icon { font-size: 18px; width: 24px; text-align: center; }

/* User card at bottom */
.user-card { padding: 16px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 12px; }
.user-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft-mint); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-green); }
.user-card .user-info { flex: 1; }
.user-card .user-name { font-weight: 600; font-size: 14px; }
.user-card .user-balance { font-size: 12px; color: var(--text-muted); }
.user-card .logout-btn { background: none; border: none; color: #DC2626; cursor: pointer; font-size: 13px; font-weight: 600; }

/* ── HERO CARD ── */
.hero-card { background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark)); border-radius: var(--radius-xl); padding: 32px 40px; color: var(--text-on-green); display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.hero-card .greeting { font-family: var(--font-display); font-size: 20px; font-style: italic; opacity: .9; }
.hero-card .subtitle { font-size: 14px; opacity: .75; margin-top: 4px; }
.hero-card .balance { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-top: 16px; }
.hero-actions { display: flex; gap: 12px; }
.btn-gold { background: var(--brand-gold); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; font-size: 14px; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); padding: 10px 24px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; font-size: 14px; }

/* ── CARDS ── */
.card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }

/* ── QUICK ACTIONS ── */
.quick-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 32px; }
.quick-action-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); }
.quick-action-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.quick-action-label { font-size: 12px; font-weight: 600; text-align: center; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 24px; }
.page-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.page-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ── TABS ── */
.tab-bar { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--border-subtle); padding-bottom: 0; }
.tab-item { padding: 8px 20px; border: none; background: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.tab-item.active { color: var(--brand-green); border-bottom-color: var(--brand-green); }

/* ── SUKUK CARD ── */
.sukuk-card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sukuk-card .sukuk-name { font-weight: 700; font-size: 16px; }
.sukuk-card .sukuk-issuer { color: var(--text-secondary); font-size: 13px; }
.sukuk-card .sukuk-yield { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--brand-green); }
.sukuk-card .sukuk-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.sukuk-card .btn-invest { width: 100%; background: var(--brand-green); color: #fff; border: none; padding: 10px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; }

/* ── PROGRESS BAR ── */
.progress-bar-container { height: 8px; background: var(--border-subtle); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--brand-green); border-radius: 4px; transition: width .3s; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { padding: 8px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-card); cursor: pointer; font-size: 14px; }
.pagination button.active { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.pagination button:disabled { opacity: .5; cursor: not-allowed; }

/* ── LOADING ── */
.loading-spinner { display: flex; justify-content: center; align-items: center; padding: 60px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-subtle); border-top-color: var(--brand-green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-title { font-size: 18px; font-weight: 600; }

/* ── BUTTONS ── */
.btn { padding: 10px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-dark); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-default); }
.btn-danger { background: #DC2626; color: #fff; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-secondary); }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body); outline: none; transition: border-color .15s; }
.form-input:focus { border-color: var(--brand-green); }

/* ── AUTH LAYOUT ── */
.auth-layout { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-canvas); }
.auth-card { background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 48px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-p { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--brand-green); }
.auth-logo .logo-text { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.auth-title { font-family: var(--font-display); font-size: 22px; text-align: center; margin-bottom: 24px; }

/* ── ADMIN LAYOUT ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--admin-bg-sidebar); color: var(--admin-text-sidebar); position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 10; }
.admin-sidebar .sidebar-logo { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .sidebar-logo .logo-p { color: var(--brand-green); }
.admin-sidebar .sidebar-logo .logo-text { color: #fff; }
.admin-sidebar .nav-group { padding: 12px 0; }
.admin-sidebar .nav-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.4); padding: 8px 20px; }
.admin-sidebar .nav-group a { display: flex; align-items: center; gap: 10px; padding: 8px 20px; color: var(--admin-text-sidebar); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .15s; }
.admin-sidebar .nav-group a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar .nav-group a.active { background: var(--admin-bg-sidebar-active); color: var(--admin-text-sidebar-active); }
.admin-sidebar .back-link { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .back-link a { color: var(--admin-text-sidebar); text-decoration: none; font-size: 13px; }

.admin-main { margin-left: 260px; flex: 1; background: var(--admin-bg-canvas); }
.admin-topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--admin-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 5; }
.admin-content { padding: 24px; }

/* Admin stat cards */
.stat-card { background: var(--admin-bg-card); border-radius: var(--radius-md); box-shadow: var(--admin-shadow-card); padding: 20px; }
.stat-card .stat-label { font-size: 13px; color: var(--admin-text-secondary); font-weight: 500; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat-card .stat-delta { font-size: 12px; margin-top: 4px; }
.stat-card .stat-delta.positive { color: var(--brand-green); }

/* Admin data table */
.data-table { width: 100%; border-collapse: collapse; background: var(--admin-bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--admin-shadow-card); }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--admin-text-secondary); background: #FAFAFA; border-bottom: 1px solid var(--admin-border); }
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--admin-border); }
.data-table tr:hover td { background: #F9FAFB; }

/* Status badge */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; 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: #F3F4F6; color: #6B7280; }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--admin-text-secondary); margin-bottom: 16px; }
.breadcrumbs a { color: var(--brand-green); text-decoration: none; }
.breadcrumbs span { margin: 0 6px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: var(--radius-md); color: #fff; font-size: 14px; font-weight: 500; animation: slideIn .3s; min-width: 280px; }
.toast.success { background: var(--brand-green); }
.toast.error { background: #DC2626; }
.toast.info { background: #2563EB; }
.toast.warning { background: #D97706; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

.landing-layout { background: #fff; }
.landing-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.landing-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.landing-navbar .landing-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.landing-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.landing-logo .logo-p { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--brand-green); }
.landing-logo .logo-text { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-primary); }
.landing-nav-links { display: flex; gap: 32px; }
.landing-nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color .15s; }
.landing-nav-links a:hover { color: var(--brand-green); }
.landing-nav-actions { display: flex; gap: 12px; align-items: center; }
.landing-nav-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ── HERO ── */
.landing-hero { padding: 140px 0 80px; background: linear-gradient(135deg, #1A3A2A 0%, var(--brand-green-dark) 40%, var(--brand-green) 100%); color: #fff; position: relative; overflow: hidden; }
.landing-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212,166,72,.15) 0%, transparent 70%); pointer-events: none; }
.landing-hero .landing-container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.2); }
.hero-title { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-title .text-gold { color: var(--brand-gold-light); }
.hero-description { font-size: 18px; line-height: 1.7; opacity: .85; margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.hero-buttons .btn-gold { text-decoration: none; }
.hero-buttons .btn-outline-white { text-decoration: none; }

/* Hero visual mockup */
.hero-visual { flex-shrink: 0; }
.hero-card-mockup { background: rgba(255,255,255,.1); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl); padding: 24px; width: 340px; }
.mockup-header { display: flex; gap: 6px; margin-bottom: 20px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mockup-balance { margin-bottom: 20px; }
.mockup-label { font-size: 13px; opacity: .7; }
.mockup-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-top: 4px; }
.mockup-stats { display: flex; gap: 24px; }
.mockup-stat-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.mockup-stat-value.success { color: #86EFAC; }
.mockup-stat-value.gold { color: var(--brand-gold-light); }
.mockup-stat-label { font-size: 12px; opacity: .6; margin-top: 2px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); }

/* ── FEATURES ── */
.landing-features { padding: 80px 0; background: var(--bg-canvas); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.feature-icon { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── STATS ── */
.landing-stats { padding: 60px 0; background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 42px; font-weight: 700; }
.stat-item .stat-label { font-size: 14px; opacity: .8; margin-top: 4px; font-weight: 500; }

/* ── HOW IT WORKS ── */
.landing-how { padding: 80px 0; background: #fff; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-card { text-align: center; padding: 32px; flex: 0 0 280px; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0 auto 16px; }
.step-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-connector { width: 60px; height: 2px; background: var(--border-default); flex-shrink: 0; margin-top: -40px; }

/* ── TESTIMONIALS ── */
.landing-testimonials { padding: 80px 0; background: var(--bg-canvas); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft-mint); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-green); font-size: 18px; }
.author-name { font-weight: 600; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-muted); }

/* ── CTA ── */
.landing-cta { padding: 80px 0; background: linear-gradient(135deg, #1A3A2A, var(--brand-green-dark)); color: #fff; text-align: center; }
.cta-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-desc { font-size: 18px; opacity: .8; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; }
.cta-buttons .btn-gold, .cta-buttons .btn-outline-white { text-decoration: none; }

/* ── FOOTER ── */
.landing-footer { background: #1A2620; color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .landing-logo { margin-bottom: 16px; }
.footer-brand .landing-logo .logo-text { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer-links a:hover { color: var(--brand-gold-light); }
.footer-address { font-size: 14px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; opacity: .6; }

/* ── RESPONSIVE (Landing) ── */
@media (max-width: 768px) {
    .landing-nav-links { display: none; }
    .landing-hero .landing-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 32px; }
    .hero-description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-direction: column; }
    .step-connector { width: 2px; height: 40px; margin: 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Global modal (Diary, Profile va boshqa sahifalar uchun) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex;
                  align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: #fff; padding: 24px; border-radius: 12px; max-width: 540px; width: 100%;
         max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal h4 { margin-top: 0; margin-bottom: 4px; font-size: 14px; color: var(--brand-green, #34A853); }

/* Ro'yxatdan o'tish: hisob turi tanlovi (Investor / Startup) */
.chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border-default); background: var(--bg-card); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }

/* ── MVP panellari: Startup / Investor / Regulyator ish stoli ── */
.mvp-stack { display: grid; gap: 16px; min-width: 0; }
.mvp-muted { color: var(--text-muted); font-size: 13px; }
.mvp-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.mvp-btn-sm { padding: 6px 12px; font-size: 13px; }
.mvp-panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.mvp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mvp-seg { display: inline-flex; background: var(--soft-mint); border-radius: 10px; padding: 3px; gap: 2px; }
.mvp-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-secondary); font-family: var(--font-body); }
.mvp-seg button[aria-pressed="true"] { background: var(--bg-card); color: var(--text-primary); font-weight: 700; box-shadow: var(--shadow-card); }

.mvp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.mvp-tile { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; background: var(--bg-card); }
.mvp-tile .label { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
.mvp-tile .value { font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mvp-tile .sub { font-size: 12px; color: var(--text-muted); }
.mvp-key { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }

.mvp-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
.mvp-chart-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.mvp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.mvp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mvp-chart { display: block; width: 100%; height: auto; overflow: visible; }
.mvp-chart text { fill: var(--text-muted); font-family: var(--font-body); font-size: 11px; font-variant-numeric: tabular-nums; }
.mvp-chart text.val { fill: var(--text-secondary); font-weight: 700; }
.mvp-chart .grid { stroke: var(--border-subtle); stroke-width: 1; }
.mvp-chart .base { stroke: var(--border-default); stroke-width: 1; }
.mvp-chart .missing { fill: var(--text-muted); opacity: .12; }
.mvp-chart .hit { fill: transparent; }
.mvp-chart .hit:hover { fill: var(--text-primary); fill-opacity: .04; }

.mvp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.mvp-stock-bars { display: grid; gap: 10px; }
.mvp-stock-bars .row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mvp-stock-bars .name { overflow-wrap: anywhere; }
.mvp-stock-bars .track { height: 14px; display: block; }
.mvp-stock-bars .track i { display: block; height: 100%; background: var(--s-stock); border-radius: 0 4px 4px 0; }
.mvp-stock-bars b { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.mvp-days { display: flex; flex-wrap: wrap; gap: 3px; }
.mvp-days i { width: 16px; height: 16px; border-radius: 4px; background: var(--brand-green); display: block; }
.mvp-days i.miss { background: transparent; box-shadow: inset 0 0 0 1.5px #DC2626; }
.mvp-days i.today { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-muted); }

/* Ish stoli: profil chizig'i, ogohlantirishlar, jadval kartochkalari */
.mvp-ident { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.mvp-ident .who { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.mvp-ident .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft-mint); color: var(--brand-green-dark); display: grid; place-items: center; font-weight: 700; flex: none; }
.mvp-ident h2 { font-size: 22px; margin: 0; }
.mvp-kv { display: grid; gap: 2px; min-width: 0; }
.mvp-kv .k { font-size: 12px; color: var(--text-muted); }
.mvp-kv .v { font-weight: 700; }
.mvp-meter { height: 8px; background: var(--soft-mint); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.mvp-meter > i { display: block; height: 100%; background: var(--brand-green); border-radius: 99px; }
.mvp-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; }
.mvp-banner .grow { flex: 1 1 260px; min-width: 0; }
.mvp-banner.warn { background: #FEF3C7; color: #78350F; }
.mvp-banner.good { background: #DCFCE7; color: #14532D; }
.mvp-banner.info { background: var(--soft-blue); color: var(--text-primary); }
.mvp-grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.mvp-startup-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mvp-journal .row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.mvp-journal .row:last-child { border-bottom: 0; }
@media (max-width: 520px) { .mvp-journal .row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

@media (max-width: 900px) {
    .mvp-charts, .mvp-two, .mvp-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .mvp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
