@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Pacifico&display=swap');

:root {
    --bg-color-main: #f8fafc; /* Slate 50 - Original Light Background */
    --bg-color-card: #ffffff; /* White Cards */
    --bg-color-card-hover: #f1f5f9; /* Slate 100 */
    --theme-primary: #7a5af8; /* Brand Purple */
    --theme-primary-gradient: linear-gradient(135deg, #7a5af8 0%, #5925dc 100%);
    --theme-green: #2563eb; /* Royal Blue */
    --theme-green-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    --border-color: #f1f5f9; /* Slate 100 */
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-logo: 'Pacifico', cursive;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color-main: #0f172a; /* Dark slate */
        --bg-color-card: #1e293b; /* Card dark */
        --bg-color-card-hover: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border-color: #334155;
    }
    
    body {
        background-color: #020617 !important;
    }

    /* Force dark background for specific panels/cards that have inline styles */
    .lang-selection-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    .lang-selection-card h3 {
        color: #f8fafc !important;
    }
    .lang-select-btn {
        background: #0f172a !important;
        border-color: #334155 !important;
        color: #f8fafc !important;
    }
    .settings-sub-panel {
        background-color: #0f172a !important;
    }
    .settings-sub-panel *, .settings-sub-panel button, .settings-sub-panel select {
        color: #f8fafc !important;
    }
    .settings-sub-panel select {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }
    
    /* Global element adjustments */
    .bottom-tab-bar {
        background-color: #0f172a !important;
        border-top: 1px solid #1e293b !important;
    }
    .tab-btn {
        color: #94a3b8 !important;
    }
    .tab-btn.active {
        color: #ffffff !important;
    }
    .app-header {
        background-color: #0f172a !important;
    }
    .editor-sheet {
        background-color: #0f172a !important;
        color: #f8fafc !important;
    }
    .editor-control-panel {
        background-color: #0f172a !important;
    }
    .settings-drawer {
        background-color: #0f172a !important;
        color: #f8fafc !important;
    }
    .settings-list-item {
        border-color: #1e293b !important;
    }
    .settings-list-item i, .settings-list-item .list-item-text {
        color: #f8fafc !important;
    }
    .vip-card-banner {
        border: 1px solid rgba(255,255,255,0.08) !important;
    }
    .input-prompt-textarea {
        background-color: #1e293b !important;
        color: #f8fafc !important;
        border-color: #334155 !important;
    }
    .tab-header {
        color: #f8fafc !important;
    }
    .discover-tab-btn {
        color: #94a3b8 !important;
    }
    .discover-tab-btn.active {
        color: #ffffff !important;
    }
    .modal-sheet {
        background-color: #0f172a !important;
        color: #f8fafc !important;
    }
    .modal-title, .modal-desc {
        color: #f8fafc !important;
    }

    /* Profile & Menu Adjustments in Media Dark Mode */
    .profile-header, .profile-menu-header {
        background-color: #0f172a !important;
        border-bottom: 1px solid #1e293b !important;
    }
    .profile-header-card, .profile-menu-sheet {
        background-color: #0f172a !important;
        color: #f8fafc !important;
    }
    .profile-username, .profile-stat-item .stat-num, .profile-menu-header * {
        color: #f8fafc !important;
    }
    .profile-bio, .profile-tab-btn {
        color: #cbd5e1 !important;
    }
    .profile-tab-btn.active {
        color: #ffffff !important;
    }
    .profile-stat-item .stat-label {
        color: #94a3b8 !important;
    }
    .profile-credit-badge {
        background-color: #1e293b !important;
        color: #ffffff !important;
    }
    .profile-icon-btn, .profile-menu-btn {
        color: #cbd5e1 !important;
    }
    .settings-list-item:active {
        background-color: #1e293b !important;
    }
}

/* Manual Dark Theme Override Class */
body.dark-theme {
    --bg-color-main: #0f172a;
    --bg-color-card: #1e293b;
    --bg-color-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    background-color: #020617 !important;
}

