/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f0f4f5;
    min-height: 100vh;
    color: #222;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ─── Navbar ─── */
.app-nav {
    background: #edf9fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 55px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-nav img.logo {
    height: 26px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}


/* ─── Page wrapper ─── */
.page {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* ─── Hero ─── */
.hero {
    background: #edf9fb;
    padding: 24px 16px 28px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 6px;
}

@media (max-width: 767px) {
    .hero h1 { max-width: 280px; }
}

.hero p {
    font-size: 14px;
    color: #888;
    margin-bottom: 0;
}

/* ─── Tab bar ─── */
.tab-bar {
    background: #edf9fb;
    padding: 8px 12px 10px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
    white-space: nowrap;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    background: #fff;
    border: none;
    line-height: 1.4;
}

.tab-btn.active {
    background: #14738c;
    color: #fff;
}

/* ─── Card list ─── */
.card-list {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.joke-card {
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    min-height: 84px;
}

.joke-card .thumb {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    background: #dce8ea;
}

.card-info {
    flex: 1;
    padding: 10px 10px 10px 12px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}

.badge-media {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #14738c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.badge-media .icon { font-size: 8px; }

/* ─── How it works ─── */
.how-it-works {
    background: #fff;
    padding: 32px 16px;
    margin-top: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #14738c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
}

.step-text p {
    font-size: 13px;
    color: #888;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ─── Categories ─── */
.categories-section {
    padding: 28px 16px;
    background: #edf9fb;
    margin-top: 24px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.category-chip {
    background: #fff;
    border: 1.5px solid #c8e8ee;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #14738c;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.category-chip:hover {
    background: #14738c;
    color: #fff;
}

/* ─── CTA banner ─── */
.cta-banner {
    background: #14738c;
    padding: 32px 16px;
    text-align: center;
    margin-top: 24px;
}

.cta-banner h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cta-banner p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #14738c;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
}


/* ─── Footer ─── */
.app-footer {
    background: #111c1f;
    padding: 40px 16px 0;
    margin-top: 24px;
    color: #fff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
    height: 20px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 260px;
    margin: 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px 16px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    margin: 0;
}

/* Language Selector */
.language-select {
    width: 100%;
    max-width: 220px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-select:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.language-select:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.language-select option {
    background: #007ca5;
    color: #fff;
    padding: 8px;
}

/* Mobile Sidebar */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.mobile-sidebar.active {
    display: block;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    padding: 24px;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 32px;
    color: #616161;
    line-height: 1;
}

.sidebar-menu {
    margin-top: 60px;
}

.sidebar-menu h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #212121;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 16px;
}

.sidebar-menu a {
    color: #424242;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-menu a:hover {
    color: #007ca5;
}

/* Responsive */
/* ─── Tablet ≥ 768px ─── */
@media (min-width: 768px) {
    .app-nav { padding: 0 32px; height: 64px; }
    .app-nav img.logo { height: 32px; }

    .hero { padding: 32px 32px 36px; }
    .hero h1 { font-size: 32px; margin-bottom: 8px; }
    .hero p { font-size: 15px; }

    .tab-bar { padding: 10px 28px 12px; gap: 6px; overflow-x: visible; }
    .tab-btn { font-size: 14px; padding: 6px 18px; }

    .card-list { padding: 20px 28px; grid-template-columns: 1fr 1fr; gap: 14px; }
    .joke-card { min-height: 96px; }
    .joke-card .thumb { width: 110px; height: 88px; }
    .card-title { font-size: 16px; }

    .how-it-works { padding: 40px 32px; }
    .section-title { font-size: 22px; text-align: left; }
    .steps { flex-direction: row; gap: 24px; }

    .categories-section { padding: 36px 32px; }
    .cta-banner { padding: 48px 32px; }
    .cta-banner h2 { font-size: 26px; }
    .cta-banner p { font-size: 15px; }

    .app-footer { padding: 36px 32px 24px; }
    .footer-top { flex-direction: row; align-items: flex-start; gap: 48px; }
    .footer-brand { flex: 0 0 240px; }
    .footer-cols { flex: 1; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
}

/* ─── Desktop ≥ 1024px ─── */
@media (min-width: 1024px) {
    .app-nav { padding: 0 48px; }

    .hero { padding: 48px 48px 52px; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; }

    .tab-bar { padding: 12px 44px 14px; gap: 8px; }
    .tab-btn { font-size: 15px; padding: 7px 22px; }

    .card-list { padding: 24px 44px; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
    .joke-card { min-height: 110px; }
    .joke-card .thumb { width: 125px; height: 100px; }
    .card-title { font-size: 17px; }

    .how-it-works { padding: 56px 48px; }
    .section-title { font-size: 26px; }

    .categories-section { padding: 48px 48px; }
    .cta-banner { padding: 64px 48px; }
    .cta-banner h2 { font-size: 32px; }

    .app-footer { padding: 56px 48px 0; }
}

/* ─── Wide ≥ 1280px ─── */
@media (min-width: 1280px) {
    .hero { padding: 56px 56px 60px; }
    .tab-bar { padding: 12px 52px 14px; }
    .card-list { padding: 28px 52px; }
    .how-it-works { padding: 64px 56px; }
    .categories-section { padding: 56px 56px; }
    .cta-banner { padding: 72px 56px; }
    .app-footer { padding: 64px 56px 0; }
}

/* Audio Joke Detail Page Styles */

/* Joke Detail Section */
.joke-detail-section {
    padding: 60px 0;
    background: #fff;
}

.joke-detail-section .container.narrow {
    max-width: 1200px;
}

.joke-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Joke Media */
.joke-media {
    width: 100%;
}

.joke-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #000;
}

.joke-video-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 2;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.play-button svg {
    width: 40px;
    height: 40px;
    margin-left: 4px;
}

/* Joke Info */
.joke-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.joke-title {
    font-size: 42px;
    font-weight: 800;
    color: #212121;
    line-height: 1.2;
    margin: 0;
}

.joke-description {
    font-size: 18px;
    line-height: 1.7;
    color: #424242;
    margin: 0;
}

/* Joke Meta */
.joke-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.joke-tag {
    padding: 8px 16px;
    background: #e0f2fe;
    color: #075985;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Personalize Button */
.btn-personalize {
    padding: 16px 40px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    align-self: flex-start;
    text-decoration: none;
}

.btn-personalize:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.btn-personalize svg {
    width: 24px;
    height: 24px;
}

/* Features */
.joke-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #424242;
}

.feature-item svg {
    flex-shrink: 0;
    color: #007ca5;
}

.feature-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Recommended Section */
.recommended-section {
    padding: 60px 0;
    background: #fafafa;
}

.recommended-section .section-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 24px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .joke-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .joke-detail-section {
        padding: 40px 0;
    }

    .joke-detail {
        gap: 24px;
    }

    .joke-info {
        gap: 16px;
    }

    .joke-title {
        font-size: 32px;
    }

    .joke-description {
        font-size: 16px;
    }

    .play-button {
        width: 64px;
        height: 64px;
    }

    .play-button svg {
        width: 32px;
        height: 32px;
    }

    .btn-personalize {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
    }

    .joke-features {
        padding: 16px;
        gap: 12px;
    }

    .recommended-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .joke-detail {
        gap: 20px;
    }

    .joke-info {
        gap: 12px;
    }

    .joke-title {
        font-size: 28px;
    }

    .joke-description {
        font-size: 15px;
    }

    .joke-meta {
        gap: 8px;
    }

    .joke-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-button svg {
        width: 28px;
        height: 28px;
    }

    .feature-item {
        font-size: 14px;
    }

    .feature-item svg {
        width: 20px;
        height: 20px;
    }

    .joke-features {
        padding: 12px;
        gap: 10px;
    }
}

/* Personalization Page Styles */
/* Personalize Section */
.personalize-section {
    padding: 40px 0 80px;
    background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
    min-height: calc(100vh - 200px);
}

/* Wizard Container - Two Column Layout */
.wizard-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    column-gap: 48px;
    row-gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Sidebar */
.wizard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.joke-preview {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    position: relative;
}

.joke-preview img {
    width: 100%;
    display: block;
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
}

/* Wizard Progress - Vertical */
.wizard-progress {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.progress-step:last-child {
    padding-bottom: 0;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.progress-step.completed::after {
    background: #007ca5;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: #007ca5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.progress-step.completed .step-number {
    background: #10b981;
    color: #fff;
}

.progress-step.completed {
    cursor: pointer;
}

.progress-step.completed:hover .step-number {
    transform: scale(1.05);
}

.step-info {
    flex: 1;
    padding-top: 2px;
}

.step-label {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
}

.progress-step:not(.active):not(.completed) .step-label {
    color: #9ca3af;
}

.step-desc {
    font-size: 13px;
    color: #9ca3af;
}

/* Right Content Area */
.wizard-content {
    background: #fff;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    min-height: 500px;
}

.personalize-form {
    height: 100%;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

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

.step-header {
    margin-bottom: 0;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
}

.step-description {
    font-size: 16px;
    color: #616161;
    line-height: 1.6;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.input-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.25s ease;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-input:hover {
    border-color: #d1d5db;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #007ca5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.textarea-container {
    position: relative;
    flex: 1;
}

.textarea-container textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.6;
}

.roast-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.roast-pill {
    background: #f0f4ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #4338ca;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

@media (max-width: 480px) {
    .roast-pills {
        gap: 6px;
        margin-top: 8px;
    }
    .roast-pill {
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 16px;
    }
}

.roast-pill:hover {
    background: #e0e7ff;
    border-color: #818cf8;
}

.roast-pill.active {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.dice-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-icon:hover {
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.dice-icon:active {
    transform: rotate(180deg) scale(1.0);
}

/* Buttons */
.btn-next {
    width: 100%;
    padding: 16px 24px;
    background: #007ca5;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-generate-large {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-generate-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Save Access Modal */
.save-access-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

.save-access-modal.active {
    display: flex;
}

.modal-overlay {
    display: none;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalSlideUp 0.3s ease-out;
    margin: auto;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    color: #616161;
}

.modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #212121;
    margin-bottom: 8px;
}

.modal-description {
    font-size: 14px;
    color: #616161;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 11px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fafafa;
}

.modal-input:focus {
    outline: none;
    border-color: #007ca5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.modal-btn-primary {
    width: 100%;
    padding: 14px;
    background: #007ca5;
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: #9ca3af;
    font-size: 13px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.modal-btn-google {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #212121;
    border: 2px solid #e5e7eb;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn-google:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #616161;
    text-align: left;
    margin-top: 4px;
    cursor: pointer;
}

.modal-checkbox input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.modal-checkbox a {
    color: #007ca5;
    text-decoration: none;
}

.modal-checkbox a:hover {
    text-decoration: underline;
}

/* Generated Joke Page */
.generated-joke-section {
    padding: 60px 0;
    background: #fff;
}

.generated-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.generated-media {
    width: 100%;
}

.generated-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.generated-title {
    font-size: 36px;
    font-weight: 800;
    color: #212121;
    line-height: 1.2;
}

.generated-description {
    font-size: 18px;
    color: #616161;
    line-height: 1.6;
}

.btn-share-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-share-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-create-more {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-create-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

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

.share-modal-content {
    position: relative;
    background: #fff;
    padding: 36px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: modalSlideUp 0.3s ease-out;
}

.share-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    color: #616161;
}

.share-modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.share-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: #212121;
    margin-bottom: 28px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fafafa;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 600;
    color: #212121;
}

.share-option:hover {
    border-color: #e5e7eb;
    background: #fff;
    transform: translateY(-2px);
}

.share-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-option-icon svg {
    fill: #fff;
}

.link-copied-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #212121;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10002;
}

.link-copied-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Generating Popup */
.generating-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.generating-popup.active {
    display: flex;
}

.popup-content {
    background: #fff;
    padding: 36px 32px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.popup-animation {
    margin-bottom: 16px;
}

.popup-animation img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    margin: 0 auto;
}

.popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #212121;
    margin-bottom: 6px;
}

.popup-text {
    font-size: 14px;
    color: #616161;
    margin-bottom: 6px;
}

.popup-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 18px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #007ca5;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .wizard-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .wizard-progress {
        flex-direction: row;
        justify-content: space-around;
    }

    .progress-step {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
        padding-right: 24px;
    }

    .progress-step:last-child {
        padding-right: 0;
    }

    .progress-step::after {
        display: none;
    }

    .step-info {
        text-align: center;
    }

    .wizard-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .personalize-section {
        padding: 20px 0;
    }

    .wizard-container {
        gap: 0;
    }

    .wizard-sidebar {
        grid-template-columns: 1fr;
    }

    .wizard-content {
        padding: 20px;
        min-height: auto;
    }

    .step-title {
        font-size: 22px;
    }

    .step-description {
        font-size: 15px;
    }

    .step-header {
        margin-bottom: 0;
    }

    .wizard-step.active {
        gap: 16px;
    }

    .form-input {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 12px;
    }

    .textarea-container textarea {
        min-height: 70px;
    }

    .dice-icon {
        width: 42px;
        height: 42px;
        top: 14px;
        right: 14px;
    }

    .btn-generate-large {
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 0;
    }

    .btn-next {
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 0;
    }

    .wizard-progress {
        padding: 20px;
        gap: 0;
    }

    .progress-step {
        padding-right: 16px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .step-info {
        display: none;
    }

    .modal-content {
        padding: 28px 20px;
        max-width: calc(100% - 32px);
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .modal-icon {
        font-size: 42px;
        margin-bottom: 10px;
    }

    .modal-title {
        font-size: 21px;
    }

    .modal-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .modal-input {
        padding: 13px 15px;
        font-size: 15px;
    }

    .modal-btn-primary,
    .modal-btn-google {
        padding: 13px;
        font-size: 15px;
    }

    .modal-checkbox {
        font-size: 11px;
    }

    .popup-content {
        padding: 28px 24px;
        margin: 0 20px;
    }

    .popup-animation img {
        width: 130px;
        height: 130px;
    }

    .popup-title {
        font-size: 19px;
    }

    .popup-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .personalize-section {
        padding: 16px 0;
    }

    .personalize-section .container {
        padding: 0 16px;
    }

    .wizard-content {
        padding: 0 18px 18px;
    }

    .step-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .step-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .step-header {
        margin-bottom: 0;
    }

    .wizard-step.active {
        gap: 12px;
    }

    .form-input {
        padding: 15px 16px;
        font-size: 16px;
        border-radius: 11px;
    }

    .textarea-container textarea {
        min-height: 65px;
    }

    .dice-icon {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
        font-size: 20px;
    }

    .wizard-progress {
        padding: 0;
    }

    .progress-step {
        flex: 1;
        padding-right: 8px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .step-info {
        display: none;
    }

    .modal-content {
        padding: 24px 18px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .modal-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }

    .modal-title {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .modal-description {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .modal-form {
        gap: 8px;
    }

    .modal-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .modal-btn-primary,
    .modal-btn-google {
        padding: 12px;
        font-size: 14px;
    }

    .modal-divider {
        margin: 2px 0;
        font-size: 12px;
    }

    .modal-checkbox {
        font-size: 11px;
        gap: 6px;
    }

    .generated-joke-section {
        padding: 40px 0;
    }

    .generated-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .generated-title {
        font-size: 28px;
    }

    .generated-description {
        font-size: 16px;
    }

    .btn-share-primary {
        padding: 15px 20px;
        font-size: 16px;
    }

    .btn-create-more {
        padding: 15px;
        font-size: 15px;
    }

    .share-modal-content {
        padding: 32px 24px;
    }

    .share-modal-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .share-options {
        gap: 12px;
    }

    .share-option {
        padding: 20px 12px;
        font-size: 14px;
    }

    .share-option-icon {
        width: 50px;
        height: 50px;
    }

    .joke-preview {
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
    }

    .joke-preview::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: blur(25px) brightness(0.9);
        transform: scale(1.1);
        z-index: 0;
    }

    .joke-preview img {
        position: relative;
        z-index: 1;
        width: auto;
        height: 75%;
        max-width: 75%;
        object-fit: contain;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        border-radius: 8px;
    }

    .preview-label {
        z-index: 2;
        font-size: 14px;
        padding: 16px;
    }

    .form-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .personalize-form {
        padding: 20px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 15px;
        margin-bottom: 14px;
    }

    .dice-icon {
        font-size: 22px;
        width: 34px;
        height: 34px;
    }

    .btn-generate-large {
        padding: 14px;
        font-size: 15px;
    }

    .popup-content {
        padding: 24px 20px;
        margin: 0 16px;
    }

    .popup-animation img {
        width: 110px;
        height: 110px;
    }

    .popup-title {
        font-size: 18px;
    }

    .popup-text {
        font-size: 13px;
    }
}

/* Generation Progress Bar */
.gen-bar-wrap {
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
}

.gen-bar-fill {
    height: 100%;
    background: #007ca5;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Right Sidebar Styles */
.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.avatar-btn:hover {
    transform: scale(1.1);
}

.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    z-index: 1000;
    pointer-events: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-right.active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-right-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    pointer-events: all;
}

.sidebar-right.active {
    pointer-events: all;
}

.sidebar-right.active .sidebar-right-content {
    transform: translateX(0);
}

.sidebar-right .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #424242;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: #e5e7eb;
}

.sidebar-right .sidebar-nav {
    padding: 16px;
}

.sidebar-right .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #424242;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
}

.sidebar-right .nav-item:hover {
    background: #f3f4f6;
}

.sidebar-right .nav-item.active {
    background: #e0f2fe;
    color: #007ca5;
}

.sidebar-right .nav-icon {
    width: 20px;
    height: 20px;
}

.supporter-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: transform 0.2s;
}

.supporter-badge:hover {
    transform: translateY(-2px);
}

.supporter-icon {
    width: 20px;
    height: 20px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px;
    padding: 16px;
    background: #007ca5;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transition: transform 0.2s;
}

.credits-badge:hover {
    transform: translateY(-2px);
}

.credits-icon {
    width: 32px;
    height: 32px;
}

.credits-display {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.credits-amount {
    font-size: 16px;
    font-weight: 700;
}

.credits-label {
    font-size: 11px;
    opacity: 0.9;
}

.credits-plus {
    font-size: 24px;
    font-weight: 300;
}

.sidebar-right .sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.sidebar-right .footer-link {
    display: block;
    padding: 8px 0;
    color: #616161;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sidebar-right .footer-link:hover {
    color: #007ca5;
}

/* Topup Modal Styles */
.minutes-modal {
    max-width: 400px;
}

.minutes-modal-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    margin: -1.5rem -1.5rem 0;
}

.modal-minutes-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #22c55e;
}

.minutes-balance {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.minutes-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22c55e;
    line-height: 1;
}

.minutes-modal-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #616161;
    opacity: 0.7;
}

.minutes-modal-body {
    padding: 1.2rem 0 0;
}

.minutes-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #616161;
    margin-bottom: 1.2rem;
}

.topup-form {
    margin-top: 0.5rem;
}

.topup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topup-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.topup-btn svg {
    width: 18px;
    height: 18px;
}

.topup-amount-selector {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.topup-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topup-preset {
    padding: 0.75rem 0.5rem;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #616161;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.topup-preset:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
    color: #212121;
    transform: translateY(-1px);
}

.topup-preset-selected {
    background: rgba(14, 165, 233, 0.2);
    border-color: #007ca5;
    color: #212121;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

.topup-credits-info {
    text-align: center;
    color: #616161;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 8px;
}

.topup-credits-info strong {
    color: #007ca5;
    font-size: 1rem;
}

@media (max-width: 400px) {
    .topup-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Topup Modal z-index */
#topupModal {
    z-index: 10003 !important;
}

#topupModal .modal-overlay {
    z-index: 10003 !important;
}

#topupModal .modal-content {
    z-index: 10004 !important;
}

/* Login Modal z-index */
#loginModal {
    z-index: 10003 !important;
}

/* Fix modal overlays to display */
#topupModal .modal-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10003;
}

#topupModal .modal-content {
    position: relative;
    z-index: 10004;
}
