@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #fafafa;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --primary: #374151;
    --primary-hover: #1f2937;
    --primary-light: rgba(55, 65, 81, 0.08);
    --border: #e5e5e5;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --nav-bg: rgba(250,250,250,0.85);
    --code-bg: #f3f4f6;
    --success: #16a34a;
    --pricing-pro: #374151;
    --roadmap-line: #d1d5db;
    --roadmap-dot: #374151;
    --glow: rgba(55, 65, 81, 0.4);
    --glow-color: #374151;
    --accent-gradient: linear-gradient(135deg, #374151, #6b7280, #374151);
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-alt: #1a1a1a;
    --text: #e5e5e5;
    --text-muted: #9ca3af;
    --primary: #d1d5db;
    --primary-hover: #9ca3af;
    --primary-light: rgba(209, 213, 219, 0.08);
    --border: #2a2a2a;
    --card-bg: #1a1a1a;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
    --nav-bg: rgba(15,15,15,0.85);
    --code-bg: #262626;
    --success: #4ade80;
    --pricing-pro: #d1d5db;
    --roadmap-line: #333;
    --roadmap-dot: #d1d5db;
    --glow: rgba(209, 213, 219, 0.3);
    --glow-color: #d1d5db;
    --accent-gradient: linear-gradient(135deg, #d1d5db, #9ca3af, #d1d5db);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.2s, color 0.2s;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-separator {
    color: var(--border);
    font-weight: 300;
    font-size: 1.1rem;
    user-select: none;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}

.theme-toggle:hover { background: var(--bg-alt); border-color: var(--text-muted); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

/* HERO */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

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

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
}

.btn svg { width: 16px; height: 16px; }

/* SECTIONS */
.section {
    padding: 5rem 0;
}

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

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    transition: background 0.15s;
}

.feature-card:hover {
    background: var(--primary-light);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-icon svg { width: 18px; height: 18px; }

.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* SCREENSHOTS */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.screenshot-placeholder {
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.pricing-price [data-price-monthly],
.pricing-price [data-price-yearly] {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    font-family: inherit;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

[data-theme="dark"] .pricing-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.pricing-features li.disabled::before {
    background: var(--border);
    background-image: none;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
}

/* ROADMAP */
.roadmap {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--roadmap-line);
}

.roadmap-item {
    position: relative;
    padding-left: 44px;
    padding-bottom: 2rem;
}

.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--roadmap-dot);
}

.roadmap-item.completed .roadmap-dot {
    background: var(--roadmap-dot);
}

.roadmap-item.completed .roadmap-dot::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.roadmap-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.roadmap-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.roadmap-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.roadmap-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.roadmap-tag.done {
    background: var(--primary-light);
    color: var(--primary);
}

.roadmap-tag.progress {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.roadmap-tag.planned {
    background: var(--bg-alt);
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.faq-item summary {
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* NEWS */
.news-preview {
    max-width: 600px;
    margin: 0 auto;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.news-card h3 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1rem;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}

.link:hover { opacity: 0.7; }

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

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

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* SHARED */
.text-muted { color: var(--text-muted); }

/* PAGE HEADER */
.page-header {
    padding: 100px 0 32px;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* MATERIALS */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.material-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: box-shadow 0.15s;
}

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

.material-card h3 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.material-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* FORUM */
.forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.forum-cat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.15s;
}

.forum-cat:hover {
    box-shadow: var(--card-shadow-hover);
}

.forum-cat h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.forum-cat p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.forum-post {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.forum-post-author {
    font-weight: 600;
    font-size: 0.85rem;
}

.forum-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.forum-post p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-left-link { display: none; }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-stats { gap: 1.5rem; }

    .features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero h1 { font-size: 1.75rem; }
    .section { padding: 3rem 0; }
}

/* ============================================
   ANIMATIONS & FUTURISTIC EFFECTS
   ============================================ */

/* --- Keyframes --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--glow), 0 0 40px transparent; }
    50% { box-shadow: 0 0 30px var(--glow), 0 0 60px var(--glow); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--border); }
    50% { border-color: var(--glow-color); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px transparent; }
    50% { text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow); }
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px) scale(0.5); opacity: 0; }
}

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

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* --- Hero animated gradient background --- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 25%, var(--bg) 50%, var(--bg-alt) 75%, var(--bg) 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--glow) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, var(--glow) 0%, transparent 40%);
    opacity: 0.15;
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn-primary {
    animation: fadeInUp 0.8s ease-out 0.4s both, glowPulse 3s ease-in-out infinite 1.2s;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    animation: float 4s ease-in-out infinite;
}

.hero-stat:nth-child(2) { animation-delay: 0.5s; }
.hero-stat:nth-child(3) { animation-delay: 1s; }

/* --- Hero text glow on hover --- */
.hero h1:hover {
    animation: textGlow 2s ease-in-out infinite;
}

/* --- Particle canvas --- */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

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

/* --- Button glow effects --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--glow), 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Feature cards animated reveal --- */
.feature-card {
    transition: background 0.15s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px var(--glow);
    z-index: 1;
}

.feature-card .feature-icon {
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 15px var(--glow);
}

/* --- Stagger animation on scroll --- */
.feature-card.reveal {
    animation: slideInStagger 0.5s ease-out both;
}

.feature-card.reveal:nth-child(1) { animation-delay: 0s; }
.feature-card.reveal:nth-child(2) { animation-delay: 0.08s; }
.feature-card.reveal:nth-child(3) { animation-delay: 0.16s; }
.feature-card.reveal:nth-child(4) { animation-delay: 0.24s; }
.feature-card.reveal:nth-child(5) { animation-delay: 0.32s; }
.feature-card.reveal:nth-child(6) { animation-delay: 0.4s; }
.feature-card.reveal:nth-child(7) { animation-delay: 0.48s; }
.feature-card.reveal:nth-child(8) { animation-delay: 0.56s; }

/* --- Pricing card effects --- */
.pricing-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--glow);
}

