/* ==========================================================================
   REDMONO BRANDING DESIGN SYSTEM - ULTRA-MINIMAL & SPACIOUS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* Varsayılan Koyu Tema */
html:not([data-theme="light"]), :root {
    --red: #f00;
    --black: #050505;
    --white: #ffffff;
    --text-main: #d0d0d8;
    --text-muted: #787880;
    --text-ultra-muted: #3c3c44;
    --border-soft: rgba(255, 255, 255, 0.04);
    --bg-primary: var(--black);
    --bg-secondary: #09090b;
    --sidebar-width: 280px;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bg-header: #0f0f11;
    --bg-zebra: rgba(255, 255, 255, 0.015);
}

/* Açık Tema */
html[data-theme="light"] {
    --red: #d30000;
    --black: #ffffff;
    --white: #050505;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --text-ultra-muted: #c8c8cc;
    --border-soft: rgba(0, 0, 0, 0.06);
    --bg-primary: #fbfbfd;
    --bg-secondary: #f5f5f7;
    --bg-header: #f0f0f2;
    --bg-zebra: rgba(0, 0, 0, 0.015);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--text-ultra-muted) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-ultra-muted);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR STYLING
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    padding-top: 50px;
}

.sidebar-brand {
    padding: 0 40px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-square {
    width: 12px;
    height: 12px;
    background-color: var(--red);
}

.brand-text {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--white);
}

.brand-tag {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 40px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    color: var(--white);
    padding-left: 45px;
}

.sidebar-menu li.active a {
    color: var(--red);
    font-weight: 700;
    padding-left: 45px;
}

