/**
 * Aegis Play Hub - Main Stylesheet
 * Cyber-Shield Luxury Arcade Theme
 * Prefix: aph-
 */

:root {
    --aph-bg-main: #0a0e17;
    --aph-bg-surface: #111724;
    --aph-bg-card: #161f31;
    --aph-bg-elevated: #1d283f;
    --aph-primary: #00e5ff;
    --aph-primary-glow: rgba(0, 225, 255, 0.35);
    --aph-secondary: #2979ff;
    --aph-gold: #ffb300;
    --aph-gold-glow: rgba(255, 179, 0, 0.4);
    --aph-gold-light: #ffe082;
    --aph-emerald: #00e676;
    --aph-danger: #ff1744;
    --aph-text: #f3f6fa;
    --aph-text-muted: #94a3b8;
    --aph-text-dim: #64748b;
    --aph-border: rgba(0, 229, 255, 0.16);
    --aph-border-card: rgba(255, 255, 255, 0.08);
    --aph-radius: 12px;
    --aph-radius-lg: 20px;
    --aph-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --aph-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --aph-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--aph-bg-main);
    color: var(--aph-text);
    font-family: var(--aph-font);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(41, 121, 255, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(255, 179, 0, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--aph-primary);
    text-decoration: none;
    transition: var(--aph-transition);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--aph-primary-glow);
}

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

/* Container */
.aph-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Compliance Notice Bar */
.aph-topbar {
    background: linear-gradient(90deg, #090d16 0%, #101826 50%, #090d16 100%);
    border-bottom: 1px solid var(--aph-border);
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--aph-text-muted);
}

.aph-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aph-topbar-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aph-badge-age {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.5);
    color: #ff5252;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.aph-badge-free {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.4);
    color: var(--aph-emerald);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Main Navigation Header */
.aph-header {
    background: rgba(17, 23, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--aph-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--aph-transition);
}

.aph-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 20px;
}

.aph-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.aph-logo-shield {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px var(--aph-primary-glow));
    flex-shrink: 0;
}

.aph-logo-text {
    display: flex;
    flex-direction: column;
}

.aph-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.aph-brand-title span {
    color: var(--aph-primary);
    text-shadow: 0 0 10px var(--aph-primary-glow);
}

.aph-brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--aph-text-muted);
    text-transform: uppercase;
}

/* Nav Menu Links */
.aph-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.aph-nav-link {
    padding: 8px 14px;
    color: var(--aph-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--aph-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.aph-nav-link:hover, .aph-nav-link.active {
    color: #fff;
    background: rgba(0, 229, 255, 0.1);
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.15);
}

.aph-nav-link.active {
    color: var(--aph-primary);
    border-bottom: 2px solid var(--aph-primary);
}

/* User Header Controls */
.aph-user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aph-coin-pill {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.15) 0%, rgba(255, 179, 0, 0.05) 100%);
    border: 1px solid rgba(255, 179, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--aph-gold-light);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.15);
}

.aph-coin-icon {
    width: 18px;
    height: 18px;
    fill: var(--aph-gold);
}

/* Buttons */
.aph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--aph-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aph-btn-primary {
    background: linear-gradient(135deg, #00e5ff 0%, #0091ea 100%);
    color: #050a12;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
}

.aph-btn-primary:hover {
    background: linear-gradient(135deg, #33ebff 0%, #00b0ff 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.aph-btn-gold {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    color: #0a0904;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.35);
}

.aph-btn-gold:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffa000 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.5);
}

.aph-btn-outline {
    background: transparent;
    color: var(--aph-text);
    border: 1px solid var(--aph-border);
}

.aph-btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--aph-primary);
    color: #fff;
}

.aph-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.aph-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.aph-drawer-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--aph-border);
    color: var(--aph-text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* Sliding Drawer Navigation */
.aph-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--aph-transition);
}

.aph-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aph-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--aph-bg-surface);
    border-right: 1px solid var(--aph-border);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.aph-drawer-overlay.active .aph-drawer {
    transform: translateX(0);
}

.aph-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--aph-border);
}

.aph-drawer-close {
    background: transparent;
    border: none;
    color: var(--aph-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.aph-drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aph-drawer-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--aph-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.aph-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aph-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--aph-text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--aph-transition);
}

