/* --- CSS STYLES FOR THE STAR OS WEB PROPOSAL DASHBOARD --- */
:root {
    --bg-main: #090D16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);
    
    --primary: #6366F1;
    --primary-light: #818CF8;
    --cyan: #06B6D4;
    --gold: #F59E0B;
    --green: #10B981;
    --purple: #8B5CF6;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.5rem;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.header-logo-link:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.logo-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.1) 100%);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.header-logo-img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.logo-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-the {
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge-os {
    background: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.header-titles h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    gap: 0.25rem;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.btn-action {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* --- MAIN CONTAINER & TAB PANELS --- */
.app-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* ========================================== */
/* TAB 1: PITCH DECK SLIDE STYLING           */
/* ========================================== */
.deck-container {
    max-width: 1000px;
    margin: 0 auto;
}

.deck-viewport {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    min-height: 540px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.slide-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.25rem;
}

.slide-body {
    flex-grow: 1;
}

.slide-notes-box {
    margin-top: 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    border-left: 4px solid var(--gold);
    padding: 0.85rem 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #E2E8F0;
}

.slide-notes-box strong {
    color: var(--gold);
}

.deck-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.deck-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deck-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.deck-indicator {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

/* ========================================== */
/* TAB 2: LIVE SIMULATOR LAYOUT & PHONE FRAME */
/* ========================================== */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: flex-start;
}

.sim-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.75rem;
}

.sim-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sim-card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.module-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.module-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.module-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.mod-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 10px;
}

.mod-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.mod-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.sim-feature-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
    color: #CBD5E1;
}

/* Phone Mockup Frame */
.sim-viewport-area {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 360px;
    height: 720px;
    background: #020617;
    border: 8px solid #1E293B;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-speaker {
    width: 80px;
    height: 4px;
    background: #334155;
    border-radius: 4px;
    position: absolute;
    top: 12px;
    left: calc(50% - 40px);
    z-index: 20;
}

.phone-camera {
    width: 12px;
    height: 12px;
    background: #0F172A;
    border: 2px solid #334155;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 90px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0B1120;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
}

/* Phone Apps: Zalo AI Chat UI */
.phone-app-header {
    background: #0068FF;
    color: #fff;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.phone-chat-messages {
    flex-grow: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bubble-ai {
    background: #1E293B;
    color: #F8FAFC;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble-user {
    background: #0068FF;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.btn-quick-reply {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-light);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-reply:hover {
    background: var(--primary);
}

/* Phone Apps: StarLMS Radar & Level Progress */
.lms-card {
    background: #1E293B;
    margin: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lms-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366F1, #06B6D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #10B981, #06B6D4);
    height: 100%;
    width: 75%;
}

.radar-skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.radar-skill-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================== */
/* TAB 3: FINANCIAL CALCULATOR & METRICS      */
/* ========================================== */
.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
}

.calc-header-box h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.calc-header-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.calc-slider-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-header label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.slider-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.custom-range {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #1E293B;
    outline: none;
    -webkit-appearance: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366F1;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.8);
    border: 3px solid #fff;
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
}

.calc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.glow-cyan { border-top: 3px solid var(--cyan); }
.glow-gold { border-top: 3px solid var(--gold); }
.glow-green { border-top: 3px solid var(--green); }
.glow-purple { border-top: 3px solid var(--purple); }
.glow-red { border-top: 3px solid #EF4444; }
.glow-indigo { border-top: 3px solid var(--primary); }

.metric-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0.4rem 0;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.financial-table th, .financial-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.88rem;
}

.financial-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    font-weight: 700;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}
.badge-gold { background: rgba(245, 158, 11, 0.2); color: var(--gold); border: 1px solid var(--gold); }
.badge-indigo { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); border: 1px solid var(--primary); }
.badge-cyan { background: rgba(6, 182, 212, 0.2); color: var(--cyan); border: 1px solid var(--cyan); }

/* ========================================== */
/* TAB 4: FULL PROPOSAL READING LAYOUT       */
/* ========================================== */
.proposal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.proposal-sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.proposal-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.proposal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proposal-nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
}

.proposal-nav-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.proposal-content {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    line-height: 1.8;
    box-sizing: border-box;
}

.proposal-content h1, .proposal-content h2, .proposal-content h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin: 1.75rem 0 0.85rem;
}

.proposal-content h1 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.proposal-content h2 {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.proposal-content h3 {
    font-size: 1.15rem;
    color: var(--cyan);
}

.proposal-content p {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

.proposal-content hr {
    border: 0;
    border-top: 1px solid var(--border-glass);
    margin: 2.5rem 0;
}

.proposal-content blockquote {
    background: rgba(99, 102, 241, 0.08);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 12px 12px 0;
    color: #E2E8F0;
    font-style: italic;
}

/* Khắc phục triệt để tràn bảng (Table Overflow) */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.6);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.proposal-content table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.85rem;
}

.proposal-content th, .proposal-content td {
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    vertical-align: top;
    word-break: break-word;
}

.proposal-content th {
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

/* Khắc phục triệt để tràn khối mã & Mermaid */
.proposal-content pre {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    max-width: 100%;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #38BDF8;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

.proposal-content code {
    background: rgba(99, 102, 241, 0.15);
    color: #A5B4FC;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    word-break: break-word;
}

.proposal-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    white-space: inherit;
}

.mermaid-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* ========================================== */
/* NATIVE VISUAL FLOW CARDS & ROADMAP STYLES  */
/* ========================================== */
.visual-flow-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.flow-section-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cyan);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.flow-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.core-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #F8FAFC;
}