body.dark-theme .lang-selection-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .lang-selection-card h3 {
    color: #f8fafc !important;
}
body.dark-theme .lang-select-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel {
    background-color: #0f172a !important;
}
body.dark-theme .settings-sub-panel *, 
body.dark-theme .settings-sub-panel button, 
body.dark-theme .settings-sub-panel select {
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .bottom-nav {
    background: #0f172a !important;
    border-top: 1px solid #1e293b !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
}
body.dark-theme .bottom-nav-indicator {
    background: #0f172a !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2) !important;
}
body.dark-theme .bottom-nav-indicator::before {
    box-shadow: 4px 4px 0 4px #0f172a !important;
}
body.dark-theme .bottom-nav-indicator::after {
    box-shadow: -4px 4px 0 4px #0f172a !important;
}
body.dark-theme .bottom-nav .nav-item {
    color: #94a3b8 !important;
}
body.dark-theme .bottom-nav .nav-item.active {
    color: #ffffff !important;
}
body.dark-theme .bottom-nav .nav-item.active span {
    color: #ffffff !important;
}
body.dark-theme .app-header {
    background-color: #0f172a !important;
}
body.dark-theme .editor-sheet {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .editor-control-panel {
    background-color: #0f172a !important;
}
body.dark-theme .settings-drawer {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .settings-list-item {
    border-color: #1e293b !important;
}
body.dark-theme .settings-list-item i, 
body.dark-theme .settings-list-item .list-item-text {
    color: #f8fafc !important;
}
body.dark-theme .vip-card-banner {
    border: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark-theme .input-prompt-textarea {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.dark-theme .tab-header {
    color: #f8fafc !important;
}
body.dark-theme .discover-tab-btn {
    color: #94a3b8 !important;
}
body.dark-theme .discover-tab-btn.active {
    color: #ffffff !important;
}
body.dark-theme .modal-sheet {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .modal-title, 
body.dark-theme .modal-desc {
    color: #f8fafc !important;
}

body.dark-theme .profile-header, 
body.dark-theme .profile-menu-header {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-theme .profile-header-card, 
body.dark-theme .profile-menu-sheet {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .profile-username, 
body.dark-theme .profile-stat-item .stat-num, 
body.dark-theme .profile-menu-header * {
    color: #f8fafc !important;
}
body.dark-theme .profile-bio, 
body.dark-theme .profile-tab-btn {
    color: #cbd5e1 !important;
}
body.dark-theme .profile-tab-btn.active {
    color: #ffffff !important;
}
body.dark-theme .profile-stat-item .stat-label {
    color: #94a3b8 !important;
}
body.dark-theme .profile-credit-badge {
    background-color: #1e293b !important;
    color: #ffffff !important;
}
body.dark-theme .profile-icon-btn, 
body.dark-theme .profile-menu-btn {
    color: #cbd5e1 !important;
}
body.dark-theme .settings-list-item:active {
    background-color: #1e293b !important;
}

body.dark-theme .user-credits {
    color: #ffffff !important;
}
body.dark-theme .user-credits .credits-icon {
    color: #ffffff !important;
}

/* Dark theme overrides for wallet/credits sidebar and purchase modules */
body.dark-theme #wallet-view {
    background: #020617 !important;
    color: #f8fafc !important;
}
body.dark-theme #wallet-view .wallet-header .back-btn {
    color: #f8fafc !important;
}
body.dark-theme #wallet-view .total-credits-label {
    color: #cbd5e1 !important;
}
body.dark-theme #wallet-view .total-credits-num {
    color: #ffffff !important;
}
body.dark-theme #wallet-view .wallet-lightning-bg {
    color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-theme .reward-title {
    color: #f8fafc !important;
}
body.dark-theme .reward-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
body.dark-theme .reward-icon-badge {
    background-color: #0f172a !important;
}
body.dark-theme .reward-badge-text {
    color: #4ade80 !important;
}
body.dark-theme .reward-item-title {
    color: #f8fafc !important;
}
body.dark-theme .reward-item-date {
    color: #cbd5e1 !important;
}
body.dark-theme .reward-item-value {
    color: #3b82f6 !important;
}

/* Dark theme overrides for Login modal sheet */
body.dark-theme .login-modal-sheet {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .login-modal-header .welcome-text {
    color: #f8fafc !important;
}
body.dark-theme .login-modal-subtitle {
    color: #cbd5e1 !important;
}
body.dark-theme .login-modal-btn.guest-btn {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.dark-theme .login-modal-btn.guest-btn:hover {
    background-color: #334155 !important;
}
body.dark-theme .email-icon-wrapper {
    color: #f8fafc !important;
}
body.dark-theme .agreement-checkbox-label {
    color: #94a3b8 !important;
}
body.dark-theme .checkmark-modal-custom {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Dark theme overrides for Subscription VIP modal sheet */
body.dark-theme .subscription-modal-sheet {
    background-color: #0f172a !important;
}
body.dark-theme .sub-grid-overlay-shade {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 70%, #0f172a 100%) !important;
}
body.dark-theme .subscription-content {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .benefits-title {
    color: #3b82f6 !important;
}
body.dark-theme .benefit-item {
    color: #cbd5e1 !important;
}
body.dark-theme .benefit-item strong {
    color: #60a5fa !important;
}
body.dark-theme .benefit-item.checked {
    color: #f8fafc !important;
}
body.dark-theme .benefit-item.unchecked {
    color: #64748b !important;
}
body.dark-theme .benefit-item.unchecked i {
    color: #64748b !important;
    border-color: #475569 !important;
}
body.dark-theme .sub-plan-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .sub-plan-card.selected {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.15) !important;
}
body.dark-theme .sub-plan-card.one-time {
    border-color: #f97316 !important;
}
body.dark-theme .sub-plan-card.one-time.selected {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
    background-color: rgba(59, 130, 246, 0.15) !important;
}
body.dark-theme .plan-card-title {
    color: #cbd5e1 !important;
}
body.dark-theme .plan-card-price {
    color: #f8fafc !important;
}
body.dark-theme .plan-original-price {
    color: #64748b !important;
}
body.dark-theme .plan-days-approx {
    color: #94a3b8 !important;
}
body.dark-theme .sub-plan-card.selected .plan-card-title,
body.dark-theme .sub-plan-card.selected .plan-days-approx {
    color: #3b82f6 !important;
}
body.dark-theme .subscription-helper-text {
    color: #cbd5e1 !important;
}
body.dark-theme .subscription-footer-links a {
    color: #94a3b8 !important;
}
body.dark-theme .subscription-footer-links a:hover {
    color: #cbd5e1 !important;
}
body.dark-theme .subscription-footer-links .divider {
    color: #475569 !important;
}

/* Settings menu & sub-panels dark mode overrides */
body.dark-theme .profile-menu-header {
    background-color: #0f172a !important;
}
body.dark-theme .profile-menu-header h3 {
    color: #f8fafc !important;
}
body.dark-theme .menu-bottom-section {
    background-color: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}
body.dark-theme .menu-sub-view-trigger {
    background-color: #1e293b !important;
}
body.dark-theme #menu-username-display {
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel {
    background-color: #0f172a !important;
}
body.dark-theme .sub-panel-header {
    border-bottom: 1px solid #1e293b !important;
}
body.dark-theme .sub-panel-back-btn {
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel label {
    color: #cbd5e1 !important;
}
body.dark-theme .settings-sub-panel h4 {
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel input,
body.dark-theme .settings-sub-panel textarea,
body.dark-theme .settings-sub-panel select {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.dark-theme #dynamic-terms-content,
body.dark-theme #dynamic-privacy-content {
    color: #cbd5e1 !important;
}
body.dark-theme #menu-save-username-btn,
body.dark-theme #menu-submit-feedback-btn {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
body.dark-theme .settings-sub-panel .faq-item {
    border-bottom: 1px solid #1e293b !important;
}
body.dark-theme .settings-sub-panel .faq-question {
    color: #f8fafc !important;
}
body.dark-theme .settings-sub-panel .faq-answer {
    color: #cbd5e1 !important;
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    background-color: #e2e8f0;
    font-family: var(--font-main);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Device Viewport Wrapper for Desktop Simulator */
.device-container {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: var(--bg-color-main);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-color);
}

@media (min-width: 450px) {
    .device-container {
        border-radius: 36px;
        height: 95vh;
        border: 8px solid #cbd5e1;
    }
}

/* Header Styles */
.app-header {
    padding: 20px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color-main);
    z-index: 100;
}

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

.logo-text-veeo {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.logo-o-anim {
    display: inline-block;
    font-size: 30px;
    line-height: 1;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gemini-sparkle 3s infinite ease-in-out;
    transform-origin: center;
    margin-right: 1px;
}

@keyframes gemini-sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(26, 115, 232, 0.3));
    }
    50% {
        transform: scale(1.25) rotate(90deg);
        filter: drop-shadow(0 0 10px rgba(161, 66, 244, 0.8));
    }
}

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

.user-credits {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: transparent;
    padding: 2px 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-green);
}

.credits-icon {
    font-size: 15px;
}

.wallet-icon-btn, .wallet-btn {
    width: 32px;
    height: 32px;
    background-color: #4f5b82; /* dark blue wallet container */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(79, 91, 130, 0.3);
}

.wallet-btn {
    background-color: #4f5b82 !important;
}

/* Scroll View Contents */
.view-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 96px; /* increased padding so content isn't hidden by bottom bar */
}

/* View Control */
.view {
    display: none;
    height: 100%;
    animation: fade-in 0.3s ease-out;
}

.view.active {
    display: flex;
    flex-direction: column;
}

/* Home Section Layouts */
.horizontal-category-section {
    padding: 12px 0;
}

.category-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 16px 10px;
}

.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 16px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Home Horizontal Card */
.horizontal-card {
    flex: 0 0 115px;
    height: 154px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.horizontal-card:hover {
    transform: scale(1.03);
}

.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discover Top Header Tabs */
.app-header-discover {
    padding: 20px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color-main);
}

.discover-tabs {
    display: flex;
    gap: 16px;
    align-items: center;
}

.discover-tab-btn {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

.discover-tab-btn.active {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.discover-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--theme-green);
    border-radius: 2px;
}

/* Tags bar row */
.tags-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--bg-color-main);
}

.tags-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 12px;
}