.aph-drawer-link:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--aph-primary);
}

/* 3D Hero Carousel */
.aph-hero-section {
    position: relative;
    padding: 30px 0 20px;
    overflow: hidden;
}

.aph-carousel-container {
    position: relative;
    border-radius: var(--aph-radius-lg);
    overflow: hidden;
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    min-height: 420px;
}

.aph-carousel-slides {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.aph-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(0.98);
    display: flex;
    align-items: center;
    padding: 50px 60px;
    background-size: cover;
    background-position: center;
}

.aph-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

.aph-slide-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.aph-slide-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aph-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--aph-primary);
    color: var(--aph-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.aph-slide-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    text-transform: uppercase;
}

.aph-slide-title span {
    background: linear-gradient(135deg, #00e5ff 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aph-slide-desc {
    font-size: 1.05rem;
    color: var(--aph-text-muted);
    line-height: 1.6;
}

.aph-slide-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.aph-carousel-arrows {
    position: absolute;
    bottom: 25px;
    right: 35px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.aph-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17, 23, 36, 0.8);
    border: 1px solid var(--aph-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--aph-transition);
}

.aph-carousel-btn:hover {
    background: var(--aph-primary);
    color: #000;
    box-shadow: 0 0 15px var(--aph-primary-glow);
}

.aph-carousel-dots {
    position: absolute;
    bottom: 35px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.aph-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--aph-transition);
}

.aph-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--aph-primary);
    box-shadow: 0 0 10px var(--aph-primary-glow);
}

/* Community Jackpot Accumulator (Vault) */
.aph-vault-card {
    background: linear-gradient(135deg, #131a29 0%, #1c263b 100%);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: var(--aph-radius-lg);
    padding: 30px 35px;
    margin: 25px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(255, 179, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.aph-vault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.aph-vault-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aph-vault-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 179, 0, 0.15);
    border: 1px solid var(--aph-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--aph-gold-glow);
}

.aph-vault-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.aph-vault-title span {
    color: var(--aph-gold-light);
}

.aph-vault-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 23, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--aph-border);
}

.aph-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aph-timer-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--aph-primary);
    font-family: monospace;
}

.aph-timer-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--aph-text-muted);
}

.aph-vault-ticker-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.aph-vault-counter {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 179, 0, 0.3);
}

.aph-vault-subtext {
    font-size: 1rem;
    color: var(--aph-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aph-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.aph-progress-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, #ff8f00 0%, #ffb300 50%, #00e5ff 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--aph-gold-glow);
    transition: width 1s ease;
}

.aph-milestones-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--aph-text-muted);
    font-weight: 600;
}

/* Quickbar & Filter Bar */
.aph-filter-bar {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    border-radius: var(--aph-radius);
    padding: 16px 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.aph-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aph-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--aph-text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--aph-transition);
}

.aph-tab-btn:hover, .aph-tab-btn.active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--aph-primary);
    color: #fff;
}

.aph-filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.aph-search-box {
    position: relative;
    min-width: 220px;
}

.aph-search-input {
    width: 100%;
    background: var(--aph-bg-main);
    border: 1px solid var(--aph-border);
    border-radius: 8px;
    padding: 8px 14px 8px 36px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: var(--aph-transition);
}

.aph-search-input:focus {
    border-color: var(--aph-primary);
    box-shadow: 0 0 10px var(--aph-primary-glow);
}

.aph-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--aph-text-dim);
}

.aph-select {
    background: var(--aph-bg-main);
    border: 1px solid var(--aph-border);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* Game Rails & Grid */
.aph-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aph-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aph-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--aph-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--aph-primary-glow);
}

.aph-rail-controls {
    display: flex;
    gap: 8px;
}

.aph-rail-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--aph-transition);
}

.aph-rail-btn:hover {
    background: var(--aph-primary);
    color: #000;
}

.aph-rail-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.aph-rail-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 20px;
    scrollbar-width: none;
}

.aph-rail-track::-webkit-scrollbar {
    display: none;
}

.aph-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Game Card */
.aph-game-card {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    overflow: hidden;
    transition: var(--aph-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 230px;
}

.aph-game-card:hover {
    transform: translateY(-6px);
    border-color: var(--aph-primary);
    box-shadow: 0 14px 30px rgba(0, 229, 255, 0.2);
}

.aph-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
}

