/* ====================================
   SoulRift - Cinematic Website Styles
   ==================================== */

/* CSS Variables */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --background: #0F0F14;
    --background-light: #13131A;
    --surface: #1A1A24;
    --surface-light: #252532;
    --surface-lighter: #2D2D3D;
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-dark: #6B7280;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-glow-strong: rgba(139, 92, 246, 0.5);
    --border: rgba(139, 92, 246, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --blur-amount: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-muted);
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
    color: var(--text);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 24px;
    text-shadow: 0 0 60px var(--accent-glow);
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

/* Glass Card */
.glass-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(26, 26, 36, 0.8);
    border-color: var(--border);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 12px;
    color: var(--text);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 32px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Shop Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.shop-card {
    position: relative;
    overflow: hidden;
}

.shop-card.popular {
    border-color: var(--primary);
}

.shop-card.popular::after {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gradient-primary);
    color: var(--text);
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.shop-card-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.shop-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 0 auto 16px;
    font-size: 2rem;
}

.shop-card-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.shop-card-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.shop-card-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.shop-card-features {
    list-style: none;
    margin-bottom: 24px;
}

.shop-card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shop-card-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-card-features li.included::before {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.shop-card .btn {
    width: 100%;
}

/* Notice Banner */
.notice-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.notice-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: #FBBF24;
    margin-bottom: 4px;
}

.notice-content p {
    font-size: 0.9rem;
}

/* Rules Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--primary);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--surface-light);
}

.accordion-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 24px 24px;
}

.accordion-body ul {
    list-style: none;
}

.accordion-body li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.accordion-body li:last-child {
    border-bottom: none;
}

.accordion-body li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--gradient-dark);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.team-socials a:hover {
    background: var(--primary);
    color: var(--text);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
}

.modal-close:hover {
    background: var(--surface-lighter);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* Footer */
footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-column h4 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--text);
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.5;
}

.page-header h1 {
    position: relative;
    margin-bottom: 16px;
}

.page-header p {
    position: relative;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-up.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.visible {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding: 140px 24px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .container {
        padding: 0 16px;
    }

    .card,
    .glass-card {
        padding: 24px;
    }

    .shop-card {
        padding: 24px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ====================================
   IMPROVED MOBILE STYLES
   ==================================== */

/* Mobile First Fixes */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 12px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: rgba(26, 26, 36, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 40px;
        gap: 8px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: background 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--surface-light);
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 120px 16px 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 24px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Cards Grid */
    .features-grid,
    .shop-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .glass-card {
        padding: 20px;
    }

    /* Shop Cards */
    .shop-card {
        padding: 20px;
    }

    .shop-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .shop-card-title {
        font-size: 1.25rem;
    }

    .shop-card-price {
        font-size: 1.75rem;
    }

    .shop-card-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .shop-card.popular::after {
        font-size: 0.6rem;
        padding: 3px 30px;
        right: -35px;
        top: 12px;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Notice Banner */
    .notice-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
    }

    /* Accordion */
    .accordion-header {
        padding: 16px;
    }

    .accordion-header h4 {
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 0 16px 16px;
    }

    .accordion-body li {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    /* Team Cards */
    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-role {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-grid {
        gap: 30px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-form {
        gap: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-column h4 {
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding-top: 20px;
        gap: 12px;
    }

    /* Modal */
    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: 8px;
        padding: 0 16px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

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

    .btn-sm {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 110px 12px 50px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .shop-card-price {
        font-size: 1.5rem;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }
}

/* Fix iOS Safari issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .nav-links {
        height: -webkit-fill-available;
    }
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .shop-card:hover,
    .team-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .nav-links a::after {
        display: none;
    }
}
