/* ============================================
   YourFlix Portal — Mobile App Shell CSS
   ============================================ */

/* Fonts loaded via <link> in HTML head for performance */

:root {
    --primary: #ff5e15;
    --primary-dark: #ea580c;
    --primary-glow: rgba(255,94,21,0.15);
    --green: #22c55e;
    --green-dark: #16a34a;
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #3b82f6;
    --bg-main: #0a0e1a;
    --bg-card: #141a2e;
    --bg-card-hover: #1a2140;
    --bg-elevated: #1e2744;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #94a3b8;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 100px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5);
    --nav-height: 72px;
    --topbar-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { 
    -webkit-text-size-adjust: 100%; 
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', -apple-system, sans-serif; }

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

/* ============================================
   TOP BAR (App Header)
   ============================================ */
.app-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 200;
}

.app-topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-topbar .brand h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.app-topbar .brand h1 span { color: var(--primary); }

.app-topbar .top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-topbar .notif-bell {
    position: relative;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 6px;
    transition: color 0.2s;
}

.app-topbar .notif-bell:active { color: #fff; }

.app-topbar .notif-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(255,94,21,0.5);
}

.app-topbar .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 2px solid rgba(255,94,21,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.app-main {
    padding-top: calc(var(--topbar-height) + 16px);
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    padding-left: 16px;
    padding-right: 16px;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-main.full-width { padding-left: 0; padding-right: 0; }

/* ============================================
   BOTTOM NAVIGATION (App Tab Bar)
   ============================================ */
.app-bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 200;
}

.app-bottomnav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    min-width: 56px;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.app-bottomnav .nav-item .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.app-bottomnav .nav-item.active {
    color: var(--primary);
}

.app-bottomnav .nav-item.active .nav-icon {
    transform: scale(1.1);
}

.app-bottomnav .nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.app-bottomnav .nav-item:active .nav-icon {
    transform: scale(0.9);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid transparent;
    animation: flashIn 0.4s cubic-bezier(0.16,1,0.3,1);
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.flash-success { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.flash-error { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.2); }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header .icon { color: var(--primary); font-size: 1.1rem; }

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 20px;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.card-grid.single { grid-template-columns: 1fr; }

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.app-card:active {
    transform: scale(0.98);
}

.app-card.glow::before {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    top: -30px; right: -30px;
    pointer-events: none;
    filter: blur(40px);
}

.app-card.glow-orange::before { background: rgba(255,94,21,0.15); }
.app-card.glow-green::before { background: rgba(34,197,94,0.15); }
.app-card.glow-yellow::before { background: rgba(234,179,8,0.15); }
.app-card.glow-blue::before { background: rgba(59,130,246,0.15); }

.app-card .card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.app-card .card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.app-card .card-value.primary { color: var(--primary); }
.app-card .card-value.green { color: var(--green); }

.app-card .card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.app-card .card-sub a {
    color: var(--primary);
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

/* Full-width cards */
.card-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card-full h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}

/* ============================================
   BADGES / PILLS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-yellow { background: rgba(234,179,8,0.12); color: #facc15; border: 1px solid rgba(234,179,8,0.25); }
.badge-red { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-blue { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-orange { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(255,94,21,0.25); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,94,21,0.3);
}

.btn-primary:active { box-shadow: 0 2px 8px rgba(255,94,21,0.3); }

.btn-success {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    color: #fff;
}

.btn-outline:active { background: rgba(255,255,255,0.08); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-block { width: 100%; }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-whatsapp:active { background: #20b858; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,94,21,0.15);
}

.form-control::placeholder { color: var(--text-dim); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================
   TABLE (Mobile-friendly cards)
   ============================================ */
.data-list { margin-bottom: 24px; }

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.data-row:last-child { border-bottom: none; }

.data-row .row-left { flex: 1; min-width: 0; }
.data-row .row-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.data-row .row-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.data-row .row-right { text-align: right; flex-shrink: 0; }
.data-row .row-value { font-weight: 700; font-size: 0.95rem; }
.data-row .row-value.green { color: #4ade80; }

/* ============================================
   NOTIFICATION BANNERS
   ============================================ */
.notif-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}

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

.notif-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
}

.notif-banner.type-info::before { background: var(--blue); }
.notif-banner.type-success::before { background: var(--green); }
.notif-banner.type-warning::before { background: var(--yellow); }
.notif-banner.type-promo::before { background: var(--primary); }

.notif-banner .notif-icon { font-size: 1.4rem; flex-shrink: 0; padding-top: 2px; }
.notif-banner .notif-body { flex: 1; min-width: 0; }
.notif-banner .notif-title { font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 4px; }
.notif-banner .notif-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.notif-banner .notif-close {
    color: var(--text-dim);
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================
   PLAN CARDS
   ============================================ */
.plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.plan-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.plan-item:active { transform: scale(0.98); }

.plan-item.affordable { border-color: rgba(34,197,94,0.3); }
.plan-item.best-value { border-color: rgba(255,94,21,0.4); background: rgba(255,94,21,0.04); }

.plan-item .plan-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.plan-item .plan-info { flex: 1; min-width: 0; }
.plan-item .plan-name { font-weight: 700; font-size: 1rem; color: #fff; }
.plan-item .plan-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.plan-item .plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.plan-item .plan-price .currency { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* ============================================
   CREDIT PACKS
   ============================================ */
.credit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.credit-pack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.credit-pack:active { transform: scale(0.96); border-color: var(--primary); }

.credit-pack .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.credit-pack .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   CONTACT OPTIONS
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.contact-option:active { transform: scale(0.97); }

.contact-option.selected {
    border-color: var(--primary);
    background: rgba(255,94,21,0.06);
}

.contact-option .emoji { font-size: 2rem; margin-bottom: 8px; }
.contact-option .name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.contact-option .desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   TRIAL / STATUS BANNERS
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, rgba(255,94,21,0.08), rgba(234,179,8,0.04));
    border: 1px solid rgba(255,94,21,0.2);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 220%; height: 220%;
    background: radial-gradient(circle, rgba(255,94,21,0.1) 0%, transparent 50%);
    animation: heroSpin 25s linear infinite;
    pointer-events: none;
}

@keyframes heroSpin { 100% { transform: rotate(360deg); } }

.hero-banner h2 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; position: relative; }
.hero-banner p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; position: relative; }

.countdown-display {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255,94,21,0.3);
    font-family: 'Outfit', monospace;
    margin-bottom: 4px;
    position: relative;
}