.aph-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.aph-game-card:hover .aph-card-thumb img {
    transform: scale(1.06);
}

.aph-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--aph-transition);
}

.aph-game-card:hover .aph-card-overlay {
    opacity: 1;
}

.aph-card-badge-top {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid var(--aph-primary);
    color: var(--aph-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.aph-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.aph-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.aph-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--aph-text-muted);
}

.aph-card-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--aph-text-dim);
}

.aph-card-stats span strong {
    color: var(--aph-gold-light);
}

/* Live Winners Ticker */
.aph-winners-section {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    border-radius: var(--aph-radius);
    padding: 16px 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.aph-winners-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--aph-primary);
    color: var(--aph-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.aph-winners-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.aph-winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.aph-winner-player {
    font-weight: 700;
    color: #fff;
}

.aph-winner-amt {
    font-weight: 800;
    color: var(--aph-gold-light);
}

.aph-winner-game {
    color: var(--aph-text-muted);
}

/* Feature Benefits Grid */
.aph-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.aph-feature-card {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--aph-transition);
}

.aph-feature-card:hover {
    border-color: var(--aph-primary);
    transform: translateY(-4px);
}

.aph-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--aph-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aph-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.aph-feature-desc {
    font-size: 0.9rem;
    color: var(--aph-text-muted);
    line-height: 1.5;
}

/* Studios Showcase */
.aph-studios-bar {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 24px 30px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.aph-studio-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--aph-text-muted);
    font-weight: 700;
}

.aph-studio-logos {
    display: flex;
    align-items: center;
    gap: 30px;
}

.aph-studio-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

/* Play Cabinet Screen (play.php) */
.aph-cabinet-bar {
    background: var(--aph-bg-surface);
    border-bottom: 1px solid var(--aph-border);
    padding: 12px 20px;
    position: sticky;
    top: 74px;
    z-index: 900;
    backdrop-filter: blur(12px);
}

.aph-cabinet-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.aph-cabinet-game-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aph-cabinet-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 720px;
    background: #000;
    border-radius: var(--aph-radius);
    border: 1px solid var(--aph-border);
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.aph-cabinet-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.aph-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 20px;
    margin: 25px 0;
}

.aph-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aph-spec-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--aph-text-muted);
}

.aph-spec-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Rewards Wheel Screen (rewards.php) */
.aph-wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.aph-wheel-wrapper {
    position: relative;
    width: 360px;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
    margin: 20px auto;
}

.aph-wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.3), inset 0 0 15px rgba(255, 179, 0, 0.3);
}

.aph-wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 38px;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.aph-wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd54f 0%, #ff8f00 100%);
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

/* Quests System (quests.php) */
.aph-quests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0;
}

.aph-quest-card {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: var(--aph-transition);
}

.aph-quest-card:hover {
    border-color: var(--aph-primary);
}

.aph-quest-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.aph-quest-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aph-quest-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.aph-quest-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}

.aph-quest-desc {
    font-size: 0.85rem;
    color: var(--aph-text-muted);
}

.aph-quest-progress-wrap {
    margin-top: 6px;
    width: 100%;
    max-width: 320px;
}

/* VIP Status Screen (status.php) */
.aph-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.aph-tier-card {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.aph-tier-card.active {
    border-color: var(--aph-gold);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.2);
}

.aph-tier-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.aph-tier-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.aph-tier-mult {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--aph-gold-light);
}

.aph-tier-perks {
    list-style: none;
    font-size: 0.8rem;
    color: var(--aph-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

/* Auth Pages (login.php / register.php) */
.aph-auth-wrapper {
    max-width: 460px;
    margin: 50px auto;
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    border-radius: var(--aph-radius-lg);
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.aph-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.aph-auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.aph-auth-subtitle {
    font-size: 0.9rem;
    color: var(--aph-text-muted);
}

.aph-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.aph-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aph-text);
}

.aph-form-input {
    background: var(--aph-bg-main);
    border: 1px solid var(--aph-border-card);
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--aph-transition);
}

.aph-form-input:focus {
    border-color: var(--aph-primary);
    box-shadow: 0 0 10px var(--aph-primary-glow);
}

.aph-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--aph-text-muted);
    margin: 18px 0;
    cursor: pointer;
}

