*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1120;
  --navy2: #0f172a;
  --navy3: #1e293b;
  --accent: #7C3AED;
  --accent2: #6D28D9;
  --accent3: #8B5CF6;
  --accent-light: #ede9fe;
  --white: #fff;
  --gray50: #f8fafc;
  --gray100: #f1f5f9;
  --gray200: #e2e8f0;
  --gray300: #cbd5e1;
  --gray400: #94a3b8;
  --gray500: #64748b;
  --gray600: #475569;
  --gray700: #334155;
  --gray800: #1e293b;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
  --trans: all .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .875rem;
  cursor: pointer; border: none; transition: var(--trans); white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,.4); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--gray100); color: var(--gray700); border: 1px solid var(--gray200); }
.btn-ghost:hover { background: var(--gray200); }
.btn-white { background: #fff; color: var(--accent); font-weight: 700; }
.btn-white:hover { background: var(--accent-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: 7px; }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 10px; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 64px; display: flex; align-items: center;
  padding: 0 24px; transition: var(--trans);
}
.nav.scrolled { background: rgba(11,17,32,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.5px; }
.nav-brand-mark { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.72); font-size: .875rem; font-weight: 500; transition: var(--trans); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--trans); }

.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--navy); z-index: 998; padding: 32px 24px; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobile-nav.active { display: flex; }
.mobile-nav a { color: rgba(255,255,255,.8); font-size: 1rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); transition: var(--trans); }
.mobile-nav a:hover { color: #fff; }
.mobile-nav .mobile-nav-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-nav .mobile-nav-btns .btn { justify-content: center; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,.32) 0%, transparent 65%);
  padding: 140px 0 100px; position: relative; overflow: hidden; text-align: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, rgba(59,130,246,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(139,92,246,.1) 0%, transparent 50%);
}
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.35); color: #a78bfa; padding: 5px 14px; border-radius: 100px; font-size: .78rem; font-weight: 600; margin-bottom: 24px; letter-spacing: .3px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto 38px; line-height: 1.75; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 72px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.hero-trust-item { text-align: center; }
.hero-trust-num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-trust-label { font-size: .75rem; color: rgba(255,255,255,.4); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── SECTION BASE ── */
.section { padding: 96px 0; }
.section-dark { background: var(--navy2); }
.section-gray { background: var(--gray50); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.8px; line-height: 1.2; margin-bottom: 16px; }
.section-dark .section-title, .section-dark .section-eyebrow { color: #fff; }
.section-dark .section-eyebrow { color: #a78bfa; }
.section-sub { font-size: 1rem; color: var(--gray500); max-width: 540px; margin: 0 auto; line-height: 1.7; }
.section-dark .section-sub { color: rgba(255,255,255,.5); }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--gray200); border-radius: var(--radius-lg); padding: 32px 28px; transition: var(--trans); }
.feature-card:hover { border-color: var(--accent3); box-shadow: 0 8px 32px rgba(124,58,237,.1); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { color: var(--accent); }
.feature-title { font-weight: 700; font-size: 1rem; margin-bottom: 10px; color: var(--navy); }
.feature-desc { font-size: .88rem; color: var(--gray500); line-height: 1.7; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 32px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent3));
  opacity: .3;
}
.step-card { text-align: center; padding: 0 16px; }
.step-num { width: 64px; height: 64px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 1.3rem; font-weight: 800; color: #fff; border: 3px solid var(--accent); position: relative; z-index: 1; }
.step-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; color: #fff; }
.step-desc { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: #fff; border: 1.5px solid var(--gray200); border-radius: var(--radius-lg);
  padding: 36px 30px; position: relative; transition: var(--trans);
}
.pricing-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured { border-color: var(--accent); background: var(--accent); color: #fff; }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.pricing-name { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; color: var(--gray500); margin-bottom: 10px; }
.pricing-card.featured .pricing-name { color: rgba(255,255,255,.7); }
.pricing-credits { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1; }
.pricing-card.featured .pricing-credits { color: #fff; }
.pricing-credits span { font-size: 1rem; font-weight: 500; color: var(--gray400); }
.pricing-card.featured .pricing-credits span { color: rgba(255,255,255,.6); }
.pricing-deploys { font-size: .85rem; color: var(--gray500); margin: 8px 0 24px; }
.pricing-card.featured .pricing-deploys { color: rgba(255,255,255,.7); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-list li { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--gray600); }
.pricing-card.featured .pricing-list li { color: rgba(255,255,255,.85); }
.pricing-list li svg { flex-shrink: 0; }
.pricing-note { font-size: .78rem; color: var(--gray400); text-align: center; margin-top: 16px; }

/* ── WHAT YOU CAN HOST ── */
.host-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.host-item { background: var(--navy3); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; border: 1px solid rgba(255,255,255,.06); transition: var(--trans); }
.host-item:hover { border-color: rgba(124,58,237,.4); background: rgba(124,58,237,.08); transform: translateY(-2px); }
.host-item-icon { width: 52px; height: 52px; background: rgba(124,58,237,.18); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.host-item-title { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 6px; }
.host-item-desc { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 50%, #6366f1 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; letter-spacing: -.8px; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 36px; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand-mark { width: 28px; height: 28px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-weight: 700; font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: var(--trans); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.3); }

/* ── LOGIN PAGE ── */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-left { background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 60px 60px; position: relative; overflow: hidden; }
.login-left::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.35) 0%, transparent 65%); }
.login-left-inner { position: relative; max-width: 440px; }
.login-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.4rem; margin-bottom: 56px; }
.login-brand-mark { width: 36px; height: 36px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.login-headline { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.5px; }
.login-sub { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.7; margin-bottom: 40px; }
.login-features { display: flex; flex-direction: column; gap: 20px; }
.login-feature { display: flex; align-items: flex-start; gap: 14px; }
.login-feature-icon { width: 38px; height: 38px; background: rgba(124,58,237,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-feature-title { font-weight: 600; color: #fff; font-size: .9rem; margin-bottom: 3px; }
.login-feature-desc { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.6; }

.login-right { display: flex; align-items: center; justify-content: center; padding: 60px 60px; background: var(--gray50); }
.login-form-box { width: 100%; max-width: 420px; }
.login-form-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.5px; margin-bottom: 6px; }
.login-form-sub { font-size: .875rem; color: var(--gray500); margin-bottom: 36px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray700); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1.5px solid var(--gray200);
  background: #fff; font-size: .9rem; color: var(--navy); transition: var(--trans); outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.form-input.error { border-color: var(--red); }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 44px; }
.toggle-pw { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray400); padding: 2px; display: flex; align-items: center; }
.toggle-pw:hover { color: var(--gray600); }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); padding: 12px 16px; border-radius: 8px; font-size: .85rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-error.hidden { display: none; }

/* ── DASHBOARD LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; background: var(--gray50); }
.sidebar {
  width: 240px; background: var(--navy2); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 500; transition: var(--trans);
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.sidebar-mark { width: 30px; height: 30px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-label { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .8px; padding: 0 8px; margin-bottom: 6px; margin-top: 16px; }
.sidebar-label:first-child { margin-top: 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: rgba(255,255,255,.55); font-size: .875rem; font-weight: 500; transition: var(--trans); margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.sidebar-link.active { background: rgba(124,58,237,.25); color: #fff; }
.sidebar-link.active svg { color: var(--accent3); }
.sidebar-link svg { flex-shrink: 0; opacity: .7; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: var(--trans); }
.sidebar-user:hover { background: rgba(255,255,255,.07); }
.sidebar-avatar { width: 32px; height: 32px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.sidebar-username { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.sidebar-role { font-size: .7rem; color: rgba(255,255,255,.35); }

.main-content { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--gray200); display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 400; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--navy); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--gray600); padding: 4px; }
.page-body { padding: 28px; flex: 1; }

/* ── STATS CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--gray200); display: flex; align-items: flex-start; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon.purple { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: #d1fae5; color: var(--green); }
.stat-icon.blue { background: #dbeafe; color: var(--blue); }
.stat-icon.yellow { background: #fef3c7; color: var(--yellow); }
.stat-label { font-size: .78rem; color: var(--gray500); font-weight: 500; margin-bottom: 5px; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1; }
.stat-sub { font-size: .75rem; color: var(--gray400); margin-top: 4px; }

/* ── PANEL / CARD ── */
.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray200); overflow: hidden; margin-bottom: 24px; }
.panel-header { padding: 18px 22px; border-bottom: 1px solid var(--gray100); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-weight: 700; font-size: .95rem; color: var(--navy); }
.panel-body { padding: 22px; }