.tags-wrapper::-webkit-scrollbar {
    display: none;
}

.tag-pill {
    padding: 6px 12px;
    background-color: transparent;
    color: #5d6785; /* gray-slate colors */
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tag-pill.active {
    color: var(--text-primary);
}

.tag-dropdown-btn {
    color: #5d6785;
    cursor: pointer;
    padding-left: 8px;
}

/* 2-Column Discover Grid */
.templates-grid {
    display: block;
    column-count: 2;
    column-gap: 8px;
    padding: 4px 10px 24px;
}

.discover-card {
    background-color: transparent;
    display: block;
    width: 100%;
    margin-bottom: 8px;
    break-inside: avoid;
    cursor: pointer;
}

.discover-card-media {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.discover-card-media.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

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

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

.discover-card-media.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.discover-card-media.ratio-9-16 {
    aspect-ratio: 9 / 16;
}

.discover-card-media.ratio-1-2 {
    aspect-ratio: 1 / 2;
}

.discover-card-media.ratio-2-1 {
    aspect-ratio: 2 / 1;
}

.discover-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 8px 8px;
    display: flex;
    flex-direction: column;
}

.discover-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.discover-card-author {
    font-size: 10px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Action details line below card */
.discover-card-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.like-counter-discover {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-counter-discover:active {
    transform: scale(0.9);
}

.like-counter-discover i {
    font-size: 17px;
    display: inline-block;
    transition: color 0.2s ease;
}

/* Heart burst-pop animation */
.like-burst i {
    animation: burst-pop 0.4s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes burst-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.82); }
  70%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Ripple ring ripple style */
.like-ring-ripple {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ee5a24;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    animation: like-ripple-out 0.6s ease-out forwards;
}

@keyframes like-ripple-out {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* Like app particles */
.like-app-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.like-app-particle-emoji {
    position: absolute;
    background: none;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    line-height: 1;
}

@keyframes like-fly-out {
  0%   { transform: translate(-50%, -50%) translate(0,0) scale(0.5); opacity: 1; }
  80%  { opacity: 0.9; }
  100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}

/* Floating emojis */
.like-float-heart {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    animation: like-float-up 1.0s ease-out forwards;
}

@keyframes like-float-up {
  0%   { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(0.6); }
  60%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-60px) scale(1.1); }
}

.card-generate-btn {
    background-color: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.35) !important;
    outline: none;
    color: #2563eb;
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== EDITOR / CREATOR VIEW ==================== */
.editor-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color-main);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.editor-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.follow-btn {
    background-color: #f7fdeb;
    border: none;
    outline: none;
    color: #98c53f;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.editor-header-right {
    display: flex;
    gap: 12px;
}

.share-btn, .wallet-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #5d6785;
    font-size: 18px;
    cursor: pointer;
}

.editor-main-card {
    margin: 16px auto;
    width: calc(100% - 32px);
    max-width: 380px;
    aspect-ratio: 1/1;
    border-radius: 24px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #d8d2e3; /* Dynamically overwritten in JS */
}

.editor-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    border-radius: 16px;
}

/* Split layout wrapper for before/after visual */
.before-after-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    user-select: none;
    -webkit-user-select: none;
}

.before-half,
.after-half {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.before-half {
    width: 50%;
}

.after-half {
    width: 50%;
}

.before-half img,
.before-half video,
.after-half img,
.after-half video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

/* Center double arrow handle divider */
.before-after-arrow-divider {
    display: none;
}

.editor-main-card img,
.before-half img,
.after-half img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.volume-btn-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    z-index: 11;
}

/* absolute positioning overlay over image card */
.editor-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--frame, #d8d2e3) 0%, var(--frame, #d8d2e3) 30%, color-mix(in srgb, var(--frame, #d8d2e3) 70%, transparent) 65%, transparent 100%);
    padding: 30px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 9;
}

.editor-card-overlay h2 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}

.editor-card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.92;
    margin-top: 4px;
}

.editor-card-meta span {
    color: #ffffff !important;
}

/* Arrow divider curves and tags matching admin panel specifications */
.ba-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 64px;
    transform: translate(-50%, -58%);
    z-index: 15;
    pointer-events: none;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.45));
}

.ba-tag {
    position: absolute;
    top: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15,23,42,0.55);
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 15;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.ba-tag.before {
    left: 10px;
}

.ba-tag.after {
    right: 10px;
}

/* Input photo upload panel */
.input-upload-section {
    padding: 0 16px;
    margin-bottom: 18px;
}

.section-label-main {
    font-size: 14px;
    font-weight: 600;
    color: #8c96ab;
    margin-bottom: 8px;
    text-align: center;
}

.editor-upload-box {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.editor-upload-box i {
    font-size: 22px;
    color: #8c96ab;
}

.editor-uploaded-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    display: none;
}

/* Group Photo Mockup box */
.group-photo-mockup-box {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4/3;
    margin: 0 auto;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.group-photo-mockup-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-detect-box {
    position: absolute;
    border: 3px solid var(--theme-green);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--theme-green);
    background-color: rgba(184, 232, 82, 0.2);
    font-size: 18px;
}

.face-detect-box.box-1 {
    top: 40%;
    left: 38%;
}

.face-detect-box.box-2 {
    top: 48%;
    left: 58%;
}

