/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #212121;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 900px;
}

/* Top Banner */
.top-banner {
    background: #e0f2fe;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #075985;
    border-bottom: 1px solid #bae6fd;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    max-width: 100%;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #424242;
    background: none;
    border: none;
    border-radius: 4px;
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0,0,0,0.04);
}

.nav-link.active {
    color: #0ea5e9;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 50%;
    color: #616161;
    transition: background-color 0.15s;
}

.icon-btn:hover {
    background: rgba(0,0,0,0.04);
}

.btn-signup {
    padding: 8px 24px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-signup:hover {
    background: #ea580c;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* Featured Carousel */
.carousel-section {
    padding: 40px 0 50px;
    background: #f8f9fa;
    overflow: hidden;
}

.carousel-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 32px;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 400px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.carousel-slide img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
    left: -10px;
}

.carousel-btn-next {
    right: -10px;
}

/* Cards Section */
.cards-section {
    padding: 48px 0;
    background: #fafafa;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    background: #fff;
    cursor: pointer;
}

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

.card img {
    width: 100%;
    aspect-ratio: 5/7;
    object-fit: cover;
}

.card.featured {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 0;
    background: #ff9800;
    color: #fff;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

/* Promo Section */
.promo-section {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    padding: 80px 24px;
    margin: 60px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-text-side {
    color: #fff;
}

.promo-label {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.promo-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.promo-subtitle {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
}

.btn-see-more {
    display: inline-block;
    text-decoration: none;
    padding: 14px 36px;
    background: #fff;
    color: #f97316;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-see-more:hover {
    transform: scale(1.05);
}

.promo-image-side img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: #fff;
}

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

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

.category-box {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: #fff;
    transition: transform 0.25s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-box:hover {
    transform: translateY(-8px);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 28px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #424242;
    margin-bottom: 24px;
}

/* Footer Categories */
/* Footer */
.footer {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    padding: 60px 0 24px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 280px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: block;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.7;
    margin: 0;
}

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

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

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

.language-select option {
    background: #0891b2;
    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: #0ea5e9;
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-title {
        font-size: 56px;
    }

    .promo-subtitle {
        font-size: 28px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: -0.5px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 1.2;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .promo-section {
        padding: 60px 16px;
    }

    .promo-title {
        font-size: 48px;
    }

    .promo-subtitle {
        font-size: 24px;
    }

    .section-heading {
        font-size: 28px;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .carousel-section {
        padding: 30px 0 40px;
    }

    .carousel-slide {
        width: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 0;
    }

    .carousel-btn-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 24px 16px;
    }

    .joke-detail-section {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.2;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .promo-title {
        font-size: 36px;
    }

    .promo-subtitle {
        font-size: 20px;
    }

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

    .carousel-section {
        padding: 20px 0 30px;
    }

    .carousel {
        padding: 0 16px;
    }

    .carousel-slide {
        width: 280px;
    }

    .carousel-slide img {
        border-radius: 8px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        display: none;
    }

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

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

    .footer {
        padding: 40px 0 24px;
    }
}
/* 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;
}

.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: #0ea5e9;
}

.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: 32px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 40px;
}

.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;
    gap: 48px;
    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: linear-gradient(to bottom, #0ea5e9 0%, #e5e7eb 100%);
}

.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: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    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: 28px;
    font-weight: 800;
    color: #212121;
    margin-bottom: 12px;
}

.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: #0ea5e9;
    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 {
    padding-right: 65px;
    resize: none;
    min-height: 140px;
    line-height: 1.6;
}

.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: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 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(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: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.modal-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    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: #0ea5e9;
    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, #0ea5e9 0%, #06b6d4 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(14, 165, 233, 0.3);
}

.btn-share-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 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: 18px;
}

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

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #0ea5e9;
    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: 120px;
        padding-right: 60px;
    }

    .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: 110px;
        padding-right: 56px;
    }

    .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: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
    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: #0ea5e9;
}

.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: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    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: #0ea5e9;
}

/* 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: #0ea5e9;
    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: #0ea5e9;
    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;
}
