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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    /* Colore profondo scuro cyberpunk ispirato al logo */
    background-color: #050811;
    background-image: radial-gradient(circle at top center, rgba(0, 162, 232, 0.15) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    color: #fff;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 460px;
    width: 100%;
}

.subtitle {
    color: rgba(0, 162, 232, 0.8);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 162, 232, 0.2);
}

.status-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 162, 232, 0.2);
    border-radius: 12px;
    padding: 0.6rem;
    margin-bottom: 0.75rem;
    min-height: auto;
    backdrop-filter: blur(8px);
}

.status-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
.status-text.loading { color: #fbbf24; }
.status-text.connected { color: #34d399; }
.status-text.error { color: #f87171; }

.pi-btn {
    background: linear-gradient(135deg, #00a2e8, #6d28d9);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 162, 232, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}
.pi-btn:hover:not(:disabled) {
    box-shadow: 0 0 35px rgba(0, 162, 232, 0.7);
    transform: scale(1.02);
}
.pi-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.user-card {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}
.user-card.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.user-uid {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
    font-family: monospace;
    margin-bottom: 0.5rem;
}
.user-scopes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.scope-tag {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #c084fc;
}
.logout-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}
.logout-btn:hover {
    border-color: #f87171;
    color: #f87171;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.payment-section {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}
.payment-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.payment-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}
.payment-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 2rem !important;
}
.payment-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}
.payment-status {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    min-height: 24px;
    color: rgba(255, 255, 255, 0.7);
}
.payment-status.success { color: #34d399; }
.payment-status.error { color: #f87171; }
.payment-status.info { color: #60a5fa; }
.tx-link {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    color: #60a5fa;
    text-decoration: none;
    word-break: break-all;
    font-family: monospace;
}
.tx-link:hover {
    background: rgba(96, 165, 250, 0.3);
}

/* ============================================================
   STILE LOGO, TITOLI E NEON (Stile CyaN PRO)
   ============================================================ */
#view-landing {
    width: 100%;
}
.landing-hero {
    margin-bottom: 2rem;
}

.logo-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
}

.app-logo-video {
    width: 85%;
    max-width: 320px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 0 35px rgba(0, 162, 232, 0.4), inset 0 0 15px rgba(0, 162, 232, 0.2);
    background-color: #000;
}

.cyan-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 162, 232, 0.6);
    margin-bottom: 0.2rem;
}

.cyan-title span {
    background: linear-gradient(135deg, #00a2e8, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   EFFETTI DI COMPARSA ALTERNATI (Sinistra / Destra) & GLOW
   ============================================================ */
.showcase-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.cyan-showcase {
    display: flex;
    flex-direction: row !important;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    margin: 0 -1.25rem;
    scrollbar-width: none;
    perspective: 1000px;
}
.cyan-showcase::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    flex: 0 0 84%;
    scroll-snap-align: center;
    background: rgba(5, 12, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    box-sizing: border-box;
    text-align: left;
    
    /* Smooth scaling and opacity transitions */
    opacity: 0.45;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.showcase-item.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 162, 232, 0.45);
    box-shadow: 0 12px 35px rgba(0, 162, 232, 0.18);
}

.showcase-item:hover {
    border-color: rgba(0, 162, 232, 0.6);
    box-shadow: 0 15px 40px rgba(0, 162, 232, 0.25);
    transform: scale(1.02) !important;
}

/* Dots indicator at the bottom */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dots .dot.active {
    background: #00a2e8;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0, 162, 232, 0.6);
}

/* --- EFFETTO GLOW SUI TITOLI --- */

/* Glow Cyan standard per i primi 4 tool */
.showcase-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    /* Effetto luce soffusa azzurra */
    text-shadow: 0 0 10px rgba(0, 162, 232, 0.6), 
                 0 0 20px rgba(0, 162, 232, 0.3);
}

/* Glow Gold specifico per l'ultimo riquadro (Pi Network) */
.info-pi h3 {
    color: #fbbf24 !important;
    /* Effetto luce soffusa oro/ambra */
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.6), 
                 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

/* ============================================================
   STICKY LOGIN BAR (Interfaccia fissa e pulita)
   ============================================================ */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: linear-gradient(to top, #050811 80%, transparent);
    padding: 1.5rem 1rem 1rem 1rem;
    z-index: 999;
}

.scroll-spacer {
    height: 180px;
}

/* ============================================================
   VIEW CONTAINER (dinamico)
   ============================================================ */
#view-dynamic {
    width: 100%;
    animation: fadeIn 0.3s ease;
}
.view-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.view-title {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.back-btn {
    margin-top: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}
.dashboard-header .user-avatar {
    margin: 0 auto 0.5rem;
}
.dashboard-header .user-name {
    font-size: 1.2rem;
}
.dashboard-header .user-uid {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}
.pioneers-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: #22d3ee;
    font-weight: 500;
    backdrop-filter: blur(5px);
}
.pioneers-icon {
    font-size: 0.9rem;
}
.pioneers-number {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}
.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.credits-icon {
    font-size: 1.1rem;
}
.credits-amount {
    font-weight: 600;
    color: #fbbf24;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.menu-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}
.menu-card-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.menu-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.menu-card-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 1.5s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   PACKAGE / PLANS
   ============================================================ */
.pi-price-badge {
    text-align: center;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #60a5fa;
}
.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.plan-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}
.plan-popular {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}
.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 1.2rem;
    border-radius: 0 0 10px 10px;
}
.plan-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.plan-popular .plan-emoji {
    margin-top: 1rem;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.plan-credits {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.2rem;
}
.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}
.plan-pi {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    font-family: monospace;
}
.plan-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}
.plan-buy-btn {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.5rem !important;
}
.plan-bought {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    cursor: default !important;
}
.view-footer-info {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* ============================================================
   TOOL (CharacterCard, InfluencerIA, Text2Img, Img2Video)
   ============================================================ */
.tool-description {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}
.tool-description p {
    margin-bottom: 0.5rem;
}
.cost-info {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.8rem !important;
}
.cost-info strong {
    color: #fbbf24;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
}
.tool-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}
.tool-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.tool-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.tool-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Tool output */
.tool-output {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    animation: fadeIn 0.4s ease;
}
.tool-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}
.tool-output-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
}
.tool-copy-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.tool-copy-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}
.tool-image-container {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.tool-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    gap: 0.75rem;
}
.tool-image-placeholder.error {
    color: #f87171;
}
.tool-image-result {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}
.tool-video-container {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.video-placeholder {
    text-align: center;
    padding: 2rem 1rem;
}
.video-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}
.video-placeholder-text {
    font-size: 1rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 0.5rem;
}
.video-placeholder-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}
.file-upload-area:hover,
.file-upload-dragover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
}
.file-input-hidden {
    display: none;
}
.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.file-upload-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}
.file-upload-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}
.file-preview {
    margin-top: 0.75rem;
}
.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: contain;
}

