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

:root {
    --teal-dark: #0a3d3d;
    --teal: #145c5c;
    --red: #ff5a5f;
    --red-dark: #e04a4f;
    --gold: #c9a86a;
    --gold-dark: #a88a4a;
    --green: #0a7a50;
    --cream: #fbf7f0;
    --gray-50: #f7f9f9;
    --gray-100: #e8ecec;
    --gray-300: #b8c0c0;
    --gray-500: #6a7878;
    --gray-700: #2b2b2b;
    --white: #ffffff;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Noto Sans Sinhala', 'Segoe UI', -apple-system, sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif Sinhala', 'Georgia', serif;
    color: var(--teal-dark);
    line-height: 1.25;
    font-weight: 700;
}

h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TOP BANNER (live counters)
   ============================================================ */
.top-banner {
    background: var(--teal-dark);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.live-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.sales-counter strong { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 55%, #1a7a7a 100%);
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: rgba(255, 90, 95, 0.12);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 400px; height: 400px;
    background: rgba(201, 168, 106, 0.08);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text .eyebrow {
    display: inline-block;
    background: rgba(201, 168, 106, 0.9);
    color: var(--teal-dark);
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .highlight-red { color: var(--red); }

.hero .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero .lead strong { color: var(--gold); }

.quick-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.quick-stats .stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 8px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.quick-stats .stat-num {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
}

.quick-stats .stat-label {
    font-size: 0.82rem;
    margin-top: 6px;
    opacity: 0.9;
}

.trust-line {
    margin-top: 14px;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 90, 95, 0.4);
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 90, 95, 0.5); }

.btn-huge {
    font-size: 1.2rem;
    padding: 18px 36px;
    width: 100%;
    max-width: 460px;
}

/* ============================================================
   BOOK COVER MOCKUP
   ============================================================ */
.hero-book {
    display: flex;
    justify-content: center;
    position: relative;
}

.book-cover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--red) 100%);
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4.2;
    padding: 34px 26px;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255,255,255,0.1) inset;
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.4s;
    color: #fff;
}

.book-cover:hover { transform: rotate(0deg) scale(1.03); }

.book-cover .book-badge {
    position: absolute;
    top: 30px; right: -14px;
    background: var(--red);
    color: #fff;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.book-cover .book-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 14px;
    font-family: sans-serif;
}

.book-cover h2 {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.12;
    margin-bottom: 14px;
}

.book-cover .book-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0.95;
    font-style: italic;
    margin-bottom: 16px;
}

.book-price-tag {
    background: var(--gold);
    color: var(--teal-dark);
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.book-price-tag .old {
    display: block;
    text-decoration: line-through;
    font-size: 0.82rem;
    opacity: 0.7;
    text-align: center;
}

.book-price-tag .new {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: bold;
}

.book-cover .book-bottom-badge {
    position: absolute;
    bottom: 22px; left: 26px;
    background: #fff;
    color: var(--teal-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7rem;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
    background: linear-gradient(90deg, var(--red) 0%, #ff7a6f 100%);
    padding: 30px 0;
    color: #fff;
}

.countdown-box { text-align: center; }

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: Georgia, serif;
}

.time-unit {
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 18px;
    border-radius: 10px;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.time-unit .num {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.time-unit .lbl {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Noto Sans Sinhala', sans-serif;
    display: block;
    margin-top: 6px;
}

.time-sep {
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.8;
    font-family: Georgia, serif;
}

.countdown-after {
    margin-top: 14px;
    font-size: 0.92rem;
    opacity: 0.95;
}

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--teal-dark);
}

.section-sub {
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.why-section { padding: 70px 0; background: var(--gray-50); }

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

.why-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--red);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }

.why-icon { font-size: 2.5rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   CHAPTERS
   ============================================================ */
.content-section { padding: 70px 0; }

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.chapter-item {
    background: #fff;
    border: 1px solid var(--gray-100);
    padding: 18px 20px;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    transition: all 0.2s;
}

.chapter-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.ch-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--teal-dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.ch-body h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--teal-dark);
}

.ch-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin: 0;
}

.bonus-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--teal-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    letter-spacing: 1px;
    margin-left: 4px;
    vertical-align: middle;
    font-weight: bold;
}

