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; }
/* ── Kill browser-native outlines only (let MudBlazor handle borders) ── */
*:focus, *:focus-visible {
    outline: none !important;
}
*::-moz-focus-inner {
    border: 0 !important;
}
::-moz-ui-invalid, ::-moz-ui-valid {
    box-shadow: none !important;
}
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* Social share circles */
.share-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.85;
    text-decoration: none;
}
.share-circle:hover {
    transform: scale(1.12);
    opacity: 1;
}
.share-circle-sm {
    width: 30px;
    height: 30px;
}

/* MudBlazor underline inputs */
.mud-input.mud-input-underline:after {
    border-bottom-color: var(--pd-coral, #FF6B6B) !important;
}

/* MudBlazor focused labels */
.mud-input-label-inputcontrol.mud-input-label-animated,
.mud-input-focused .mud-input-label {
    color: var(--pd-coral, #FF6B6B) !important;
}

/* MudBlazor select, autocomplete, picker — focused state */
.mud-select.mud-input-focused .mud-input-outlined-border,
.mud-autocomplete.mud-input-focused .mud-input-outlined-border,
.mud-picker .mud-input-focused .mud-input-outlined-border {
    border-color: var(--pd-coral, #FF6B6B) !important;
}

/* MudBlazor chips, radio, checkbox — override blue accent */
.mud-chip:focus, .mud-chip:focus-visible,
.mud-radio-button:focus-within,
.mud-checkbox:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* MudBlazor expansion panels — remove focus border */
.mud-expand-panel:focus, .mud-expand-panel:focus-within,
.mud-expand-panel-header:focus, .mud-expand-panel-header:focus-visible {
    outline: none !important;
}

/* MudBlazor tabs — active/focus indicator */
.mud-tab.mud-tab-active, .mud-tab:focus {
    outline: none !important;
}

/* Fix label clipped by border on Outlined variant */
.mud-input-outlined-border legend {
    padding: 0 8px !important;
    max-width: 100% !important;
    font-size: 0.8em !important;
}

/* Focus outline only on buttons/links — coral instead of blue */
a:focus-visible, button:focus-visible, .mud-button-root:focus-visible {
    outline: 2px solid var(--pd-coral, #FF6B6B) !important;
    outline-offset: 2px;
}

/* Nuclear: override any remaining MudBlazor blue (1976d2) via CSS variable */
:root {
    --mud-palette-primary: #FF6B6B !important;
    --mud-palette-primary-hover: rgba(255, 107, 107, 0.04) !important;
}

.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;
}

/* ============================================
   Navigation
   ============================================ */
.pd-nav-btn {
    color: var(--pd-text) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    position: relative;
}
.pd-nav-btn:hover {
    color: var(--pd-coral) !important;
    background: rgba(255, 107, 107, 0.08) !important;
}
.pd-nav-active {
    color: var(--pd-coral) !important;
    background: rgba(255, 107, 107, 0.1) !important;
}
.pd-nav-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--pd-coral);
    border-radius: 2px;
}

/* Desktop dropdown menu items */
.mud-menu-item {
    transition: all 0.15s ease !important;
}
.mud-menu-item:hover {
    background: rgba(255, 107, 107, 0.06) !important;
}
.mud-menu-item .mud-list-item-icon {
    transition: transform 0.2s ease;
}
.mud-menu-item:hover .mud-list-item-icon {
    transform: scale(1.15);
}

/* ============================================
   Navbar Logo
   ============================================ */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-right: 16px;
    text-decoration: none;
    user-select: none;
}
.navbar-logo-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2D3436;
    letter-spacing: -0.5px;
    line-height: 1;
}
.navbar-logo-accent {
    background: linear-gradient(135deg, #FF6B6B 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-logo:hover .navbar-logo-icon {
    transform: rotate(15deg) scale(1.1);
    transition: transform 0.3s ease;
}
.navbar-logo:hover .navbar-logo-accent {
    background: linear-gradient(135deg, #FF8A8A 0%, #9B6FC3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Nav category buttons - Desktop
   ============================================ */
.nav-cat-girls .mud-button-root {
    color: #E91E63 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-boys .mud-button-root {
    color: #1976D2 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-women .mud-button-root {
    color: #9C27B0 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-men .mud-button-root {
    color: #00897B !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-couples .mud-button-root {
    color: #EC407A !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-family .mud-button-root {
    color: #FF7043 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-pets .mud-button-root {
    color: #8D6E63 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
/* Hover effect on nav category buttons */
.nav-cat-girls .mud-button-root:hover { background: rgba(233,30,99,0.08) !important; }
.nav-cat-boys .mud-button-root:hover { background: rgba(25,118,210,0.08) !important; }
.nav-cat-women .mud-button-root:hover { background: rgba(156,39,176,0.08) !important; }
.nav-cat-men .mud-button-root:hover { background: rgba(0,137,123,0.08) !important; }
.nav-cat-couples .mud-button-root:hover { background: rgba(236,64,122,0.08) !important; }
.nav-cat-family .mud-button-root:hover { background: rgba(255,112,67,0.08) !important; }
.nav-cat-pets .mud-button-root:hover { background: rgba(141,110,99,0.08) !important; }
.nav-cat-baby .mud-button-root {
    color: #FF8A65 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px;
}
.nav-cat-baby .mud-button-root:hover { background: rgba(255,138,101,0.08) !important; }

/* Drawer nav links */
.pd-nav-link {
    border-radius: 8px !important;
    margin: 2px 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.pd-nav-link:hover {
    background: rgba(255, 107, 107, 0.08) !important;
    padding-left: 20px !important;
}
.pd-nav-link.active {
    color: var(--pd-coral) !important;
    background: rgba(255, 107, 107, 0.1) !important;
    border-left: 3px solid var(--pd-coral) !important;
}

/* Mobile drawer header accent */
.mud-drawer .mud-navmenu .mud-nav-group .mud-collapse-wrapper .mud-nav-link {
    padding-left: 2.5rem !important;
}
.mud-drawer .mud-navmenu .mud-nav-group .mud-collapse-wrapper .mud-nav-link:hover {
    padding-left: 2.8rem !important;
}

/* ============================================
   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: 0.9rem !important; font-weight: 700 !important;
    padding: 10px 24px !important; border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(255,107,107,0.3) !important;
    transition: all 0.3s ease !important; text-transform: none !important;
}
.hero-section .hero-cta-button {
    font-size: 1.15rem !important;
    padding: 16px 48px !important; border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(255,107,107,0.4) !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 theme thumbnails */
.hero-float-img {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    animation: float-updown 3s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero-float-img:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; width: 75px; height: 75px; }
.hero-float-img:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; width: 85px; height: 85px; }
.hero-float-img:nth-child(3) { bottom: 25%; left: 12%; animation-delay: 1s; width: 70px; height: 70px; }
.hero-float-img:nth-child(4) { bottom: 30%; right: 8%; animation-delay: 1.5s; width: 80px; height: 80px; }
.hero-float-img:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.8s; width: 65px; height: 65px; }
.hero-float-img:nth-child(6) { bottom: 15%; right: 15%; animation-delay: 1.2s; width: 75px; height: 75px; }
.hero-float-img:nth-child(7) { top: 35%; right: 3%; animation-delay: 0.3s; width: 72px; height: 72px; }
.hero-float-img:nth-child(8) { bottom: 10%; left: 18%; animation-delay: 1.8s; width: 68px; height: 68px; }

@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;
}

/* ============================================
   Stats Bar (compact)
   ============================================ */
.stats-bar-section {
    padding: 28px 16px;
    background: #FAFAFA;
}
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.stats-bar .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pd-text);
    line-height: 1;
}
.stats-bar .stat-label {
    font-size: 0.85rem;
    color: var(--pd-text-muted);
    font-weight: 500;
}
.stats-bar .stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(0,0,0,0.12);
}

