:root {
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
}

/* ── GRADIENT THEME (DEFAULT) ── */
[data-theme="gradient"] {
    --bg: #0c0a1a;
    --bg-secondary: #110e24;
    --bg-card: #16122e;
    --bg-card-hover: #1e1940;
    --bg-elevated: #231d4a;
    --border: #2a2254;
    --border-subtle: #1c1638;
    --text: #ede8ff;
    --text-secondary: #9b8fc4;
    --text-muted: #6a5f8a;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-dim: rgba(139, 92, 246, 0.14);
    --primary-glow: rgba(139, 92, 246, 0.3);
    --green: #34d399;
    --green-dim: rgba(52, 211, 153, 0.12);
    --orange: #fbbf24;
    --orange-dim: rgba(251, 191, 36, 0.12);
    --red: #f87171;
    --red-dim: rgba(248, 113, 113, 0.12);
    --purple: #c084fc;
    --purple-dim: rgba(192, 132, 252, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #0c0a1a 0%, #1a1145 40%, #0f2027 70%, #0c0a1a 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899);
    --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.06), rgba(6,182,212,0.04));
    --navbar-bg: rgba(12, 10, 26, 0.85);
    --navbar-scrolled: rgba(12, 10, 26, 0.95);
}

/* ── DARK THEME ── */
[data-theme="dark"] {
    --bg: #0a0e17;
    --bg-secondary: #0f1420;
    --bg-card: #131928;
    --bg-card-hover: #1a2236;
    --bg-elevated: #1e2a42;
    --border: #1e2a42;
    --border-subtle: #161f30;
    --text: #e4e8f1;
    --text-secondary: #8b95a8;
    --text-muted: #5a6478;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dim: rgba(59, 130, 246, 0.12);
    --primary-glow: rgba(59, 130, 246, 0.25);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --orange: #f59e0b;
    --orange-dim: rgba(245, 158, 11, 0.12);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --purple: #a855f7;
    --purple-dim: rgba(168, 85, 247, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --gradient-hero: none;
    --gradient-accent: linear-gradient(135deg, #3b82f6, #a855f7);
    --gradient-card: none;
    --navbar-bg: rgba(10, 14, 23, 0.8);
    --navbar-scrolled: rgba(10, 14, 23, 0.95);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
    --bg: #f8f9fc;
    --bg-secondary: #eef1f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f5f9;
    --bg-elevated: #e8ecf3;
    --border: #d4dae5;
    --border-subtle: #e2e7f0;
    --text: #1a1d26;
    --text-secondary: #515970;
    --text-muted: #8891a5;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dim: rgba(59, 130, 246, 0.08);
    --primary-glow: rgba(59, 130, 246, 0.15);
    --green: #16a34a;
    --green-dim: rgba(22, 163, 74, 0.08);
    --orange: #d97706;
    --orange-dim: rgba(217, 119, 6, 0.08);
    --red: #dc2626;
    --red-dim: rgba(220, 38, 38, 0.08);
    --purple: #9333ea;
    --purple-dim: rgba(147, 51, 234, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.1);
    --gradient-hero: none;
    --gradient-accent: linear-gradient(135deg, #3b82f6, #9333ea);
    --gradient-card: none;
    --navbar-bg: rgba(248, 249, 252, 0.85);
    --navbar-scrolled: rgba(248, 249, 252, 0.95);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

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

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-size: 14px; font-weight: 600;
    padding: 10px 20px; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    white-space: nowrap; line-height: 1.4;
}
.btn-primary {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(239,68,68,0.2); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--navbar-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}
.navbar.scrolled { background: var(--navbar-scrolled); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
}
.logo-icon {
    width: 32px; height: 32px; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-icon.sm { width: 24px; height: 24px; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.nav-links-desktop { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius);
    transition: all var(--transition); text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link-cta {
    background: var(--primary); color: #fff !important;
    margin-left: 8px;
}
.nav-link-cta:hover { background: var(--primary-hover); }
.nav-toggle {
    display: none; background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; padding: 10px; position: relative; z-index: 1002;
    border-radius: var(--radius); width: 44px; height: 44px;
    align-items: center; justify-content: center; flex-direction: column;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--text);
    transition: all var(--transition); border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-right { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1001; }

/* ── THEME SWITCHER ── */
.theme-switcher {
    display: flex; align-items: center; gap: 2px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 100px; padding: 3px;
}
.theme-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); color: var(--text-muted);
    font-size: 16px; line-height: 1;
}
.theme-btn:hover { color: var(--text); background: var(--bg-elevated); }
.theme-btn.active {
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.theme-btn svg { width: 16px; height: 16px; }

/* ── MOBILE MENU (outside navbar to avoid backdrop-filter stacking) ── */
.mobile-menu {
    display: none; position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 9990;
    flex-direction: column; padding: 20px 16px; gap: 6px;
    overflow-y: auto; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
    width: 100%; padding: 16px 20px; font-size: 17px; font-weight: 600;
    color: var(--text); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--radius);
    display: flex; align-items: center; text-decoration: none;
    transition: background var(--transition);
}
.mobile-menu-link:hover,
.mobile-menu-link:active { background: var(--bg-elevated); color: var(--text); }
.mobile-menu-cta {
    background: var(--primary); color: #fff !important;
    border-color: var(--primary); justify-content: center;
}
.mobile-menu-cta:hover,
.mobile-menu-cta:active { background: var(--primary-hover); }
.theme-switcher-mobile {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.theme-switcher-mobile .theme-btn { width: 40px; height: 40px; font-size: 18px; }

@media (max-width: 768px) {
    .nav-toggle { display: flex !important; }
    .nav-links-desktop { display: none !important; }
    .theme-switcher-desktop { display: none !important; }
}
@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
    .theme-switcher-mobile { display: none; }
}

/* ── HERO ── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); pointer-events: none;
}
.hero-glow-1 {
    width: 600px; height: 600px; top: -200px; right: -100px;
    background: var(--primary-glow); opacity: 0.4;
}
.hero-glow-2 {
    width: 400px; height: 400px; bottom: -100px; left: -100px;
    background: rgba(168, 85, 247, 0.15); opacity: 0.4;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    background: var(--green-dim); color: var(--green);
    font-size: 13px; font-weight: 600;
    margin-bottom: 32px; border: 1px solid rgba(34, 197, 94, 0.2);
}
.hero-title {
    font-size: clamp(36px, 7vw, 72px); font-weight: 900;
    line-height: 1.1; margin-bottom: 24px;
}
.hero-title-line { display: block; color: var(--text); }
.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 18px; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 60px;
}
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; max-width: 700px; margin: 0 auto;
}
.hero-stat {
    padding: 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.hero-stat-value {
    display: block; font-size: 24px; font-weight: 800;
    font-family: var(--font-mono); color: var(--text);
    margin-bottom: 4px;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 100px 0 60px; }
}

/* ── SECTIONS ── */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: var(--primary-dim); color: var(--primary);
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.badge-green { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,0.15); }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── STATUS ── */
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.maintenance { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-dot-lg { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.status-dot-lg.online { background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-dot-lg.maintenance { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.status-dot-lg.offline { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ── BOT CARDS ── */
.bots-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.bot-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); padding: 24px;
    display: flex; flex-direction: column; gap: 12px;
    transition: all var(--transition); text-decoration: none; color: var(--text);
    position: relative; overflow: hidden;
}
.bot-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--primary), var(--purple));
    opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.bot-card:hover {
    border-color: var(--border); transform: translateY(-4px);
    box-shadow: var(--shadow-lg); color: var(--text);
}
.bot-card:hover::before { opacity: 1; }
.bot-card-header { display: flex; align-items: center; justify-content: space-between; }
.bot-card-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--primary-dim); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.bot-card-icon svg { width: 22px; height: 22px; }
.bot-card-meta { display: flex; align-items: center; gap: 8px; }
.bot-card-version {
    padding: 3px 8px; border-radius: 4px; font-size: 11px;
    font-weight: 600; background: var(--bg-elevated); color: var(--text-secondary);
    font-family: var(--font-mono);
}
.bot-card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.bot-card-name { font-size: 20px; font-weight: 700; }
.bot-card-username { font-size: 13px; color: var(--primary); font-family: var(--font-mono); }
.bot-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.bot-card-features { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-card-feature {
    padding: 4px 10px; border-radius: 100px; font-size: 11px;
    background: var(--bg-elevated); color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.bot-card-feature-more { background: var(--primary-dim); color: var(--primary); border-color: rgba(59,130,246,0.15); }
.bot-card-footer { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.bot-card-cta {
    font-size: 14px; font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: 6px;
}

/* ── LEGACY ── */
.legacy-section { margin-top: 48px; }
.legacy-title {
    font-size: 16px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.legacy-grid { display: flex; flex-direction: column; gap: 8px; }
.legacy-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    text-decoration: none; color: var(--text); transition: all var(--transition);
}
.legacy-card:hover { border-color: var(--border); color: var(--text); }
.legacy-card-left { display: flex; align-items: center; gap: 12px; }
.legacy-card-left svg { color: var(--text-muted); }
.legacy-card-name { display: block; font-weight: 600; font-size: 15px; }
.legacy-card-user { display: block; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.legacy-card-right { display: flex; align-items: center; gap: 12px; }

/* ── STATUS SECTION ── */
.status-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.status-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.status-item-left { display: flex; align-items: center; gap: 14px; }
.status-item-name { display: block; font-weight: 600; font-size: 15px; }
.status-item-user { display: block; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.status-badge {
    padding: 4px 12px; border-radius: 100px; font-size: 11px;
    font-weight: 700; letter-spacing: 1px;
}
.status-badge-online { background: var(--green-dim); color: var(--green); }
.status-badge-maintenance { background: var(--orange-dim); color: var(--orange); }
.status-badge-offline { background: var(--red-dim); color: var(--red); }

.status-info-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.status-info-card {
    padding: 24px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.status-info-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--primary-dim); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.status-info-icon svg { width: 20px; height: 20px; }
.status-info-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.status-info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── CHANNELS ── */
.channels-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.channel-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    text-decoration: none; color: var(--text); transition: all var(--transition);
}
.channel-card:hover { border-color: var(--border); transform: translateY(-2px); color: var(--text); }
.channel-card-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--primary-dim); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.channel-card-icon svg { width: 20px; height: 20px; }
.channel-card-info { flex: 1; min-width: 0; }
.channel-card-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.channel-card-desc { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-card-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.channel-card:hover .channel-card-arrow { transform: translate(2px, -2px); }

/* ── CTA SECTION ── */
.cta-section { padding: 60px 0 100px; }
.cta-card {
    position: relative; padding: 60px 40px; text-align: center;
    border-radius: var(--radius-xl); overflow: hidden;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
    border: 1px solid rgba(59,130,246,0.15);
}
.cta-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 300px; border-radius: 50%;
    background: rgba(59,130,246,0.1); filter: blur(80px); pointer-events: none;
}
.cta-title { font-size: 32px; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; flex-wrap: wrap; }

/* ── BOT DETAIL ── */
.bot-hero { position: relative; padding: 120px 0 60px; overflow: hidden; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary);
    font-size: 14px; margin-bottom: 32px; text-decoration: none;
}
.back-link:hover { color: var(--primary); }
.bot-hero-content { max-width: 800px; }
.bot-hero-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bot-hero-version {
    padding: 4px 12px; border-radius: 4px; font-size: 12px;
    font-weight: 600; background: var(--primary-dim); color: var(--primary);
    font-family: var(--font-mono);
}
.bot-hero-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 4px; font-size: 12px;
    font-weight: 600; background: var(--green-dim); color: var(--green);
}
.bot-hero-legacy {
    padding: 4px 12px; border-radius: 4px; font-size: 12px;
    font-weight: 600; background: var(--orange-dim); color: var(--orange);
}
.bot-hero-title { font-size: 48px; font-weight: 900; margin-bottom: 8px; line-height: 1.1; }
.bot-hero-username { font-size: 16px; color: var(--primary); font-family: var(--font-mono); margin-bottom: 20px; }
.bot-hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.bot-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.bot-detail-grid {
    display: grid; grid-template-columns: 1fr 360px; gap: 32px;
}
@media (max-width: 768px) { .bot-detail-grid { grid-template-columns: 1fr; } }

.bot-features-card {
    padding: 32px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.bot-features-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; margin-bottom: 24px;
    color: var(--primary);
}
.bot-features-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bot-feature-item {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; color: var(--text); padding: 12px 16px;
    border-radius: var(--radius); background: var(--bg-secondary);
}
.bot-feature-item svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

.bot-info-sidebar { display: flex; flex-direction: column; gap: 20px; }
.bot-info-card {
    padding: 24px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.bot-info-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.bot-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-subtle);
}
.bot-info-row:last-child { border-bottom: none; }
.bot-info-label { font-size: 13px; color: var(--text-muted); }
.bot-info-value { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.bot-support-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.bot-support-link:last-child { border-bottom: none; }
.bot-support-link:hover { color: var(--primary); }
.bot-support-link svg { color: var(--primary); }

/* ── PAGE HERO ── */
.page-hero {
    position: relative; padding: 120px 0 40px; overflow: hidden;
}
.page-hero-title { font-size: 42px; font-weight: 900; margin-bottom: 12px; margin-top: 12px; }
.page-hero-desc { font-size: 17px; color: var(--text-secondary); max-width: 600px; }

/* ── CONTACT ── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 40px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrap, .create-form-wrap {
    padding: 32px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.contact-form-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.required { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: var(--font); font-size: 14px;
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
    padding: 24px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.contact-info-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.team-member-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border-subtle);
}
.team-member-link:last-child { border-bottom: none; }
.team-member-link:hover { color: var(--primary); }
.team-member-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-dim); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.team-member-name { display: block; font-weight: 600; font-size: 14px; }
.team-member-role { display: block; font-size: 12px; color: var(--text-muted); }

.channel-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
}
.channel-link svg { color: var(--primary); flex-shrink: 0; }
.channel-link:hover { color: var(--primary); }

.contact-quick-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* ── CREATE BOT ── */
.create-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
@media (max-width: 768px) { .create-grid { grid-template-columns: 1fr; } }
.create-sidebar { display: flex; flex-direction: column; gap: 16px; }
.create-info-card {
    padding: 24px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.create-info-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--primary-dim); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.create-info-icon svg { width: 20px; height: 20px; }
.create-info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.create-info-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── DYNAMIC PAGE ── */
.dynamic-content {
    max-width: 800px; margin: 0 auto;
    padding: 32px; border-radius: var(--radius-xl);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    font-size: 15px; line-height: 1.8; color: var(--text-secondary);
}
.dynamic-content h1, .dynamic-content h2, .dynamic-content h3 { color: var(--text); margin: 24px 0 12px; }
.dynamic-content p { margin-bottom: 16px; }
.dynamic-content a { color: var(--primary); }

/* ── ERROR ── */
.error-page { min-height: 80vh; display: flex; align-items: center; }
.error-content { text-align: center; position: relative; z-index: 1; }
.error-code {
    font-size: 120px; font-weight: 900; font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
.error-title { font-size: 28px; font-weight: 700; margin: 16px 0 12px; }
.error-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

/* ── FLASH ── */
.flash-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.flash {
    padding: 14px 40px 14px 20px; border-radius: var(--radius-lg);
    font-size: 14px; font-weight: 500; position: relative;
    animation: flashIn 0.3s ease;
}
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.flash-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.flash-close {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    background: none; border: none; color: inherit; cursor: pointer;
    font-size: 18px; opacity: 0.7;
}
@keyframes flashIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── FOOTER ── */
.site-footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px; margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: 20px; font-weight: 800;
}
.footer-tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.footer-tech { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.footer-links-section h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links-section a {
    display: block; font-size: 14px; color: var(--text-secondary);
    padding: 4px 0; text-decoration: none;
}
.footer-links-section a:hover { color: var(--primary); }
.footer-clock { font-family: var(--font-mono); font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.footer-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); margin-bottom: 8px; }
.footer-users { font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--border-subtle);
    font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--primary); }

/* ── CHECKBOX ── */
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ── INLINE FORM ── */
.inline-form { display: inline; }

/* ── ANIMATIONS ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── LOGO IMAGES ── */
.nav-logo-img {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--primary-dim);
    flex-shrink: 0;
}
.footer-logo-img {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--primary-dim);
    flex-shrink: 0;
}
.bot-card-icon-img {
    background: transparent; overflow: hidden;
    border: 2px solid var(--primary-dim); border-radius: var(--radius-lg);
    width: 52px; height: 52px;
}
.bot-card-logo {
    width: 100%; height: 100%; object-fit: cover;
}
.legacy-card-logo {
    width: 36px; height: 36px; border-radius: var(--radius);
    object-fit: cover; border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.status-bot-logo {
    width: 40px; height: 40px; border-radius: var(--radius);
    object-fit: cover; border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.bot-hero-logo-wrap {
    margin-bottom: 20px;
}
.bot-hero-logo {
    width: 100px; height: 100px; border-radius: var(--radius-xl);
    object-fit: cover; border: 3px solid var(--primary-dim);
    box-shadow: 0 0 30px var(--primary-glow);
}
.contact-support-card {
    text-align: center;
}
.contact-support-logo {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--primary-dim);
    margin: 0 auto 12px;
    display: block;
}
.hero-main-logo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--primary-dim);
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(59, 130, 246, 0.15);
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

