/* ========================================================
   STRYMTV HUB PRO — NEXT-GEN CYBERPUNK / APPLE GLASS UI
   ======================================================== */

:root {
    --bg-base: #060813;
    --bg-surface: rgba(15, 23, 42, 0.75);
    --bg-card: rgba(26, 34, 56, 0.65);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(0, 242, 254, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-led: linear-gradient(90deg, #ff007f, #00f2fe, #7928ca, #00ff88, #ff007f);
    --vip-gold: #fbbf24;
    --vip-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 9999px;
    --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.35);
}

/* THEMES */
body.theme-oled {
    --bg-base: #000000;
    --bg-surface: rgba(18, 18, 18, 0.85);
    --bg-card: rgba(28, 28, 28, 0.75);
    --border-glass: rgba(255, 255, 255, 0.16);
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

body.theme-violet {
    --bg-base: #0c071e;
    --bg-surface: rgba(23, 14, 48, 0.8);
    --bg-card: rgba(38, 22, 77, 0.7);
    --accent-primary: #a855f7;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --border-glow: rgba(168, 85, 247, 0.4);
}

body.theme-crimson {
    --bg-base: #140507;
    --bg-surface: rgba(36, 12, 17, 0.8);
    --bg-card: rgba(56, 19, 27, 0.7);
    --accent-primary: #f43f5e;
    --accent-secondary: #fb7185;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    --border-glow: rgba(244, 63, 94, 0.4);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(79, 172, 254, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(121, 40, 202, 0.12) 0%, transparent 45%);
}

[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

/* RUNNING NEON LED LIGHT BORDER */
.led-border {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
}

.led-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: var(--accent-led);
    background-size: 400% 400%;
    z-index: -1;
    animation: ledFlow 6s linear infinite;
    filter: blur(4px);
    opacity: 0.85;
}

@keyframes ledFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* HEADER & NAVBAR */
.navbar-glass {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 8, 19, 0.75);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.85rem 1.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-info h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* FLOATING CONTROLS (THEME & LANG) */
.ctrl-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ctrl-pill:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-vip-nav {
    background: var(--vip-gradient);
    color: #1a1200;
    font-weight: 700;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-vip-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* CONTAINER */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

/* HERO SECTION */
.hero-box {
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* SEARCH & CATEGORY BAR */
.search-bar-wrap {
    margin-bottom: 2rem;
    position: relative;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(15px);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[dir="rtl"] .search-input {
    padding: 1rem 3rem 1rem 1.25rem;
}

.search-icon-pos {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
}

[dir="rtl"] .search-icon-pos {
    left: auto;
    right: 1.15rem;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-neon);
}

/* CATEGORY PILLS */
.category-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

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

.cat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--accent-gradient);
    color: #060813;
    font-weight: 700;
    box-shadow: var(--shadow-neon);
    border-color: transparent;
}

/* SECTION TITLES */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* STRYMTV LIVE STREAM CARDS */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stream-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    backdrop-filter: blur(15px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stream-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.live-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulseRed 2s infinite;
}

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

.stream-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.stream-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-stream-open {
    flex: 1;
    background: var(--accent-gradient);
    color: #060813;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-stream-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-stream-copy:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* APPS & TWEAKS GRID */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--border-glow);
}

.app-card-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    background: #111;
}

.app-meta h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.app-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-tag {
    font-size: 0.7rem;
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 0.35rem;
}

.app-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.app-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-app-vip {
    flex: 1.2;
    background: var(--vip-gradient);
    color: #1a1200;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-app-free {
    flex: 0.8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* VIP LANDING & PRICING */
.vip-card-box {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
}

.vip-card-box.vip-wide {
    max-width: 980px;
}

.vip-price-tag {
    font-size: 3rem;
    font-weight: 900;
    color: var(--vip-gold);
    margin: 1rem 0;
}

.vip-perks-list {
    text-align: left;
    margin: 1.5rem 0 2rem 0;
    list-style: none;
}

[dir="rtl"] .vip-perks-list {
    text-align: right;
}

.vip-perks-list li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-perks-list li span.check {
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
}

.payment-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn-checkout-paddle {
    background: var(--vip-gradient);
    color: #1a1200;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout-paddle:hover {
    transform: translateY(-2px);
}

.btn-checkout-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* FOOTER */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
    background: rgba(6, 8, 19, 0.85);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
}

/* RESPONSIVE & MOBILE POLISH */
@media (max-width: 768px) {
    .navbar-glass {
        padding: 0.55rem 0.85rem;
    }
    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }
    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .brand-info h1 {
        font-size: 0.95rem;
        max-width: 125px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-info p {
        display: none;
    }
    .nav-actions {
        gap: 0.35rem;
        margin-top: 0;
        align-items: center;
    }
    .desktop-only {
        display: none !important;
    }
    .ctrl-pill {
        padding: 0.35rem 0.55rem;
        font-size: 0.76rem;
    }
    .hero-box {
        padding: 1.5rem 1rem;
    }
    .hero-box h2 {
        font-size: 1.5rem;
    }
    .stream-grid, .app-grid {
        grid-template-columns: 1fr;
    }
    .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .app-container {
        padding: 0 0.85rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 540px) {
    .navbar-glass {
        padding: 0.45rem 0.65rem;
    }
    .brand-info h1 {
        max-width: 110px;
        font-size: 0.9rem;
    }
    .ctrl-pill span.pill-text {
        display: none !important;
    }
    .ctrl-pill {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }
    .match-countdown-card {
        padding: 1rem !important;
    }
}

/* FLOATING iOS DOCK BAR */
body {
    padding-bottom: 95px !important;
}

.ios-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 242, 254, 0.25);
    z-index: 900;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
}