/* Group photo Drawer layout */
.group-photo-drawer {
    position: absolute;
    bottom: 76px; /* sits right above bottom bar */
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 101;
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
    animation: slide-up-group 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.group-drawer-drag-indicator {
    width: 36px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
    align-self: center;
    margin-bottom: 4px;
}

.group-drawer-header {
    font-size: 13px;
    font-weight: 600;
    color: #8c96ab;
}

.group-upload-btn {
    width: 100%;
    background-color: #f7fdeb;
    border: 1px solid #e2ebb9;
    outline: none;
    color: #98c53f;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
}

/* Options selectors */
.options-pills-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.pills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.option-pill {
    padding: 10px 24px;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #8c96ab;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-pill.active {
    background-color: #f7fdeb;
    border-color: #98c53f;
    color: #98c53f;
}

/* Size Option layout (Screenshot 2) */
.option-pill.size-pill {
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    align-items: center;
}

.size-icon-1-1 {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.size-icon-3-4 {
    width: 12px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.size-icon-9-16 {
    width: 10px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.crown-badge {
    color: #ff9d00;
    font-size: 10px;
    margin-left: 2px;
}

/* Option pills setup with floating badge for premium options */
.option-pill {
    position: relative;
    padding: 12px 28px;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #8c96ab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.option-pill .crown-badge-floating {
    position: absolute;
    top: -6px;
    right: -4px;
    background-color: #ffd700;
    border: 1px solid #fff;
    border-radius: 4px;
    width: 16px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    color: #b25900;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Editor Bottom Bar Controls (Same to Same design matching Screenshots) */
.editor-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 120; /* Keep it above scrolling content */
}

.social-counters {
    display: flex;
    gap: 16px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
}

.counter-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.counter-item span {
    font-size: 11px;
    font-weight: 600;
}

.editor-generate-btn {
    background: var(--theme-green-gradient);
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184, 232, 82, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
}

.editor-generate-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================== LOGIN VIEW ==================== */
#profile-view {
    position: relative;
    background-color: var(--bg-color-main);
    overflow: hidden;
}

/* Simulated Discover Feed background under the modal */
.login-simulated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(2px) brightness(0.8);
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    padding: 16px;
}

.login-simulated-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.sim-card {
    width: 100%;
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--border-radius-md);
}

/* Modal Bottom Sheet Overlay */
.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 150;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal-sheet {
    background-color: #ffffff;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    padding: 44px 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12);
    animation: slide-up-sheet 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 151;
}

@keyframes slide-up-sheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.login-modal-header .welcome-text {
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
}

.login-modal-header .logo-text-veeo-login {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1a73e8 0%, #a142f4 50%, #e81a5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: -4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.login-modal-subtitle {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 36px;
    max-width: 320px;
    text-align: center;
    font-weight: 500;
}

.login-modal-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.login-modal-btn {
    width: 100%;
    height: 52px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-family: var(--font-main);
}

.login-modal-btn.google-btn {
    background-color: #2563eb; /* Royal Blue */
    color: #ffffff;
}

.login-modal-btn.google-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.login-modal-btn.guest-btn {
    background-color: #ffffff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}

.login-modal-btn.guest-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.social-icon-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-wrapper img {
    width: 15px;
    height: 15px;
}

.email-icon-wrapper {
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #0f172a;
}

/* Circular Agreement check row styling */
.login-modal-agreement {
    display: flex;
    justify-content: center;
    width: 100%;
}

.agreement-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.agreement-checkbox-label input {
    display: none;
}

.checkmark-modal-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%; /* Rounded circle checkbox */
    position: relative;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.agreement-checkbox-label input:checked + .checkmark-modal-custom {
    background-color: #2563eb;
    border-color: #2563eb;
}

.agreement-checkbox-label input:checked + .checkmark-modal-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 9px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.agreement-text a {
    color: #a7cc3b;
    text-decoration: none;
    font-weight: 700;
}

.agreement-text a:hover {
    text-decoration: underline;
}

/* ==================== RESULT SCREEN ==================== */
.result-view-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.result-canvas-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: #000;
    position: relative;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border-color);
}

.result-canvas-wrapper.ratio-9-16 {
    aspect-ratio: 9/16;
}

.result-canvas-wrapper.ratio-16-9 {
    aspect-ratio: 16/9;
}

.result-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.bottom-nav .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 100%;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.bottom-nav .nav-item span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 12;
    margin-top: 1px;
}

/* Active State Styles */
.bottom-nav .nav-item.active {
    color: #2563eb;
}

.bottom-nav .nav-item.active i {
    transform: translateY(-18px);
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.bottom-nav .nav-item.active span {
    transform: translateY(-2px);
    opacity: 1;
    color: #2563eb;
    font-weight: 800;
}

/* Curved Notch Indicator */
.bottom-nav-indicator {
    position: absolute;
    top: -18px; /* Float above the navbar */
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

/* Creating the curve indentation (crove) around the circle using pseudo-elements */
.bottom-nav-indicator::before,
.bottom-nav-indicator::after {
    content: '';
    position: absolute;
    top: 17px; /* Offset to align with navbar top border */
    width: 16px;
    height: 16px;
    background: transparent;
}

.bottom-nav-indicator::before {
    left: -16px;
    border-bottom-right-radius: 16px;
    box-shadow: 4px 4px 0 4px #ffffff;
}

.bottom-nav-indicator::after {
    right: -16px;
    border-bottom-left-radius: 16px;
    box-shadow: -4px 4px 0 4px #ffffff;
}

/* Position indicator depending on active state */
.bottom-nav[data-active-tab="home"] .bottom-nav-indicator {
    left: calc(16.66% - 25px);
}

.bottom-nav[data-active-tab="discover"] .bottom-nav-indicator {
    left: calc(50% - 25px);
}

.bottom-nav[data-active-tab="profile"] .bottom-nav-indicator {
    left: calc(83.33% - 25px);
}

/* Interactive Generator Loading View */
.generator-loading-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color-main);
    z-index: 150;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    animation: fade-in 0.2s ease-out;
}

.loader-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.circle-bg {
    width: 100%;
    height: 100%;
    border: 6px solid var(--border-color);
    border-radius: 50%;
    position: absolute;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border: 6px solid transparent;
    border-top-color: var(--theme-primary);
    border-right-color: var(--theme-primary);
    border-radius: 50%;
    position: absolute;
    animation: loading-spin 1.2s linear infinite;
}

.percentage-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 2;
}

.loading-status-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.loading-sub-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes pulse-gold {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 215, 0, 0); }
    50% { transform: scale(1.1); text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes slide-up-group {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==================== PROFILE VIEW STYLES ==================== */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.profile-menu-btn, .profile-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-credit-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
}

.profile-credit-badge i {
    color: #eab308;
}

.profile-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 80px;
}