/* ── GRADIENT THEME SPECIALS ── */
[data-theme="gradient"] .hero {
    background: var(--gradient-hero);
}
[data-theme="gradient"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
}
[data-theme="gradient"] .hero-glow-1 {
    background: rgba(139, 92, 246, 0.3);
}
[data-theme="gradient"] .hero-glow-2 {
    background: rgba(6, 182, 212, 0.15);
}
[data-theme="gradient"] .hero-title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="gradient"] .bot-card::before {
    background: var(--gradient-accent);
}
[data-theme="gradient"] .cta-card {
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.08), rgba(236,72,153,0.06));
    border-color: rgba(139,92,246,0.2);
}
[data-theme="gradient"] .error-code {
    background: var(--gradient-accent);
    -webkit-background-clip: text; background-clip: text;
}
[data-theme="gradient"] .section-badge {
    background: var(--primary-dim); color: var(--primary);
    border-color: rgba(139,92,246,0.2);
}
[data-theme="gradient"] .hero-main-logo {
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(139, 92, 246, 0.2);
}
[data-theme="gradient"] .nav-link-cta {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border-color: transparent;
}
[data-theme="gradient"] .btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-color: transparent;
}
[data-theme="gradient"] .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, var(--primary));
    border-color: transparent;
}

/* ── LIGHT THEME SPECIALS ── */
[data-theme="light"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow-1 { opacity: 0.2; }
[data-theme="light"] .hero-glow-2 { opacity: 0.15; }
[data-theme="light"] .hero-stat {
    background: var(--bg-card); border-color: var(--border);
    box-shadow: var(--shadow);
}
[data-theme="light"] .bot-card {
    box-shadow: var(--shadow);
}
[data-theme="light"] .status-info-card,
[data-theme="light"] .contact-form-wrap,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .create-form-wrap,
[data-theme="light"] .create-info-card,
[data-theme="light"] .bot-features-card,
[data-theme="light"] .bot-info-card {
    box-shadow: var(--shadow);
}
[data-theme="light"] .section-dark { background: var(--bg-secondary); }
[data-theme="light"] .nav-link-cta { color: #fff !important; }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-secondary); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }

/* ── EXTRA RESPONSIVE ── */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 100px 0 50px; min-height: auto; }
    .hero-title { font-size: clamp(28px, 8vw, 48px); }
    .hero-description { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-stat { padding: 14px; }
    .hero-stat-value { font-size: 18px; }
    .hero-stat-label { font-size: 11px; }
    .hero-main-logo { width: 90px; height: 90px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; }
    .bots-grid { grid-template-columns: 1fr; gap: 14px; }
    .bot-card { padding: 18px; }
    .bot-card-name { font-size: 17px; }
    .cta-card { padding: 36px 20px; }
    .cta-title { font-size: 22px; }
    .cta-desc { font-size: 14px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .page-hero { padding: 90px 0 30px; }
    .page-hero-title { font-size: 28px; }
    .contact-grid, .create-grid { gap: 24px; }
    .contact-form-wrap, .create-form-wrap { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .bot-hero-title { font-size: 28px; }
    .bot-hero-logo { width: 72px; height: 72px; }
    .site-footer { padding: 40px 0 16px; }
    .footer-grid { gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .flash-container { left: 10px; right: 10px; }
    .flash { font-size: 13px; padding: 12px 36px 12px 16px; }
    .theme-switcher { padding: 2px; }
    .theme-btn { width: 28px; height: 28px; font-size: 14px; }
}
@media (max-width: 360px) {
    .nav-container { padding: 0 12px; }
    .logo-text { font-size: 15px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .bot-detail-grid { grid-template-columns: 1fr 280px; gap: 24px; }
    .contact-grid, .create-grid { grid-template-columns: 1fr 300px; gap: 24px; }
}