.status-banner {
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.status-banner.pending {
    background: rgba(234,179,8,0.06);
    border-color: rgba(234,179,8,0.2);
}

.status-banner h2 { font-size: 1.2rem; margin-bottom: 8px; }
.status-banner p { font-size: 0.88rem; color: var(--text); line-height: 1.5; max-width: 420px; margin: 0 auto; }

/* ============================================
    REFERRAL
    ============================================ */
.referral-code-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.referral-code-box code {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    font-family: 'Outfit', monospace;
}

.referral-link-display {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-link-display .link-url {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
    flex: 1;
    min-width: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    line-height: 1.4;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:active { transform: scale(0.96); }

.share-btn.whatsapp {
    background: rgba(37,211,102,0.15);
    color: #25D366;
    border: 1px solid rgba(37,211,102,0.25);
}

.share-btn.twitter {
    background: rgba(29,155,240,0.15);
    color: #1d9bf0;
    border: 1px solid rgba(29,155,240,0.25);
}

.referral-code-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.code-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    font-family: 'Outfit', monospace;
    background: rgba(255,94,21,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,94,21,0.2);
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.referral-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.referral-step .step-num {
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,94,21,0.3);
}

.referral-step h4 { font-size: 0.95rem; color: #fff; margin-bottom: 4px; }
.referral-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================
    MORE MENU (Dropdown)
    ============================================ */
.more-dropdown {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
    right: 12px;
    width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 6px 0;
    z-index: 250;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}

.more-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.more-dropdown .sheet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}

.more-dropdown .sheet-item:active {
    background: rgba(255,255,255,0.06);
}

.more-dropdown .sheet-item .sheet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.more-dropdown .sheet-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 14px;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.empty-state p { font-size: 0.88rem; line-height: 1.5; max-width: 280px; margin: 0 auto; }

/* ============================================
    PAGE TRANSITIONS
    ============================================ */
.page-enter {
    animation: pageIn 0.35s cubic-bezier(0.16,1,0.3,1);
}

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

.page-exit {
    animation: pageOut 0.15s ease forwards;
}

@keyframes pageOut {
    to { opacity: 0; transform: translateY(8px); }
}

body {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   DESKTOP OVERRIDES
   ============================================ */
@media (min-width: 769px) {
    .app-topbar {
        padding: 0 32px;
    }

    .app-main {
        max-width: 800px;
        margin: 0 auto;
        padding: calc(var(--topbar-height) + 24px) 32px calc(var(--nav-height) + var(--safe-bottom) + 32px);
    }

    .app-main.full-width { max-width: 1000px; }

    .app-bottomnav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border: 1px solid var(--border);
        border-bottom: none;
    }

    .more-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(calc(240px - 12px)) translateY(8px) scale(0.95);
        transform-origin: bottom center;
    }

    .more-dropdown.open {
        transform: translateX(calc(240px - 12px)) translateY(0) scale(1);
    }

    .card-grid { gap: 16px; }

    .app-card:active { transform: none; }
    .plan-item:active { transform: none; }
    .credit-pack:active { transform: none; }
    .btn:active { transform: none; }
}