.profile-user-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.profile-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-username {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.profile-bio {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 24px;
    position: relative;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-stat-item .stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.profile-stat-item .stat-label {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 2px;
}

.profile-share-wrapper {
    margin-left: auto;
}

.profile-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-share-btn:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

/* Membership banner */
.profile-membership-card {
    background-color: #2563eb;
    border-radius: 20px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.profile-membership-card .membership-info {
    flex: 1;
}

.profile-membership-card .membership-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-membership-card .membership-desc {
    font-size: 11px;
    font-weight: 600;
    color: #eff6ff;
    margin: 4px 0 0;
    line-height: 1.4;
}

.profile-membership-card .membership-sub-btn {
    background-color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.profile-membership-card .membership-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Tabs bar styling */
.profile-tab-bar {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.profile-tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.profile-tab-btn.active {
    color: #0f172a;
}

.profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 2px;
}

/* Grid contents for tabs */
.profile-grid {
    display: block;
    column-count: 2;
    column-gap: 12px;
}

/* ==================== CREDIT STORE OVERLAY ==================== */
.credit-store-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 10, 20, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 110;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.credit-store-overlay.active {
    display: flex;
}

.credit-store-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 112;
    transition: background 0.2s;
}

.credit-store-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.credit-screen {
    display: none;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    padding: 40px 24px 32px;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: slide-up-sheet 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
}

.credit-screen.active {
    display: flex;
}

.store-stars-decorator {
    font-size: 24px;
    color: #c084fc;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.credit-store-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    text-align: center;
}

.credit-store-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 28px;
    text-align: center;
}

/* Ticket Card Styling */
.ticket-wrapper {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.ticket-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 50%, #fae8ff 100%);
    border-radius: 20px;
    height: 140px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Ticket punches/cutouts on sides */
.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #1e1b4b; /* matches wrapper background */
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.ticket-card::before {
    left: -10px;
}

.ticket-card::after {
    right: -10px;
}

.ticket-left {
    width: 44px;
    background-color: rgba(15, 23, 42, 0.08);
    border-right: 2px dashed rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(15, 23, 42, 0.4);
}

.ticket-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 32px;
}

.ticket-tag {
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ticket-value {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ticket-value span {
    font-size: 44px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.ticket-bolt {
    font-size: 36px;
    color: #eab308;
    filter: drop-shadow(0 4px 8px rgba(234, 179, 8, 0.3));
}

.ticket-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    background: rgba(15, 23, 42, 0.06);
    padding: 2px 10px;
    border-radius: 6px;
}

/* Timer styles */
.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.timer-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    font-family: monospace;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Custom store buttons */
.store-action-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 800;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

.store-action-btn:active {
    transform: scale(0.98);
}

.gradient-btn {
    background: linear-gradient(90deg, #22d3ee 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.toggle-store-view-btn {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.toggle-store-view-btn:hover {
    color: #7dd3fc;
}

/* Packs Screen Grid Styles */
.packs-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.pack-card {
    flex: 1;
    background-color: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.pack-card:hover {
    background-color: rgba(30, 41, 59, 0.6);
}

.pack-card.selected {
    background-color: rgba(79, 70, 229, 0.15);
    border-color: #818cf8;
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.15);
}

.pack-badge {
    position: absolute;
    top: -10px;
    background: linear-gradient(135deg, #e0f2fe 0%, #fae8ff 100%);
    color: #0f172a;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pack-credits {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pack-credits span {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
}

.pack-bolt {
    font-size: 20px;
    color: #94a3b8;
}

.pack-card.selected .pack-bolt {
    color: #eab308;
}

.pack-price {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

.pack-card.selected .pack-price {
    color: #ffffff;
}

/* ==================== ADMIN PANEL DRAWER ==================== */
.admin-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 120;
    display: none;
    justify-content: flex-end;
}

.admin-panel-overlay.active {
    display: flex;
}

.admin-panel-sheet {
    width: 80%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slide-in-right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.admin-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.admin-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
}

.admin-form-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.admin-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
    border-left: 3px solid #2563eb;
    padding-left: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.form-group input, .admin-pack-row input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #0f172a;
}

.admin-pack-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-pack-row span {
    font-size: 13px;
    width: 90px;
    color: #475569;
    flex-shrink: 0;
}

.admin-pack-row input[type="number"] {
    width: 60px;
}

.admin-pack-row input[type="text"] {
    flex: 1;
}

.admin-save-btn {
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.admin-save-btn:hover {
    background-color: #1e293b;
}

/* User Credits top bar style pointer */
.user-credits {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.user-credits:active {
    transform: scale(0.95);
}
.user-credits:hover {
    filter: brightness(0.9);
}

/* ==================== WALLET / CREDITS DETAILS VIEW ==================== */
#wallet-view {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    display: none;
    flex-direction: column;
}

#wallet-view.active {
    display: flex;
}

.wallet-header {
    padding: 16px 20px;
    background: transparent;
    display: flex;
    align-items: center;
}

.wallet-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    padding: 4px;
}

.wallet-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 80px;
}

.total-credits-section {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px 10px;
}

.total-credits-label {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.total-credits-num {
    font-size: 64px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    z-index: 2;
}

.wallet-lightning-bg {
    position: absolute;
    right: 10px;
    top: -20px;
    font-size: 150px;
    color: rgba(37, 99, 235, 0.4);
    transform: rotate(15deg);
    z-index: 1;
    pointer-events: none;
}

/* Green "To More Credits" Card */
.wallet-get-more-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.2);
}

.get-more-info {
    display: flex;
    flex-direction: column;
}

.get-more-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.get-more-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e2f8d4;
    font-size: 12px;
    font-weight: 700;
}

.wallet-add-credits-btn {
    background-color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    color: #1d4ed8;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    white-space: nowrap;
}

.wallet-add-credits-btn:active {
    transform: scale(0.95);
}

/* Reward Credits list */
.reward-credits-section {
    display: flex;
    flex-direction: column;
}

.reward-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px;
}

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

.reward-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
}

.reward-icon-badge {
    width: 56px;
    height: 56px;
    background-color: #f0fdf4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    margin-right: 12px;
}

.reward-icon-badge i {
    font-size: 20px;
    color: #4ade80;
}

.reward-badge-text {
    font-size: 9px;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
}

.reward-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-item-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.reward-item-date {
    font-size: 12px;
    color: #94a3b8;
}

.reward-value-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.reward-item-value {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-size: 16px;
    font-weight: 800;
}

.reward-item-value i {
    color: #eab308;
}

.reward-item-expiry {
    font-size: 11px;
    color: #cbd5e1;
}

/* ==================== OUT OF CREDITS TOOLTIP POPUP ==================== */
.credits-tooltip {
    position: absolute;
    top: 45px;
    right: 28px;
    background-color: #2563eb; /* matching royal blue color */
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    box-sizing: border-box;
    cursor: pointer;
    animation: bounce-in-tooltip 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in-tooltip {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tooltip-arrow {
    position: absolute;
    top: -8px;
    right: 28px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2563eb;
}

.tooltip-content-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.tooltip-vip-tag {
    font-size: 16px;
    font-weight: 950;
    color: #ffffff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tooltip-vip-tag .sparkle {
    font-size: 14px;
}

.tooltip-desc {
    font-size: 11.5px;
    font-weight: 650;
    color: #eff6ff;
    line-height: 1.3;
}

.tooltip-arrow-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.credits-tooltip:hover .tooltip-arrow-btn {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ==================== VIP MEMBERSHIP SUBSCRIBE CARD ==================== */
.wallet-subscribe-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* matching royal blue gradient */
    border-radius: 24px;
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.2);
    box-sizing: border-box;
    width: 100%;
}

.subscribe-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.feature-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.feature-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon-circle i {
    font-size: 18px;
    color: #65a30d;
}

.hd-text-feature {
    font-size: 15px;
    font-weight: 950;
    color: #65a30d;
    letter-spacing: -0.5px;
}

.feature-text {
    font-size: 9.5px;
    font-weight: 600;
    color: #e2f8d4;
    line-height: 1.3;
    padding: 0 2px;
}

.feature-text strong {
    color: #ffffff;
    font-weight: 850;
}

.wallet-subscribe-action-btn {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 28px;
    padding: 14px;
    font-size: 16px;
    font-weight: 850;
    color: #3f6212;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, background 0.2s;
    text-align: center;
}

.wallet-subscribe-action-btn:active {
    transform: scale(0.97);
}

.wallet-subscribe-action-btn:hover {
    background-color: #f8fafc;
}

/* ==================== VIP SUBSCRIPTION MODAL ==================== */
.subscription-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.95);
    z-index: 108;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.subscription-modal-overlay.active {
    display: flex;
}

.subscription-modal-sheet {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Close button style matching top-left X inside template frame */
.subscription-close-btn {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Background image grid */
.subscription-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    overflow: hidden;
    opacity: 0.85;
}

.sub-grid-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    transform: rotate(-5deg) translateY(-20px);
}

.sub-grid-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sub-grid-img.slant-left {
    transform: translateY(-8px);
}

.sub-grid-img.slant-right {
    transform: translateY(8px);
}

.sub-grid-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.85) 70%, #ffffff 100%);
    pointer-events: none;
}