.pricing-card.featured {
    animation: borderGlow 3s ease-in-out infinite;
}

/* --- Roadmap line animation --- */
.roadmap-item {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.roadmap-item.reveal {
    opacity: 1;
    animation: fadeInLeft 0.5s ease-out both;
}

.roadmap-item.reveal:nth-child(1) { animation-delay: 0s; }
.roadmap-item.reveal:nth-child(2) { animation-delay: 0.15s; }
.roadmap-item.reveal:nth-child(3) { animation-delay: 0.3s; }
.roadmap-item.reveal:nth-child(4) { animation-delay: 0.45s; }
.roadmap-item.reveal:nth-child(5) { animation-delay: 0.6s; }

/* --- FAQ item hover --- */
.faq-item {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px var(--glow);
    border-color: var(--glow-color);
}

.faq-item[open] {
    animation: fadeInUp 0.3s ease-out;
}

/* --- News card hover --- */
.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow);
}

/* --- Screenshot placeholders shimmer --- */
.placeholder-box {
    background: linear-gradient(90deg, var(--card-bg) 0%, var(--bg-alt) 50%, var(--card-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* --- Navbar glass morphism enhanced --- */
.navbar {
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px var(--glow);
}

/* --- Section title reveal --- */
.section-title {
    opacity: 0;
    transition: opacity 0.6s, transform 0.6s;
}

.section-title.reveal {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out both;
}

.section-subtitle {
    opacity: 0;
    transition: opacity 0.6s 0.1s, transform 0.6s 0.1s;
}

.section-subtitle.reveal {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* --- Material card hover --- */
.material-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--glow);
}

/* --- Forum post hover --- */
.forum-post {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.forum-post:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px var(--glow);
    border-color: var(--glow-color);
}

/* --- Logo hover glow --- */
.logo {
    transition: text-shadow 0.3s;
}

.logo:hover {
    text-shadow: 0 0 15px var(--glow);
}

/* --- Link hover glow --- */
.link {
    transition: opacity 0.15s, text-shadow 0.3s;
}

.link:hover {
    text-shadow: 0 0 8px var(--glow);
}

/* --- Theme toggle animation --- */
.theme-toggle {
    transition: background 0.15s, border-color 0.15s, transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* --- Download card pulse --- */
.download-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

.download-card:hover {
    box-shadow: 0 0 30px var(--glow), 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* --- Scroll progress indicator --- */
.scroll-progress {
    position: fixed;
    top: 56px;
    left: 0;
    height: 2px;
    background: var(--accent-gradient);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 101;
    transition: width 0.1s;
}

/* --- Download card --- */
.download-card {
    display: inline-block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

/* ============================================
   NEWS & ADMIN STYLES
   ============================================ */

/* --- News toolbar --- */
.news-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* --- News list --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- News card (dynamic) --- */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
}

.news-card .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-card .news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.news-card h3 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1rem;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-location {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

/* --- News action buttons --- */
.news-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.news-btn-edit,
.news-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.news-btn-edit:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.news-btn-delete:hover {
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 0 10px rgba(220,38,38,0.3);
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeInUp 0.25s ease-out;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.15s;
}

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

/* --- Form groups --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* --- Admin panel --- */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s;
}

.admin-row:hover {
    box-shadow: var(--card-shadow-hover);
}

.admin-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.admin-row-info strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-row-info span {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.admin-row-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.admin-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text-muted);
}

/* --- Responsive admin --- */
@media (max-width: 768px) {
    .admin-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .admin-row-actions {
        margin-left: 0;
    }
    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .modal-box {
        max-height: 80vh;
        padding: 1.25rem;
    }
}

/* --- Read more button --- */
.news-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
}

.news-read-more:hover { opacity: 0.7; }

/* --- Read modal --- */
.modal-read {
    max-width: 640px;
}

.read-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.read-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    letter-spacing: -0.01em;
}

.read-modal-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.read-modal-location svg {
    flex-shrink: 0;
    color: var(--primary);
}

.read-modal-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-line;
}