/* ── CREDITS PANEL ── */
.credits-display { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.credits-big { font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.credits-label { font-size: .82rem; color: var(--gray500); }
.credits-info { font-size: .82rem; color: var(--gray500); line-height: 1.6; }
.telegram-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .85rem; transition: var(--trans); }
.telegram-link:hover { color: var(--accent2); text-decoration: underline; }

/* ── SEARCH ── */
.search-bar { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 340px; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gray400); pointer-events: none; }
.search-input { width: 100%; padding: 9px 12px 9px 36px; border: 1.5px solid var(--gray200); border-radius: 8px; font-size: .875rem; color: var(--navy); outline: none; transition: var(--trans); background: #fff; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }

/* ── SITES GRID ── */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.site-card { background: var(--gray50); border: 1.5px solid var(--gray200); border-radius: var(--radius-lg); padding: 20px; transition: var(--trans); }
.site-card:hover { border-color: var(--accent3); box-shadow: 0 4px 16px rgba(124,58,237,.1); }
.site-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.site-favicon { width: 40px; height: 40px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.site-status { display: inline-flex; align-items: center; gap: 5px; background: #d1fae5; color: #065f46; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.site-status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.site-name { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 4px; word-break: break-all; }
.site-url { font-size: .78rem; color: var(--accent); word-break: break-all; display: flex; align-items: center; gap: 4px; }
.site-url:hover { text-decoration: underline; }
.site-meta { font-size: .75rem; color: var(--gray400); margin: 10px 0 14px; }
.site-actions { display: flex; gap: 8px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { width: 64px; height: 64px; background: var(--gray100); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-desc { font-size: .875rem; color: var(--gray400); margin-bottom: 20px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: .75rem; font-weight: 700; color: var(--gray500); text-transform: uppercase; letter-spacing: .5px; padding: 10px 16px; border-bottom: 1.5px solid var(--gray200); text-align: left; white-space: nowrap; background: var(--gray50); }
td { padding: 14px 16px; border-bottom: 1px solid var(--gray100); font-size: .875rem; color: var(--gray700); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray50); }
.credits-input { width: 90px; padding: 6px 10px; border: 1.5px solid var(--gray200); border-radius: 7px; font-size: .85rem; text-align: center; transition: var(--trans); outline: none; }
.credits-input:focus { border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.badge-purple { background: var(--accent-light); color: var(--accent2); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-gray { background: var(--gray100); color: var(--gray600); }
.badge-red { background: #fee2e2; color: #991b1b; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; transform: scale(.96); transition: transform .2s ease; }
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.modal-close { background: var(--gray100); border: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray500); transition: var(--trans); }
.modal-close:hover { background: var(--gray200); color: var(--navy); }

/* ── DEPLOY STEPS ── */
.deploy-steps { display: flex; gap: 0; margin-bottom: 28px; }
.deploy-step { flex: 1; text-align: center; position: relative; }
.deploy-step:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--gray200); z-index: 0; }
.deploy-step.done:not(:last-child)::after { background: var(--accent); }
.deploy-step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray200); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: .78rem; font-weight: 700; color: var(--gray400); position: relative; z-index: 1; transition: var(--trans); }
.deploy-step.active .deploy-step-circle { border-color: var(--accent); color: var(--accent); }
.deploy-step.done .deploy-step-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.deploy-step-label { font-size: .72rem; color: var(--gray400); font-weight: 500; }
.deploy-step.active .deploy-step-label { color: var(--accent); font-weight: 600; }
.deploy-step.done .deploy-step-label { color: var(--gray600); }

.step-content { display: none; }
.step-content.active { display: block; }

.upload-zone { border: 2px dashed var(--gray300); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; cursor: pointer; transition: var(--trans); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone input { display: none; }
.upload-zone-icon { width: 52px; height: 52px; background: var(--gray100); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.upload-zone-title { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.upload-zone-sub { font-size: .8rem; color: var(--gray400); }
.upload-file-chosen { display: flex; align-items: center; gap: 10px; background: var(--gray50); border: 1px solid var(--gray200); border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: .85rem; color: var(--gray700); }

.deploy-animation { text-align: center; padding: 30px 0; }
.deploy-spinner { width: 56px; height: 56px; border: 3px solid var(--gray200); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.deploy-logs { background: var(--navy2); border-radius: 10px; padding: 16px; font-size: .78rem; color: #a0aec0; font-family: 'Courier New', monospace; text-align: left; max-height: 140px; overflow-y: auto; margin-top: 14px; }
.deploy-log-line { padding: 2px 0; }
.deploy-log-line.success { color: var(--green); }
.deploy-log-line.error { color: var(--red); }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { background: var(--navy2); color: #fff; padding: 14px 18px; border-radius: 10px; font-size: .875rem; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); animation: slideInRight .25s ease; border-left: 3px solid var(--accent); }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--yellow); }
.toast-icon { flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.4); padding: 2px; display: flex; transition: var(--trans); }
.toast-close:hover { color: #fff; }

/* ── NAME CHECK ── */
.name-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; margin-top: 7px; font-weight: 500; }
.name-status.available { color: var(--green); }
.name-status.taken { color: var(--red); }
.name-status.checking { color: var(--gray400); }

/* ── SPINNER ── */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
.spinner-dark { border-color: var(--gray200); border-top-color: var(--accent); }

/* ── ADMIN SITE MODAL ── */
.user-sites-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.user-site-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--gray50); border-radius: 8px; border: 1px solid var(--gray200); }
.user-site-name { font-weight: 600; font-size: .875rem; color: var(--navy); }
.user-site-url { font-size: .78rem; color: var(--accent); }
.user-site-date { font-size: .72rem; color: var(--gray400); }

/* ── ANIMATIONS ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn .3s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .host-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 499; }
  .sidebar-overlay.active { display: block; }
  .main-content { margin-left: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .host-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 70px; }
  .section { padding: 64px 0; }
  .hero-trust { gap: 24px; }
  .page-body { padding: 18px; }
  .topbar { padding: 0 18px; }
}

@media (max-width: 480px) {
  .host-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .site-actions { flex-direction: column; }
  .site-actions .btn { justify-content: center; }
  .modal { padding: 22px; }
  .panel-header { flex-direction: column; align-items: flex-start; }
}