/* 
   OldCity FiveM Community Website - Core Stylesheet
   Theme: Cyber Electric Blue & Space Obsidian
*/

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

:root {
    /* Color Palette */
    --primary: #082c8a;
    --primary-rgb: 8, 44, 138;
    --primary-glow: rgba(8, 44, 138, 0.45);
    --secondary: #0a3ab5;
    --secondary-rgb: 10, 58, 181;
    
    --bg-dark: #060810;
    --bg-darker: #030408;
    --bg-card: rgba(11, 16, 33, 0.65);
    --bg-card-hover: rgba(18, 26, 54, 0.8);
    
    --text-white: #ffffff;
    --text-main: #e2e8f0;
    --text-muted: #8892b0;
    
    --border-color: rgba(26, 98, 255, 0.2);
    --border-hover: rgba(26, 98, 255, 0.55);
    
    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 98, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 194, 255, 0.08) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* Background animated stars grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 98, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 98, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-family: var(--font-ar);
    font-weight: 700;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(6, 8, 16, 0.75);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(3, 4, 8, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(26, 98, 255, 0.5));
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-white) 25%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Sidebar Drawer for Mobile */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(6, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: 101;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: var(--transition-smooth);
}

.sidebar.active {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
}

.sidebar-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-white);
    padding-right: 8px;
    border-right: 3px solid var(--primary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

/* Dark mesh/gradient overlay on top of video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 90%),
                linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 150px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 25px rgba(26, 98, 255, 0.6));
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-white) 25%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(26, 98, 255, 0.6);
}

.btn-outline {
    background: rgba(26, 98, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(26, 98, 255, 0.15);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 194, 255, 0.2);
}

.btn-fivem {
    background: var(--text-white) !important;
    color: var(--secondary) !important;
    border: 1px solid var(--text-white) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15) !important;
}

.btn-fivem:hover {
    background: #eef2ff !important;
    color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3) !important;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 98, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 98, 255, 0.15);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-white) 25%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Streamers Grid */
.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.streamer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    cursor: pointer;
}

.streamer-avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.streamer-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: var(--transition-smooth);
}

.streamer-card:hover .streamer-avatar {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.5);
}

.live-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #ff0055;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(255, 0, 85, 0.5);
    letter-spacing: 0.5px;
}

.streamer-name {
    font-size: 18px;
    margin-bottom: 6px;
}

.streamer-platform {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(36px, 5vw, 60px);
    font-family: var(--font-en);
    background: linear-gradient(135deg, var(--text-white) 25%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(26, 98, 255, 0.3));
}

.stat-item p {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}

.platforms-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    min-height: 250px;
    width: 100%;
    max-width: 400px;
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.platform-card.discord {
    border-color: rgba(88, 101, 242, 0.3);
}
.platform-card.discord:hover {
    border-color: #5865f2;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}
.platform-card.discord .platform-icon {
    color: #5865f2;
}

.platform-card.twitter {
    border-color: rgba(29, 161, 242, 0.3);
}
.platform-card.twitter:hover {
    border-color: #1da1f2;
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.2);
}
.platform-card.twitter .platform-icon {
    color: #1da1f2;
}

.platform-card.kick {
    border-color: rgba(83, 252, 24, 0.3);
}
.platform-card.kick:hover {
    border-color: #53fc18;
    box-shadow: 0 10px 30px rgba(83, 252, 24, 0.2);
}
.platform-card.kick .platform-icon {
    color: #53fc18;
}

.platform-card:hover .platform-icon {
    transform: scale(1.15) translateY(-5px);
}

.platform-name {
    font-size: 22px;
    margin-bottom: 8px;
}

.platform-desc {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Feature Informational Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(26, 98, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--secondary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-box {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feature-link i {
    transition: var(--transition-fast);
}

.feature-link:hover i {
    transform: translateX(-4px); /* For RTL */
}

/* Interactive Rules Accordion */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    background: rgba(11, 16, 33, 0.5);
    border: 1px solid var(--border-color);
    padding: 16px 20px 16px 50px; /* Adjust padding for RTL: icon on the left/right */
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-ar);
    font-size: 16px;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.25);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.rules-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(26, 98, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-ar);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.accordion-item {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.accordion-item.active {
    border-color: var(--border-hover);
    box-shadow: 0 5px 20px rgba(26, 98, 255, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-white);
    font-family: var(--font-ar);
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}

.accordion-icon {
    transition: var(--transition-fast);
    color: var(--secondary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-body {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    border-top: 1px solid rgba(26, 98, 255, 0.1);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.accordion-body ul {
    margin-right: 20px;
    margin-top: 10px;
}

.accordion-body li {
    margin-bottom: 8px;
}

/* Whitelist Form Multi-Step Styles */
.whitelist-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(26, 98, 255, 0.1);
    z-index: 1;
}

.step-line-progress {
    position: absolute;
    top: 25px;
    right: 0; /* RTL alignment */
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
    width: 0%;
    transition: var(--transition-smooth);
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-node.active .step-circle {
    border-color: var(--secondary);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
}

.step-node.completed .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-node.active .step-label {
    color: var(--text-white);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.form-input {
    width: 100%;
    background: rgba(6, 8, 16, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-ar);
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.2);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Custom Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    cursor: pointer;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    transition: var(--transition-fast);
}

.form-check input {
    display: none;
}

.form-check input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-muted);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 30px auto;
    border-radius: 50%;
    background: rgba(46, 213, 115, 0.1);
    border: 3px solid #2ed573;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ed573;
    font-size: 40px;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
    animation: scaleCheck 0.4s ease-out;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(26, 98, 255, 0.3));
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-link:hover {
    color: var(--text-white);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* RTL - left side */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.5);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes scaleCheck {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .platforms-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .platforms-grid, .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        min-height: 200px;
        padding: 30px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Store Rules Modal & Button Styles */
.rules-btn {
    border-color: rgba(255, 174, 0, 0.3) !important;
    color: #ffae00 !important;
}
.rules-btn:hover {
    background: rgba(255, 174, 0, 0.1) !important;
    border-color: #ffae00 !important;
    box-shadow: 0 0 15px rgba(255, 174, 0, 0.25) !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
