/* ================================================================
   COACHES REVENUE CALCULATOR — PREMIUM DARK UI (Multi-Calculator)
   By GHUGHAR MEDIA | 2025
   ================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* ========== PARTICLES BACKGROUND ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem;
    user-select: none;
}

.logo-bold {
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo-light {
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 2px;
    color: #ffffff;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 140px 24px 100px;
    text-align: center;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.7;
    animation: slideUp 0.8s ease-out 0.2s both;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 5px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* ========== CALCULATOR SECTION CONTAINER ========== */
.form-section {
    padding: 60px 24px 100px;
    background: #0a0a0a;
}

.form-section .container {
    max-width: 1200px;
}

/* ========== CARD TYPE SELECTOR ========== */
.calc-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
}

.type-card {
    flex: 1;
    max-width: 240px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.type-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.type-card.active {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.type-card.active::before {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.type-card svg {
    display: block;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.type-card.active svg {
    color: #10b981;
}

.type-card h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.type-card.active h4 {
    color: #ffffff;
}

.type-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    line-height: 1.4;
}

/* ========== SPLIT LAYOUT ========== */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.form-panel {
    min-width: 0;
}

.results-panel {
    position: sticky;
    top: 80px;
    min-width: 0;
}

/* ========== PROGRESS BAR ========== */
.progress-bar-wrap {
    position: relative;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

.progress-bar-wrap.complete .progress-fill {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.progress-bar-wrap.complete .progress-text {
    color: #ffffff;
}

/* ========== NAME FIELD CARD ========== */
.name-field-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.name-field-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.name-field-card .input-wrap input {
    padding-left: 16px;
}

/* ========== CALCULATOR FORMS ========== */
.calc-form {
    display: none;
}

.calc-form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* ========== FORM CARDS ========== */
.form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
}

.form-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.webinar-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.oto-icon {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.basic-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.advanced-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.costs-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.card-icon-wrap svg {
    stroke: currentColor;
}

.card-header h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.card-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    margin-top: 2px;
}

.card-body {
    padding: 24px;
}

/* ========== FORM ROW 2-COL ========== */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-row-2col .form-card {
    margin-bottom: 20px;
}

/* ========== FIELD GRID ========== */
.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.field-grid.cols-3 {
    grid-template-columns: 1fr;
}

/* ========== FORM FIELDS ========== */
.field {
    margin-bottom: 0;
}

.field + .field {
    margin-top: 16px;
}

.field-grid .field + .field {
    margin-top: 0;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

.input-suffix {
    position: absolute;
    right: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

.input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #111111;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.input-wrap.has-suffix input {
    padding-left: 16px;
    padding-right: 40px;
}

.input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 400;
}

.input-wrap input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 20px rgba(16, 185, 129, 0.05);
    background: rgba(17, 17, 17, 1);
}

.input-wrap input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ========== RESULTS PLACEHOLDER ========== */
.results-placeholder {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.results-placeholder svg {
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.results-placeholder h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.results-placeholder p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ========== CALCULATOR RESULTS ========== */
.calc-results {
    display: none;
}

.calc-results.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* ========== RESULTS PANEL SPECIFIC ========== */
.results-panel .btn-download {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.results-panel .btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.3);
}

.results-panel .btn-download:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#resultsCapture {
    background: #0a0a0a;
    padding: 0;
    border-radius: 20px;
}

/* ========== RESULTS CARD ========== */
.results-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

.results-card-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(59, 130, 246, 0.06) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 30px 28px;
    text-align: center;
}

.report-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.report-logo .logo-bold {
    letter-spacing: 2px;
}

.report-logo .logo-light {
    letter-spacing: 2px;
}

.results-card-header h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.report-date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* ========== RESULT BLOCKS ========== */
.result-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-block:last-of-type {
    border-bottom: none;
}

/* Block Title Bars - Colored left border only */
.block-title-bar {
    padding: 12px 24px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid;
}

.block-title-bar svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.webinar-bar {
    border-left-color: #3b82f6;
    color: #3b82f6;
}

.oto-bar {
    border-left-color: #ec4899;
    color: #ec4899;
}

.roas-bar {
    border-left-color: #3b82f6;
    color: #60a5fa;
}

.sales-bar {
    border-left-color: #8b5cf6;
    color: #8b5cf6;
}

.basic-bar {
    border-left-color: #8b5cf6;
    color: #a78bfa;
}

.advanced-bar {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.overall-bar {
    border-left-color: #10b981;
    color: #10b981;
}

.costs-bar {
    border-left-color: #10b981;
    color: #34d399;
}

.final-bar {
    border-left-color: #6366f1;
    color: #818cf8;
}

/* ========== RESULT GRID ========== */
.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.r-item {
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

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

.r-item.accent {
    background: rgba(255, 255, 255, 0.02);
}

.r-item.glow {
    background: rgba(16, 185, 129, 0.05);
    border-left: 2px solid rgba(16, 185, 129, 0.4);
}

.r-item.glow .r-value {
    color: #10b981;
}

/* ========== FIELD TYPE INDICATORS (Web Page) ========== */
.r-item[data-field-type="input"]::before {
    content: 'INPUT';
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    margin-bottom: 4px;
    align-self: flex-start;
}

.r-item[data-field-type="calc"]::before {
    content: 'CALCULATED';
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    margin-bottom: 4px;
    align-self: flex-start;
}

.r-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.r-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

/* ========== OVERALL BLOCK (Weekly) ========== */
.overall-block {
    text-align: center;
}

.overall-value-wrap {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.overall-value-wrap .r-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.overall-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.overall-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== FINAL BLOCK (Monthly Summary) ========== */
.final-block {
    border-bottom: none !important;
}

.final-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.final-item {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.final-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.final-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.revenue-item {
    background: rgba(59, 130, 246, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.revenue-item .final-value {
    color: #60a5fa;
}

.profit-item {
    background: rgba(16, 185, 129, 0.08);
}

.profit-item .final-value {
    color: #10b981;
}

.profit-item.negative {
    background: rgba(239, 68, 68, 0.08);
}

.profit-item.negative .final-value {
    color: #ef4444;
}

/* ========== RESULTS FOOTER ========== */
.results-footer {
    padding: 18px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.results-footer .footer-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.85rem;
}

.results-footer p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

/* ========== DOWNLOAD BUTTON ========== */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

/* ========== CELEBRATION OVERLAY ========== */
.celebration-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease-out;
}

.celebration-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideUp 0.4s ease-out;
}

.celebration-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 2s ease-in-out infinite;
}

.celebration-content h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.celebration-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-celebrate-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-celebrate-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.3);
}

/* ========== SCALING ICON & BAR ========== */
.scaling-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.scaling-bar {
    border-left-color: #f59e0b;
    color: #f59e0b;
}

/* ========== VSL ICON & BAR ========== */
.vsl-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.vsl-bar {
    border-left-color: #3b82f6;
    color: #3b82f6;
}

/* ========== DIRECT SALES ICON ========== */
.direct-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* ========== SITE FOOTER ========== */
.site-footer {
    padding: 40px 24px;
    text-align: center;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer .footer-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
}

.site-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3), 0 0 60px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 8px 48px rgba(16, 185, 129, 0.5), 0 0 80px rgba(16, 185, 129, 0.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ========== FORM ERROR ========== */
.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
}

/* ========== INPUT ERROR STATE ========== */
.input-wrap input.input-error,
.input-wrap input.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
    outline: none !important;
}

/* ======================================================================
   CAPTURE-SOLID: Dark theme with SOLID opaque colors for html2canvas.
   html2canvas cannot render: backdrop-filter, rgba transparency, or
   background-clip:text. So we replace every transparent color with its
   opaque equivalent to eliminate the foggy overlay.
   ====================================================================== */
#resultsCapture.capture-solid {
    background: #0f0f0f !important;
    padding: 32px;
}