.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ios-bottom-bar {
        bottom: 12px;
        padding: 4px 6px;
        gap: 2px;
        max-width: calc(100vw - 12px);
    }
    .bottom-tab-item {
        padding: 4px 6px;
    }
    .bottom-tab-item .tab-icon {
        font-size: 1.1rem;
    }
    .bottom-tab-item .tab-label {
        font-size: 0.6rem;
    }
}

.bottom-tab-item:hover, .bottom-tab-item.active {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.bottom-tab-item .tab-icon {
    font-size: 1.25rem;
}

.bottom-tab-item .tab-label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.bottom-tab-item.vip-tab {
    background: var(--vip-gradient);
    color: #1a1200;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.bottom-tab-item.vip-tab:hover {
    background: var(--vip-gradient);
    color: #1a1200;
    transform: scale(1.05);
}

.bottom-tab-item.vip-tab .tab-label {
    color: #1a1200;
}

/* MULTI-PACKAGE PRICING TIERS */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.package-card:hover, .package-card.selected {
    border-color: var(--vip-gold);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
    transform: translateY(-4px);
    background: rgba(251, 191, 36, 0.06);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vip-gradient);
    color: #1a1200;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: var(--radius-full);
}

.package-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--vip-gold);
}

.package-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================================
   MODAL POPUPS (APPLE GLASS & CYBERPUNK)
   ======================================================== */
.ios-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 18, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ios-modal-dialog {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.25);
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
    color: var(--text-primary);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.ios-modal-close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
}

.ios-modal-close:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    margin: 1.5rem 0;
}

.modal-tier-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.modal-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.modal-tier-card.featured {
    border-color: var(--vip-gold);
    background: rgba(251, 191, 36, 0.06);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.25);
}

.modal-tier-features {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1.25rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.modal-tier-features li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.modal-tier-features li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: 800;
}

.modal-tier-card.featured .modal-tier-features li::before {
    color: var(--vip-gold);
}

/* THEME PALETTE SWATCHES */
.theme-swatch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.theme-swatch-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.15rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.theme-swatch-card:hover, .theme-swatch-card.active {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.theme-swatch-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

@media (max-width: 720px) {
    .modal-grid-3, .modal-grid-4 {
        grid-template-columns: 1fr;
    }
    .theme-swatch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ios-modal-dialog {
        padding: 1.6rem 1.15rem;
        border-radius: 20px;
    }
    .modal-tier-card {
        padding: 1.25rem 1rem;
    }
}

/* ========================================================
   AZUL IPTV & IPTV SMART PLAYER ENHANCEMENTS
   ======================================================== */
.azul-dashboard {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.azul-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.azul-main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.25rem;
}

.azul-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.azul-tile {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.azul-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.azul-tile:hover, .azul-tile:active {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}

.azul-tile:hover::before {
    opacity: 1;
}

.azul-tile-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.azul-tile-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.azul-tile-badge {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-top: 0.35rem;
}

.azul-side-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.azul-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.azul-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(3px);
}

/* SMART PLAYER SPORTS & CHANNELS LIST VIEW */
.smartplayer-wrap {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(16px);
}

.smartplayer-search-bar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    padding: 0.4rem 1.25rem;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.smartplayer-search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.smartplayer-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.smartplayer-filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
}

.smartplayer-filter-tabs::-webkit-scrollbar {
    display: none;
}

.smartplayer-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.smartplayer-tab:hover, .smartplayer-tab.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.smartplayer-channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.smartplayer-channel-row {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s ease;
}

.smartplayer-channel-row:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateX(3px);
}

.smartplayer-channel-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.smartplayer-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.smartplayer-channel-info {
    min-width: 0;
}

.smartplayer-channel-name {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smartplayer-channel-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
    flex-wrap: wrap;
}

