/* Modern Dark Theme - Inspired by NOR Design */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Dark Theme Colors */
    --bg-dark: #000000;
    --bg-panel: #0f0f0f;
    --bg-card: rgba(15, 15, 15, 0.95);

    /* Accent Colors - Blue Gradient */
    --accent-primary: #4facfe;
    --accent-secondary: #00f2fe;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #b8bcc0;
    --text-dim: #6b7280;

    /* Status Colors */
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #ff6b6b;
    --info: #60a5fa;

    /* Effects */
    --border-glow: rgba(79, 172, 254, 0.2);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(79, 172, 254, 0.5);
}

/* Fix backdrop blur on modals and dropdowns - completely remove blur */
.modal-backdrop {
    backdrop-filter: none !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal-content {
    backdrop-filter: none !important;
    background-color: #1a1a1a !important;
}

.modal-body,
.modal-header,
.modal-footer {
    backdrop-filter: none !important;
    background-color: #1a1a1a !important;
}

.dropdown-menu {
    backdrop-filter: none !important;
    background-color: #1a1a1a !important;
}

/* Ensure form inputs inside modals are visible with no blur */
.modal .form-control,
.modal .form-select {
    backdrop-filter: none !important;
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.modal .input-group {
    backdrop-filter: none !important;
    background-color: #2a2a2a !important;
}

.modal .input-group-text {
    backdrop-filter: none !important;
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

/* ========== MODERN TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.modern-toast {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.18);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.modern-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
}

.modern-toast.success::before {
    background: linear-gradient(180deg, var(--success) 0%, #22c55e 100%);
}

.modern-toast.error::before {
    background: linear-gradient(180deg, var(--error) 0%, #ef4444 100%);
}

.modern-toast.warning::before {
    background: linear-gradient(180deg, var(--warning) 0%, #f59e0b 100%);
}

.modern-toast.info::before {
    background: linear-gradient(180deg, var(--info) 0%, #3b82f6 100%);
}

.modern-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
    border-color: rgba(79, 172, 254, 0.4);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(79, 172, 254, 0.1);
    color: var(--accent-primary);
}

.modern-toast.success .toast-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.modern-toast.error .toast-icon {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}

.modern-toast.warning .toast-icon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.modern-toast.info .toast-icon {
    background: rgba(96, 165, 250, 0.15);
    color: var(--info);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width linear;
}

.modern-toast.success .toast-progress {
    background: linear-gradient(90deg, var(--success) 0%, #22c55e 100%);
}

.modern-toast.error .toast-progress {
    background: linear-gradient(90deg, var(--error) 0%, #ef4444 100%);
}

.modern-toast.warning .toast-progress {
    background: linear-gradient(90deg, var(--warning) 0%, #f59e0b 100%);
}

.modern-toast.info .toast-progress {
    background: linear-gradient(90deg, var(--info) 0%, #3b82f6 100%);
}

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

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

.modern-toast.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at bottom, var(--bg-dark) 0%, #1a202c 100%);
    color: var(--text-main);
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* RTL-specific styles */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
}

html[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

html[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .ms-1 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

html[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .flex-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .email-from {
    padding-right: 0;
    padding-left: 1rem;
}

html[dir="rtl"] .email-time {
    text-align: left;
}

/* ========== ANIMATED BACKGROUND (Optimized) ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, var(--bg-dark) 0%, #1a202c 100%);
    z-index: -2;
    pointer-events: none;
}

/* Optional: Add subtle animation only on hover/focus */
.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.15) 0%, transparent 50%);
    opacity: 0.5;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== NAVIGATION BAR ========== */
.navbar {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(79, 172, 254, 0.18);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--text-main) !important;
    background: rgba(79, 172, 254, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
    background: rgba(79, 172, 254, 0.15);
}

/* Language Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.18);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: var(--text-main);
    background: rgba(79, 172, 254, 0.15);
}

/* ========== CONTAINERS & CARDS ========== */
.container {
    max-width: 1200px;
    padding: 0 1rem;
}

.glass-panel {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(79, 172, 254, 0.18);
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow);
}

/* Glowing Border Effect */
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

/* Card Component */
.modern-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
    background: rgba(79, 172, 254, 0.05);
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: slide-up 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: slide-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes slide-up {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-dark);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(15, 15, 15, 0.8);
    color: var(--text-main);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.btn-secondary:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Icon Buttons */
.icon-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.icon-btn:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* RTL Icon Button */
html[dir="rtl"] .icon-btn {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
    background: #10151b;
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-dim);
}

/* Input with Icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    color: var(--accent-secondary);
    z-index: 2;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 3rem;
}

/* ========== EMAIL DISPLAY ========== */
.email-display-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.18);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.email-display-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
}