/* Content box */
.subscription-content {
    position: relative;
    padding: 24px 20px;
    z-index: 5;
    background-color: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.benefits-title {
    color: #2563eb; /* premium Royal Blue */
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
}

.benefits-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.benefit-item strong {
    color: #2563eb;
    font-weight: 700;
}

.benefit-item.checked {
    color: #0f172a;
}

.benefit-item.checked i {
    color: #ffffff;
    font-size: 10px;
    background-color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 50%;
    padding: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item.unchecked {
    color: #64748b; /* gray check */
}

.benefit-item.unchecked i {
    color: #64748b;
    font-size: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    padding: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plans grid horizontal scroll */
.subscription-plans-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 28px 4px 12px 4px;
    margin-bottom: 12px;
    scrollbar-width: none; /* Hide standard scrollbar */
}

.subscription-plans-container::-webkit-scrollbar {
    display: none;
}

.sub-plan-card {
    position: relative;
    flex: 0 0 130px;
    min-width: 130px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sub-plan-card.selected {
    border-color: #2563eb; /* premium blue border */
    background-color: rgba(37, 99, 235, 0.05);
}

/* Premium orange border card standard VIP one-time offer */
.sub-plan-card.one-time {
    border-color: #f97316; /* premium orange border */
}

.sub-plan-card.one-time.selected {
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    background-color: rgba(37, 99, 235, 0.05);
}

.one-time-offer-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f97316;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
}

.plan-card-title {
    color: #475569;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: capitalize;
}

.plan-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-card-price .currency {
    font-size: 14px;
    margin-right: 2px;
}

.plan-card-price .price-val {
    font-size: 24px;
}

.plan-original-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 12px;
    margin-bottom: 6px;
}

.plan-card-timer {
    color: #ef4444; /* red timer */
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.plan-days-approx {
    color: #475569;
    font-size: 9px;
    margin-top: auto;
}

.sub-plan-card.selected .plan-card-title {
    color: #2563eb;
}

.sub-plan-card.selected .plan-days-approx {
    color: #2563eb;
}

/* Helper subtext below card */
.subscription-helper-text {
    color: #475569;
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
}

/* Big Subscribe Premium Blue Gradient Button */
.subscription-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 28px;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    margin-bottom: 16px;
}

.subscription-submit-btn:active {
    transform: scale(0.98);
}

/* Policy links */
.subscription-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.subscription-footer-links a {
    color: #475569;
    text-decoration: none;
}

.subscription-footer-links a:hover {
    color: #64748b;
}

.subscription-footer-links .divider {
    color: #334155;
}

/* ==================== PROFILE SETTINGS HAMBURGER DRAWER ==================== */
.profile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 109;
    display: none;
}

.profile-menu-overlay.active {
    display: block;
}

.profile-menu-sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
    overflow: hidden;
}

/* Native List Items */
.settings-list-item:active {
    background-color: #f1f5f9;
}

.settings-list-item i {
    color: #475569;
}

.settings-list-item:hover i {
    color: #0f172a;
}

/* Sub-panel sliding */
.settings-sub-panel {
    animation: slideInSub 0.25s ease-out forwards;
}

@keyframes slideInSub {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ==================== VIDEO ENHANCE OVERLAY ==================== */
.video-enhance-overlay {
    display: none;
}

.video-enhance-overlay.active {
    display: flex !important;
}

.res-option-btn.selected {
    border-color: #adff2f !important;
    background-color: rgba(173, 255, 47, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(173, 255, 47, 0.2);
}

.res-option-btn:not(.selected) {
    opacity: 0.7;
}

/* ==================== REFERRAL & EARN STYLING ==================== */
.referral-overlay {
    display: none;
}

.referral-overlay.active {
    display: flex !important;
}

/* Pulsating glowing animation for Earning Coins Button in Top Bar */
.pulse-glowing-earning {
    animation: earningPulseGlow 2s infinite ease-in-out;
}

@keyframes earningPulseGlow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 4px rgba(173, 255, 47, 0.4);
        color: #adff2f;
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 12px rgba(173, 255, 47, 0.8), 0 0 20px rgba(173, 255, 47, 0.4);
        color: #fff;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 4px rgba(173, 255, 47, 0.4);
        color: #adff2f;
    }
}

.referral-sheet {
    animation: slideUpReferral 0.3s ease-out;
}

@keyframes slideUpReferral {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.friend-row {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.friend-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}
.friend-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}
.friend-status-badge.subscribed {
    background-color: rgba(163, 230, 53, 0.1);
    color: #adff2f;
    border: 1px solid rgba(163, 230, 53, 0.2);
}
.friend-status-badge.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Card Stack History Booster Icon */
.history-stack-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: #4f5b82;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: -2px 2px 0px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-left: 8px;
}
.history-stack-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    background-color: #3b4252;
    border-radius: 8px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.history-stack-icon i {
    color: #ffffff;
    font-size: 12px;
}
.history-stack-icon:active {
    transform: scale(0.95);
}
.history-stack-icon:hover {
    filter: brightness(1.1);
}

/* History card items in results view */
.history-rect-item {
    width: 52px;
    height: 68px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.history-rect-item.active {
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}
.history-rect-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.history-rect-item .play-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.history-rect-item .play-badge i {
    color: #ffffff;
    font-size: 8px;
}

/* Footer layout elements */
.result-actions-bar .result-action-icon-btn {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.result-actions-bar .result-action-icon-btn:active {
    transform: scale(0.95);
}

/* Scoped Card Stack Icon Styles & Animations */
.history-stack-icon {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 !important;
}
.history-stack-icon::before {
    display: none !important;
}

.history-stack-icon .stack-wrapper {
    width: 140px;
    height: 170px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.11) !important;
    transform-origin: center;
}

.history-stack-icon .card {
    position: absolute;
    width: 130px;
    height: 155px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, background;
    backface-visibility: hidden;

    /* 🔁 ANIMATION - infinite loop */
    animation: stackFlow 5s ease-in-out infinite;
    
    /* 🎨 COLOR SHIFT - AI style gradient animation */
    background: linear-gradient(135deg, var(--c1), var(--c2));
    background-size: 300% 300%;
    animation: stackFlow 5s ease-in-out infinite, colorShift 6s ease-in-out infinite;
}

/* Color variables for each card - they will shift */
.history-stack-icon .card-1 {
    --c1: #4f46e5;
    --c2: #a855f7;
    animation-delay: 0s;
}
.history-stack-icon .card-2 {
    --c1: #2563eb;
    --c2: #0d9488;
    animation-delay: 0.15s;
}
.history-stack-icon .card-3 {
    --c1: #38bdf8;
    --c2: #1d4ed8;
    animation-delay: 0.3s;
}
.history-stack-icon .card-4 {
    --c1: #2563eb;
    --c2: #8b5cf6;
    animation-delay: 0.45s;
}

@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ----- KEYFRAMES: Fan → Stack → Fan (auto loop) ----- */
@keyframes stackFlow {
    0% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    15% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc));
        opacity: 1;
    }
    40% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc));
        opacity: 1;
    }
    65% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    85% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.9;
    }
}

