/* Eerste Koers - Stylesheet */

:root {
    --navy: #1a2744;
    --navy-light: #2a3f5f;
    --gold: #c9a55c;
    --gold-light: #e8d5a8;
    --cream: #faf8f5;
    --white: #ffffff;
    --green: #2ecc71;
    --green-dark: #27ae60;
    --red: #e74c3c;
    --text-dark: #2c3e50;
    --text-soft: #5a6c7d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes growUp {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Header */
header {
    background: var(--navy);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(26, 39, 68, 0.15);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-coin {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(201, 165, 92, 0.4);
}

.logo-coin.small {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23faf8f5' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 165, 92, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 165, 92, 0.5);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Chart decorations */
.chart-decoration {
    position: absolute;
    bottom: 140px;
    left: 10%;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    opacity: 0.2;
}

.chart-bar {
    width: 20px;
    background: var(--gold);
    border-radius: 4px 4px 0 0;
}

.chart-bar:nth-child(1) { height: 40px; animation: growUp 2s ease-in-out infinite; }
.chart-bar:nth-child(2) { height: 60px; animation: growUp 2s ease-in-out 0.2s infinite; }
.chart-bar:nth-child(3) { height: 45px; animation: growUp 2s ease-in-out 0.4s infinite; }
.chart-bar:nth-child(4) { height: 80px; animation: growUp 2s ease-in-out 0.6s infinite; }
.chart-bar:nth-child(5) { height: 70px; animation: growUp 2s ease-in-out 0.8s infinite; }

.chart-decoration.right {
    left: auto;
    right: 10%;
}

/* Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    color: var(--gold);
    opacity: 0.3;
    animation: shimmer 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 15%; left: 10%; font-size: 1rem; }
.star:nth-child(2) { top: 25%; right: 15%; font-size: 0.75rem; animation-delay: 1s; }
.star:nth-child(3) { top: 60%; left: 8%; font-size: 0.5rem; animation-delay: 0.5s; }
.star:nth-child(4) { top: 40%; right: 10%; font-size: 1.25rem; animation-delay: 1.5s; }
.star:nth-child(5) { top: 70%; right: 20%; font-size: 0.75rem; animation-delay: 2s; }

/* Section styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-soft);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Learning path / Steps */
.learning-path {
    padding: 5rem 2rem;
    background: var(--cream);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(26, 39, 68, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(26, 39, 68, 0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--gold);
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-soft);
    font-size: 1rem;
}

/* Learn section */
.learn-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.learn-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.learn-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.learn-text p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.learn-topics {
    list-style: none;
}

.learn-topics li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 12px;
}

.topic-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.topic-content h4 {
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.topic-content p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0;
}

/* Chart visual */
.chart-visual {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.2);
}

.chart-visual .chart-container {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
}

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

.chart-title {
    color: var(--white);
    font-weight: 600;
}

.chart-value {
    color: var(--green);
    font-weight: 700;
    font-size: 1.25rem;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding-top: 20px;
}

.mini-bar {
    flex: 1;
    background: linear-gradient(to top, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 4px 4px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* Indices section */
.indices-section {
    padding: 4rem 2rem;
    background: var(--cream);
}

.indices-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.index-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
}

.index-card .flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.index-card .name {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.index-card .value {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Certificate section */
.certificate-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    text-align: center;
}

.certificate-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.certificate-section > p {
    color: var(--gold-light);
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.certificate {
    max-width: 500px;
    margin: 0 auto 2rem;
    background: var(--cream);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.certificate::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 2px solid var(--gold);
    border-radius: 12px;
    pointer-events: none;
}

/* Share certificate styling */
.share-certificate {
    padding: 0;
    overflow: hidden;
    max-width: 480px;
}

.share-certificate::before {
    display: none;
}

.cert-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.cert-title {
    flex: 1;
}

.cert-type {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cert-subtitle {
    display: block;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.cert-number {
    color: var(--gold-light);
    font-size: 0.75rem;
    opacity: 0.8;
}

.cert-body {
    padding: 2rem;
    text-align: center;
}

.cert-declares {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cert-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.cert-dream-label {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.cert-dream {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-style: italic;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(201, 165, 92, 0.1) 0%, rgba(232, 213, 168, 0.1) 100%);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.cert-investment {
    padding: 1.5rem 2rem;
    background: var(--cream);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cert-inv-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.cert-inv-label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.cert-inv-value {
    font-weight: 700;
    color: var(--navy);
}

.cert-inv-value.growth {
    color: var(--green-dark);
}

.cert-inv-value.loss {
    color: var(--red);
}

.cert-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.cert-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.qr-placeholder {
    background: var(--white);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.qr-dummy {
    width: 70px;
    height: 70px;
    background: repeating-linear-gradient(
        45deg,
        var(--navy) 0,
        var(--navy) 5px,
        var(--white) 5px,
        var(--white) 10px
    );
    opacity: 0.3;
}

.qr-label {
    font-size: 0.7rem;
    color: var(--text-soft);
}

.cert-date {
    text-align: right;
}

.cert-date-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cert-date-value {
    font-weight: 600;
    color: var(--navy);
}

.certificate-cta {
    margin-top: 2rem;
}

.certificate-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-size: 0.95rem;
}

.cert-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--navy);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

footer p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Create page */
.create-page {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    background: var(--cream);
}

.create-container {
    max-width: 600px;
    margin: 0 auto;
}

.create-header {
    text-align: center;
    margin-bottom: 3rem;
}

.create-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.create-header h1 span {
    color: var(--gold);
}

.create-header p {
    color: var(--text-soft);
}

.error-box {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--red);
}

.error-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.create-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(26, 39, 68, 0.08);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

/* Index options */
.index-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.index-option {
    cursor: pointer;
}

.index-option input {
    display: none;
}

.index-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.index-option input:checked + .index-option-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 165, 92, 0.1) 0%, rgba(232, 213, 168, 0.1) 100%);
}

.index-flag {
    font-size: 1.5rem;
}

.index-name {
    font-weight: 600;
    color: var(--navy);
}

/* Wish options */
.wish-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wish-type-option {
    cursor: pointer;
}

.wish-type-option input {
    display: none;
}

.wish-type-option span {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wish-type-option input:checked + span {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 165, 92, 0.1) 0%, rgba(232, 213, 168, 0.1) 100%);
}

.wish-input-container {
    margin-top: 0.75rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Certificate page */
.certificate-page {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.certificate-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.certificate-wrapper .certificate {
    margin-bottom: 1.5rem;
}

.certificate-details {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.certificate-details h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.details-table {
    width: 100%;
    color: var(--gold-light);
}

.details-table td {
    padding: 0.5rem 0;
}

.details-table td:last-child {
    text-align: right;
    color: var(--white);
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.not-found p {
    color: var(--gold-light);
    margin-bottom: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 5rem;
    }

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

    .learn-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chart-decoration {
        display: none;
    }

    .certificate-features {
        flex-direction: column;
        align-items: center;
    }

    .index-options {
        grid-template-columns: 1fr;
    }

    .create-form {
        padding: 1.5rem;
    }

    .certificate-actions {
        flex-direction: column;
    }
}

/* Chart Section */
.chart-section {
    background: var(--navy-light);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.chart-section h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.chart-section .chart-container {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-loading, .chart-error {
    color: #888;
    font-size: 14px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
}

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

.legend-dot.crash { background: #ef4444; }
.legend-dot.recovery { background: #22c55e; }
.legend-dot.milestone { background: #c9a55c; }

.chart-note {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 12px;
}

/* Order Page */
.price-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 12px;
}

.order-summary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201, 165, 92, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.order-summary h3 {
    color: var(--gold);
    font-size: 1rem;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--gold);
    border-bottom: none;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    opacity: 0.7;
}

.payment-methods img {
    height: 24px;
    filter: grayscale(100%) brightness(1.5);
}

/* Status Page */
.status-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.status-container {
    text-align: center;
    max-width: 500px;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.status-icon.success {
    background: #22c55e;
    color: white;
}

.status-icon.pending {
    background: var(--gold);
    color: white;
}

.status-icon.failed {
    background: #ef4444;
    color: white;
}

.status-icon.unknown {
    background: #888;
    color: white;
}

.status-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 16px;
}

.status-page h1 span {
    color: var(--gold);
}

.status-message {
    color: #aaa;
    margin-bottom: 24px;
}

.certificate-preview {
    background: rgba(201, 165, 92, 0.1);
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.preview-code {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    font-family: monospace;
}

.certificate-preview p {
    margin: 8px 0 0;
    color: #888;
    font-size: 0.9rem;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.status-actions .cta-button {
    width: 100%;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.cta-button.secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Index card changes */
.index-card .change {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.index-card .change.positive {
    color: #22c55e;
}

.index-card .change.negative {
    color: #ef4444;
}

.index-card .change .period {
    font-weight: 400;
    color: #888;
    font-size: 0.75rem;
}

/* Chart stats */
.chart-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.chart-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

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

.chart-period {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
}

/* ==========================================
   Product Selection
   ========================================== */
.product-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.product-option {
    cursor: pointer;
}

.product-option input {
    display: none;
}

.product-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.product-option input:checked + .product-option-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 165, 92, 0.05) 0%, rgba(201, 165, 92, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(201, 165, 92, 0.2);
}

.product-option:hover .product-option-content {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.product-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* ==========================================
   Shipping Section
   ========================================== */
.shipping-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #a5d6a7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.shipping-section h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.shipping-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .product-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        width: 100%;
    }
}

/* Fix browser autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Inflation Section */
.inflation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.inflation-section h3 {
    margin-bottom: 8px;
    color: #1a2744;
}

.inflation-intro {
    color: #666;
    margin-bottom: 20px;
}

.inflation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

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

.inflation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.inflation-card:hover {
    transform: translateY(-2px);
}

.inflation-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.inflation-name {
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 8px;
}

.inflation-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.inflation-value.inflation-up {
    color: #dc2626;
}

.inflation-value.inflation-down {
    color: #16a34a;
}

.inflation-label {
    font-size: 0.85rem;
    color: #888;
}

.inflation-explanation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #c9a55c;
}

.inflation-explanation p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.6;
}

.inflation-explanation p:last-child {
    margin-bottom: 0;
}

.inflation-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 16px;
}

/* Inflation section spacing */
.inflation-section {
    margin-bottom: 40px !important;
}

/* Comparison boxes for inflation section */
.comparison-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
    padding: 0 8px;
}

@media (max-width: 600px) {
    .comparison-boxes {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.comparison-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.comparison-box.piggy { border-left: 4px solid #94a3b8; }
.comparison-box.bank { border-left: 4px solid #10b981; }
.comparison-box.invest { border-left: 4px solid #c9a55c; background: #fffef5; }

.comp-icon { font-size: 1.8rem; margin-bottom: 4px; }
.comp-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.comp-value { font-size: 1.6rem; font-weight: 700; color: #1e293b; margin: 4px 0; }
.comp-change { font-size: 0.9rem; font-weight: 600; }
.comp-change.neutral { color: #94a3b8; }
.comp-change.positive { color: #10b981; }
.comp-change.negative { color: #ef4444; }

.inflation-explanation > p:first-of-type {
    margin-bottom: 8px;
}

.inflation-note-box {
    background: #fef3c7;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.comp-rate {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
}