/* Sidebar Submenu */
.sidebar-submenu {
    list-style: none;
    padding-left: 55px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-submenu li a {
    padding: 3px 0 !important;
    font-size: 0.74rem !important;
    color: var(--text-muted) !important;
    display: inline-block !important;
}

.sidebar-submenu li a:hover {
    color: var(--white) !important;
    padding-left: 4px !important;
}

.sidebar-submenu li.active a {
    color: var(--red) !important;
    font-weight: 600 !important;
}

.sidebar-footer {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}

.theme-toggle-btn:hover {
    color: var(--white);
}

/* Icon toggle logic based on theme class on HTML element */
html[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: none;
}
html[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: block;
}
html:not([data-theme="light"]) .theme-toggle-btn .sun-icon {
    display: block;
}
html:not([data-theme="light"]) .theme-toggle-btn .moon-icon {
    display: none;
}

.btn-download-report {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.btn-download-report:hover {
    color: var(--white);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-width: 0;
    padding: 0 100px 120px 100px;
    position: relative;
}

/* Clean, Spacious Sections (separated by whitespace only, no borders) */
section {
    padding: 120px 0;
    position: relative;
    opacity: 0.35; /* Faded baseline for clean focus */
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

section.active {
    opacity: 1; /* Focused section */
    transform: translateY(0);
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--red);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 780px;
    margin-bottom: 50px;
    line-height: 1.65;
}

/* ==========================================================================
   LANDING COVER SCREEN (Full Screen B2B)
   ========================================================================== */
.landing-cover {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Modern asymmetrical layout */
    text-align: left;
    background-color: var(--bg-primary);
    position: relative;
    padding: 100px 0;
    box-sizing: border-box;
}

.b2b-badge {
    border: 1px solid var(--red);
    color: var(--red);
    padding: 5px 12px;
    font-size: 0.62rem;
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 30px;
    display: inline-block;
}

.landing-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.redmono-box {
    width: 20px;
    height: 20px;
    background-color: var(--red);
    display: inline-block;
    flex-shrink: 0;
}

.redmono-text {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
    color: var(--white);
}

.logo-x {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.landing-yk-logo {
    height: clamp(2.2rem, 5vw, 3.2rem);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

html[data-theme="light"] .landing-yk-logo {
    filter: none;
    opacity: 1;
}

html[data-theme="light"] .logo-x {
    color: rgba(0, 0, 0, 0.15);
}

.landing-desc {
    max-width: 760px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 50px 0;
}

.landing-meta-box {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    max-width: 900px;
    width: 100%;
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-ultra-muted);
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    color: var(--text-ultra-muted);
    animation: pulseUpDown 2s infinite ease-in-out;
    cursor: pointer;
}

@keyframes pulseUpDown {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ==========================================================================
   B2B IN-HEADER PARTNERSHIP LOGOS
   ========================================================================== */
.b2b-header-title.b2b-partnership-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.yk-logo-img {
    height: clamp(1.8rem, 4.5vw, 2.5rem);
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

html[data-theme="light"] .yk-logo-img {
    filter: none;
    opacity: 1;
}

html[data-theme="light"] .b2b-link-x {
    color: rgba(0, 0, 0, 0.15);
}

.b2b-link-x {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.brand-mark {
    width: 16px;
    height: 16px;
    background: var(--red);
    display: inline-block;
    flex-shrink: 0;
}

.brand-rm {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    letter-spacing: -0.04em;
    color: var(--white);
}

/* ==========================================================================
   EDITORIAL TYPOGRAPHY & ELEMENTS
   ========================================================================== */
.president-decision-card {
    border-left: 2px solid var(--red);
    padding: 0 0 0 35px;
    margin: 60px 0;
    background: none;
}

.card-title-tiny {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 12px;
}

.president-decision-card p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* KPI Numbers Layout */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 80px 0;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Clean Editorial Bullet Lists */
.report-bullets {
    margin: 40px 0 60px 0;
    list-style: none;
}

.report-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 18px;
    color: var(--text-main);
}

.report-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.minimal-table-wrapper {
    margin: 50px 0;
    overflow-x: auto;
}

.minimal-table, .roadmap-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border: 1px solid var(--border-soft);
    margin: 15px 0;
}

.minimal-table th, .roadmap-table th {
    padding: 16px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    font-weight: 700;
}

.minimal-table th:last-child, .roadmap-table th:last-child {
    border-right: none;
}

.minimal-table td, .roadmap-table td {
    padding: 18px 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    line-height: 1.6;
}

.minimal-table td:last-child, .roadmap-table td:last-child {
    border-right: none;
}

.minimal-table tr:nth-child(even), .roadmap-table tr:nth-child(even) {
    background-color: var(--bg-zebra);
}

.minimal-table tr:hover td, .roadmap-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--white);
}

html[data-theme="light"] .minimal-table tr:hover td,
html[data-theme="light"] .roadmap-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--white);
}

.monospace-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   INTERACTIVE MODULES
   ========================================================================== */
.btn-pill {
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pill:hover, .btn-pill.active {
    border-color: var(--red);
    color: var(--white);
}

.tool-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tool-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-ultra-muted);
    font-weight: 700;
}

/* Platform Selector */
.platform-selector {
    margin: 50px 0;
}

.platform-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.platform-btn {
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    padding: 12px 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-btn:hover, .platform-btn.active {
    border-color: var(--red);
    color: var(--white);
}

.platform-type-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    background-color: var(--border-soft);
    color: var(--text-muted);
}

.platform-btn.active .platform-type-tag {
    background-color: var(--red);
    color: var(--white);
}

.platform-detail-panel {
    border-left: 1px solid var(--border-soft);
    padding-left: 40px;
    max-width: 800px;
}

.platform-detail-header {
    margin-bottom: 30px;
}

.platform-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.platform-opportunity-box {
    margin-bottom: 30px;
}

.platform-opportunity-box strong, .platform-detail-box strong {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    display: block;
    margin-bottom: 10px;
}

/* Fırsat Matrisi (Search & Matrix Grid) */
.matrix-container {
    margin: 50px 0;
}

.matrix-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.matrix-search {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 8px;
    width: 300px;
}