.bonus-callout {
    background: linear-gradient(135deg, var(--cream) 0%, #fff4db 100%);
    border-left: 4px solid var(--gold);
    padding: 18px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.audience-section { padding: 70px 0; background: var(--gray-50); }

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.audience-col {
    background: #fff;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.audience-col.good { border-top: 5px solid var(--green); }
.audience-col.bad { border-top: 5px solid var(--red); }

.audience-col h3 {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.audience-col ul { list-style: none; }

.audience-col li {
    padding: 8px 0 8px 8px;
    border-bottom: 1px dashed var(--gray-100);
    font-size: 0.95rem;
    line-height: 1.6;
}

.audience-col li:last-child { border-bottom: none; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { padding: 70px 0; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.testimonial {
    background: #fff;
    padding: 26px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial .stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial p {
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial .person {
    font-size: 0.9rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
}

.testimonial .person strong { color: var(--teal-dark); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 70px 0; }

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    background: var(--gray-50);
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--teal-dark);
    list-style: none;
    position: relative;
    padding-right: 45px;
    font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--red);
    font-weight: normal;
    transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
    padding: 0 22px 18px;
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    scroll-margin-top: 20px;
}

.order-box {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.order-header {
    background: linear-gradient(135deg, var(--red) 0%, #ff7a6f 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.order-header h2 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.order-header p {
    font-size: 0.92rem;
    opacity: 0.95;
    line-height: 1.5;
}

.price-summary {
    background: var(--cream);
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 16px;
}

.summary-title { font-weight: 700; color: var(--teal-dark); font-size: 1rem; }
.summary-sub { font-size: 0.82rem; color: var(--gray-500); margin-top: 3px; }

.summary-prices { text-align: right; }

.old-price {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.new-price {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--red);
    line-height: 1.1;
}

.save-badge {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 600;
}

#orderForm { padding: 30px 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 0.95rem;
}

.req { color: var(--red); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-100);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 92, 92, 0.1);
}

.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.security-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--teal-dark);
    color: #fff;
    padding: 30px 0 24px;
    text-align: center;
    font-size: 0.9rem;
}

.footer p { margin-bottom: 6px; opacity: 0.9; }
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1rem; }

    h2 { font-size: 1.7rem; }
    .section-title { font-size: 1.8rem; }

    .book-cover { max-width: 280px; }
    .book-cover h2 { font-size: 1.5rem; }

    .chapters-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }

    .price-summary { text-align: center; flex-direction: column; }
    .summary-prices { text-align: center; }

    .top-banner { font-size: 0.78rem; padding: 8px 14px; }

    .time-unit {
        padding: 10px 12px;
        min-width: 62px;
    }
    .time-unit .num { font-size: 1.6rem; }
    .time-unit .lbl { font-size: 0.65rem; }

    .countdown-timer { gap: 4px; }

    .btn-huge { font-size: 1.05rem; padding: 15px 24px; }

    .quick-stats { flex-wrap: wrap; }
    .quick-stats .stat { min-width: calc(33.33% - 10px); }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 1.85rem; }

    .time-unit { padding: 10px 8px; min-width: 56px; }
    .time-unit .num { font-size: 1.4rem; }

    #orderForm { padding: 24px 20px; }
    .order-header { padding: 22px 18px; }
    .order-header h2 { font-size: 1.4rem; }

    .whatsapp-float { width: 50px; height: 50px; bottom: 14px; right: 14px; }
}

/* ============================================================
   MODAL (used by bank details popup)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--green) 0%, #14a86b 100%);
    color: #fff;
    padding: 26px;
    border-radius: 16px 16px 0 0;
    position: relative;
    text-align: center;
}

.modal-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.modal-header p { font-size: 0.9rem; opacity: 0.95; }

.modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-body { padding: 26px; }

.reference-box {
    background: linear-gradient(135deg, var(--gold) 0%, #d9b87a 100%);
    color: var(--teal-dark);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(201, 168, 106, 0.3);
}

.reference-box .ref-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.reference-box .ref-code {
    font-family: Georgia, serif;
    font-size: 2.4rem;
    font-weight: bold;
    letter-spacing: 6px;
    margin: 6px 0;
}

.reference-box .ref-hint {
    font-size: 0.82rem;
    opacity: 0.9;
}

.bank-details {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 22px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-100);
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.bank-row .lbl {
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
}

.bank-row .val {
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 0.95rem;
    word-break: break-word;
}

.bank-row .copy-btn {
    background: var(--teal-dark);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
    margin-left: 6px;
}

.bank-row .copy-btn:hover { background: var(--teal); }

.bank-row .copy-btn.copied { background: var(--green); }

.payment-amount {
    background: var(--red);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 22px;
}

.payment-amount .lbl { font-size: 0.8rem; opacity: 0.9; letter-spacing: 1.5px; text-transform: uppercase; }
.payment-amount .amt { font-family: Georgia, serif; font-size: 1.8rem; font-weight: bold; }

.upload-area {
    border: 2px dashed var(--teal);
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 18px;
}

.upload-area:hover { border-color: var(--red); background: #fff; }

.upload-area.has-file { border-color: var(--green); background: #f0f9f4; }

.upload-area .icon { font-size: 2.2rem; margin-bottom: 8px; }

.upload-area .main-text {
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.upload-area .hint {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.upload-area input[type="file"] { display: none; }

.modal-steps {
    background: #eefaf4;
    border-left: 3px solid var(--green);
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.modal-steps ol { margin-left: 18px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.alert-success { background: #dcfce7; color: var(--green); border-left: 3px solid var(--green); }
.alert-error { background: #ffeeee; color: var(--red-dark); border-left: 3px solid var(--red); }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    max-width: 560px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 44px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--green) 0%, #14a86b 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 6px 20px rgba(10, 122, 80, 0.3);
}

.success-card h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--teal-dark);
}

.success-card .ref-display {
    background: var(--cream);
    border-radius: 10px;
    padding: 18px;
    margin: 24px 0;
    border: 2px dashed var(--gold);
}

.success-card .ref-display .ref-code {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: var(--teal-dark);
}

.next-steps {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.8;
}
