/* ============================================
   StreamVault - Premium OTT Platform
   Volcanic Glass Aesthetic
   ============================================ */

/* CSS Variables - Volcanic Glass Palette */
:root {
    /* Core Colors */
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1A1A1A;
    --bg-card: #1E1E1E;
    --bg-hover: #252525;
    
    /* Accent Colors */
    --accent-primary: #FF6B2B;
    --accent-secondary: #FFB088;
    --accent-glow: rgba(255, 107, 43, 0.4);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #FF6B2B 0%, #FFB088 50%, #FF6B2B 100%);
    --gradient-card: linear-gradient(145deg, #1E1E1E 0%, #141414 100%);
    --gradient-border: linear-gradient(135deg, #FF6B2B, #FFB088, #FF6B2B);
    
    /* Typography */
    --font-display: 'Clash Grotesk', sans-serif;
    --font-body: 'Newsreader', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.admin-link {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 43, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 176, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 43, 0.05) 0%, transparent 70%);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 107, 43, 0.1);
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: var(--space-lg);
}

.hero-title {
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(255, 107, 43, 0.4);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Visual - App Orbit */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-orbit {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 107, 43, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 { width: 200px; height: 200px; }
.ring-2 { width: 300px; height: 300px; }
.ring-3 { width: 400px; height: 400px; }

.app-icons {
    position: absolute;
    inset: 0;
}

.app-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
    animation: orbit 20s linear infinite;
    animation-delay: var(--delay);
}

.app-icon:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); }
.app-icon:nth-child(2) { top: 25%; right: 5%; }
.app-icon:nth-child(3) { bottom: 25%; right: 5%; }
.app-icon:nth-child(4) { bottom: 10%; left: 50%; transform: translateX(-50%); }
.app-icon:nth-child(5) { bottom: 25%; left: 5%; }
.app-icon:nth-child(6) { top: 25%; left: 5%; }

@keyframes orbit {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-3xl) var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--text-secondary);
}

/* ============================================
   Apps Section
   ============================================ */
.apps-section {
    background: var(--bg-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: var(--shadow-lg);
}

.app-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.app-card-price {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
    background: var(--bg-primary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.toggle-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.toggle-label.active {
    color: var(--text-primary);
}

.save-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--space-xs);
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(145deg, #1E1E1E 0%, #1A1A1A 100%);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card-header {
    margin-bottom: var(--space-lg);
}

.pricing-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.pricing-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card-price {
    margin-bottom: var(--space-lg);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.pricing-card-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-card-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-card-features li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: 700;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: rgba(255, 107, 43, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 43, 0.1);
    border: 1px solid rgba(255, 107, 43, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--bg-primary);
    position: relative;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 43, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    margin-bottom: var(--space-xl);
    font-size: 1.2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: var(--space-3xl) var(--space-xl) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    margin-bottom: var(--space-lg);
}

.order-summary {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.order-summary-item:last-child {
    margin-bottom: 0;
    padding-top: var(--space-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-xl);
    position: fixed;
    height: 100vh;
    width: 280px;
    overflow-y: auto;
}

.admin-sidebar-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.admin-sidebar-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.admin-nav-item.active {
    border-left: 3px solid var(--accent-primary);
}

.admin-nav-icon {
    font-size: 1.25rem;
}

.admin-main {
    margin-left: 280px;
    padding: var(--space-xl);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-lg);
}

.admin-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-stat-change {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-top: var(--space-xs);
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.admin-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.admin-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

.admin-btn-small {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
}

/* Apps Management */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.app-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-item-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.app-item-info {
    display: flex;
    flex-direction: column;
}

.app-item-name {
    font-family: var(--font-display);
    font-weight: 600;
}

.app-item-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-item-price {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.app-item-price input {
    width: 100px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-primary);
    font-family: var(--font-display);
    text-align: right;
}

.app-item-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.app-item-toggle label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Plans Management */
.plans-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.plan-edit-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--space-lg);
}

.plan-edit-card.featured {
    border-color: var(--accent-primary);
}

.plan-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.plan-edit-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.plan-edit-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-edit-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.plan-edit-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.plan-edit-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-edit-field input,
.plan-edit-field textarea {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.plan-edit-field input:focus,
.plan-edit-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.plan-edit-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.setting-item label {
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.setting-item .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.setting-item input,
.setting-item select {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    border-left: 4px solid #22C55E;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-icon {
    font-size: 1.25rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-tagline {
        margin: 0 auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-item-icon {
        margin: 0 auto;
    }
}

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

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

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

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

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}