/* ============================================================
   STORICO GENERAZIONI
   ============================================================ */
.generations-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}
.generation-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.gen-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.gen-icon { font-size: 1.2rem; }
.gen-type {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: #8B5CF6;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}
.gen-date { margin-left: auto; }
.gen-output-scroll {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    margin-top: 0.5rem;
}
.gen-output-scroll::-webkit-scrollbar {
    width: 6px;
}
.gen-output-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.gen-output-scroll::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
}
.gen-input, .gen-output {
    font-size: 0.85rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
    font-family: monospace;
    line-height: 1.4;
}
.gen-output { color: #8B5CF6; }
.gen-preview {
    margin: 0.5rem 0;
    text-align: center;
}
.gen-thumb {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
}
.gen-thumb:hover {
    transform: scale(1.02);
}
.gen-output-text {
    font-size: 0.8rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
    word-break: break-word;
    line-height: 1.4;
    margin: 0.5rem 0;
}
.gen-download-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.gen-download-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}
.tool-video-result {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Aspect Ratio Selector */
.aspect-ratio-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.ar-option {
    flex: 1;
    cursor: pointer;
}
.ar-option input {
    display: none;
}
.ar-label {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}
.ar-option input:checked + .ar-label {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Duration Slider */
.duration-slider-container {
    padding: 0.5rem 0;
}
.tool-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.tool-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    transition: all 0.2s;
}
.tool-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.tool-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.duration-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
    padding: 0 0.25rem;
}
.cost-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-align: center;
}
.cost-detail strong {
    color: #fbbf24;
}

