/* style.css - Design System for Winstaller.org Portal */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --success-color: #10b981;
    --error-color: #f43f5e;
    --terminal-bg: #1e293b;
    --terminal-text: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.5) 0%, rgba(248, 250, 252, 0.5) 100%);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation */
header.navbar-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.025em;
    justify-self: start;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(15deg);
}

.nav-links {
    grid-column: 2;
    display: flex;
    gap: 1.75rem;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
}

.lang-select {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-select:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.auth-buttons-sim {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #06b6d4 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Main Layout */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 850px;
    margin: 2rem auto 4.5rem auto;
}

.hero-badge-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.badge-accent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.18) 100%);
    color: var(--accent-color);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 850;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-color) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Code & Installer Showcase */
.showcase-section {
    margin-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

/* Editor Component */
.editor-card {
    background: var(--terminal-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-controls {
    display: flex;
    gap: 0.4rem;
}

.editor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.editor-title {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.editor-body {
    padding: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-x: auto;
}

.syntax-key { color: #f472b6; }
.syntax-string { color: #34d399; }
.syntax-number { color: #fb7185; }
.syntax-boolean { color: #38bdf8; }
.syntax-comment { color: #64748b; }

/* Showcase Preview Wrapper & Tabs */
.showcase-preview-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.preview-tabs {
    display: flex;
    gap: 0.4rem;
    background: rgba(241, 245, 249, 0.85);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.preview-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.preview-tab-btn:hover {
    color: var(--text-primary);
}

.preview-tab-btn.active {
    background: #ffffff;
    color: var(--accent-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Interactive Installer Mockup */
.installer-mockup {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 380px;
}

.installer-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.installer-body {
    flex: 1;
    display: flex;
    background: var(--bg-secondary);
    position: relative;
}

.installer-sidebar {
    width: 110px;
    background: linear-gradient(180deg, var(--accent-color) 0%, #06b6d4 100%);
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    justify-content: space-between;
}

.installer-sidebar svg {
    opacity: 0.75;
}

.installer-content {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.installer-wizard-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.installer-wizard-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.installer-wizard-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.installer-path-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.75rem;
}

.installer-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.installer-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

.installer-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: var(--bg-primary);
}

.btn-wizard {
    padding: 0.35rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-wizard:hover {
    border-color: #cbd5e1;
}

.btn-wizard-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-wizard-primary:hover {
    background: var(--accent-hover);
}

/* Console Mockup */
.console-mockup {
    background: #0b1120;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 380px;
    font-family: 'JetBrains Mono', monospace;
    color: #f8fafc;
}

.console-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.console-title {
    font-size: 0.8rem;
    color: #94a3b8;
}

.console-body {
    flex: 1;
    padding: 1.25rem;
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.console-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.c-prompt { color: #38bdf8; font-weight: 600; }
.c-green { color: #4ade80; font-weight: 600; }
.c-yellow { color: #facc15; font-weight: 500; }
.c-cyan { color: #22d3ee; }
.c-dim { color: #64748b; }

.console-ascii-progress {
    margin: 0.5rem 0;
    font-weight: 600;
}

.console-cursor {
    display: inline-block;
    animation: console-blink 1s step-end infinite;
    color: #38bdf8;
}

@keyframes console-blink {
    50% { opacity: 0; }
}

.console-footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

.console-footer .btn-wizard {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

.console-footer .btn-wizard:hover {
    background: #334155;
}

.console-footer .btn-wizard-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.console-footer .btn-wizard-primary:hover {
    background: var(--accent-hover);
}

/* Bento Grid */
.features-section {
    margin-bottom: 6rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.bento-hero {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.bento-badge {
    display: inline-block;
    margin-bottom: 0.85rem;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    width: fit-content;
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bento Visual: Dual Engine preview mockup */
.dual-engine-preview {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mini-window, .mini-terminal {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
}

.mini-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.mini-window .mini-header {
    background: var(--bg-primary);
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}

.m-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.m-dot.red { background: #ef4444; }
.m-dot.yellow { background: #f59e0b; }
.m-dot.green { background: #10b981; }
.m-title { margin-left: 0.3rem; font-weight: 600; color: var(--text-secondary); }

.mini-window .mini-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-line.bold { font-weight: 700; color: var(--text-primary); }
.mini-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.mini-progress-fill {
    width: 70%;
    height: 100%;
    background: var(--accent-color);
}
.mini-btn-pill {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 600;
}

.mini-terminal {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.mini-terminal .mini-header {
    background: #1e293b;
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
}

.mini-terminal .mini-body {
    padding: 0.75rem;
    line-height: 1.5;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* Bento Code Box */
.bento-code-box {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-x: auto;
}

.c-keyword { color: #f472b6; }
.c-type { color: #38bdf8; }
.c-func { color: #facc15; }
.c-comment { color: #64748b; font-style: italic; }

/* Bento Feature Cards */
.bento-feature {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* Quick Features Ribbon */
.quick-ribbon-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.quick-ribbon-header h4 {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.quick-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.quick-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-pill svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-hero {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.feature-tag {
    align-self: flex-start;
    margin-top: auto;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0;
}

.feature-icon-wrapper {
    background: var(--accent-light);
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.docs-sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.docs-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-menu-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
}

.docs-menu-item:hover, .docs-menu-item.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.docs-menu-item.active {
    font-weight: 700;
}

.docs-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.docs-article {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.docs-article.active {
    display: flex;
}

.docs-article h2 {
    font-size: 2rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.docs-article p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.docs-article code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e11d48;
}

.docs-code-block {
    background: var(--terminal-bg);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.docs-code-block pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.docs-code-block code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

.docs-note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.docs-note p {
    font-size: 0.9rem;
    color: #1e3a8a !important;
}

.docs-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.docs-warning p {
    font-size: 0.9rem;
    color: #92400e !important;
}

/* Billing Toggle */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2.5rem 0;
    flex-wrap: wrap;
}

.toggle-option {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.toggle-option.active {
    color: var(--text-primary);
    font-weight: 750;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.savings-pill {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.popular-tag, .savings-badge-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    z-index: 10;
}

.popular-tag {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.savings-badge-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-annual {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25) !important;
}

.btn-annual:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35) !important;
}

.pricing-card:hover:not(.popular) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-top {
    display: flex;
    flex-direction: column;
    height: 185px;
}

.pricing-header {
    height: 95px;
    display: flex;
    flex-direction: column;
}

.pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.pricing-header p.sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.pricing-price-box {
    margin-top: auto;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pricing-header {
    min-height: 118px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-header p.sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.pricing-price-box {
    margin-bottom: 0.5rem;
    margin-top: auto;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 850;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.03em;
    line-height: 1.1;
    min-height: 3.1rem;
}

.pricing-price.coming-soon {
    font-size: 2.1rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.pricing-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 1.25rem;
}

.pricing-features {
    list-style: none;
    margin: 0.75rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.pricing-features svg {
    color: var(--success-color);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
}

/* Download Sections */
.download-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.download-promo-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.download-app-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.download-hero-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.download-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #06b6d4 100%);
}

.download-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.download-hero-title-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.download-hero-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.download-hero-title-group h3 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.download-meta-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.download-release-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.download-hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 720px;
}

.download-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-download-main {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-download-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.download-winget-box {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.download-winget-box .winget-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.download-winget-box code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-color);
}

.btn-copy-winget {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-copy-winget:hover {
    color: var(--accent-color);
    background: var(--bg-secondary);
}

.btn-copy-winget.copied {
    color: #10b981;
}

.download-checksum-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.download-checksum-note code {
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    word-break: break-all;
}

.download-quickstart-box {
    background: var(--terminal-bg);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-quickstart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.download-quickstart-header h4 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
}

.download-quickstart-box pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
}

.download-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.download-pillar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-pillar-card h4 {
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--text-primary);
}

.download-pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.download-specs-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-specs-panel-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.download-specs-panel-content svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.download-specs-panel h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.download-specs-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sim-auth-toggle {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fef08a;
    border: 1px solid #fef08a;
    color: #854d0e;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer.footer-container {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
    }
    .download-links-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
    .footer-brand {
        align-items: center;
    }
}

/* Documentation tables and enhancements */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    text-align: left;
    table-layout: fixed;
}

.docs-table th, .docs-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
    vertical-align: top;
    word-break: break-word;
}

.docs-table th:nth-child(1), .docs-table td:nth-child(1) { width: 22%; word-break: break-word; }
.docs-table th:nth-child(2), .docs-table td:nth-child(2) { width: 12%; white-space: nowrap; }
.docs-table th:nth-child(3), .docs-table td:nth-child(3) { width: 10%; white-space: nowrap; }
.docs-table th:nth-child(4), .docs-table td:nth-child(4) { width: 16%; }
.docs-table th:nth-child(5), .docs-table td:nth-child(5) { width: 40%; }

.docs-table th:first-child,
.docs-table td:first-child {
    padding-left: 0;
}

.docs-table th:last-child,
.docs-table td:last-child {
    padding-right: 0;
}

.docs-table th {
    background-color: var(--bg-primary);
    font-weight: 700;
    color: var(--text-primary);
}

.docs-table tr:hover {
    background-color: var(--accent-light);
}

.docs-table td code {
    white-space: normal;
    word-break: break-word;
}

.docs-table td code[title] {
    cursor: help;
    border-bottom: 1px dotted var(--accent-color);
}

.docs-table.docs-table-2col th:nth-child(1), .docs-table.docs-table-2col td:nth-child(1) { width: 35%; word-break: break-word; }
.docs-table.docs-table-2col th:nth-child(2), .docs-table.docs-table-2col td:nth-child(2) { width: 65%; word-break: break-word; white-space: normal; }

.docs-table.docs-table-3col th:nth-child(1), .docs-table.docs-table-3col td:nth-child(1) { width: 20%; word-break: break-word; }
.docs-table.docs-table-3col th:nth-child(2), .docs-table.docs-table-3col td:nth-child(2) { width: 28%; word-break: break-word; white-space: normal; }
.docs-table.docs-table-3col th:nth-child(3), .docs-table.docs-table-3col td:nth-child(3) { width: 52%; white-space: normal; word-break: normal; }

.docs-table.docs-table-4col th:nth-child(1), .docs-table.docs-table-4col td:nth-child(1) { width: 24%; word-break: break-word; }
.docs-table.docs-table-4col th:nth-child(2), .docs-table.docs-table-4col td:nth-child(2) { width: 14%; white-space: nowrap; }
.docs-table.docs-table-4col th:nth-child(3), .docs-table.docs-table-4col td:nth-child(3) { width: 14%; white-space: nowrap; }
.docs-table.docs-table-4col th:nth-child(4), .docs-table.docs-table-4col td:nth-child(4) { width: 48%; white-space: normal; word-break: normal; }

.docs-sub-section {
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.docs-sub-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Client Dashboard & Panel Styles
   ========================================================================== */
main.client-main-wrapper {
    max-width: 1400px;
    padding: 2rem 1.5rem;
}

.client-dashboard-shell {
    display: flex;
    gap: 1.75rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.client-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(75px + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.client-sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a 0%, #38bdf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.client-sidebar-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.client-sidebar-email {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-sidebar-role {
    font-size: 0.725rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.client-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.client-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.client-nav-item:hover {
    background: #f8fafc;
    color: var(--accent-color);
}

.client-nav-item.active {
    background: #eff6ff;
    color: var(--accent-color);
    font-weight: 700;
}

.client-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.client-sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.client-main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Support Tickets List */
.ticket-filter-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 10px;
    gap: 0.25rem;
}

.ticket-filter-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ticket-filter-btn:hover {
    color: var(--text-primary);
}

.ticket-filter-btn.active {
    background: #ffffff;
    color: var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ticket-filter-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.ticket-filter-btn.active .ticket-filter-count {
    background: #dbeafe;
    color: #1d4ed8;
}

.ticket-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ticket-row-clickable:hover {
    background: #f8fafc !important;
}

.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Modern Ticket List Layout */
.ticket-list-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ticket-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 1.5rem;
    text-decoration: none;
}

.ticket-card:last-child {
    border-bottom: none;
}

.ticket-card:hover {
    background: #fbfcfd;
}

.ticket-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ticket-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ticket-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.ticket-card:hover .ticket-card-title {
    color: var(--accent-color);
}

.ticket-card-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-category-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.775rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    white-space: nowrap;
}

.ticket-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: #64748b;
    flex-wrap: wrap;
}

.ticket-meta-id {
    font-family: monospace;
    font-weight: 700;
    color: #94a3b8;
}

.ticket-meta-sep {
    color: #cbd5e1;
}

.ticket-meta-activity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ticket-card-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.ticket-msg-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ticket-open-link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Support Details Message Cards */
.msg-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.msg-card-client {
    border-color: #e2e8f0;
}

.msg-card-support {
    border-color: #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.msg-card-client .msg-header {
    background: #ffffff;
    border-bottom-color: #f1f5f9;
}

.msg-card-support .msg-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.msg-body-wrapper {
    padding: 1.25rem 1.5rem;
}

.support-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.msg-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.925rem;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.msg-avatar-client {
    background: #e2e8f0;
    color: #334155;
}

.msg-avatar-support {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
}

.msg-body-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .client-dashboard-shell {
        flex-direction: column;
    }
    .client-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }
    .client-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .client-nav-item {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

/* ==========================================================================
   Global Modal / Dialog Styles (Client Portal)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 480px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}
.modal-header {
    padding: 1.5rem 1.75rem 1rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}
.modal-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-icon-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.modal-icon-warning {
    background: #fffbe6;
    color: #d97706;
    border: 1px solid #fef08a;
}
.modal-icon-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}
.modal-icon-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.modal-header-text {
    flex: 1;
    padding-right: 1.5rem;
}
.modal-title {
    font-size: 1.15rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}
.modal-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.modal-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.modal-body-custom {
    padding: 0.5rem 1.75rem 1.25rem 1.75rem;
}
.modal-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}
.modal-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.modal-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.modal-input-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.4rem;
    display: none;
}
.modal-footer {
    padding: 1rem 1.75rem 1.5rem 1.75rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}
.btn-modal-danger {
    background: #dc2626;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}
.btn-modal-danger:hover {
    background: #b91c1c;
}
.btn-modal-warning {
    background: #d97706;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}
.btn-modal-warning:hover {
    background: #b45309;
}