/* Individual card fan positions */
.history-stack-icon .card-1 {
    --tx: -12px;
    --ty: 16px;
    --rot: -8deg;
    --sc: 0.94;
}
.history-stack-icon .card-2 {
    --tx: -6px;
    --ty: 8px;
    --rot: -4deg;
    --sc: 0.97;
}
.history-stack-icon .card-3 {
    --tx: 0px;
    --ty: 2px;
    --rot: 0deg;
    --sc: 1;
}
.history-stack-icon .card-4 {
    --tx: 8px;
    --ty: -4px;
    --rot: 5deg;
    --sc: 1.03;
}

/* Soft glow inside cards */
.history-stack-icon .card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    height: 30px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 40%;
    pointer-events: none;
}

/* Card shadow */
.history-stack-icon .card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* ----- TOP CARD (card-4) : + (plus) with WHITE GLOW ----- */
.history-stack-icon .card-4 .glyph-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 5;
    position: relative;
}

.history-stack-icon .plus-icon {
    font-size: 52px;
    font-weight: 200;
    line-height: 1;
    color: #ffffff;
    width: 68px;
    height: 68px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* ✨ White glow */
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.7),
        0 0 60px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.3),
        0 0 120px rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    
    /* 🔄 Slight pulse animation */
    animation: plusPulse 2.5s ease-in-out infinite;
}

.history-stack-icon .plus-icon span {
    margin-top: -4px;
}

@keyframes plusPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(255, 255, 255, 0.7),
            0 0 60px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.08);
        text-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 255, 255, 0.9),
            0 0 90px rgba(255, 255, 255, 0.7),
            0 0 120px rgba(255, 255, 255, 0.4);
    }
}

.history-stack-icon .video-glyph {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 5px;
    margin-top: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.history-stack-icon .video-glyph svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
}

/* Soft fanning glow */
.history-stack-icon .stack-wrapper::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 170px;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 40px;
    pointer-events: none;
    animation: pulseGlow 5s ease-in-out infinite;
}

.history-stack-icon .stack-wrapper::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 140px;
    background: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 6px,
        transparent 6px,
        transparent 14px);
    border-radius: 40px;
    pointer-events: none;
    animation: fanLines 5s ease-in-out infinite;
    opacity: 0.3;
}

/* History Drawer Overlay & Grid Styles */
.history-drawer-overlay.active {
    display: block !important;
}
.history-drawer-sheet {
    animation: slideInRight 0.3s ease-out;
}
.history-tab-btn:hover {
    filter: brightness(1.1);
}
.history-tab-btn.active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
.history-drawer-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 1px solid #374151;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.history-drawer-grid-item:active {
    transform: scale(0.97);
}
.history-drawer-grid-item img, .history-drawer-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.history-drawer-grid-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    box-sizing: border-box;
}
.history-drawer-grid-item-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-drawer-grid-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.history-drawer-grid-item-badge i {
    font-size: 9px;
    color: #ffffff;
}

.credits-star-icon {
    font-weight: 800;
    font-size: 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24); /* Amber/gold sparkle gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Exit Intent Popup Styles matching veeo_cancel_popup.html */
.exit-intent-card {
    background: #fff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    padding: 0 0 34px;
    border: none;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(80,110,255,0.15);
    animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    position: relative;
    box-sizing: border-box;
}
.exit-intent-card .popup-header {
    background: linear-gradient(135deg, #e8eeff 0%, #f0f7ff 100%);
    padding: 24px 24px 18px;
    text-align: center;
    border-bottom: 1px solid #dde4ff;
}
.exit-intent-card .title {
    font-size: 22px;
    font-weight: 800;
    color: #2250e0;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.exit-intent-card .subtitle {
    font-size: 13px;
    color: #5570cc;
    font-weight: 500;
}
.exit-intent-card .compare-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 8px;
}
.exit-intent-card .compare-card {
    flex: 1;
    background: #f8f9ff;
    border-radius: 16px;
    padding: 16px 12px 14px;
    text-align: center;
    border: 1.5px solid #dde4ff;
}
.exit-intent-card .compare-card.highlight {
    background: #eaf0ff;
    border-color: #5574f7;
}
.exit-intent-card .tea-icon, .exit-intent-card .star-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exit-intent-card .price-big {
    font-size: 26px;
    font-weight: 800;
    color: #e07b20;
}
.exit-intent-card .price-label {
    font-size: 11px;
    color: #8898cc;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.exit-intent-card .price-big-blue {
    font-size: 24px;
    font-weight: 800;
    color: #2250e0;
}
.exit-intent-card .per-week {
    font-size: 11px;
    color: #5574f7;
    font-weight: 600;
    margin-top: 2px;
}
.exit-intent-card .brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #2250e0;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.exit-intent-card .vs-badge {
    font-size: 13px;
    font-weight: 700;
    color: #8898cc;
    flex-shrink: 0;
}
.exit-intent-card .features-row {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px 14px;
    gap: 4px;
}
.exit-intent-card .feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.exit-intent-card .feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eaf0ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exit-intent-card .feat-icon svg { display: block; }
.exit-intent-card .feat-label {
    font-size: 10px;
    color: #5574f7;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.exit-intent-card .cta-area {
    padding: 4px 20px 8px;
}
.exit-intent-card .discount-badge {
    display: inline-block;
    background: #2250e0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.exit-intent-card .cta-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #2250e0 0%, #5574f7 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border: none;
    border-radius: 16px;
    padding: 15px 0;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.exit-intent-card .timer-row {
    text-align: center;
    font-size: 13px;
    color: #5574f7;
    font-weight: 600;
    padding: 10px 0 0;
}
.exit-intent-card .timer-boxes {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.exit-intent-card .tbox {
    background: #eaf0ff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 800;
    color: #2250e0;
    min-width: 32px;
    text-align: center;
}
.exit-intent-card .tsep { color: #2250e0; font-weight: 800; font-size: 16px; }
.exit-intent-card .footer-note {
    text-align: center;
    font-size: 11px;
    color: #aab4d8;
    padding: 8px 20px 0;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Android Safe Area & Top Overlap Padding Fix */
.android-app .app-header, 
.android-app .app-header-discover,
.android-app .profile-header,
.android-app .history-drawer-header,
.android-app .profile-menu-header,
.android-app .sub-panel-header,
.android-app .editor-header,
.android-app .wallet-header,
.android-app .login-modal-header,
.android-app .enhance-sheet-header {
    padding-top: calc(16px + env(safe-area-inset-top, 24px)) !important;
    height: auto !important;
}

/* Make sure profile header has correct top spacing */
.android-app .profile-header-card {
    margin-top: calc(10px + env(safe-area-inset-top, 24px)) !important;
}

/* Adjust top padding of result view content on Android to not overlap the taller header */
.android-app .result-view-content {
    padding-top: calc(70px + env(safe-area-inset-top, 24px)) !important;
}

/* Make settings and saved library drawers cover 100% width like native Android pages */
.android-app .profile-menu-sheet,
.android-app .history-drawer-sheet {
    width: 100% !important;
}

/* Bottom safe-area padding for sheet overlays on Android */
.android-app .video-enhance-sheet {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 16px)) !important;
}
.android-app .login-modal-sheet {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 16px)) !important;
}