.matrix-search svg {
    color: var(--text-muted);
    margin-right: 10px;
}

.matrix-search input {
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.matrix-search input::placeholder {
    color: var(--text-ultra-muted);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.matrix-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-soft);
}

.matrix-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.matrix-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.matrix-badge-label {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.matrix-badge-label.impact-high {
    border-color: rgba(255, 0, 0, 0.3);
    color: var(--red);
}

.matrix-badge-label.investment-low {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.matrix-item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Info Cards (Grid) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 60px 0;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 700;
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   SOURCES & FOOTER
   ========================================================================== */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.source-card {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 700;
}

.source-verified-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.source-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
}

.source-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.source-link:hover {
    color: var(--white);
}

/* ==========================================================================
   VISUAL CHART IMAGES STYLING
   ========================================================================== */
.report-chart-container {
    margin: 50px 0;
    border: 1px solid var(--border-soft);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 850px;
}

.report-chart {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.9) contrast(1.05);
}

.report-chart-caption {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding-top: 10px;
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: var(--black);
    border-bottom: 1px solid var(--border-soft);
    z-index: 101;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-header.visible {
    transform: translateY(0);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        height: calc(100vh - 65px);
        top: 65px;
        background-color: var(--bg-secondary);
        border-right: 1px solid var(--border-soft);
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 95px 24px 80px 24px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .landing-cover {
        padding: 60px 0;
        min-height: calc(100vh - 95px);
    }
}

@media (max-width: 768px) {
    .matrix-grid, .card-grid, .sources-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ==========================================================================
   INTERACTIVE SVG CHARTS STYLING
   ========================================================================== */
.interactive-chart-container {
    margin: 50px 0;
    border: 1px solid var(--border-soft);
    padding: 30px;
    background-color: var(--bg-secondary);
    position: relative;
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 15px;
}

.chart-title-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
}

.chart-subtitle-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.svg-wrapper {
    width: 100%;
    position: relative;
}

.svg-wrapper svg {
    display: block;
    width: 100%;
    height: auto;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 15px;
}

.legend-item {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.dot-blue {
    background-color: #3b82f6;
}

.dot-gray {
    background-color: #6b7280;
}

.line-dashed {
    width: 20px;
    height: 0;
    border-top: 2px dashed var(--red);
    display: inline-block;
}

/* Tooltip */
.chart-tooltip {
    position: absolute;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-soft);
    padding: 12px 16px;
    font-size: 0.78rem;
    color: var(--text-main);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 260px;
    line-height: 1.5;
}

.chart-tooltip strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.chart-tooltip .tooltip-group {
    color: var(--red);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 6px;
}

/* SVG specific styling to respect light/dark mode colors */
.chart-axis-line {
    stroke: var(--text-ultra-muted);
    stroke-width: 1px;
}

.chart-grid-line {
    stroke: var(--border-soft);
    stroke-dasharray: 2, 2;
    stroke-width: 1px;
}

.chart-label-text {
    fill: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 10px;
}

.chart-quadrant-label {
    fill: var(--text-ultra-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.chart-dot-interactive {
    cursor: pointer;
    transition: r 0.2s ease, filter 0.2s ease;
}

.chart-dot-interactive:hover {
    filter: brightness(1.2);
}

/* ==========================================================================
   NEW VISUAL DIAGRAMS (WEBASTO TREE, PARTNER FLOWCHART, GANTT, SITEMAP)
   ========================================================================== */

/* 1. Webasto Product Expansion Tree */
.webasto-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    width: 100%;
}

.tree-root {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tree-node {
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 12px 18px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tree-node:hover {
    transform: translateY(-2px);
    border-color: var(--red);
}

.root-node {
    border-top: 3px solid var(--red);
}

.node-category {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.tree-node strong {
    display: block;
    font-size: 0.88rem;
    color: var(--white);
    font-weight: 700;
}

.node-ref {
    display: block;
    font-size: 0.7rem;
    color: var(--red);
    margin-top: 4px;
    font-family: var(--font-mono);
}

.tree-connector-main {
    width: 2px;
    height: 20px;
    background: var(--border-soft);
}

.tree-branches {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 15px;
    position: relative;
    padding-top: 20px;
}

.tree-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--border-soft);
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.tree-branch::before {
    content: '';
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: var(--border-soft);
}

@media (max-width: 768px) {
    .tree-branches {
        flex-direction: column;
        gap: 15px;
        padding-top: 0;
    }
    .tree-branches::before {
        display: none;
    }
    .tree-branch::before {
        display: none;
    }
    .tree-connector-main {
        display: none;
    }
}

/* 2. Partner Flowchart */
.partner-flowchart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    width: 100%;
}

.flowchart-step {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.flowchart-step:hover {
    transform: translateY(-2px);
    border-color: var(--red);
}

.flowchart-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
}

.flowchart-step h5 {
    font-size: 0.8rem;
    color: var(--white);
    margin-bottom: 6px;
    font-weight: 600;
}

.flowchart-step p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

.flowchart-arrow {
    font-size: 1.2rem;
    color: var(--text-ultra-muted);
    font-weight: 300;
}

@media (max-width: 992px) {
    .partner-flowchart-container {
        flex-direction: column;
        gap: 12px;
    }
    .flowchart-arrow {
        transform: rotate(90deg);
        margin: 2px 0;
    }
}

/* 3. Roadmap Gantt Chart */
.roadmap-gantt-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    width: 100%;
}

.gantt-phases {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.gantt-phase {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.phase-header {
    margin-bottom: 12px;
}

.phase-time {
    display: inline-block;
    padding: 3px 6px;
    background: rgba(255, 0, 0, 0.08);
    color: var(--red);
    font-size: 0.62rem;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 6px;
}

html[data-theme="light"] .phase-time {
    background: rgba(211, 0, 0, 0.08);
}

.gantt-phase h5 {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
    margin: 0;
}

.phase-bar {
    height: 4px;
    background: var(--border-soft);
    border-radius: 2px;
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
}

.phase-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--red);
    border-radius: 2px;
}

.phase-1 .phase-bar::after { width: 100%; }
.phase-2 .phase-bar::after { width: 50%; }
.phase-3 .phase-bar::after { width: 15%; }

.phase-tasks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phase-tasks li {
    font-size: 0.72rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 10px;
    line-height: 1.35;
}

.phase-tasks li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--red);
}