.read-modal-desc p {
    margin-bottom: 0.75rem;
}

/* ============================================
   LEGAL & PAYMENT PAGES STYLES
   ============================================ */

/* --- Legal content --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding-left: 1rem;
}

.legal-content ul li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 0.2rem 0;
    position: relative;
}

.legal-content ul li::before {
    content: '—';
    position: absolute;
    left: -1rem;
    color: var(--text-muted);
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2rem;
}

/* --- Info card (reusable for legal pages) --- */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

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

.info-table tr {
    border-bottom: 1px solid var(--border);
}

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

.info-table td {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    vertical-align: top;
}

.info-label {
    font-weight: 600;
    color: var(--text);
    width: 200px;
    white-space: nowrap;
}

.info-table td:last-child {
    color: var(--text-muted);
}

.info-table a {
    color: var(--primary);
    text-decoration: none;
}

.info-table a:hover {
    text-decoration: underline;
}

/* --- Contacts grid --- */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
    margin: 0 auto 0.75rem;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.contact-value:hover {
    color: var(--primary);
}

/* --- Contact form --- */
.contact-form {
    margin-top: 1rem;
}

/* --- Payment methods grid --- */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.payment-method-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.payment-logo {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.payment-method-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Payment info card --- */
.payment-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.payment-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

.payment-price {
    text-align: center;
    min-width: 180px;
}

.payment-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
    color: var(--text);
}

.payment-amount small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* --- Payment steps --- */
.payment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.payment-step {
    text-align: center;
    padding: 1.25rem;
}

.payment-step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.75rem;
}

.payment-step h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.payment-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Payment info box --- */
.payment-info-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.payment-info-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.payment-info-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.payment-info-box a {
    color: var(--primary);
    text-decoration: none;
}

.payment-info-box a:hover {
    text-decoration: underline;
}

/* --- Register card --- */
.register-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.register-form .form-group {
    margin-bottom: 1.1rem;
}

.register-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.15rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* --- Register info --- */
.register-info {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.register-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.register-info ul {
    list-style: none;
    padding: 0;
}

.register-info ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.register-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* --- Responsive legal --- */
@media (max-width: 768px) {
    .info-label {
        width: auto;
        white-space: normal;
        display: block;
        margin-bottom: 0.1rem;
    }

    .info-table td {
        display: block;
    }

    .info-table tr {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }

    .payment-info-card {
        flex-direction: column;
        text-align: center;
    }

    .payment-features {
        align-items: center;
    }

    .payment-steps {
        grid-template-columns: 1fr 1fr;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   AUTH UI STYLES
   ============================================ */

.auth-section {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.auth-login-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.auth-login-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.auth-user-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-transform: uppercase;
}

.auth-avatar:hover {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 200;
    overflow: hidden;
    animation: fadeInUp 0.15s ease-out;
}

.auth-dropdown.active {
    display: block;
}

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

.auth-dropdown-header strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.auth-dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.auth-user-email {
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.auth-sub-plan {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-sub-free {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.auth-sub-pro {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.auth-dropdown-status {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-dropdown-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-dropdown-actions .btn {
    text-align: center;
    justify-content: center;
}

.auth-btn-pro {
    text-align: center;
    justify-content: center;
    font-size: 0.8rem;
}

.auth-btn-tracker {
    text-align: center;
    justify-content: center;
}

.auth-dropdown-days {
    padding: 0.25rem 1rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: lightboxIn 0.25s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

@keyframes lightboxIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .auth-section {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .auth-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        animation: slideUp 0.25s ease-out;
    }

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

/* FORUM */
.forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.forum-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.forum-filter-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.forum-filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.forum-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-topic {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.forum-topic:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forum-topic-category {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.forum-topic-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forum-topic-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.forum-topic-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.forum-topic-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.forum-loading, .forum-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.topic-detail {
    margin-bottom: 1.5rem;
}

.topic-detail-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.topic-detail h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.topic-detail-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.topic-detail-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topic-comments h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.forum-comment {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.forum-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.forum-comment-author {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.forum-comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forum-comment p {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.comment-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    resize: vertical;
    background: var(--card-bg);
    color: var(--text);
}

.comment-form .btn {
    align-self: flex-end;
}

.forum-login-hint {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--card-bg);
    color: var(--text);
    margin-bottom: 0.75rem;
}

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