/* ============================================
   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.no-hover:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.theme-card-media {
    aspect-ratio: 3/4; position: relative; overflow: hidden;
}
.theme-card-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    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.no-hover:hover .theme-card-img { transform: none; }
.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: 14px; flex-grow: 1;
    display: flex; flex-direction: column;
}
.theme-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 4px;
}
.theme-card-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--pd-purple);
    font-weight: 500;
    margin-bottom: 6px;
    opacity: 0.85;
}
.theme-card-desc {
    font-size: 0.8rem; color: var(--pd-text-muted);
    line-height: 1.4; flex-grow: 1; margin-bottom: 8px;
}
.theme-card-button {
    border-radius: 10px !important; font-weight: 600 !important;
    text-transform: none !important; padding: 8px 16px !important;
    font-size: 0.8rem !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-bg-superhero-male { color: #0984e3; }
.theme-bg-superhero-female { color: #0984e3; }
.theme-bg-astronaut-male { color: #6c5ce7; }
.theme-bg-astronaut-female { color: #6c5ce7; }
.theme-bg-pirate-male { color: #d35400; }
.theme-bg-pirate-female { color: #d35400; }
.theme-bg-knight-male { color: #636e72; }
.theme-bg-knight-female { color: #636e72; }
.theme-bg-ninja-male { color: #2d3436; }
.theme-bg-ninja-female { color: #2d3436; }
.theme-bg-wizard-male { color: #6c5ce7; }
.theme-bg-wizard-female { color: #6c5ce7; }
.theme-bg-warrior-male { color: #d63031; }
.theme-bg-warrior-female { color: #d63031; }
.theme-bg-explorer-male { color: #e17055; }
.theme-bg-explorer-female { color: #e17055; }
.theme-bg-fairy-male { color: #00b894; }
.theme-bg-fairy-female { color: #e84393; }
.theme-bg-sport-male { color: #27ae60; }
.theme-bg-sport-female { color: #27ae60; }
.theme-bg-manga-male { color: #e84393; }
.theme-bg-manga-female { 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; }
.theme-accent-superhero-male { color: #0984e3; }
.theme-accent-superhero-female { color: #0984e3; }
.theme-accent-astronaut-male { color: #6c5ce7; }
.theme-accent-astronaut-female { color: #6c5ce7; }
.theme-accent-pirate-male { color: #d35400; }
.theme-accent-pirate-female { color: #d35400; }
.theme-accent-knight-male { color: #636e72; }
.theme-accent-knight-female { color: #636e72; }
.theme-accent-ninja-male { color: #2d3436; }
.theme-accent-ninja-female { color: #2d3436; }
.theme-accent-wizard-male { color: #6c5ce7; }
.theme-accent-wizard-female { color: #6c5ce7; }
.theme-accent-warrior-male { color: #d63031; }
.theme-accent-warrior-female { color: #d63031; }
.theme-accent-explorer-male { color: #e17055; }
.theme-accent-explorer-female { color: #e17055; }
.theme-accent-fairy-male { color: #00b894; }
.theme-accent-fairy-female { color: #e84393; }
.theme-accent-sport-male { color: #27ae60; }
.theme-accent-sport-female { color: #27ae60; }
.theme-accent-manga-male { color: #e84393; }
.theme-accent-manga-female { 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: 28px 20px 12px;
    color: rgba(255,255,255,0.7);
}
.footer-top {
    display: flex; gap: 32px; align-items: flex-start;
}
.footer-brand-col { flex: 0 0 auto; min-width: 140px; }
.footer-links-grid {
    flex: 1; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem; font-weight: 700; color: #FFFFFF; margin-bottom: 4px;
}
.footer-brand-accent { color: var(--pd-coral); }
.footer-tagline {
    font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0;
}
.footer-heading {
    font-size: 0.75rem; font-weight: 600;
    color: rgba(255,255,255,0.9); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px; margin-top: 0;
}
.footer-link {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.82rem; transition: color 0.2s ease;
    display: block; padding: 2px 0;
}
.footer-link:hover { color: var(--pd-coral); }
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1); margin: 16px 0 8px;
}
.footer-bottom {
    font-size: 0.75rem; 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;
    margin-bottom: 32px;
}
.styled-card-body { padding: 32px; }

.styled-card-image {
    width: 100%; aspect-ratio: 4/3; 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);
}

/* ============================================
   Semantic HTML Heading Improvements
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--pd-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--pd-text);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--pd-text);
    margin-top: 32px;
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--pd-text);
    margin-top: 24px;
    margin-bottom: 12px;
}

h4, h5, h6 {
    font-size: 1.1rem;
    color: var(--pd-text);
    margin-bottom: 12px;
}

/* Footer navigation list style reset */
footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav li {
    margin-bottom: 8px;
}