.email-address {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(79, 172, 254, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    margin: 1rem 0;
    word-break: break-all;
    text-align: center;
}

/* ========== COUNTDOWN TIMER ========== */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    margin: 1rem 0;
}

.countdown-timer {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ========== INBOX ========== */
.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(79, 172, 254, 0.18);
}

.inbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inbox-title i {
    color: var(--accent-primary);
}

/* Split Container */
.inbox-split-container {
    display: flex;
    gap: 1.5rem;
    height: 600px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.18);
    border-radius: 24px;
    padding: 1.5rem;
    overflow: hidden;
}

/* Left Panel - Email List */
.inbox-list-panel {
    flex: 0 0 400px;
    border-right: 1px solid rgba(79, 172, 254, 0.18);
    overflow-y: auto;
    padding-right: 1rem;
}

.inbox-list-panel::-webkit-scrollbar {
    width: 6px;
}

.inbox-list-panel::-webkit-scrollbar-track {
    background: rgba(79, 172, 254, 0.1);
    border-radius: 3px;
}

.inbox-list-panel::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* Right Panel - Email Reader */
.inbox-reader-panel {
    flex: 1;
    overflow-y: auto;
    padding-left: 1rem;
}

.inbox-reader-panel::-webkit-scrollbar {
    width: 6px;
}

.inbox-reader-panel::-webkit-scrollbar-track {
    background: rgba(79, 172, 254, 0.1);
    border-radius: 3px;
}

.inbox-reader-panel::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* RTL Support */
[dir="rtl"] .inbox-list-panel {
    border-right: none;
    border-left: 1px solid rgba(79, 172, 254, 0.18);
    padding-right: 0;
    padding-left: 1rem;
}

[dir="rtl"] .inbox-reader-panel {
    padding-left: 0;
    padding-right: 1rem;
}

[dir="rtl"] .email-item:hover {
    transform: translateX(5px);
}

/* Email Reader Placeholder */
.email-reader-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.email-reader-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Email Reader Content */
.email-reader-content {
    background: rgba(15, 15, 15, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.email-reader-header {
    border-bottom: 1px solid rgba(79, 172, 254, 0.18);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.email-reader-header .from {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.email-reader-header .subject {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.email-reader-header .date {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.email-reader-body {
    line-height: 1.6;
    color: var(--text-main);
    overflow-y: auto;
    max-height: 400px;
}

.email-reader-body::-webkit-scrollbar {
    width: 6px;
}

.email-reader-body::-webkit-scrollbar-track {
    background: rgba(79, 172, 254, 0.1);
    border-radius: 3px;
}

.email-reader-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* Email List */
.email-item {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-item:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--accent-primary);
}

[dir="ltr"] .email-item:hover {
    transform: translateX(-5px);
}

.email-item.selected {
    background: rgba(79, 172, 254, 0.2);
    border-color: var(--accent-primary);
}

.email-from {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-subject {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.email-unread {
    background: rgba(79, 172, 254, 0.15);
    border-color: var(--accent-primary);
}

.email-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 12px 0 0 12px;
}

/* Empty State */
.inbox-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.inbox-empty i {
    font-size: 4rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== STATISTICS ========== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(79, 172, 254, 0.05);
    border-color: var(--accent-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(79, 172, 254, 0.18);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* ========== MODALS ========== */
.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.18);
    border-radius: 16px;
    color: var(--text-main);
}

.modal-header {
    border-bottom: 1px solid rgba(79, 172, 254, 0.18);
}

.modal-footer {
    border-top: 1px solid rgba(79, 172, 254, 0.18);
}

.modal-title {
    color: var(--text-main);
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    opacity: 1;
}

/* ========== TOOLTIPS ========== */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 172, 254, 0.8);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 2s infinite;
}

/* ========== LOADING STATES ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(79, 172, 254, 0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .email-address {
        font-size: 1.125rem;
        padding: 0.75rem;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========== UTILITIES ========== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.bg-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.border-glow {
    border: 1px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.1);
}

.mt-6 { margin-top: 3rem; }
.mb-6 { margin-bottom: 3rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }
