html, body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}


/* ============================================
   Base Styles
   ============================================ */
a, .btn-link { color: #006bb7; }
.btn-primary { color: #fff; background-color: #1b6ec2; border-color: #1861ac; }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }
.darker-border-checkbox.form-check-input { border-color: #929292; }

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --pd-coral: #FF6B6B;
    --pd-coral-dark: #E85555;
    --pd-purple: #667eea;
    --pd-pink: #764ba2;
    --pd-teal: #4ECDC4;
    --pd-yellow: #FFE66D;
    --pd-bg: #FAFAFA;
    --pd-surface: #FFFFFF;
    --pd-text: #2D3436;
    --pd-text-muted: #636e72;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FF6B6B 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: hero-drift 20s linear infinite;
    pointer-events: none;
}

@keyframes hero-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 800px; margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem; font-weight: 500;
    color: #FFFFFF; margin-bottom: 24px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700; color: #FFFFFF;
    line-height: 1.15; margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-title-highlight {
    background: linear-gradient(135deg, #FFE66D 0%, #FFC371 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300; color: rgba(255,255,255,0.9);
    margin-bottom: 40px; max-width: 600px;
    margin-left: auto; margin-right: auto; line-height: 1.6;
}

.hero-cta-button {
    background: linear-gradient(135deg, #FFE66D 0%, #FF6B6B 100%) !important;
    color: #2D3436 !important;
    font-size: 1.15rem !important; font-weight: 700 !important;
    padding: 16px 48px !important; border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(255,107,107,0.4) !important;
    transition: all 0.3s ease !important; text-transform: none !important;
}
.hero-cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(255,107,107,0.6) !important;
}

.hero-trust-row {
    display: flex; justify-content: center;
    gap: 32px; margin-top: 40px; flex-wrap: wrap;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.85); font-size: 0.9rem;
}

/* Floating emojis */
.hero-float-emoji {
    position: absolute; font-size: 2.5rem;
    animation: float-updown 3s ease-in-out infinite;
    opacity: 0.6; pointer-events: none; z-index: 1;
}
.hero-float-emoji:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-emoji:nth-child(2) { top: 25%; right: 10%; animation-delay: 0.5s; }
.hero-float-emoji:nth-child(3) { bottom: 20%; left: 12%; animation-delay: 1s; }
.hero-float-emoji:nth-child(4) { bottom: 30%; right: 8%; animation-delay: 1.5s; }
.hero-float-emoji:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.8s; }

@keyframes float-updown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   Wave Dividers
   ============================================ */
.wave-divider {
    position: relative; width: 100%;
    overflow: hidden; line-height: 0; margin-top: -2px;
}
.wave-divider svg { display: block; width: 100%; height: 80px; }
.wave-divider-bottom {
    transform: rotate(180deg); margin-bottom: -2px; margin-top: 0;
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works-section {
    padding: 80px 24px; background: var(--pd-bg);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700; color: var(--pd-text);
    text-align: center; margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1.1rem; font-weight: 400;
    color: var(--pd-text-muted); text-align: center;
    margin-bottom: 56px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.step-card {
    background: var(--pd-surface); border-radius: 24px;
    padding: 40px 32px; text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    height: 100%;
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(102,126,234,0.15);
}

.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pd-purple) 0%, var(--pd-coral) 100%);
    color: #FFFFFF; font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.3);
}

.step-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem; font-weight: 600;
    color: var(--pd-text); margin-bottom: 8px;
}
.step-text { font-size: 0.95rem; color: var(--pd-text-muted); line-height: 1.6; }

@media (min-width: 960px) {
    .step-connector { position: relative; }
    .step-connector::after {
        content: ''; position: absolute;
        top: 68px; right: -24px;
        width: 48px; height: 2px;
        background: linear-gradient(90deg, var(--pd-purple), var(--pd-coral));
        opacity: 0.3;
    }
    .step-connector:last-child::after { display: none; }
}

/* ============================================
   Themes Gallery
   ============================================ */