/* ============================================================
   FOOTER LINKS (Privacy & TOS)
   ============================================================ */
.footer-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: rgba(0, 162, 232, 0.8);
}
.footer-links .separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

/* ============================================================
   TEST PAY BOX
   ============================================================ */
.test-pay-box {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease;
}
.test-pay-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.test-pay-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 0.3rem;
}
.test-pay-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}
.test-pay-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    font-size: 1rem !important;
    padding: 0.8rem 2rem !important;
    max-width: 220px;
    margin: 0 auto;
}
.test-pay-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
}

/* ============================================================
   PLANS DISABLED
   ============================================================ */
.plans-disabled-banner {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.6rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}
.plans-disabled .plan-card {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.6);
}
.plans-disabled .plan-badge {
    opacity: 0.5;
}

/* ============================================================
   EARNINGS VIEW STYLES
   ============================================================ */
.earnings-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.earning-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(10px);
}
.earning-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.earning-card.highlight-card {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.05);
}
.earning-card.highlight-card:hover {
    border-color: rgba(251, 191, 36, 0.45);
}
.earning-card-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.earning-card-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.earning-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}
.highlight-card .earning-card-value {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.claim-request-box, .claims-history-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.claim-request-box h3, .claims-history-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border-left: 3px solid #fbbf24;
    padding-left: 10px;
}
.claim-info-p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.claim-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    transition: opacity 0.3s ease;
}
.claim-form input[type="number"] {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.claim-form input[type="number"]:focus {
    border-color: rgba(251, 191, 36, 0.5);
    outline: none;
}
.claim-form .pi-btn {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
}

.manual-wallet-box {
    background: rgba(239, 68, 68, 0.03) !important;
    border: 1px dashed rgba(239, 68, 68, 0.25) !important;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.manual-wallet-box input[type="text"] {
    transition: border-color 0.2s;
}
.manual-wallet-box input[type="text"]:focus {
    border-color: rgba(251, 191, 36, 0.5);
    outline: none;
}

.claims-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}
.claims-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.claims-table th {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.claims-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
}
.claims-table tr:last-child td {
    border-bottom: none;
}
.claims-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.badge-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================================
   WHAT'S NEW MODAL (GLASSMORPHIC & CYBERPUNK)
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 8, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
}

.whatsnew-modal-content {
    background: rgba(13, 13, 23, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(139, 92, 246, 0.15);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.modal-overlay.active .whatsnew-modal-content {
    transform: scale(1);
}

.whatsnew-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    padding: 0.2rem;
}

.whatsnew-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.whatsnew-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsnew-timeline {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Custom Scrollbar for timeline */
.whatsnew-timeline::-webkit-scrollbar {
    width: 6px;
}
.whatsnew-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}
.whatsnew-timeline::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}
.whatsnew-timeline::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.timeline-item {
    border-left: 2px solid rgba(139, 92, 246, 0.4);
    padding-left: 1.25rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8B5CF6;
    box-shadow: 0 0 10px #8B5CF6;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.timeline-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-bullets li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.whatsnew-ok-btn {
    width: 100%;
    padding: 0.85rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.2s !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
}

.whatsnew-ok-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-1px);
}

/* ============================================================
   SHOWCASE GROUPS & ROWS
   ============================================================ */
.showcase-groups-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.showcase-group {
    width: 100%;
    text-align: left;
}

.showcase-group-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
    background: linear-gradient(90deg, #00a2e8 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 162, 232, 0.15);
}

.showcase-group-title.gold-title {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.cyan-showcase-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    margin: 0 -1.25rem;
    scrollbar-width: none;
    perspective: 1000px;
}

.cyan-showcase-row::-webkit-scrollbar {
    display: none;
}

.cyan-showcase-row .showcase-item {
    flex: 0 0 84%;
}

.cyan-showcase-row .showcase-item:only-child {
    flex: 0 0 100%;
    scroll-snap-align: center;
}