/* Adjust bottom navigation for Android gesture navigation line */
.android-app .bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 12px)) !important;
    height: calc(60px + env(safe-area-inset-bottom, 12px)) !important;
}

/* Shift active nav items and curves accordingly */
.android-app .bottom-nav-indicator {
    top: -18px !important;
    bottom: auto !important;
}

/* Instant response clicks (0ms delay) for touch/mobile devices */
button, 
a, 
input, 
select, 
textarea, 
.nav-item, 
.face-option, 
.option-pill, 
.category-pill, 
.tab-btn, 
.history-tab-btn, 
.profile-tab-btn,
.settings-list-item,
.menu-sub-view-trigger,
.header-history-trigger,
.card-generate-btn,
.like-btn,
.template-item,
.upload-box,
.back-btn,
.sub-panel-back-btn,
.face-choice-item,
.close-btn,
.history-drawer-grid-item,
.discover-card-media,
.res-option-btn,
.enhance-submit-btn,
.simulate-friend-payment-btn,
.user-credits,
.profile-credit-badge,
.wallet-pack-card,
.volume-btn-overlay {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
}

/* Pull to Refresh Indicator Styles */
.pull-to-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 0px;
    opacity: 0;
    overflow: hidden;
    background-color: #0f172a;
    border-bottom: 1.5px dashed #334155;
    transition: height 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-bottom 0.2s ease;
    margin-bottom: 0px;
}

.pull-to-refresh-indicator.pulling {
    transition: none; /* Instant feedback during pull gesture */
}

.pull-to-refresh-indicator.refreshing {
    height: 52px;
    opacity: 1;
    margin-bottom: 12px;
}

.pull-to-refresh-indicator .refresh-spinner {
    font-size: 16px;
    color: #2563eb;
    transition: transform 0.15s linear;
}

.pull-to-refresh-indicator.refreshing .refresh-spinner {
    animation: ptr-spin 0.8s linear infinite;
}

.pull-to-refresh-indicator .refresh-text {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.1px;
}

@keyframes ptr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state-container {
    column-span: all;
    -webkit-column-span: all;
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    break-inside: avoid;
}

/* Animated Empty State Icon Styles */
.animated-empty-state {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-glow-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    animation: ring-pulse 2.2s infinite ease-in-out;
}

.animated-empty-state::before {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px dashed rgba(37, 99, 235, 0.25);
    animation: ring-rotate 12s infinite linear;
}

.empty-folder-icon {
    position: relative;
    font-size: 30px;
    color: #2563eb;
    animation: icon-float 2.2s infinite ease-in-out;
}

/* Dark mode variations for dark overlays/drawers */
.history-drawer-sheet .empty-glow-ring {
    background: rgba(59, 130, 246, 0.15);
}
.history-drawer-sheet .animated-empty-state::before {
    border-color: rgba(59, 130, 246, 0.3);
}
.history-drawer-sheet .empty-folder-icon {
    color: #3b82f6;
}

@keyframes ring-pulse {
    0% { transform: scale(0.85); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); }
    100% { transform: scale(0.85); opacity: 0.4; }
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes icon-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Custom Native-Style Toast Notification */
.custom-toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    text-align: center;
    max-width: 85%;
    width: max-content;
}

.custom-toast-container.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@keyframes scaleUpConfirm {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Card loader styles */
.card-media-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.card-media-loader .loader-spinner {
    width: 32px;
    height: 32px;
    background: url('app_star_logo.png') no-repeat center center;
    background-size: contain;
    animation: fast-spin 0.8s infinite linear;
}

@keyframes fast-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Result View / Edit Post Screen Dark Mode Overrides */
body.dark-theme #result-view .editor-header {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-theme #result-view .result-actions-bar {
    background: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}
body.dark-theme #result-view .result-actions-bar div {
    background-color: #1e293b !important;
}
body.dark-theme .result-action-icon-btn i {
    color: #cbd5e1 !important;
}
body.dark-theme .result-action-icon-btn span {
    color: #94a3b8 !important;
}

/* Template Editor Screen Bottom Bar Dark Mode Overrides */
body.dark-theme .editor-bottom-bar {
    background-color: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}
body.dark-theme .editor-bottom-bar .social-counters .counter-item {
    color: #cbd5e1 !important;
}
body.dark-theme .editor-bottom-bar .social-counters .counter-item i {
    color: #94a3b8 !important;
}

/* Exit Intent Overlay (Trial / Sure to Cancel Card) Dark Mode */
body.dark-theme .exit-intent-card {
    background: #0f172a !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4) !important;
}
body.dark-theme .exit-intent-card .popup-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-theme .exit-intent-card .title {
    color: #60a5fa !important;
}
body.dark-theme .exit-intent-card .subtitle {
    color: #94a3b8 !important;
}
body.dark-theme .exit-intent-card .compare-card {
    background: #1e293b !important;
    border: 1.5px solid #334155 !important;
}
body.dark-theme .exit-intent-card .compare-card.highlight {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
}
body.dark-theme .exit-intent-card .price-big {
    color: #f8fafc !important;
}
body.dark-theme .exit-intent-card .price-label {
    color: #94a3b8 !important;
}
body.dark-theme .exit-intent-card .brand-name {
    color: #f8fafc !important;
}
body.dark-theme .exit-intent-card .price-big-blue {
    color: #60a5fa !important;
}
body.dark-theme .exit-intent-card .per-week {
    color: #94a3b8 !important;
}
body.dark-theme .exit-intent-card .vs-badge {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}
body.dark-theme .exit-intent-card .feat-icon {
    background: #1e293b !important;
}
body.dark-theme .exit-intent-card .feat-icon svg rect {
    fill: #3b82f6 !important;
    opacity: 0.3 !important;
}
body.dark-theme .exit-intent-card .feat-icon svg circle {
    fill: #1e293b !important;
    stroke: #60a5fa !important;
}
body.dark-theme .exit-intent-card .feat-icon svg path {
    stroke: #60a5fa !important;
}
body.dark-theme .exit-intent-card .feat-icon svg line {
    stroke: #ef4444 !important;
}
body.dark-theme .exit-intent-card .feat-icon svg text {
    fill: #60a5fa !important;
}
body.dark-theme .exit-intent-card .feat-label {
    color: #cbd5e1 !important;
}
body.dark-theme .exit-intent-card .discount-badge {
    background: #ef4444 !important;
    color: #fff !important;
}
body.dark-theme .exit-intent-card .timer-row {
    color: #cbd5e1 !important;
}
body.dark-theme .exit-intent-card .tbox {
    background: #1e293b !important;
    color: #60a5fa !important;
    border-color: #334155 !important;
}
body.dark-theme .exit-intent-card .tsep {
    color: #3b82f6 !important;
}
body.dark-theme .exit-intent-card .footer-note {
    color: #64748b !important;
}
body.dark-theme .exit-close-btn {
    background: rgba(255,255,255,0.1) !important;
    color: #94a3b8 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes printBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}