#resultsCapture.capture-solid .results-card {
    background: #222222 !important;
    border: 1px solid #444444 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

#resultsCapture.capture-solid .results-card-header {
    background: #1a3328 !important;
    border-bottom: 1px solid #2d4a3a !important;
}

#resultsCapture.capture-solid .results-card-header h3 {
    color: #ffffff !important;
}

#resultsCapture.capture-solid .report-date {
    color: #cccccc !important;
}

#resultsCapture.capture-solid .report-logo {
    opacity: 1 !important;
}

#resultsCapture.capture-solid .report-logo .logo-bold {
    color: #ffffff !important;
}

#resultsCapture.capture-solid .report-logo .logo-light {
    color: #bbbbbb !important;
    opacity: 1 !important;
}

/* Section title bars */
#resultsCapture.capture-solid .block-title-bar {
    background: #2a2a2a !important;
}

/* Result items — visible borders */
#resultsCapture.capture-solid .r-item {
    border-bottom: 1px solid #3a3a3a !important;
}

#resultsCapture.capture-solid .r-item.accent {
    background: #272727 !important;
}

#resultsCapture.capture-solid .r-item.glow {
    background: #163525 !important;
    border-left: 3px solid #10b981 !important;
}

/* Labels — very bright gray for clear readability */
#resultsCapture.capture-solid .r-label {
    color: #e0e0e0 !important;
}

