/* =============================================
   PhysicsLab - Main Stylesheet
   Design System: Dark Cosmic Theme
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Cairo:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Colors */
    --background: #0a0f1a;
    --background-secondary: #0d1320;
    --foreground: #f8fafc;
    --primary: #00e5ff;
    --primary-dark: #00b8d4;
    --secondary: #7c5cfc;
    --accent: #f59e0b;
    --muted: #1e293b;
    --muted-foreground: #8b9dc3;
    --card: #111827;
    --card-hover: #1a1f35;
    --border: #1e293b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Spacing */
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(0, 229, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    font-family: var(--font-arabic);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Cosmic Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1040 50%, #0d1320 100%);
    z-index: -2;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
}

.star:nth-child(odd) {
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(even) {
    animation: twinkle 4s ease-in-out infinite reverse;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.nebula-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(124, 92, 252, 0.1);
}

.nebula-2 {
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(0, 229, 255, 0.08);
}

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

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.navbar-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-link {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar-link:hover {
    color: var(--foreground);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-actions .btn-outline {
        display: none;
    }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--muted);
    border-color: rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--foreground);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: var(--card-hover);
}

.card-glow {
    box-shadow: var(--shadow-glow);
}

.card-featured {
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
    border-color: rgba(0, 229, 255, 0.3);
}

/* =============================================
   Badges
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-pro {
    background: rgba(124, 92, 252, 0.15);
    color: var(--secondary);
    border-color: rgba(124, 92, 252, 0.3);
}

.badge-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    padding: 140px 0 80px;
    position: relative;
}

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

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

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

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

/* Atom Animation */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.atom {
    position: relative;
    width: 100%;
    height: 100%;
}

.atom-nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.5);
}

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

.atom-orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbit-rotate 15s linear infinite;
}

.atom-orbit-2 {
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) rotate(60deg);
    animation: orbit-rotate 20s linear infinite reverse;
}

.atom-orbit-3 {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%) rotate(-30deg);
    animation: orbit-rotate 25s linear infinite;
}

.atom-electron {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.atom-orbit-2 .atom-electron {
    background: var(--secondary);
    box-shadow: 0 0 20px var(--secondary);
}

.atom-orbit-3 .atom-electron {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    width: 12px;
    height: 12px;
    top: -6px;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

/* =============================================
   Sections
   ============================================= */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1.05rem;
}

/* =============================================
   Experiment Cards
   ============================================= */
.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.experiment-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.experiment-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.experiment-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--muted), var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.experiment-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experiment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.rtl .experiment-badge {
    right: auto;
    left: 1rem;
}

.experiment-content {
    padding: 1.25rem;
}

.experiment-topic {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.experiment-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.experiment-description {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experiment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.experiment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.experiment-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Locked Experiment */
.experiment-card.locked .experiment-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.7);
    backdrop-filter: blur(4px);
}

.experiment-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
}

.experiment-lock svg {
    width: 32px;
    height: 32px;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* =============================================
   Topics Section
   ============================================= */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: var(--card-hover);
}

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

.topic-info {
    flex: 1;
}

.topic-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.topic-count {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.topic-arrow {
    color: var(--muted-foreground);
    transition: transform 0.3s;
}

.topic-card:hover .topic-arrow {
    transform: translateX(5px);
    color: var(--primary);
}

.rtl .topic-card:hover .topic-arrow {
    transform: translateX(-5px);
}

/* =============================================
   Pricing Section
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.pricing-card.featured::before {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--background);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.pricing-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.rtl .pricing-features {
    text-align: right;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--muted-foreground);
}

.pricing-features li.disabled svg {
    color: var(--muted-foreground);
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(145deg, rgba(26, 31, 53, 0.8), rgba(15, 18, 25, 0.8));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent, rgba(124, 92, 252, 0.05));
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--muted-foreground);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: rgba(10, 15, 26, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

/* =============================================
   Forms
   ============================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* =============================================
   Alerts
   ============================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

/* =============================================
   Checkout Page
   ============================================= */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 1.5rem 60px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-main h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-total span:last-child {
    color: var(--primary);
}

.promo-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.promo-input input {
    flex: 1;
}

/* Payment Methods */
.payment-methods {
    margin-top: 2rem;
}

.payment-methods h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}

.payment-option:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
}

.payment-option input {
    display: none;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option.selected .payment-radio {
    border-color: var(--primary);
}

.payment-option.selected .payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.payment-logo {
    height: 30px;
}

/* =============================================
   Admin Styles
   ============================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.rtl .admin-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.admin-nav-section {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-nav-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    padding: 0.5rem 0.75rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: all 0.3s;
    margin-bottom: 0.25rem;
}

.admin-nav-item:hover {
    color: var(--foreground);
    background: var(--muted);
}

.admin-nav-item.active {
    color: var(--primary);
    background: rgba(0, 229, 255, 0.1);
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.rtl .admin-main {
    margin-left: 0;
    margin-right: 260px;
}

.admin-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-title {
    font-size: 1.25rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-content {
    padding: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-card-icon.purple {
    background: rgba(124, 92, 252, 0.1);
    color: var(--secondary);
}

.stat-card-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card-change {
    font-size: 0.85rem;
    color: var(--success);
}

.stat-card-change.negative {
    color: var(--error);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

/* Admin Tables */
.admin-table-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    background: var(--muted);
}

.rtl .admin-table th {
    text-align: right;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--muted);
}

/* Action Buttons */
.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--muted);
    color: var(--foreground);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* =============================================
   Utilities
   ============================================= */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.bg-primary { background-color: var(--primary); }
.bg-card { background-color: var(--card); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none; }

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .rtl .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .rtl .admin-main {
        margin-right: 0;
    }
}
