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

html {
    overflow-x: hidden;
}

:root {
    --primary: #121212;
    --secondary: #1E1D1C;
    --accent: #D0AD6A;
    --accent-light: #E0C080;
    --text: #EFEEE8;
    --text-muted: #9a9a9a;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --card-bg: #1a1918;
    --border: #2d2b28;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6,
.fp-section-title,
.fp-playbook-subtitle,
.section-title,
.nav-link {
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
}

.login-logo {
    margin-bottom: 60px;
    width: 700px;
    max-width: 100%;
}

.login-box {
    background: #1E1D1C !important;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(208, 173, 106, 0.2);
    width: 100%;
    max-width: 420px;
}

.login-subtitle {
    color: #EFEEE8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Logo Image Styles */
.logo-img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.sidebar-logo {
    max-width: 160px;
    margin: 0 0 0.5rem 0;
}

.login-box .logo h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 3px;
}

.login-box .logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-box input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #121212 !important;
    color: #EFEEE8 !important;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-box input::placeholder {
    color: #777;
}

.login-box button {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #121212;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.login-box button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(208, 173, 106, 0.3);
}

.error {
    color: var(--danger);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar .logo h2 {
    color: #1E1D1C;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.3rem;
}

.sidebar .logo span {
    color: #666;
    font-size: 0.8rem;
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1E1D1C;
    background: rgba(208, 173, 106, 0.15);
    border-left-color: var(--accent);
}

.sidebar .logout {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.sidebar .logout button {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar .logout button:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 3rem;
    background: var(--primary);
    max-width: calc(100% - 260px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.section {
    display: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 0;
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* KPI Toggle */
.kpi-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.toggle-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.toggle-btn.active {
    background: var(--accent);
    color: #121212;
    border-color: var(--accent);
    font-weight: 600;
}

.kpi-view {
    display: none;
}

.kpi-view.active {
    display: grid;
}

/* Metrics Grid */
.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-bg);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    min-height: 2.4em;
    line-height: 1.2;
}

.metric-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    line-height: 1.2;
}

.metric-value.green { color: var(--accent); }
.metric-value.yellow { color: var(--warning); }
.metric-value.red { color: var(--danger); }

.metric-change {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 1.5em;
    display: flex;
    align-items: center;
}

/* Charts */
.chart-container {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-container.small {
    max-width: 400px;
}

.chart-container.large {
    max-width: 800px;
    min-height: 400px;
}

/* Market Share Section */
.market-share-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.market-share-section h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.market-share-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.market-share-layout .chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.market-share-layout .chart-container canvas {
    max-height: 100%;
}

.market-insights-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-stat-card {
    background: var(--secondary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-stat-card.highlight {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    border-color: var(--accent);
}

.insight-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.insight-stat-card.highlight .insight-stat-value {
    color: #4caf50;
}

.insight-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.insight-note {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.insight-note strong {
    color: #4caf50;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .market-share-layout {
        flex-direction: column;
    }

    .market-insights-sidebar {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .market-insights-sidebar .insight-stat-card {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .market-insights-sidebar .insight-note {
        flex: 1 1 100%;
    }
}

.chart-container h3 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text);
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Info Box */
.info-box {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.info-box.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success);
}

.info-box.success h3 {
    color: var(--success);
}

/* Competitor Cards */
.competitor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.competitor-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.competitor-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.competitor-header.diptyque { background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%); }
.competitor-header.jomalone { background: linear-gradient(135deg, #2d3d44 0%, #1a2e2e 100%); }
.competitor-header.byredo { background: linear-gradient(135deg, #3d2d44 0%, #2e1a2e 100%); }

.competitor-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

.competitor-header .rank {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.competitor-stats {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.competitor-stats .stat {
    text-align: center;
}

.competitor-stats label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.competitor-stats value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.competitor-stats value.green { color: var(--accent); }
.competitor-stats value.red { color: var(--danger); }

/* Keywords Table */
/* Keyword Filters */
.keyword-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.keyword-toggle {
    display: flex;
    gap: 0.5rem;
}

.kw-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--secondary);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.kw-btn.has-tooltip {
    border-bottom: none;
}

.kw-btn.has-tooltip::after {
    bottom: calc(100% + 5px);
    left: 50%;
    width: 220px;
}

.kw-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.kw-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Intent Badges */
.intent-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.intent-badge.transactional {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.intent-badge.commercial {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.intent-badge.informational {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.intent-badge.navigational {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* Intent Analysis Section */
.intent-analysis {
    margin: 2rem 0;
}

.intent-analysis h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.intent-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.intent-card:hover {
    transform: translateY(-3px);
}

.intent-card.winner {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.15);
}

.intent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.intent-icon {
    font-size: 1.5rem;
}

.intent-header h3 {
    font-size: 1.1rem;
    margin: 0;
    flex-grow: 1;
}

.intent-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.intent-tag.best {
    background: var(--accent);
    color: #000;
}

.intent-tag.good {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.intent-tag.neutral {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.intent-stats {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.intent-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.intent-desc strong {
    color: var(--text);
}

/* Hidden rows for filtering */
.keywords-table tr.hidden {
    display: none;
}

.keywords-table {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: visible;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.keywords-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
}

.keywords-table th,
.keywords-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.keywords-table th {
    background: var(--secondary);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.keywords-table th .has-tooltip {
    position: relative;
    display: inline-block;
}

.keywords-table th .has-tooltip::after {
    z-index: 999999;
    position: fixed;
    bottom: auto;
    top: auto;
    transform: translateX(-50%) translateY(-100%);
    margin-top: -10px;
}

.keywords-table th .has-tooltip::before {
    z-index: 999999;
}

.keywords-table tr:hover {
    background: rgba(201, 169, 98, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.very-high { background: var(--success); color: white; }
.badge.high { background: #8bc34a; color: white; }
.badge.medium { background: var(--warning); color: white; }
.badge.low { background: var(--danger); color: white; }

/* Complaints List */
.complaints-list {
    margin-bottom: 2rem;
}

.complaint-item {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.complaint-rank {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.complaint-details h4 {
    margin-bottom: 0.3rem;
}

.complaint-percent {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.complaint-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.complaint-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

/* Brand Charts */
.brand-breakdown {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.brand-charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.brand-chart h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Brand Insights Grid */
.brand-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-insight-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.brand-insight-card.diptyque {
    border-top: 3px solid #c9a962;
}

.brand-insight-card.jomalone {
    border-top: 3px solid #4caf50;
}

.brand-insight-card.byredo {
    border-top: 3px solid #2196f3;
}

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

.insight-brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.brand-insight-card.diptyque .insight-brand-dot {
    background: #c9a962;
}

.brand-insight-card.jomalone .insight-brand-dot {
    background: #4caf50;
}

.brand-insight-card.byredo .insight-brand-dot {
    background: #2196f3;
}

.insight-header h4 {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.insight-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.insight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

.insight-list li strong {
    color: var(--text);
}

.insight-opportunity {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.5;
}

.insight-opportunity strong {
    color: var(--accent);
}

/* SWOT Grid */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.swot-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.swot-card h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.swot-card.strengths h3 { border-color: var(--success); color: var(--success); }
.swot-card.weaknesses h3 { border-color: var(--danger); color: var(--danger); }
.swot-card.opportunities h3 { border-color: #2196f3; color: #2196f3; }
.swot-card.threats h3 { border-color: var(--warning); color: var(--warning); }

.swot-card ul {
    list-style: none;
}

.swot-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.swot-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Recommendations */
.recommendations {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.rec-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.rec-card {
    background: var(--secondary);
    padding: 1.25rem 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rec-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
}

.rec-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.rec-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    min-height: 2.5em;
}

/* Timeline */
.timeline {
    position: relative;
    margin-bottom: 2rem;
}

/* Base line (background) */
.timeline::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(208, 173, 106, 0.2);
    transform: translateX(-50%);
    z-index: 0;
}

/* Animated flowing gold line */
.timeline::after {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
        var(--accent) 0%,
        rgba(208, 173, 106, 0.8) 50%,
        rgba(208, 173, 106, 0.3) 100%);
    transform: translateX(-50%);
    z-index: 0;
    animation: flowDown 3s ease-out forwards;
    transform-origin: top;
}

@keyframes flowDown {
    0% {
        clip-path: inset(0 0 100% 0);
    }
    100% {
        clip-path: inset(0 0 0% 0);
    }
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
    position: relative;
    z-index: 1;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.5s; }
.timeline-item:nth-child(3) { animation-delay: 0.8s; }
.timeline-item:nth-child(4) { animation-delay: 1.1s; }
.timeline-item:nth-child(5) { animation-delay: 1.4s; }
.timeline-item:nth-child(6) { animation-delay: 1.7s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(208, 173, 106, 0.4);
}

/* Active state - white glow when in viewport center */
.timeline-marker.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(208, 173, 106, 0.3);
    animation: glowWhite 1.5s ease-in-out infinite;
    z-index: 100;
}

@keyframes glowWhite {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(208, 173, 106, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 80px rgba(208, 173, 106, 0.5);
    }
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 173, 106, 0.15);
}

/* Active content card highlight */
.timeline-item.is-active .timeline-content {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(208, 173, 106, 0.2);
}

.timeline-content h3 {
    margin-bottom: 0.3rem;
}

.timeline-content .budget {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-content li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.targets {
    display: flex;
    gap: 1.5rem;
}

.targets span {
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Phase Labels for Timeline */
.phase-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.phase-website .timeline-marker {
    background: linear-gradient(135deg, var(--accent) 0%, #b8962e 100%);
}

.phase-marketing .timeline-marker {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.timeline-item.phase-extended {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: none;
}

.timeline-item.phase-extended.show {
    opacity: 1;
    max-height: 500px;
    display: flex;
}

/* Projection Table */
.projection-table {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
}

.projection-table table {
    width: 100%;
    border-collapse: collapse;
}

.projection-table th,
.projection-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.projection-table th {
    background: var(--secondary);
    color: var(--text-muted);
    font-weight: 500;
}

.projection-table td:first-child {
    text-align: left;
    color: var(--text-muted);
}

.total-row {
    background: rgba(201, 169, 98, 0.1);
}

.total-row td {
    color: var(--accent) !important;
}

/* ROI Summary */
.roi-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.roi-card {
    background: var(--card-bg);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roi-card h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.big-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    line-height: 1.2;
}

.big-number.green {
    color: var(--accent);
}

.roi-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    min-height: 2em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .rec-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-charts {
        grid-template-columns: 1fr;
    }

    .brand-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Traffic Insights */
.traffic-insights {
    margin-top: 5rem;
}

.traffic-insights h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: transform 0.3s;
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-card.declining {
    border-color: var(--danger);
}

.insight-card.rising {
    border-color: var(--success);
}

.insight-card.local {
    border-color: #e6b980;
}

.insight-card h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.traffic-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(208, 173, 106, 0.3);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
}

/* Projections Container */
.projections {
    max-width: 100%;
    box-sizing: border-box;
}

/* Package Cards */
.package-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.package-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(208, 173, 106, 0.2);
}

.package-header {
    background: var(--secondary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-card.featured .package-header {
    background: linear-gradient(135deg, var(--accent) 0%, #b8963d 100%);
}

.package-card.featured .package-header h4 {
    color: #121212;
}

.package-card.featured .package-price {
    color: #121212;
}

.package-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.package-details {
    padding: 1.5rem;
}

.package-details ul {
    list-style: none;
    margin: 0;
}

.package-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.package-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.package-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    z-index: 10;
}

.package-card {
    position: relative;
    overflow: visible;
    margin-top: 1rem;
}

.website-view {
    overflow: visible;
}

.package-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.package-includes {
    font-size: 1.2rem;
    color: #d4a520;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 1rem;
}

.package-details h5 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-details h5:first-child {
    margin-top: 0;
}

/* Package Toggle */
.package-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pkg-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.pkg-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.pkg-btn.active {
    background: var(--accent);
    color: #121212;
    border-color: var(--accent);
    font-weight: 600;
}

.package-view {
    display: none;
}

.package-view.active {
    display: block;
}

/* Website Customization Toggle */
.website-section-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.website-section-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.website-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.web-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.web-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.web-btn.active {
    background: var(--accent);
    color: #121212;
    border-color: var(--accent);
    font-weight: 600;
}

.website-view {
    display: none;
}

.website-view.active {
    display: block;
}

.package-positioning {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    font-style: italic;
}

/* Month Breakdown */
.month-breakdown h5 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.month-breakdown h5:first-child {
    margin-top: 0;
}

.month-breakdown ul {
    margin-bottom: 0;
}

/* Total Investment */
.total-investment {
    background: rgba(208, 173, 106, 0.1);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.total-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Guarantee Box */
.guarantee-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.guarantee-content h4 {
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.guarantee-content p {
    color: var(--text);
    margin: 0;
}

.insight-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.insight-stats p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.insight-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.traffic-summary {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.traffic-summary h3 {
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.summary-item {
    text-align: center;
    padding: 1rem;
    background: rgba(208, 173, 106, 0.1);
    border-radius: 8px;
}

.summary-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

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

@media (max-width: 1200px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .swot-grid {
        grid-template-columns: 1fr;
    }

    .competitor-cards {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Market Analysis Section */
.market-analysis {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.market-analysis h2 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.brand-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 2rem 0;
}

.brand-table {
    width: 100%;
    border-collapse: collapse;
}

.brand-table th,
.brand-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.brand-table th {
    background: var(--secondary);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.brand-table tr:hover {
    background: rgba(201, 169, 98, 0.05);
}

.brand-table .highlight-row {
    background: rgba(230, 185, 128, 0.1);
}

.brand-table .highlight-row:hover {
    background: rgba(230, 185, 128, 0.15);
}

.brand-table .your-brand {
    background: rgba(201, 169, 98, 0.15);
    border-left: 3px solid var(--accent);
}

.brand-table .your-brand:hover {
    background: rgba(201, 169, 98, 0.2);
}

.market-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.market-insight-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.market-insight-card h4 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

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

.ad-spend-summary {
    background: linear-gradient(135deg, var(--secondary), var(--card-bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.ad-spend-summary h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.ad-spend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ad-spend-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.ad-spend-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.ad-spend-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .market-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-spend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .market-insights-grid {
        grid-template-columns: 1fr;
    }

    .ad-spend-grid {
        grid-template-columns: 1fr;
    }

    .brand-table {
        font-size: 0.85rem;
    }

    .brand-table th,
    .brand-table td {
        padding: 0.7rem;
    }
}

/* Glossary Section */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.glossary-category {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.glossary-category.highlight {
    background: linear-gradient(135deg, rgba(208, 173, 106, 0.1) 0%, rgba(30, 29, 28, 1) 100%);
    border-color: var(--accent);
}

.glossary-category h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glossary-terms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glossary-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.glossary-item:hover {
    background: rgba(208, 173, 106, 0.1);
    transform: translateX(4px);
}

.glossary-item h4 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.glossary-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.quick-ref-list {
    list-style: none;
    padding: 0;
}

.quick-ref-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quick-ref-list li:last-child {
    border-bottom: none;
}

.quick-ref-list li strong {
    color: var(--accent);
}

@media (max-width: 768px) {
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .glossary-category {
        padding: 1rem;
    }
}

/* Time Period Toggle */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    margin: 0;
}

.time-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--secondary);
    padding: 4px;
    border-radius: 8px;
}

.time-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
}

.time-btn:hover {
    color: var(--text);
}

.time-btn.active {
    background: var(--accent);
    color: #121212;
}

.chart-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.chart-methodology {
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.chart-methodology .chart-note {
    text-align: left;
    font-style: normal;
    margin: 0;
    line-height: 1.6;
}

.chart-methodology .chart-note strong {
    color: var(--accent);
}

.charts-section {
    margin-top: 2rem;
    max-width: 100%;
    overflow: hidden;
}

/* About FuturProof Labs Section */
.fp-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.fp-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fp-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.fp-hero-logo {
    max-width: 210px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.fp-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.fp-tagline {
    font-size: 1.7rem;
    color: #ffffff;
    margin: 25px 0 0 0;
}

.fp-infinity-divider {
    text-align: center;
    padding: 2rem 0 10px;
    background: linear-gradient(180deg, #1a1a2e 0%, var(--primary) 100%);
}

.fp-infinity-icon {
    width: 60px;
    height: auto;
    opacity: 0.8;
}

.fp-section {
    padding: 0 0 3rem 0;
}

.fp-section:first-of-type .fp-section-title {
    margin-top: 0;
}

.fp-section.fp-dark {
    background: var(--secondary);
    margin: 2rem -2rem;
    padding: 3rem 2rem;
    border-radius: 16px;
}

.fp-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

.fp-section-title.light {
    color: #fff;
}

.fp-intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.fp-intro-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.fp-lead {
    font-size: 1.2rem;
    color: var(--text) !important;
}

.fp-stats-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fp-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.fp-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.fp-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fp-stat-link {
    display: block;
    font-size: 0.7rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.fp-stat-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Capabilities Grid */
.fp-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fp-capability-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.fp-capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.fp-cap-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.fp-capability-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.fp-capability-card p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.fp-cap-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fp-cap-platforms span {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Playbook Section - The Old Playbook Is Dead */
.fp-playbook-section {
    background: #f4efe6;
    border-left: 10px solid var(--accent);
    border-right: 10px solid var(--accent);
}

.fp-playbook-section .fp-section-title {
    color: #1a1a1a;
}

.fp-playbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.fp-playbook-text {
    padding-right: 1rem;
}

.fp-playbook-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.fp-playbook-text p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.fp-playbook-text p:last-child {
    margin-bottom: 0;
}

.fp-playbook-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fp-playbook-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Team Grid */
.fp-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.fp-team-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-team-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.fp-team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fp-team-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.fp-team-role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
}

.fp-team-bio {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.fp-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.3s;
    margin-top: auto;
}

.fp-linkedin:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Why Grid */
.fp-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.fp-why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.fp-why-card:hover {
    transform: translateY(-5px);
}

.fp-why-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.fp-why-icon.guarantee {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.fp-why-icon.data {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.fp-why-icon.luxury {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent);
}

.fp-why-icon.funnel {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.fp-why-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.fp-why-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA Section */
.fp-cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #b8963d 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
}

.fp-cta-section h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.fp-cta-section p {
    color: rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.fp-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.fp-cta-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

.fp-cta-btn:hover {
    transform: translateY(-2px);
}

.fp-cta-btn.primary {
    background: #000;
    color: #fff;
}

.fp-cta-btn.secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

@media (max-width: 1200px) {
    .fp-intro-grid {
        grid-template-columns: 1fr;
    }

    .fp-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-hero-content h1 {
        font-size: 2rem;
    }

    .fp-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .fp-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fp-team-grid {
        grid-template-columns: 1fr;
    }

    .fp-why-grid {
        grid-template-columns: 1fr;
    }

    .fp-playbook-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fp-playbook-text {
        padding-right: 0;
    }

    .fp-playbook-image {
        order: -1;
    }

    .fp-cta-buttons {
        flex-direction: column;
    }

    .intent-grid {
        grid-template-columns: 1fr;
    }

    .keyword-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .keyword-toggle {
        flex-wrap: wrap;
    }
}

/* Industry Benchmarks Section */
.benchmarks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benchmark-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.benchmark-card.wide {
    grid-column: span 2;
}

.benchmark-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.benchmark-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.benchmark-header svg {
    flex-shrink: 0;
}

.benchmark-header.facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(24, 119, 242, 0.05) 100%);
    color: #1877f2;
}

.benchmark-header.google {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(234, 67, 53, 0.05) 100%);
}

.benchmark-header.google svg path:nth-child(1) { fill: #4285f4; }
.benchmark-header.google svg path:nth-child(2) { fill: #34a853; }
.benchmark-header.google svg path:nth-child(3) { fill: #fbbc05; }
.benchmark-header.google svg path:nth-child(4) { fill: #ea4335; }

.benchmark-header.comparison {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.05) 100%);
}

.benchmark-header.funnel,
.benchmark-header.seasonal,
.benchmark-header.takeaways {
    background: var(--secondary);
}

.benchmark-header.reddit {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2) 0%, rgba(255, 69, 0, 0.05) 100%);
}

/* Reddit Communities Section */
.reddit-communities {
    padding: 1.5rem;
}

.reddit-intro {
    margin-bottom: 1.5rem;
}

.reddit-intro p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.reddit-table {
    margin-bottom: 1.5rem;
}

.reddit-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}

.reddit-row.header {
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reddit-row.highlight {
    background: rgba(255, 69, 0, 0.1);
}

.reddit-row a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.reddit-row a:hover {
    text-decoration: underline;
}

.relevance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.relevance-badge.perfect {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.relevance-badge.high {
    background: rgba(208, 173, 106, 0.2);
    color: var(--accent);
}

.relevance-badge.medium {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.reddit-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 69, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.reddit-metric {
    text-align: center;
}

.reddit-metric .metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4500;
    margin-bottom: 0.25rem;
}

.reddit-metric .metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.reddit-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .reddit-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .reddit-row.header span:nth-child(3),
    .reddit-row.header span:nth-child(4),
    .reddit-row span:nth-child(3) {
        display: none;
    }

    .reddit-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benchmark-metrics {
    padding: 1rem 1.5rem;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row.highlight {
    background: rgba(201, 169, 98, 0.1);
    margin: 0 -1.5rem;
    padding: 0.6rem 1.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metric-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.metric-value.success {
    color: var(--success);
}

.metric-value.warning {
    color: #f59e0b;
}

.metric-change {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
}

.metric-change.positive {
    color: var(--success);
    background: rgba(76, 175, 80, 0.15);
}

.metric-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.metric-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.benchmark-insight {
    padding: 1rem 1.5rem;
    background: rgba(201, 169, 98, 0.1);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.benchmark-insight strong {
    color: var(--accent);
}

/* Tooltip Styles for Benchmarks */
.has-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--text-muted);
}

/* CSS tooltips disabled - using JS-based tooltips for better z-index handling */
.has-tooltip::after,
.has-tooltip::before {
    display: none !important;
}

/* Adjust tooltip position for metric labels in rows */
.metric-row .has-tooltip::after {
    left: 0;
    transform: translateX(0);
}

.metric-row .has-tooltip::before {
    left: 20px;
    transform: translateX(0);
}

/* Comparison table header tooltips */
.comparison-row.header .has-tooltip::after {
    width: 200px;
}

/* Comparison Table */
.comparison-table {
    padding: 1rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.comparison-row.header {
    background: var(--secondary);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.comparison-row.highlight {
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.comparison-row span.success {
    color: var(--success);
    font-weight: 600;
}

.comparison-row span.warning {
    color: #f59e0b;
    font-weight: 600;
}

.table-note {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Funnel Benchmarks */
.funnel-benchmarks {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.funnel-stage {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.9) 0%, rgba(30, 30, 45, 0.95) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    min-width: 130px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.funnel-stage:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 169, 98, 0.5);
}

.stage-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.stage-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stage-rate {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

.stage-benchmark {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funnel-arrow {
    font-size: 1.75rem;
    color: var(--accent);
    opacity: 0.6;
}

/* Seasonal List */
.seasonal-list {
    padding: 1rem 1.5rem;
}

.seasonal-item {
    display: grid;
    grid-template-columns: 100px auto 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}

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

.season {
    font-weight: 600;
    font-size: 0.9rem;
}

.impact {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.impact.high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.impact.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.impact.low {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.seasonal-item .note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Takeaways List */
.takeaways-list {
    padding: 1rem 1.5rem;
}

.takeaway-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.takeaway-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.takeaway-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.takeaway-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Data Source Box */
.data-source-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.data-source-box h4 {
    margin: 0 0 1rem 0;
    color: var(--accent);
    font-size: 1rem;
}

.data-source-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.data-source-box li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.data-source-box a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.data-source-box a:hover {
    color: var(--accent);
}

.source-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

@media (max-width: 1200px) {
    .benchmarks-container {
        grid-template-columns: 1fr;
    }

    .benchmark-card.wide {
        grid-column: span 1;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .comparison-row.header span:nth-child(n+3) {
        display: none;
    }

    .funnel-benchmarks {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }

    .funnel-stage {
        min-width: unset;
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.25rem;
    }

    .funnel-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
        font-size: 1.25rem;
    }

    .stage-rate {
        font-size: 1.5rem;
    }
}

/* Plotly Funnel Grid */
.plotly-funnel-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.plotly-funnel-item {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

/* Force ALL Plotly elements to be responsive */
.plotly-funnel-item > div,
.plotly-funnel-item .js-plotly-plot,
.plotly-funnel-item .plot-container,
.plotly-funnel-item .plotly,
.plotly-funnel-item .svg-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.plotly-funnel-item svg {
    overflow: visible !important;
}

/* Ensure hoverlabel tooltip is visible and centered */
.plotly-funnel-item .hoverlayer {
    overflow: visible !important;
}

.plotly-funnel-item .hovertext {
    pointer-events: none;
}

.plotly-funnel-item.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(208, 173, 106, 0.2);
}

/* Desktop - single column, centered */
@media (min-width: 1201px) {
    .plotly-funnel-grid {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .plotly-funnel-item {
        min-height: 380px;
    }
}

/* Tablet */
@media (max-width: 1200px) {
    .plotly-funnel-grid {
        gap: 1.25rem;
    }

    .plotly-funnel-item {
        min-height: 320px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .plotly-funnel-grid {
        gap: 1.25rem;
        padding: 0;
    }

    .plotly-funnel-item {
        min-height: 300px;
        padding: 0.75rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .plotly-funnel-grid {
        gap: 1rem;
    }

    .plotly-funnel-item {
        min-height: 280px;
        padding: 0.5rem;
        border-radius: 8px;
    }
}

/* Calculator Styles */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calc-inputs {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
}

.calc-inputs h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.calc-group {
    margin-bottom: 1.5rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.calc-group input[type="number"],
.calc-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.calc-group input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: var(--accent);
}

.input-with-unit {
    display: flex;
    align-items: center;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.input-with-unit .unit {
    padding: 0.75rem 1rem;
    background: rgba(208, 173, 106, 0.2);
    color: var(--accent);
    font-weight: 600;
}

.input-with-unit input {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
}

.input-with-unit input:focus {
    outline: none;
}

.calc-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.calc-hint.guarantee-active {
    color: var(--accent);
}

.calc-hint.guarantee-active strong {
    color: #4ade80;
}

.calc-toggle-group {
    display: flex;
    gap: 0.5rem;
}

.calc-toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.calc-toggle-btn.active {
    background: linear-gradient(135deg, rgba(208, 173, 106, 0.2), rgba(208, 173, 106, 0.1));
    border-color: var(--accent);
    color: var(--accent);
}

.channel-mix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--secondary);
    border-radius: 8px;
}

.channel-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.channel-item label {
    flex: 1;
    margin: 0;
    font-weight: 400;
}

.channel-cpc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Calculator Results */
.calc-results {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
}

.calc-results h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

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

.results-header h3 {
    margin-bottom: 0;
}

.results-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--secondary);
    padding: 4px;
    border-radius: 8px;
}

.results-toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.results-toggle-btn:hover {
    color: var(--text);
}

.results-toggle-btn.active {
    background: var(--accent);
    color: #000;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid var(--accent);
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.result-card.highlight .result-value {
    font-size: 1.8rem;
}

.result-breakdown {
    margin-bottom: 2rem;
}

.result-breakdown h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breakdown-table {
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.header {
    background: rgba(208, 173, 106, 0.1);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.breakdown-row span {
    font-size: 0.9rem;
}

/* ROAS Gauge */
.roas-gauge {
    margin-bottom: 1.5rem;
}

.roas-gauge h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gauge-container {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.gauge-bar {
    height: 20px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #4caf50 66%, #22c55e 100%);
    border-radius: 10px;
    position: relative;
}

.gauge-fill {
    height: 100%;
    background: transparent;
    border-radius: 10px;
    position: relative;
}

.gauge-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    width: 4px;
    height: 36px;
    background: var(--accent);
    border-radius: 2px;
}

.gauge-marker span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #121212;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calc-note {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.calc-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Calculator Responsive */
@media (max-width: 1200px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .funnel-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .result-cards {
        grid-template-columns: 1fr;
    }

    .breakdown-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .time-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Onboarding Framework Styles */
.onboarding-framework {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Timeline Header */
.timeline-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.timeline-duration {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
}

.timeline-duration:last-child {
    border-right: none;
}

/* Framework Rows */
.framework-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-bottom: 1px solid var(--border);
}

.framework-row:last-child {
    border-bottom: none;
}

.row-label {
    background: var(--secondary);
    padding: 1.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
}

/* Phases Container with Arrows */
.phases-container {
    display: flex;
    padding: 1rem 0.5rem;
    gap: 0;
    align-items: center;
}

.phase-arrow {
    flex: 1;
    position: relative;
    padding: 1rem 1.5rem 1rem 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.phase-arrow:first-child {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    padding-left: 1.5rem;
}

.phase-arrow span {
    position: relative;
    z-index: 1;
}

/* Phase Colors */
.phase-arrow.phase-1 {
    background: linear-gradient(135deg, #4a90a4 0%, #357a8e 100%);
    color: #fff;
}

.phase-arrow.phase-2 {
    background: linear-gradient(135deg, #6b5b95 0%, #574b7a 100%);
    color: #fff;
}

.phase-arrow.phase-3 {
    background: linear-gradient(135deg, #d4a574 0%, #b8895e 100%);
    color: #121212;
}

.phase-arrow.phase-4 {
    background: linear-gradient(135deg, var(--accent) 0%, #b8963d 100%);
    color: #121212;
}

/* Activities Container */
.activities-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.activity-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.activity-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.activity-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.activity-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-card li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.activity-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Deliverables Container */
.deliverables-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.deliverable-card {
    background: rgba(201, 169, 98, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.deliverable-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverable-card li {
    font-size: 0.8rem;
    color: var(--text);
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.deliverable-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* New Onboarding Framework - Month Navigator */
.onboarding-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.onboarding-pkg-toggle {
    display: flex;
    background: var(--secondary);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.onboarding-pkg-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.onboarding-pkg-btn.active {
    background: var(--accent);
    color: #1a1a1a;
}

.onboarding-pkg-btn:hover:not(.active) {
    color: var(--text);
}

/* Month Navigator */
.month-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.month-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--secondary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.month-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.month-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.month-indicator {
    text-align: center;
    min-width: 200px;
}

.current-month {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.month-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Month Dots */
.month-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.month-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.month-dot:hover {
    background: var(--text-muted);
}

.month-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Month Content */
.month-content-container {
    position: relative;
}

.month-content {
    display: none;
}

.month-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.month-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.deliverable-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.deliverable-section h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.deliverable-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverable-section li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.deliverable-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.month-summary {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.month-summary strong {
    color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .month-deliverables-grid {
        grid-template-columns: 1fr;
    }

    .month-navigator {
        gap: 1rem;
    }

    .month-indicator {
        min-width: 150px;
    }

    .current-month {
        font-size: 1.25rem;
    }

    .month-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .onboarding-pkg-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .month-dots {
        gap: 0.5rem;
    }

    .month-dot {
        width: 10px;
        height: 10px;
    }
}

/* Onboarding Metrics Section */
.onboarding-metrics {
    margin: 2rem 0;
}

.onboarding-metrics h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.onboarding-metrics .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-box:hover {
    transform: translateY(-3px);
}

.metric-box.highlight {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.05) 100%);
    border-color: var(--accent);
}

.metric-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.metric-box.highlight .metric-icon {
    color: var(--accent);
}

.metric-box h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.metric-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
    min-height: 2em;
}

/* Cadence Grid */
.cadence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.cadence-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cadence-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

/* Onboarding Responsive */
@media (max-width: 1200px) {
    .timeline-header {
        display: none;
    }

    .framework-row {
        grid-template-columns: 1fr;
    }

    .row-label {
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: center;
    }

    .phases-container {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .phase-arrow {
        width: 100%;
        clip-path: none;
        border-radius: 8px;
        padding: 1rem;
    }

    .phase-arrow:first-child {
        clip-path: none;
        padding-left: 1rem;
    }

    .activities-container,
    .deliverables-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .onboarding-metrics .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cadence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .activities-container,
    .deliverables-container {
        grid-template-columns: 1fr;
    }

    .onboarding-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }

    .cadence-grid {
        grid-template-columns: 1fr;
    }
}

/* Deep Dive Panel Styles */
.deep-dive-panel {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
    overflow: hidden;
}

.dive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.dive-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.dive-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.dive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.dive-card {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dive-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.dive-card-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.dive-card-header.trend-up {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.dive-card-header.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dive-card-header.trend-flat {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dive-card-header.ai-section {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dive-card-header.seo-section {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.dive-card-header.causes-section {
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent);
}

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

.dive-card-body {
    padding: 1rem;
}

/* Trend Indicator */
.trend-indicator {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.trend-indicator.positive {
    background: rgba(76, 175, 80, 0.1);
}

.trend-indicator.negative {
    background: rgba(239, 68, 68, 0.1);
}

.trend-indicator.warning {
    background: rgba(245, 158, 11, 0.1);
}

.trend-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.trend-indicator.positive .trend-value {
    color: var(--success);
}

.trend-indicator.negative .trend-value {
    color: #ef4444;
}

.trend-indicator.warning .trend-value {
    color: #f59e0b;
}

.trend-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dive List */
.dive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dive-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.dive-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* AI Metrics */
.ai-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-metric {
    text-align: center;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.ai-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.ai-value.low {
    color: var(--success);
}

.ai-value.medium {
    color: #f59e0b;
}

.ai-value.high {
    color: #ef4444;
}

.ai-value.good {
    color: #8b5cf6;
}

.ai-value.warning {
    color: #f59e0b;
}

.ai-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dive-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* SEO Stats */
.seo-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seo-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-num.red {
    color: #ef4444;
}

.stat-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-desc.red {
    color: #ef4444;
}

/* Top Keywords */
.top-keywords {
    font-size: 0.8rem;
}

.top-keywords strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background: rgba(201, 169, 98, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
}

/* Causes List */
.causes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.causes-list li {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.causes-list li:last-child {
    border-bottom: none;
}

.causes-list li::before {
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

.causes-list li.cause-positive::before {
    content: "▲";
    color: var(--success);
}

.causes-list li.cause-negative::before {
    content: "▼";
    color: #ef4444;
}

.causes-list li.cause-neutral::before {
    content: "●";
    color: #f59e0b;
}

.causes-list li strong {
    color: var(--text);
}

.causes-list li:not(strong) {
    color: var(--text-muted);
}

/* Dive Summary */
.dive-summary {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

.dive-summary h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.dive-summary p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.dive-summary p strong {
    color: var(--text);
}

.dive-summary.success {
    background: rgba(76, 175, 80, 0.05);
    border-top-color: rgba(76, 175, 80, 0.3);
}

.dive-summary.success h4 {
    color: var(--success);
}

.dive-summary.warning {
    background: rgba(239, 68, 68, 0.05);
    border-top-color: rgba(239, 68, 68, 0.3);
}

.dive-summary.warning h4 {
    color: #ef4444;
}

.dive-summary.neutral {
    background: rgba(33, 150, 243, 0.05);
    border-top-color: rgba(33, 150, 243, 0.3);
}

.dive-summary.neutral h4 {
    color: #2196f3;
}

.dive-summary.opportunity {
    background: rgba(201, 169, 98, 0.08);
    border-top-color: rgba(201, 169, 98, 0.4);
}

.dive-summary.opportunity h4 {
    color: var(--accent);
}

.highlight-text {
    color: var(--accent) !important;
}

/* Deep Dive Responsive */
@media (max-width: 1400px) {
    .dive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dive-grid {
        grid-template-columns: 1fr;
    }

    .dive-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .ai-metrics,
    .seo-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE HEADER & NAVIGATION
   ============================================ */

/* Mobile Header - Fixed at top */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    z-index: 9999;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* When menu is open, header stays visible with dark background */
body.menu-open .mobile-header {
    display: flex !important;
    background: #1E1D1C;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

/* Invert logo when menu is open (dark background) */
body.menu-open .mobile-logo {
    filter: brightness(0) invert(1);
}

.mobile-logo {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1E1D1C;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(1) {
    transform: translateY(-7px);
}

.hamburger-line:nth-child(3) {
    transform: translateY(7px);
}

/* Hamburger to X animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* When menu is open, hamburger lines turn white */
.hamburger.active .hamburger-line {
    background: #ffffff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1E1D1C;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Nav Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu items */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(9) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(10) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(11) { transition-delay: 0.55s; }

.mobile-nav-links li a {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: #EFEEE8;
    text-decoration: none;
    padding: 0.75rem 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    color: var(--accent);
    transform: translateX(10px);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 2rem 0;
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-logout-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #EFEEE8;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mobile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   MOBILE RESPONSIVE - CLEAN WEBSITE STYLE
   ============================================ */

@media (max-width: 900px) {
    /* Force mobile header visible when authenticated */
    body.authenticated .mobile-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 60px;
        padding: 0 20px;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
    }

    body.authenticated .hamburger {
        display: flex !important;
    }

    /* Header when menu is open */
    body.menu-open .mobile-header,
    body.authenticated.menu-open .mobile-header {
        display: flex !important;
        background: #1E1D1C !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        z-index: 10000 !important;
    }

    body.menu-open .mobile-logo {
        filter: brightness(0) invert(1);
    }

    body.menu-open .hamburger-line {
        background: #ffffff !important;
    }

    /* Hide desktop sidebar */
    .sidebar {
        display: none !important;
        width: 0 !important;
    }

    /* Dashboard container */
    .dashboard-container {
        flex-direction: column;
        width: 100% !important;
    }

    /* Main content with proper padding */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 100px 20px 40px;
    }

    /* Sections with proper spacing */
    .section {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .section h1 {
        font-size: 1.75rem;
        font-weight: 400;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
        color: var(--text-muted);
    }

    /* All content containers get consistent spacing */
    .info-box {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .chart-container {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .chart-container.large {
        min-height: 280px;
    }

    /* Market share pie chart */
    .market-share-layout {
        flex-direction: column !important;
    }

    .market-share-layout .chart-container {
        width: 100% !important;
        min-height: 300px !important;
        margin-bottom: 20px;
    }

    .market-share-layout .chart-container canvas {
        max-width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
    }

    .market-insights-sidebar {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .market-insights-sidebar .insight-stat-card {
        flex: 1 1 calc(50% - 6px) !important;
    }

    .market-insights-sidebar .insight-note {
        flex: 1 1 100% !important;
    }

    /* Metrics grid - Overview page */
    .metrics-grid,
    #overview .metrics-grid,
    .section .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    /* Ensure KPI views remain hidden unless active */
    .kpi-view:not(.active) {
        display: none !important;
    }
    .kpi-view.active {
        display: grid !important;
    }

    .metric-card,
    #overview .metric-card,
    .section .metric-card {
        padding: 24px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .metric-label,
    .metric-card .metric-label,
    #overview .metric-label {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .metric-value,
    .metric-card .metric-value,
    #overview .metric-value {
        font-size: 2.5rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .metric-change,
    .metric-card .metric-change,
    #overview .metric-change {
        font-size: 1rem !important;
        text-align: center !important;
        padding: 6px 12px !important;
    }

    /* KPI Toggle */
    .kpi-toggle {
        margin-bottom: 20px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .toggle-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Competitor cards */
    .competitor-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .competitor-header {
        padding: 16px;
    }

    .competitor-header h3 {
        font-size: 1.1rem;
    }

    .competitor-stats {
        padding: 16px;
    }

    /* ========================
       FUTUR PROOF SECTIONS
       ======================== */

    /* Hero section */
    .fp-hero {
        padding: 80px 20px 40px;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        min-height: 90dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fp-hero-content {
        text-align: center;
    }

    .fp-hero-logo {
        max-width: 200px;
        margin-bottom: 40px !important;
    }

    .fp-tagline {
        font-size: 1rem;
        margin-top: 0;
    }

    .fp-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
        margin-bottom: 48px !important;
    }

    /* Infinity divider - closer to Who We Are */
    .fp-infinity-divider {
        padding: 16px 0 8px !important;
    }

    /* FP Sections */
    .fp-section {
        padding: 24px 0 40px;
    }

    .fp-section.fp-dark {
        margin: 0;
        padding: 24px 20px 40px;
        width: 100%;
    }

    .fp-section-title {
        font-size: 1.5rem;
        margin-bottom: 32px !important;
    }

    .fp-section-title.light {
        color: var(--text);
    }

    /* Intro grid */
    .fp-intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fp-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .fp-intro-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    /* Stats */
    .fp-stats-visual {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .fp-stat-card {
        padding: 16px 8px;
        border-radius: 12px;
        text-align: center;
    }

    .fp-stat-number {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .fp-stat-label {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    /* Capabilities */
    .fp-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-capability-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .fp-capability-card h3 {
        font-size: 1.1rem;
        margin: 12px 0 8px;
    }

    .fp-capability-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .fp-cap-icon svg {
        width: 32px;
        height: 32px;
    }

    .fp-cap-platforms {
        margin-top: 12px;
    }

    .fp-cap-platforms span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Playbook Section */
    .fp-playbook-section {
        padding: 40px 24px;
        border-left: none;
        border-right: none;
    }

    .fp-playbook-section .fp-section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .fp-playbook-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fp-playbook-text {
        padding: 0 16px;
        order: 2;
    }

    .fp-playbook-image {
        order: 1;
        padding: 0 16px;
    }

    .fp-playbook-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .fp-playbook-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Team */
    .fp-team-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Reorder team on mobile - Jon first */
    .fp-team-grid .fp-team-jon,
    .fp-team-card.fp-team-jon {
        order: -10 !important;
    }
    .fp-team-grid .fp-team-sofia,
    .fp-team-card.fp-team-sofia {
        order: 0 !important;
    }
    .fp-team-grid .fp-team-card:not(.fp-team-jon):not(.fp-team-sofia) {
        order: 10 !important;
    }

    .fp-team-card {
        padding: 24px 20px;
        border-radius: 12px;
        text-align: center;
    }

    .fp-team-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .fp-team-card h3 {
        font-size: 1.1rem;
    }

    .fp-team-role {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .fp-team-bio {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Why cards */
    .fp-why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-why-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .fp-why-icon {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .fp-why-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .fp-why-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* CTA */
    .fp-cta-section {
        padding: 40px 20px;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .fp-cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .fp-cta-section p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .fp-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .fp-cta-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* Infinity divider */
    .fp-infinity-divider {
        padding: 24px 0;
    }

    .fp-infinity-icon {
        width: 40px;
        height: 40px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .mobile-header {
        height: 56px;
        padding: 0 16px;
    }

    .mobile-logo {
        height: 36px;
    }

    .mobile-menu-overlay {
        padding-top: 56px;
    }

    .main-content {
        padding: 80px 16px 32px;
    }

    .section h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ensure KPI views work on small screens */
    .kpi-view:not(.active) {
        display: none !important;
    }
    .kpi-view.active {
        display: grid !important;
    }

    .metric-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .metric-label {
        font-size: 1rem !important;
    }

    .metric-value {
        font-size: 2.25rem !important;
    }

    .metric-change {
        font-size: 0.9rem !important;
    }

    .fp-stats-visual {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fp-stat-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        text-align: left;
    }

    .fp-stat-label {
        font-size: 0.75rem;
        text-align: right;
    }

    .mobile-nav-links li a {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .fp-hero {
        padding: 72px 16px 32px;
        margin: 0;
    }

    .fp-section.fp-dark {
        margin: 0;
        padding: 32px 16px;
    }

    .fp-cta-section {
        margin: 0;
        padding: 32px 16px;
    }
}

/* Login screen mobile */
@media (max-width: 600px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-logo {
        margin-bottom: 32px;
        max-width: 280px;
    }

    .login-box {
        padding: 24px 20px;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }
}

/* FINAL OVERRIDE - KPI View Toggle Fix */
@media screen {
    .kpi-view:not(.active),
    .metrics-grid.kpi-view:not(.active),
    #overview .kpi-view:not(.active) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    .kpi-view.active,
    .metrics-grid.kpi-view.active,
    #overview .kpi-view.active {
        display: grid !important;
        visibility: visible !important;
        height: auto !important;
    }
}

/* ===== FULLSCREEN CHART MODAL ===== */
.chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10000;
    flex-direction: column;
    overflow: hidden;
}

.chart-modal.active {
    display: flex;
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chart-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.chart-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-fullscreen-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.chart-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chart-fullscreen-btn svg {
    width: 24px;
    height: 24px;
}

.chart-modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.chart-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Time Period Selector */
.chart-time-periods {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.time-period-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 44px;
}

.time-period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.time-period-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    font-weight: 600;
}

.chart-modal-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.chart-modal-body canvas {
    max-width: 100%;
    max-height: 100%;
    touch-action: pan-x pan-y pinch-zoom;
}

.chart-modal-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.75rem;
    margin: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Clickable Chart Indicator */
.chart-clickable {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chart-clickable canvas {
    pointer-events: none;
}

.chart-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(208, 173, 106, 0.15);
}

.chart-clickable:active {
    transform: scale(0.98);
}

.chart-expand-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    pointer-events: none;
}

.chart-expand-hint span {
    background: rgba(208, 173, 106, 0.9);
    color: #121212;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hide expand hint on desktop */
@media (min-width: 901px) {
    .chart-expand-hint {
        display: none;
    }
    .chart-clickable {
        cursor: default;
    }
    .chart-clickable canvas {
        pointer-events: auto;
    }
    .chart-clickable:hover {
        transform: none;
        box-shadow: none;
    }
    .chart-clickable:active {
        transform: none;
    }
}

/* Landscape mode on mobile - show fullscreen button */
@media (max-width: 900px) and (orientation: landscape) {
    .chart-modal {
        padding: 0;
    }

    .chart-modal-header {
        padding: 0.5rem 1rem;
    }

    .chart-modal-header h3 {
        font-size: 0.95rem;
    }

    .chart-fullscreen-btn {
        display: flex;
    }

    .chart-modal-body {
        padding: 0.5rem;
    }

    .chart-modal-hint {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* When in native fullscreen mode */
.chart-modal:fullscreen,
.chart-modal:-webkit-full-screen {
    background: #000;
}

.chart-modal:fullscreen .chart-modal-header,
.chart-modal:-webkit-full-screen .chart-modal-header {
    background: #000;
}

.chart-modal:fullscreen .chart-modal-hint,
.chart-modal:-webkit-full-screen .chart-modal-hint {
    background: #000;
}

/* Portrait mobile */
@media (max-width: 900px) and (orientation: portrait) {
    .chart-modal-body {
        padding: 0.5rem;
    }

    .chart-modal-body canvas {
        width: 100% !important;
        height: auto !important;
    }
}

/* ===== MOBILE TEXT & CONTENT STYLES ===== */
@media (max-width: 768px) {
    /* Investment Packages Section Subtitle */
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    /* Website Section Intro */
    .website-section-intro {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    /* Package Description (Transform) */
    .package-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Guarantee Box - Stack vertically on mobile */
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .guarantee-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .guarantee-content h4 {
        font-size: 1.1rem;
    }

    .guarantee-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* ROI Summary Cards */
    .roi-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .roi-card {
        padding: 1rem 0.75rem;
    }

    .roi-card h4 {
        font-size: 0.75rem;
        min-height: unset;
        margin-bottom: 0.4rem;
    }

    .big-number {
        font-size: 1.3rem;
    }

    .roi-card p {
        font-size: 0.7rem;
        min-height: unset;
    }

    /* Info Box (What's Included) */
    .info-box {
        padding: 1rem;
    }

    .info-box h3 {
        font-size: 1rem;
    }

    .info-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Package Notes (Marketing Assets) */
    .package-note {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        padding: 0.75rem !important;
    }

    /* Total Investment */
    .total-investment {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .total-label {
        font-size: 0.9rem;
    }

    .total-amount {
        font-size: 1.5rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    /* ROI Summary - 2x2 grid on small phones */
    .roi-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .roi-card {
        padding: 0.875rem 0.5rem;
    }

    .big-number {
        font-size: 1.2rem;
    }

    /* Guarantee Box */
    .guarantee-box {
        padding: 1rem;
    }

    .guarantee-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .guarantee-content h4 {
        font-size: 1rem;
    }

    .guarantee-content p {
        font-size: 0.875rem;
    }

    /* Package Notes */
    .package-note {
        font-size: 0.8rem !important;
    }

    /* Section subtitle */
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* ===== POSITIONING MATRIX ===== */
.positioning-matrix {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 0;
}

/* ===== AOV TABLE SECTION (Same Size as Positioning Matrix) ===== */
.aov-table-section {
    margin-top: 2.5rem;
}

.verified-revenue-large {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    border: 1px solid var(--border);
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.verified-revenue-large .revenue-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.verified-revenue-large .revenue-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    justify-content: space-around;
}

.verified-revenue-large .revenue-row {
    display: grid;
    grid-template-columns: 1.5fr 180px 280px;
    gap: 2rem;
    padding: 1.25rem 1rem;
    font-size: 1.25rem;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.verified-revenue-large .revenue-row:hover:not(.header) {
    background: rgba(255,255,255,0.02);
}

.verified-revenue-large .revenue-row.header {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
}

.verified-revenue-large .revenue-row.highlight-row {
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    background: rgba(208, 173, 106, 0.05);
}

.verified-revenue-large .revenue-row .company {
    color: var(--text);
    font-weight: 500;
}

.verified-revenue-large .revenue-row .revenue {
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.4rem;
}

.verified-revenue-large .revenue-row .source {
    font-size: 1rem;
    color: var(--text-muted);
}

.verified-revenue-large .methodology-note {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 1.25rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    line-height: 1.5;
    margin-top: 2rem;
}

/* Responsive for large AOV table */
@media (max-width: 768px) {
    .verified-revenue-large {
        padding: 1.5rem;
    }

    .verified-revenue-large .revenue-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .verified-revenue-large .revenue-row .revenue {
        font-size: 1.1rem;
    }

    .verified-revenue-large .revenue-row .source {
        font-size: 0.85rem;
    }
}

.matrix-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.matrix-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.matrix-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.matrix-x-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.matrix-grid {
    flex: 1;
    aspect-ratio: 1;
    max-height: 560px;
    min-height: 400px;
    background: linear-gradient(to right, rgba(255,255,255,0.03) 50%, transparent 50%),
                linear-gradient(to bottom, rgba(255,255,255,0.03) 50%, transparent 50%);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
}

.matrix-grid::before,
.matrix-grid::after {
    content: '';
    position: absolute;
    background: var(--border);
}

.matrix-grid::before {
    width: 1px;
    height: 100%;
    left: 50%;
}

.matrix-grid::after {
    width: 100%;
    height: 1px;
    top: 50%;
}

.quadrant-label {
    position: absolute;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quadrant-label.top-left { top: 16px; left: 16px; }
.quadrant-label.top-right { top: 16px; right: 16px; }
.quadrant-label.bottom-left { bottom: 16px; left: 16px; }
.quadrant-label.bottom-right { bottom: 16px; right: 16px; }

.competitor-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.dot.small {
    width: 12px;
    height: 12px;
    border-width: 2px;
}

.dot.green { background: #4caf50; }
.dot.blue { background: #2196f3; }
.dot.gold { background: #d4af37; }
.dot.red { background: #ff6b6b; }
.dot.cyan { background: #03a9f4; }
.dot.purple { background: #9c27b0; }
.dot.orange { background: #ff9800; }
.dot.white { background: #ffffff; border-color: var(--accent); }

.dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(208, 173, 106, 0.7); }
    50% { box-shadow: 0 0 0 12px rgba(208, 173, 106, 0); }
}

.dot-label {
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
    background: rgba(0,0,0,0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.dot-label.highlight {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.matrix-legend span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== REVENUE COLOR CLASSES ===== */
.revenue.green { color: #4caf50; }
.revenue.blue { color: #2196f3; }
.revenue.gold { color: #d4af37; }
.revenue.red { color: #ff6b6b; }
.revenue.orange { color: #ff9800; }
.revenue.cyan { color: #03a9f4; }
.revenue.purple { color: #9c27b0; }

/* Responsive adjustments for positioning matrix */
@media (max-width: 768px) {
    .market-share-layout {
        flex-direction: column;
    }

    .positioning-matrix {
        padding: 1rem;
    }

    .matrix-grid {
        max-height: 350px;
        min-height: 280px;
    }

    .dot {
        width: 16px;
        height: 16px;
    }

    .dot-label {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    .quadrant-label {
        font-size: 0.65rem;
    }

    .matrix-legend {
        font-size: 0.75rem;
    }
}