@media (max-width: 768px) {
    .gantt-phases {
        flex-direction: column;
        gap: 12px;
    }
}

/* 4. Sitemap Tree */
.sitemap-tree-container {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sitemap-node {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 8px 12px;
    max-width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.folder-icon {
    font-size: 1rem;
}

.root-folder {
    border-left: 3px solid var(--red);
}

.sub-folder {
    border-left: 2px solid var(--text-muted);
}

.sitemap-children {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px dashed var(--border-soft);
    margin-left: 15px;
}

.sitemap-subgroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sitemap-leafs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 25px;
    border-left: 1px solid var(--border-soft);
    margin-left: 8px;
}

.sitemap-leaf {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 2px 0;
}

/* ==========================================================================
   MOBILE WARNING MODAL
   ========================================================================== */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.warning-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #151518 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    max-width: 24rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.85);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-modal.show .warning-content {
    transform: scale(1);
}

.warning-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1.1rem;
}

.warning-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.warning-content p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
}

.warning-btn {
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.warning-btn:hover {
    background: #e00000;
}

.warning-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   GLASSMORPHIC AUTHENTICATION OVERLAY
   ========================================================================== */
html.auth-locked body {
    overflow: hidden !important;
}
html.auth-locked .app-wrapper,
html.auth-locked .mobile-header,
html.auth-locked .bg-glow {
    display: none !important;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(15, 15, 18, 0.95), rgba(5, 5, 5, 0.99));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.auth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