/* Focus outlines handled globally at top of file */

/* Skip to main content link (for accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pd-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus-visible {
    top: 0;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Image lazy loading improvements */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enhance article cards for better semantic structure */
article {
    display: block;
}

article h3 {
    margin-top: 0;
}

/* Section padding improvements */
section {
    position: relative;
}
.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;
}

/* ============================================
   Touch-Friendly Tap Targets (minimum 44x44px)
   ============================================ */
.mud-button,
.mud-icon-button,
.mud-fab,
.theme-card,
a.back-link {
    min-height: 44px;
    min-width: 44px;
}

/* Ensure clickable elements have proper spacing */
.mud-button-root {
    touch-action: manipulation;
}

/* Prevent text selection on buttons */
.mud-button,
.theme-card,
.payment-method-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Prevent Horizontal Overflow
   ============================================ */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure containers don't overflow */
.mud-container,
.mud-grid,
.hero-section,
.how-it-works-section,
.themes-section,
.stats-section,
.cta-section,
.footer-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Images shouldn't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* SVGs should scale properly */
svg {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive - Mobile First Design
   ============================================ */

/* Tablet Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Base font size adjustments */
    html, body {
        font-size: 15px;
    }

    /* Hero Section - Tablet */
    .hero-section {
        min-height: 75vh;
        padding: 60px 20px 80px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 20px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 32px;
        padding: 0 12px;
    }

    .hero-cta-button {
        font-size: 1rem !important;
        padding: 14px 40px !important;
    }

    .hero-trust-row {
        gap: 24px;
        margin-top: 32px;
    }

    .hero-trust-item {
        font-size: 0.85rem;
    }

    /* Floating thumbnails - smaller on tablet */
    .hero-float-img {
        width: 60px !important; height: 60px !important;
        opacity: 0.5;
    }

    /* Wave dividers */
    .wave-divider svg {
        height: 60px;
    }

    /* Stats bar - Tablet */
    .stats-bar {
        gap: 20px;
    }
    .stats-bar .stat-number {
        font-size: 1.2rem;
    }
    .stats-bar .stat-divider {
        height: 24px;
    }

    /* Section spacing - Tablet */
    .how-it-works-section,
    .themes-section,
    .stats-section,
    .cta-section {
        padding: 64px 20px;
    }

    .trust-section {
        padding: 40px 20px;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 48px;
    }

    /* Step cards */
    .step-card {
        padding: 32px 24px;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

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

    .step-title {
        font-size: 1.15rem;
    }

    .step-text {
        font-size: 0.9rem;
    }

    /* Theme cards - tablet */
    .theme-card-media {
        aspect-ratio: 3/4;
    }

    .theme-card-content {
        padding: 12px;
    }

    .theme-card-name {
        font-size: 0.95rem;
    }

    .theme-card-desc {
        font-size: 0.78rem;
    }

    .theme-card-button {
        padding: 7px 14px !important;
        font-size: 0.78rem !important;
    }

    /* Stats section */
    .stat-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    /* Trust items */
    .trust-item {
        padding: 12px;
    }

    .trust-icon-circle {
        width: 52px;
        height: 52px;
    }

    /* CTA Section */
    .cta-section {
        padding: 80px 20px;
    }

    .cta-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
        margin-bottom: 14px;
    }

    .cta-subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }

    .cta-button {
        font-size: 1.05rem !important;
        padding: 14px 40px !important;
    }

    /* Footer */
    .footer-section {
        padding: 40px 20px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-brand-col { text-align: center; width: 100%; }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        text-align: center;
        width: 100%;
    }

    .footer-brand {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .footer-tagline {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .footer-heading {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    /* Page header banner - Internal pages */
    .page-header-banner {
        padding: 40px 20px 48px;
    }

    .page-header-banner h1,
    .page-header-banner .page-header-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .page-header-banner .page-header-subtitle {
        font-size: 0.95rem;
    }

    /* Styled cards - Internal pages */
    .styled-card-body {
        padding: 24px;
    }

    .styled-card-image {
        aspect-ratio: 4/3;
    }

    /* Form elements */
    .mud-input-root,
    .mud-select,
    .mud-radio-group {
        font-size: 0.95rem;
    }

    /* Payment method cards */
    .payment-method-card {
        padding: 20px;
    }

    /* Order summary */
    .order-summary-card {
        padding: 20px;
    }
}

/* Mobile Phone Breakpoint (max-width: 480px) */
@media (max-width: 480px) {
    /* Base adjustments */
    html, body {
        font-size: 14px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: 65vh;
        padding: 50px 16px 70px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 28px;
        padding: 0 8px;
        line-height: 1.5;
    }

    .hero-cta-button {
        font-size: 0.95rem !important;
        padding: 12px 32px !important;
        width: 100% !important;
        max-width: 280px;
    }

    .hero-trust-row {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
    }

    .hero-trust-item {
        font-size: 0.75rem;
        gap: 4px;
    }

    /* Hide floating thumbnails on mobile */
    .hero-float-img {
        display: none;
    }

    /* Wave dividers - smaller */
    .wave-divider svg {
        height: 50px;
    }

    /* Stats bar - Mobile */
    .stats-bar .stat-divider {
        display: none;
    }
    .stats-bar {
        gap: 16px;
    }
    .stats-bar .stat-number {
        font-size: 1.1rem;
    }
    .stats-bar .stat-label {
        font-size: 0.75rem;
    }

    /* Section spacing - Mobile */
    .how-it-works-section,
    .themes-section,
    .stats-section {
        padding: 48px 16px;
    }

    .cta-section {
        padding: 64px 16px;
    }

    .trust-section {
        padding: 36px 16px;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
        line-height: 1.5;
    }

    /* Step cards */
    .step-card {
        padding: 28px 20px;
        margin-bottom: 16px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .step-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .step-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .step-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Theme cards - mobile (2 columns via xs=6) */
    .theme-card-media {
        aspect-ratio: 3/4;
    }

    .theme-card-content {
        padding: 10px;
    }

    .theme-card-name {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .theme-card-desc {
        font-size: 0.72rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .theme-card-button {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        min-height: 40px !important;
    }

    /* Stats section */
    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .stat-label {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    /* Trust items */
    .trust-item {
        padding: 10px;
        gap: 6px;
    }

    .trust-icon-circle {
        width: 48px;
        height: 48px;
    }

    /* CTA Section */
    .cta-section {
        padding: 64px 16px;
    }

    .cta-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 12px;
        line-height: 1.25;
    }

    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .cta-button {
        font-size: 0.95rem !important;
        padding: 12px 32px !important;
        width: 100% !important;
        max-width: 280px;
    }

    /* Footer - Compact mobile */
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-brand-col { text-align: center; width: 100%; }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        text-align: center;
    }
    .footer-section { padding: 20px 16px 12px; }
    .footer-brand { font-size: 1.2rem; }
    .footer-heading { font-size: 0.7rem; margin-bottom: 6px; }
    .footer-link { font-size: 0.78rem; padding: 2px 0; }
    .footer-divider { margin: 12px 0 6px; }
    .footer-bottom { font-size: 0.7rem; }

    /* AppBar - Mobile */
    .mud-appbar {
        min-height: 56px !important;
        padding: 0 12px !important;
    }

    .mud-appbar img {
        height: 40px !important;
    }

    .mud-icon-button {
        padding: 8px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    /* Main content padding adjustment */
    .mud-main-content {
        padding-top: 56px !important;
    }

    /* Page header banner - Mobile */
    .page-header-banner {
        padding: 28px 16px 36px;
        margin-bottom: -20px;
    }

    .page-header-banner h1,
    .page-header-banner .page-header-title {
        font-size: clamp(1.3rem, 6vw, 1.75rem);
        line-height: 1.3;
    }

    .page-header-banner .page-header-subtitle {
        font-size: 0.85rem;
        margin-top: 6px;
        line-height: 1.4;
    }

    /* Styled cards - Mobile */
    .styled-card {
        border-radius: 20px;
        margin: 0 4px;
    }

    .styled-card-body {
        padding: 20px 16px;
    }

    .styled-card-image {
        aspect-ratio: 4/3;
        border-radius: 12px;
    }

    /* Back link */
    .back-link {
        font-size: 0.85rem;
        padding: 6px 0;
        margin-bottom: 16px;
    }

    /* Form elements - Full width on mobile */
    .mud-input-root,
    .mud-select,
    .mud-textfield {
        font-size: 0.9rem;
    }

    .mud-input-label {
        font-size: 0.85rem;
    }

    .mud-button {
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }

    /* Radio buttons - Stack vertically */
    .mud-radio-group > div {
        flex-direction: column !important;
    }

    /* Product type selection */
    .mud-radio-group > div > div {
        margin-bottom: 12px;
        padding: 14px 16px !important;
    }

    /* File upload area */
    .mud-file-upload > div {
        padding: 24px 16px !important;
    }

    /* Payment method cards - Mobile */
    .payment-method-card {
        padding: 16px;
        min-height: 140px;
    }

    .payment-method-card h6 {
        font-size: 0.95rem;
    }

    .payment-method-card .mud-typography-body2 {
        font-size: 0.75rem;
    }

    /* Order summary card - Mobile */
    .order-summary-card {
        padding: 16px;
    }

    .order-summary-card .mud-typography-body1 {
        font-size: 0.85rem;
    }

    .order-summary-card .mud-typography-h6 {
        font-size: 1rem;
    }

    .order-summary-card .mud-typography-h5 {
        font-size: 1.2rem;
    }

    /* Trust badges - Mobile */
    .trust-badge {
        padding: 10px 8px;
        gap: 4px;
    }

    .trust-badge-icon {
        width: 36px;
        height: 36px;
    }

    .trust-badge .mud-typography-caption {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Section divider */
    .section-divider {
        margin: 20px 0;
    }

    /* Success container */
    .success-container {
        padding: 36px 20px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .success-icon svg,
    .success-icon .mud-icon-root {
        font-size: 40px !important;
    }

    /* Timeline section */
    .timeline-section {
        padding: 20px 16px;
    }

    .mud-timeline .mud-typography {
        font-size: 0.85rem;
    }

    /* Fix MudGrid negative margin causing asymmetric offset on mobile */
    .mud-grid {
        width: 100% !important;
        margin: 0 !important;
    }

    .mud-grid > .mud-grid-item {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .mud-grid-spacing-xs-2 > .mud-grid-item {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Center cards on mobile */
    .theme-card,
    .styled-card,
    .step-card {
        margin-left: auto;
        margin-right: auto;
    }

    /* Container padding override */
    .mud-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Fix page wrapper inline padding (24px too wide on mobile) */
    div[style*="padding: 0 24px"],
    div[style*="padding:0 24px"],
    div[style*="padding: 48px 24px"],
    div[style*="padding:48px 24px"],
    section[style*="padding:48px 24px"],
    section[style*="padding:40px 24px"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Button groups - Stack on mobile */
    .mud-button-group {
        flex-direction: column;
        gap: 12px;
    }

    /* Chips */
    .mud-chip {
        font-size: 0.75rem;
    }

    /* Table responsive */
    .mud-table-dense td,
    .mud-table-dense th {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* Extra small mobile (max-width: 360px) */
@media (max-width: 360px) {
    html, body {
        font-size: 13px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

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

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

    .theme-card-media {
        aspect-ratio: 3/4;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

/* ========== Rainbow Progress Bar ========== */
.rainbow-progress-container {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    overflow: hidden;
    position: relative;
}

.rainbow-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #FF6B6B, #FFE66D, #4ECDC4, #667eea, #764ba2, #FF6B6B
    );
    background-size: 200% 100%;
    animation: rainbow-slide 2s linear infinite;
    width: 100%;
}

@keyframes rainbow-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ========== Lightbox ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-image {
    width: auto;
    height: 85vh;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    touch-action: pinch-zoom;
}

/* ============================================
   Mobile Responsive Fixes (Feb 2026)
   Target: 375px (iPhone SE) and up
   ============================================ */

/* --- Cart: Discount promotion cards --- */
@media (max-width: 480px) {
    /* Discount promo cards: stack vertically on small screens */
    .styled-card [style*="display: flex"][style*="gap: 16px"] {
        flex-direction: column !important;
    }

    /* Cart item row: allow wrapping for tight spaces */
    .styled-card-body [style*="display: flex"][style*="align-items: center"][style*="gap: 16px"] {
        gap: 10px !important;
    }

    /* Cart item image: slightly smaller on mobile */
    .styled-card-body img[style*="width: 80px"] {
        width: 64px !important;
        height: 64px !important;
    }

    /* Cart action buttons: stack vertically */
    div[style*="display: flex"][style*="gap: 16px"][style*="flex-wrap: wrap"] > .mud-button-root {
        min-width: 100% !important;
        flex: unset !important;
    }

    /* CreateOrder: product type chips - ensure wrapping and touch targets */
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 8px"] > div[style*="cursor: pointer"][style*="padding: 10px 16px"] {
        min-height: 44px;
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        text-align: center;
    }

    /* Theme gallery CTA: full width */
    .theme-gallery-cta .hero-cta-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Lightbox: more space on mobile */
    .lightbox-overlay {
        padding: 8px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 4px;
    }

    /* Navbar logo: smaller on mobile */
    .navbar-logo-text {
        font-size: 1.2rem;
    }

    /* MudDrawer: ensure full height and proper width */
    .mud-drawer {
        max-width: 85vw;
    }

    /* Footer: no MudGrid used anymore */

    /* Checkout: order summary items tighter */
    .order-summary-card > div[style*="display: flex"] {
        gap: 8px !important;
    }

    /* CreateOrder: crop dialog more mobile-friendly */
    div[style*="position: fixed"][style*="z-index: 9999"] > div[style*="background: white"] {
        max-width: 95vw !important;
        margin: 0 auto;
    }

    /* Prevent inline flex containers from overflowing */
    .styled-card-body > div[style*="display: flex"] {
        max-width: 100%;
    }

    /* CreateOrder: action buttons (Regenerate/New Photo/Discard) */
    div[style*="display: flex"][style*="gap: 8px"][style*="flex-wrap: wrap"] .mud-button-root {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
    }

    /* Ensure MudAppBar cart badge doesn't overflow */
    .mud-appbar .mud-badge-root {
        margin-right: 4px !important;
    }

    /* CreateOrder: product info box - stack price below name */
    div[style*="padding: 20px"][style*="border-radius: 16px"][style*="border: 1px solid"] > div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 4px !important;
    }

    /* Checkout: payment method cards - full width stacking handled by xs=12 */
    .payment-method-card {
        min-height: unset !important;
        padding: 16px !important;
    }

    /* Hero section: ensure CTA is not clipped */
    .hero-cta-button {
        white-space: nowrap;
    }
}

/* --- Cart-specific mobile fixes --- */
@media (max-width: 480px) {
    .cart-discount-row {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .cart-discount-row > div {
        min-width: 0 !important;
        padding: 10px 8px !important;
    }

    .cart-discount-row .mud-typography-body2 {
        font-size: 0.7rem !important;
    }

    .cart-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .cart-actions .mud-button-root {
        width: 100% !important;
        min-width: 0 !important;
        flex: unset !important;
    }
}

/* --- Extra small screens (360px and below) --- */
@media (max-width: 360px) {
    .navbar-logo-text {
        font-size: 1.1rem;
    }

    /* Product type chips: single column */
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 8px"] > div[style*="cursor: pointer"][style*="padding: 10px 16px"] {
        flex: 1 1 100%;
    }

    /* Cart discount cards: smaller text */
    .styled-card [style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }
}

/* ========== VIDEO CAROUSEL ========== */
.video-carousel-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0 12px;
    text-align: center;
}
.video-carousel {
    width: 200px;
    margin: 0 auto;
}
.video-carousel-track {
    position: relative;
    width: 200px;
    height: 267px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
video.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 267px;
    object-fit: cover;
    display: none;
    border-radius: 12px;
}
video.video-slide.active {
    display: block;
}
.video-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.video-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.video-dot.active {
    background: var(--pd-coral);
    transform: scale(1.3);
}
@media (min-width: 600px) {
    .video-carousel { width: 220px; }
    .video-carousel-track, video.video-slide { width: 220px; height: 293px; }
}
@media (min-width: 960px) {
    .video-carousel { width: 240px; }
    .video-carousel-track, video.video-slide { width: 240px; height: 320px; }
}
