/*
 * Rwayaat VPN v3.0 — Premium Design System
 * Dark/Light Mode • Glassmorphism • Fluid Typography
 * ============================================================ */

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

/* ============================================================
   THEME — Dark (default) & Light
   ============================================================ */
:root {
    --font-primary: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cairo', 'Tajawal', sans-serif;

    /* dark (default) */
    --bg-primary: #07070f;
    --bg-secondary: #0c0c1a;
    --bg-elevated: #111125;
    --bg-card: #16162e;
    --bg-card-hover: #1c1c3a;
    --bg-glass: rgba(22, 22, 46, 0.7);
    --text-primary: #ececf5;
    --text-secondary: #9494b8;
    --text-muted: #5c5c8a;
    --accent: #667eea;
    --accent-hover: #7b93f5;
    --accent-soft: rgba(102, 126, 234, 0.12);
    --accent-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --success: #2ed573;
    --danger: #ff4757;
    --warning: #ffa800;
    --info: #667eea;
    --border: rgba(102, 126, 234, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    --nav-bg: rgba(7, 7, 15, 0.85);
    --code-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.05);
    --overlay: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #e8e8f0;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #8a8aaa;
    --accent: #5a6fd8;
    --accent-hover: #4a5fc8;
    --accent-soft: rgba(90, 111, 216, 0.08);
    --accent-gradient: linear-gradient(135deg, #5a6fd8, #6a3fa8);
    --border: rgba(90, 111, 216, 0.15);
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(90, 111, 216, 0.12);
    --nav-bg: rgba(245, 245, 250, 0.9);
    --code-bg: rgba(0, 0, 0, 0.04);
    --input-bg: rgba(0, 0, 0, 0.03);
    --overlay: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
code { font-family: 'Cairo', monospace; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
    background: var(--bg-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--border);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: var(--accent-soft);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--accent);
}

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

/* Theme Toggle */
.theme-toggle-wrap { display: flex; align-items: center; padding: 0 4px; }
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(102,126,234,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(118,75,162,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 20%, rgba(102,126,234,0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 60%, rgba(118,75,162,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.1) 0%, transparent 100%);
    animation: particlesFloat 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes particlesFloat {
    0% { transform: translate(0,0) scale(1); opacity:0.6; }
    50% { transform: translate(-1%,1%) scale(1.05); opacity:0.8; }
    100% { transform: translate(1%,-1%) scale(0.95); opacity:0.6; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: heroFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
    100% { transform: translate(2%, 1%) rotate(-1deg); }
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.2);
    color: var(--success);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 28px;
    animation: badgePulse 2s ease-in-out infinite;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
    50% { box-shadow: 0 0 0 8px rgba(46, 213, 115, 0.08); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s;
}

.btn:hover::after { background: rgba(255, 255, 255, 0.06); }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: var(--accent);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-sub {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   STATUS CHIP
   ============================================================ */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.status-chip.online { border-color: rgba(46,213,115,0.3); }

/* ============================================================
   SERVERS LIST
   ============================================================ */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.server-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
    transform: translateX(-4px);
}

.server-info { display: flex; align-items: center; gap: 16px; }
.server-flag { font-size: 28px; }
.server-name { font-weight: 700; font-size: 15px; }
.server-host { color: var(--text-muted); font-size: 12px; }
.server-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(46, 213, 115, 0.5); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 8px rgba(255, 71, 87, 0.3); }

.server-load {
    background: var(--input-bg);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border);
}

.step-number {
    width: 44px; height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    margin: 0 auto 16px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.step-connector {
    display: none;
}

.step-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }

@media (min-width: 768px) {
    .steps { position: relative; }
    .step-connector {
        display: block;
        position: absolute;
        top: 60px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
        opacity: 0.2;
    }
    .steps .step-card:first-child .step-connector {
        left: 50%;
        right: -50%;
        width: 100%;
    }
    .steps .step-card:nth-child(2) .step-connector {
        left: 50%;
        right: -50%;
        width: 100%;
    }
}

/* ============================================================
   BLOG FILTERS
   ============================================================ */
.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-card-hover);
}

.blog-body { padding: 24px; }

.blog-category {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-body h3 a { color: var(--text-primary); }
.blog-body h3 a:hover { color: var(--accent); }

.blog-body p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   ARTICLE PAGE (post.php)
   ============================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumbs .current { color: var(--text-secondary); }

.article {
    max-width: 800px;
    margin: 40px auto;
}

.article-header { margin-bottom: 32px; }

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
}