/* Values — pure white */
#resultsCapture.capture-solid .r-value {
    color: #ffffff !important;
}

#resultsCapture.capture-solid .r-item.glow .r-value {
    color: #4ade80 !important;
}

/* Overall Return — bright green */
#resultsCapture.capture-solid .overall-value {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #34d399 !important;
    background-clip: unset !important;
    color: #34d399 !important;
}

#resultsCapture.capture-solid .overall-note {
    color: #bbbbbb !important;
}

#resultsCapture.capture-solid .overall-value-wrap .r-label {
    color: #e0e0e0 !important;
}

#resultsCapture.capture-solid .overall-block {
    background: #222222 !important;
}

/* Result block borders */
#resultsCapture.capture-solid .result-block {
    border-bottom: 1px solid #3a3a3a !important;
}

/* Monthly Summary final row */
#resultsCapture.capture-solid .revenue-item {
    background: #1a2840 !important;
    border-right: 1px solid #3a3a3a !important;
}

#resultsCapture.capture-solid .revenue-item .final-value {
    color: #93c5fd !important;
}

#resultsCapture.capture-solid .revenue-item .final-label {
    color: #e0e0e0 !important;
}

#resultsCapture.capture-solid .profit-item {
    background: #163525 !important;
}

#resultsCapture.capture-solid .profit-item .final-value {
    color: #4ade80 !important;
}

#resultsCapture.capture-solid .profit-item .final-label {
    color: #e0e0e0 !important;
}

#resultsCapture.capture-solid .profit-item.negative {
    background: #351515 !important;
}

#resultsCapture.capture-solid .profit-item.negative .final-value {
    color: #fb7185 !important;
}

#resultsCapture.capture-solid .final-grid {
    border-top: none !important;
}

/* Footer */
#resultsCapture.capture-solid .results-footer {
    background: #222222 !important;
    border-top: 1px solid #3a3a3a !important;
}

#resultsCapture.capture-solid .results-footer .footer-logo .logo-bold {
    color: #ffffff !important;
}

#resultsCapture.capture-solid .results-footer .footer-logo .logo-light {
    color: #bbbbbb !important;
    opacity: 1 !important;
}

#resultsCapture.capture-solid .results-footer p {
    color: #bbbbbb !important;
}

/* ========== DOWNLOAD LANDSCAPE LAYOUT ========== */
#downloadCapture {
    position: absolute;
    left: -9999px;
    top: 0;
}

.dl-card {
    width: 1200px;
    background: #0f0f0f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e0e0e0;
    overflow: hidden;
}

.dl-header {
    background: #1a3328;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #2d4a3a;
}

.dl-header-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.9rem;
}

.dl-header-logo .logo-bold {
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.dl-header-logo .logo-light {
    font-weight: 300;
    letter-spacing: 2px;
    color: #bbbbbb;
}

.dl-header-center {
    text-align: center;
}

.dl-header-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.dl-header-meta {
    text-align: right;
    font-size: 0.75rem;
    color: #aaaaaa;
}

.dl-header-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 4px;
}

.dl-badge-webinar {
    background: #1a2840;
    color: #60a5fa;
}

.dl-badge-vsl {
    background: #231a40;
    color: #a78bfa;
}

.dl-badge-direct {
    background: #2a2010;
    color: #fbbf24;
}

.dl-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dl-col {
    padding: 16px 20px;
}

.dl-col-inputs {
    background: #161b22;
    border-right: 2px solid #2a3a4a;
}

.dl-col-calcs {
    background: #111a12;
}

.dl-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    text-align: center;
}

.dl-col-inputs .dl-col-title {
    background: #1a2840;
    color: #60a5fa;
    border: 1px solid #2a3a5a;
}

.dl-col-calcs .dl-col-title {
    background: #132a1a;
    color: #34d399;
    border: 1px solid #1a4a2a;
}