.smartplayer-channel-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.smartplayer-fav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smartplayer-fav-btn:hover, .smartplayer-fav-btn.active {
    color: #ef4444;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

/* SEGMENTED SWITCHER CONTROL FOR MOBILE VIP / CERTIFICATES */
.ios-segmented-control {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    padding: 4px;
    margin: 1.25rem auto 1.5rem auto;
    max-width: 480px;
    position: relative;
}

.segmented-segment {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 99px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.segmented-segment.active {
    background: var(--vip-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.35);
}

@media (max-width: 768px) {
    .azul-main-layout {
        grid-template-columns: 1fr;
    }
    .azul-hero-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .azul-tile {
        padding: 1rem 0.5rem;
    }
    .azul-tile-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    .azul-tile-title {
        font-size: 0.85rem;
    }
    .azul-tile-badge {
        font-size: 0.65rem;
    }
    .azul-side-col {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .azul-action-btn {
        justify-content: center;
        padding: 0.65rem 0.4rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    .smartplayer-channel-row {
        padding: 0.75rem;
    }
    .smartplayer-channel-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .smartplayer-channel-name {
        font-size: 0.85rem;
    }
}

/* ========================================================
   IN-APP TWEAKS & VISUAL FX SUITE
   ======================================================== */

/* HIGH CONTRAST CRISP TEXT MODE */
body.high-contrast {
    --text-primary: #ffffff !important;
    --text-secondary: #e2e8f0 !important;
    --text-muted: #94a3b8 !important;
    background-image: none !important;
    background-color: #050814 !important;
}
body.high-contrast .led-border::before {
    display: none !important;
}
body.high-contrast .led-border {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8) !important;
}
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4, body.high-contrast strong {
    text-shadow: none !important;
    color: #ffffff !important;
}

/* NO-GLOW MODE */
body.no-glow .led-border::before {
    display: none !important;
}

/* SCREEN EDGE GLOW (RUNNING NEON STRIP) */
.edge-glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 99990;
    box-shadow: inset 0 0 16px var(--accent-primary), inset 0 0 35px rgba(0, 242, 254, 0.25);
    transition: opacity 0.3s;
}

/* DYNAMIC ISLAND FLOATING STATUS PILL */
.dynamic-island-pill {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    z-index: 99998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.di-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* SNOWBOARD CANVAS */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99989;
}

/* iOS TWEAK SWITCH TOGGLE */
.tweak-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
}
.tweak-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tweak-icon {
    font-size: 1.4rem;
}
.tweak-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}
.tweak-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.ios-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 999px;
}
.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.ios-switch input:checked + .ios-slider {
    background-color: #10b981;
}
.ios-switch input:checked + .ios-slider:before {
    transform: translateX(22px);
}

/* ========================================================
   LIVE CUSTOMER SUPPORT CHAT WIDGET
   ======================================================== */
.floating-chat-bubble {
    position: fixed;
    bottom: 96px;
    right: 18px;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,242,254,0.25), rgba(79,172,254,0.35));
    border: 1px solid var(--accent-primary);
    color: #fff;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-chat-bubble:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.5);
}
.chat-bubble-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 0.4rem;
    box-shadow: 0 0 8px #10b981;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.live-chat-drawer {
    position: fixed;
    bottom: 95px;
    right: 18px;
    width: 370px;
    max-width: calc(100vw - 28px);
    height: 520px;
    max-height: calc(100vh - 120px);
    z-index: 1000;
    border-radius: 20px;
    background: rgba(10, 14, 28, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 25px 60px rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: drawerSlideUp 0.25s ease-out;
}
@keyframes drawerSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-avatar-glow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 0 12px var(--border-glow);
}
.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
}
.chat-close-btn:hover {
    color: #fff;
}

.chat-channels-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}
.chat-channel-pill {
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    border: 1px solid transparent;
}
.chat-channel-pill.wa { background: rgba(16,185,129,0.15); color: #10b981; border-color: rgba(16,185,129,0.3); }
.chat-channel-pill.tg { background: rgba(56,189,248,0.15); color: #38bdf8; border-color: rgba(56,189,248,0.3); }
.chat-channel-pill.mail { background: rgba(255,255,255,0.06); color: var(--text-secondary); border-color: var(--border-glass); }

.chat-user-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-user-info-bar input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 0.76rem;
}
.chat-user-info-bar input#chatUserIos {
    grid-column: span 2;
}

@media (max-width: 480px) {
    .floating-chat-bubble {
        bottom: 96px;
        right: 16px;
        padding: 0.5rem 0.8rem;
    }
    .live-chat-drawer {
        bottom: 84px;
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
        height: 72vh;
    }
}

.chat-messages-stream {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.chat-bubble {
    max-width: 82%;
    padding: 0.6rem 0.85rem;
    font-size: 0.83rem;
    line-height: 1.45;
    word-break: break-word;
}
.chat-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #030712;
    font-weight: 600;
    border-radius: 14px 14px 3px 14px;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}
.chat-bubble-bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: #f8fafc;
    border-radius: 14px 14px 14px 3px;
}
.chat-bubble-admin {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.25));
    border: 1px solid var(--vip-gold);
    color: #fef08a;
    border-radius: 14px 14px 14px 3px;
}
.chat-bubble-media {
    margin-top: 0.45rem;
    border-radius: 8px;
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}

.chat-attachment-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(0,242,254,0.1);
    border-top: 1px solid rgba(0,242,254,0.25);
}

.chat-composer-bar {
    padding: 0.6rem 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.chat-composer-bar input[type="text"] {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 0.82rem;
}
.chat-attach-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}
.chat-send-btn {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4);
}