.article-category {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 4px; }

.article-cover {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 16px;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 16px 0 20px 20px; }
.article-content li { margin-bottom: 8px; }

.article-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 32px 0;
    box-shadow: var(--shadow);
}

.article-content code {
    background: var(--code-bg);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    direction: ltr;
    display: inline-block;
}

.article-content pre {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-light);
    direction: ltr;
    text-align: left;
}

.article-content blockquote {
    border-right: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.article-share span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 8px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}

.share-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.comments-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.comment-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-body { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.comment-form {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 12px;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-hero {
    text-align: center;
    padding: 80px 0 60px;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.download-card .value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.download-card .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover { border-color: var(--border); }
.faq-item.open { border-color: var(--accent); }

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-size: 15px;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.02); }

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(135deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }

/* ============================================================
   STATUS PAGE
   ============================================================ */
.status-page { padding: 40px 0; }
.status-page h1 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 4px;
}
.status-page .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 32px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.about-section h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 16px;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.about-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.about-feature:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.about-feature .icon { font-size: 24px; }
.about-feature span { font-size: 14px; font-weight: 600; }

@media (max-width: 640px) {
    .about-features { grid-template-columns: 1fr; }
}

/* ============================================================
   PRIVACY / TERMS
   ============================================================ */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.policy-page h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
}

.policy-page .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }

.policy-page h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin: 40px 0 12px;
}

.policy-page h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.policy-page p { color: var(--text-secondary); line-height: 2; margin-bottom: 14px; }
.policy-page ul { color: var(--text-secondary); margin: 12px 0 20px 20px; line-height: 2; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

.pagination .current {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page p { color: var(--text-secondary); font-size: 18px; margin: 16px 0 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p { color: var(--text-secondary); font-size: 13px; line-height: 1.8; }

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
    font-weight: 500;
}

.footer-col a:hover { color: var(--accent); padding-right: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
}

.login-header { text-align: center; margin-bottom: 32px; }

.login-logo {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-display);
    font-size: 32px;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.login-box h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-box p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    outline: none;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.search-btn:hover { color: var(--accent); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    max-width: 90vw;
    backdrop-filter: blur(12px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-success { border-color: rgba(46, 213, 115, 0.3); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: rgba(255, 71, 87, 0.3); }
.toast-error .toast-icon { color: var(--danger); }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 24px;
    animation: slideUp 0.4s ease;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 14px; }
.cookie-text p { color: var(--text-secondary); font-size: 12px; line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6); }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.skeleton-row {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--input-bg);
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: var(--input-bg);
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

.skeleton-badge {
    width: 48px; height: 24px;
    border-radius: 8px;
    background: var(--input-bg);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p { font-size: 16px; margin-bottom: 12px; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { animation: fadeIn 0.6s ease both; }
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.fade-in-down { animation: fadeInDown 0.6s ease both; }

/* Stagger delay helpers */
.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; }

/* Hover lift effect */
.hover-lift { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.hover-lift:hover { transform: translateY(-4px); }

/* SVG Icons */
.icon { vertical-align: middle; display: inline-block; }
.icon-success { color: var(--success); }
.icon-danger { color: var(--danger); }
.icon-accent { color: var(--accent); }
.icon-muted { color: var(--text-muted); }

.feature-icon .icon,
.stat-icon .icon {
    width: 28px; height: 28px;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero { padding: 80px 0 60px; }
    .section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-light);
        padding: 12px 16px;
        box-shadow: var(--shadow);
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .theme-toggle-wrap { padding: 8px 4px; }

    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: clamp(28px, 8vw, 40px); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .download-info { grid-template-columns: repeat(2, 1fr); }
    .comment-form-grid { grid-template-columns: 1fr; }
    .article-share { flex-wrap: wrap; }
    .cookie-content { flex-direction: column; text-align: center; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 40px 0 32px; }
    .hero h1 { font-size: 28px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 16px 12px; }
    .stat-number { font-size: 22px; }
    .download-info { grid-template-columns: 1fr 1fr; gap: 8px; }
    .footer-inner { grid-template-columns: 1fr; }
    .scroll-top { bottom: 16px; left: 16px; width: 38px; height: 38px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
}