.aph-form-checkbox input {
    margin-top: 4px;
    accent-color: var(--aph-primary);
}

.aph-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.aph-alert-error {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.5);
    color: #ff5252;
}

.aph-alert-success {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: var(--aph-emerald);
}

/* Static Content Pages */
.aph-content-card {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius-lg);
    padding: 40px;
    margin: 30px 0 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.aph-page-hero {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--aph-border);
    margin-bottom: 30px;
}

.aph-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.aph-page-sub {
    font-size: 1.05rem;
    color: var(--aph-text-muted);
}

.aph-prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--aph-primary);
    margin: 30px 0 14px;
}

.aph-prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 20px 0 10px;
}

.aph-prose p {
    font-size: 0.95rem;
    color: var(--aph-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.aph-prose ul, .aph-prose ol {
    margin: 14px 0 20px 24px;
    color: var(--aph-text-muted);
    font-size: 0.95rem;
}

.aph-prose li {
    margin-bottom: 8px;
}

.aph-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.aph-table th, .aph-table td {
    padding: 12px 16px;
    border: 1px solid var(--aph-border-card);
    text-align: left;
}

.aph-table th {
    background: rgba(0, 229, 255, 0.08);
    color: #fff;
    font-weight: 700;
}

.aph-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion */
.aph-faq-item {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--aph-transition);
}

.aph-faq-question {
    padding: 18px 24px;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aph-faq-answer {
    padding: 0 24px 20px;
    color: var(--aph-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.aph-faq-item.active .aph-faq-answer {
    display: block;
}

.aph-faq-item.active {
    border-color: var(--aph-primary);
}

/* Footer */
.aph-footer {
    background: #070a10;
    border-top: 1px solid var(--aph-border);
    padding: 60px 0 30px;
    margin-top: auto;
}

.aph-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.aph-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aph-footer-desc {
    font-size: 0.85rem;
    color: var(--aph-text-muted);
    line-height: 1.6;
}

.aph-footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

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

.aph-footer-link {
    font-size: 0.85rem;
    color: var(--aph-text-muted);
}

.aph-footer-link:hover {
    color: var(--aph-primary);
}

.aph-footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--aph-border-card);
    border-radius: var(--aph-radius);
    padding: 20px;
    margin-bottom: 30px;
    font-size: 0.8rem;
    color: var(--aph-text-dim);
    line-height: 1.6;
}

.aph-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    font-size: 0.8rem;
    color: var(--aph-text-dim);
    flex-wrap: wrap;
    gap: 15px;
}

/* Mobile Bottom Tabbar */
.aph-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(14, 20, 31, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--aph-border);
    z-index: 1000;
    padding: 0 10px;
}

.aph-tabbar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.aph-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--aph-text-dim);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--aph-transition);
}

.aph-tabbar-item.active, .aph-tabbar-item:hover {
    color: var(--aph-primary);
}

.aph-tabbar-icon {
    width: 22px;
    height: 22px;
}

/* Cookie Consent Banner (Google Consent Mode v2) */
.aph-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    background: rgba(17, 23, 36, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--aph-border);
    border-radius: var(--aph-radius-lg);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aph-cookie-banner.visible {
    transform: translateY(0);
}

.aph-cookie-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aph-cookie-desc {
    font-size: 0.85rem;
    color: var(--aph-text-muted);
    line-height: 1.5;
}

.aph-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Popup */
.aph-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: var(--aph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aph-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aph-modal {
    background: var(--aph-bg-surface);
    border: 1px solid var(--aph-border);
    border-radius: var(--aph-radius-lg);
    padding: 36px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.aph-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--aph-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .aph-nav-links {
        display: none;
    }
    .aph-drawer-toggle {
        display: block;
    }
    .aph-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 64px; /* Space for bottom tabbar */
    }
    .aph-tabbar {
        display: block;
    }
    .aph-slide {
        padding: 40px 24px;
    }
    .aph-slide-title {
        font-size: 2rem;
    }
    .aph-vault-counter {
        font-size: 2.2rem;
    }
    .aph-footer-grid {
        grid-template-columns: 1fr;
    }
    .aph-cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 74px;
    }
    .aph-user-controls .aph-btn-outline {
        display: none;
    }
}