.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dl-item {
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a2a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-item:nth-child(2n) {
    border-right: none;
}

.dl-item-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dl-item-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.dl-subheader {
    grid-column: 1 / -1;
    padding: 6px 12px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #222222;
    color: #888888;
    border-bottom: 1px solid #333333;
}

/* Direct Sales: 3-col sub-grid in calcs to handle many items */
#dlDirect .dl-col-calcs .dl-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

#dlDirect .dl-col-calcs .dl-item:nth-child(2n) {
    border-right: 1px solid #2a2a2a;
}

#dlDirect .dl-col-calcs .dl-item:nth-child(3n) {
    border-right: none;
}

.dl-summary-bar {
    display: flex;
    border-top: 2px solid #3a3a3a;
}

.dl-summary-item {
    flex: 1;
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dl-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaaaaa;
}

.dl-summary-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dl-revenue {
    background: #1a2840;
    border-right: 1px solid #3a3a3a;
}

.dl-revenue .dl-summary-value {
    color: #93c5fd;
}

.dl-profit {
    background: #163525;
}

.dl-profit .dl-summary-value {
    color: #4ade80;
}

.dl-profit.negative {
    background: #351515;
}

.dl-profit.negative .dl-summary-value {
    color: #fb7185;
}

.dl-footer {
    padding: 12px 24px;
    text-align: center;
    background: #1a1a1a;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.dl-footer-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.8rem;
}

.dl-footer-logo .logo-bold {
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.dl-footer-logo .logo-light {
    font-weight: 300;
    letter-spacing: 2px;
    color: #bbbbbb;
}

.dl-footer p {
    font-size: 0.7rem;
    color: #777777;
}

/* ========== UTILITY ========== */
.hidden {
    display: none !important;
}

/* ========== RESPONSIVE — LARGE TABLET (split layout collapse) ========== */
@media (max-width: 1023px) {
    .calc-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .results-panel {
        position: static;
    }
}

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 70px;
    }

    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

    .revenue-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .overall-value {
        font-size: 2.2rem;
    }

    .final-value {
        font-size: 1.5rem;
    }

    .calc-type-selector {
        flex-direction: column;
        align-items: center;
    }

    .type-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 520px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-container {
        height: 56px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero h1 {
        font-size: 1.85rem;
        letter-spacing: -0.5px;
    }

    .hero .subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .hero-glow {
        width: 350px;
        height: 350px;
    }

    .form-section {
        padding: 40px 16px 60px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    .card-header {
        padding: 16px 18px;
    }

    .card-body {
        padding: 18px;
    }

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

    .field-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

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

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

    .revenue-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .results-card-header {
        padding: 24px 20px 20px;
    }

    .results-card-header h3 {
        font-size: 1.2rem;
    }

    .overall-value {
        font-size: 1.8rem;
    }

    .final-value {
        font-size: 1.4rem;
    }

    .block-title-bar {
        padding: 10px 18px;
        font-size: 0.72rem;
    }

    .r-item {
        padding: 12px 18px;
    }

    .r-value {
        font-size: 1rem;
    }

    .calc-type-selector {
        flex-direction: column;
        align-items: center;
    }

    .type-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ========== DESKTOP LANDSCAPE OPTIMIZATION (1024px+) ========== */
@media (min-width: 1024px) {

    /* --- Wider Container --- */
    .form-section .container {
        max-width: 1600px;
        width: 92%;
        padding: 0 32px;
    }

    /* --- Form : Results split (42:58) — more room for denser results --- */
    .calc-layout {
        grid-template-columns: 42fr 58fr;
        gap: 28px;
    }

    /* --- Form fields: 2-column on desktop --- */
    .field-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
    }

    /* --- Monthly Costs: 3-column on desktop --- */
    .field-grid.cols-3 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px 20px;
    }

    /* --- OTO + Basic Program side-by-side --- */
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .form-row-2col .form-card {
        margin-bottom: 0;
    }

    /* --- Result items: 2-column grid --- */
    .result-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Right border on left-column items for visual separation */
    .result-grid .r-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* --- Tighter result item padding for density --- */
    .r-item {
        padding: 11px 20px;
    }

    /* --- Tighter form card internal padding --- */
    .card-body {
        padding: 20px 22px;
    }

    /* --- Scrollable sticky results panel --- */
    .results-panel {
        position: sticky;
        top: 76px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    /* Thin custom scrollbar for results overflow */
    .results-panel::-webkit-scrollbar {
        width: 5px;
    }
    .results-panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 3px;
    }
    .results-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    /* --- Tighter card spacing --- */
    .form-card {
        margin-bottom: 16px;
    }
}