.flow-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.module-card {
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid var(--border-glass);
}
.module-card.card-indigo { background: rgba(99, 102, 241, 0.12); border-color: var(--primary); }
.module-card.card-cyan { background: rgba(6, 182, 212, 0.12); border-color: var(--cyan); }
.module-card.card-gold { background: rgba(245, 158, 11, 0.12); border-color: var(--gold); }

.module-card h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.module-card ul {
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Roadmap Flow */
.roadmap-flow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.roadmap-step {
    flex: 1;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.2rem;
}
.step-1 { border-left: 4px solid var(--primary); }
.step-2 { border-left: 4px solid var(--cyan); }
.step-3 { border-left: 4px solid var(--gold); }
.step-4 { border-left: 4px solid var(--green); }

.step-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.roadmap-step h4 {
    font-size: 0.95rem;
    color: #fff;
    margin: 0.3rem 0;
}

.step-kpi {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.roadmap-step p {
    font-size: 0.8rem;
    color: #CBD5E1;
    margin: 0;
}

.step-arrow {
    font-size: 1.2rem;
    color: var(--primary-light);
    opacity: 0.7;
}

/* Content Pillars Bar */
.content-pillars-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.pillar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    color: #E2E8F0;
}

.pillar-num {
    font-weight: 700;
    color: #fff;
}

.pillar-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pillar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Investment Structure Flow */
.investment-structure-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.invest-card {
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--border-glass);
}
.invest-card.card-gold { background: rgba(245, 158, 11, 0.1); border-color: var(--gold); }
.invest-card.card-indigo { background: rgba(99, 102, 241, 0.1); border-color: var(--primary); }
.invest-card.card-cyan { background: rgba(6, 182, 212, 0.1); border-color: var(--cyan); }

.invest-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.invest-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0.3rem 0 0.6rem;
}

.invest-list {
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Personas Grid */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.persona-card {
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--border-glass);
}
.persona-card.card-indigo { background: rgba(99, 102, 241, 0.1); border-color: var(--primary); }
.persona-card.card-cyan { background: rgba(6, 182, 212, 0.1); border-color: var(--cyan); }
.persona-card.card-gold { background: rgba(245, 158, 11, 0.1); border-color: var(--gold); }

.persona-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.persona-card h4 {
    font-size: 1rem;
    color: #fff;
    margin: 0.2rem 0;
}

.persona-sub {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.persona-card p {
    font-size: 0.82rem;
    color: #CBD5E1;
    margin: 0;
}

/* USPs Grid */
.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.usp-card {
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}
.usp-card.card-indigo { background: rgba(99, 102, 241, 0.1); border-color: var(--primary); }
.usp-card.card-cyan { background: rgba(6, 182, 212, 0.1); border-color: var(--cyan); }
.usp-card.card-gold { background: rgba(245, 158, 11, 0.1); border-color: var(--gold); }
.usp-card.card-green { background: rgba(16, 185, 129, 0.1); border-color: var(--green); }

.usp-num {
    font-size: 2rem;
    font-weight: 900;
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    color: #fff;
}

.usp-card h4 {
    font-size: 0.98rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.usp-card p {
    font-size: 0.82rem;
    color: #CBD5E1;
    margin: 0;
}

/* LMS Features Grid */
.lms-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.lms-feature-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.2rem;
}

.feat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.lms-feature-card h4 {
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.lms-feature-card p {
    font-size: 0.8rem;
    color: #CBD5E1;
    margin: 0;
}

/* Ecosystem Flow */
.ecosystem-flow-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.ecosystem-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.eco-node {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #F8FAFC;
    font-weight: 600;
}

.eco-hub {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-light);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.85rem;
    border-radius: 12px;
}

/* State Flow Diagram (Zalo AI Flow) */
.state-flow-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 1.25rem 0.5rem;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.state-step {
    flex: 1;
    min-width: 170px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
}
.state-step.step-highlight {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--green);
}

.state-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
}

.state-content h5 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.state-content p {
    font-size: 0.78rem;
    color: #CBD5E1;
    margin: 0;
    line-height: 1.4;
}

.state-arrow {
    font-size: 1.1rem;
    color: var(--cyan);
    opacity: 0.7;
}

/* Setup 90-Day Roadmap Container */
.setup-roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.month-setup-card {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
}
.month-setup-card.card-indigo { background: rgba(99, 102, 241, 0.08); border-color: var(--primary); }
.month-setup-card.card-cyan { background: rgba(6, 182, 212, 0.08); border-color: var(--cyan); }
.month-setup-card.card-gold { background: rgba(245, 158, 11, 0.08); border-color: var(--gold); }

.month-setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 0.5rem;
}

.month-setup-card h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 1rem;
}

.week-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.week-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #E2E8F0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .simulator-layout { grid-template-columns: 1fr; }
    .proposal-layout { grid-template-columns: 1fr; }
    .proposal-sidebar { display: none; }
    .calc-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .roadmap-flow { flex-direction: column; align-items: stretch; }
    .state-flow-container { flex-direction: column; align-items: stretch; }
    .step-arrow, .state-arrow { display: none; }
}

/* Script Filter Buttons */
.script-filter-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #94A3B8;
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.script-filter-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: var(--primary-light);
}

.script-filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}