.themes-section { padding: 80px 24px; background: var(--pd-surface); }

.theme-card {
    border-radius: 20px; overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%; display: flex; flex-direction: column;
}
.theme-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.theme-card-media {
    height: 240px; position: relative; overflow: hidden;
}
.theme-card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.theme-card:hover .theme-card-img { transform: scale(1.08); }
.theme-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 60%; opacity: 0.3;
    background: linear-gradient(to top, currentColor, transparent);
    pointer-events: none;
}

.theme-card-content {
    padding: 24px; flex-grow: 1;
    display: flex; flex-direction: column;
}
.theme-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem; font-weight: 700; margin-bottom: 6px;
}
.theme-card-desc {
    font-size: 0.9rem; color: var(--pd-text-muted);
    line-height: 1.5; flex-grow: 1;
}
.theme-card-button {
    border-radius: 12px !important; font-weight: 600 !important;
    text-transform: none !important; padding: 10px 24px !important;
}

/* Theme overlay colors (used as gradient base on image overlay) */
.theme-bg-princess { color: #e17055; }
.theme-bg-superhero { color: #0984e3; }
.theme-bg-dinosaur { color: #00b894; }
.theme-bg-astronaut { color: #6c5ce7; }
.theme-bg-pirate { color: #d35400; }
.theme-bg-fairy { color: #e84393; }
.theme-bg-knight { color: #636e72; }
.theme-bg-mermaid { color: #00cec9; }
.theme-bg-dragon { color: #d63031; }
.theme-bg-unicorn { color: #a29bfe; }
.theme-bg-ninja { color: #2d3436; }
.theme-bg-robot { color: #00b4d8; }
.theme-bg-explorer { color: #e17055; }
.theme-bg-wizard { color: #6c5ce7; }
.theme-bg-ballerina { color: #fd79a8; }
.theme-bg-popstar { color: #e84393; }

/* Theme accent colors for names */
.theme-accent-princess { color: #e17055; }
.theme-accent-superhero { color: #0984e3; }
.theme-accent-dinosaur { color: #00b894; }
.theme-accent-astronaut { color: #6c5ce7; }
.theme-accent-pirate { color: #d35400; }
.theme-accent-fairy { color: #e84393; }
.theme-accent-knight { color: #636e72; }
.theme-accent-mermaid { color: #00cec9; }
.theme-accent-dragon { color: #d63031; }
.theme-accent-unicorn { color: #a29bfe; }
.theme-accent-ninja { color: #2d3436; }
.theme-accent-robot { color: #00b4d8; }
.theme-accent-explorer { color: #e17055; }
.theme-accent-wizard { color: #6c5ce7; }
.theme-accent-ballerina { color: #fd79a8; }
.theme-accent-popstar { color: #e84393; }

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px; padding: 32px 24px;
    text-align: center; transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; color: #FFFFFF; line-height: 1.2;
}
.stat-label {
    font-size: 0.95rem; color: rgba(255,255,255,0.85);
    margin-top: 8px;
}
.stat-icon { font-size: 2rem; margin-bottom: 12px; display: block; }

/* ============================================
   Trust Bar
   ============================================ */
.trust-section { padding: 48px 24px; background: var(--pd-bg); }

.trust-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    text-align: center; padding: 16px;
}
.trust-icon-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(255,107,107,0.1) 100%);
    display: flex; align-items: center; justify-content: center;
}

/* ============================================
   Final CTA
   ============================================ */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #FF6B6B 0%, #764ba2 100%);
    text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; color: #FFFFFF;
    margin-bottom: 16px; position: relative; z-index: 2;
}
.cta-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.9);
    margin-bottom: 40px; max-width: 500px;
    margin-left: auto; margin-right: auto;
    position: relative; z-index: 2;
}
.cta-button {
    background: #FFFFFF !important; color: var(--pd-coral) !important;
    font-size: 1.15rem !important; font-weight: 700 !important;
    padding: 16px 48px !important; border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important; text-transform: none !important;
    position: relative; z-index: 2;
}
.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3) !important;
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
    background: #2D3436; padding: 48px 24px 24px;
    color: rgba(255,255,255,0.7);
}
.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; font-weight: 700; color: #FFFFFF; margin-bottom: 8px;
}
.footer-brand-accent { color: var(--pd-coral); }
.footer-tagline {
    font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 24px;
}
.footer-heading {
    font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.9); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
}
.footer-link {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.9rem; transition: color 0.2s ease;
    display: block; padding: 4px 0;
}
.footer-link:hover { color: var(--pd-coral); }
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1); margin: 32px 0 16px;
}
.footer-bottom {
    font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
/* ============================================
   Page Header Banner (internal pages)
   ============================================ */
.page-header-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 48px 24px 56px;
    text-align: center; position: relative;
    overflow: hidden; margin-bottom: -24px;
}
.page-header-banner::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-header-banner h1,
.page-header-banner .page-header-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700; color: #FFFFFF;
    position: relative; z-index: 2; margin: 0;
}
.page-header-banner .page-header-subtitle {
    font-size: 1rem; color: rgba(255,255,255,0.85);
    position: relative; z-index: 2; margin-top: 8px;
}

/* ============================================
   Styled Card (internal pages)
   ============================================ */
.styled-card {
    background: var(--pd-surface); border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden; position: relative; z-index: 3;
}
.styled-card-body { padding: 32px; }

.styled-card-image {
    width: 100%; height: 280px; object-fit: cover;
    border-radius: 16px; display: block;
}

/* ============================================
   Section Divider (subtle)
   ============================================ */
.section-divider {
    height: 3px; border: none; margin: 24px 0;
    background: linear-gradient(90deg, var(--pd-purple), var(--pd-coral), var(--pd-yellow));
    border-radius: 4px; opacity: 0.3;
}

/* ============================================
   Payment Method Card
   ============================================ */
.payment-method-card {
    border-radius: 16px; border: 2px solid #e0e0e0;
    padding: 24px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; background: var(--pd-surface);
}
.payment-method-card:hover {
    border-color: var(--pd-purple);
    box-shadow: 0 4px 20px rgba(102,126,234,0.15);
    transform: translateY(-2px);
}
.payment-method-card.selected {
    border-color: var(--pd-purple);
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    box-shadow: 0 4px 20px rgba(102,126,234,0.2);
}

/* ============================================
   Success / Confirmation page
   ============================================ */
.success-container {
    text-align: center; padding: 48px 32px;
}
.success-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; box-shadow: 0 8px 32px rgba(0,184,148,0.3);
}
.success-icon svg, .success-icon .mud-icon-root {
    font-size: 48px !important; color: #FFFFFF !important;
}

/* ============================================
   Back button styled
   ============================================ */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pd-purple); font-weight: 600;
    text-decoration: none; font-size: 0.95rem;
    transition: all 0.2s ease; padding: 8px 0;
}
.back-link:hover { color: var(--pd-coral); gap: 10px; }

/* ============================================
   Trust badges (checkout)
   ============================================ */
.trust-badge {
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    padding: 12px; text-align: center;
}
.trust-badge-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    display: flex; align-items: center; justify-content: center;
}

/* ============================================
   Order summary card
   ============================================ */
.order-summary-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.04) 0%, rgba(118,75,162,0.04) 100%);
    border-radius: 16px; border: 1px solid rgba(102,126,234,0.1);
    padding: 24px;
}

/* ============================================
   Timeline styled
   ============================================ */
.timeline-section {
    padding: 24px; background: var(--pd-bg);
    border-radius: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .hero-section { min-height: 70vh; padding: 60px 16px 80px; }
    .hero-trust-row { flex-direction: column; gap: 12px; align-items: center; }
    .hero-float-emoji { display: none; }
    .how-it-works-section, .themes-section, .stats-section, .cta-section { padding: 56px 16px; }
    .theme-card-media { height: 180px; }
    .page-header-banner { padding: 32px 16px 40px; }
    .styled-card-body { padding: 20px; }
    .styled-card-image { height: 200px; }
}
