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

:root {
  --bg-dark: #0a1628;
  --bg: #0d1b31;
  --card: #111d33;
  --panel: #0f192c;
  --panel-light: #f8fafc;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #3b82f6;
  --accent-2: #10b981;
  --accent-3: #fbbf24;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.04)), var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

.page { max-width: 1200px; margin: 0 auto; padding: 18px 20px 60px; position: relative; }
.hero, .section { scroll-margin-top: 90px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.brand-name { font-weight: 700; }

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

.nav-links a { color: var(--muted); padding: 10px 12px; border-radius: 12px; font-weight: 600; }

.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button.primary { background: var(--accent); color: #fff; box-shadow: 0 14px 40px rgba(59, 130, 246, 0.25); }
.button.primary:hover { background: #2563eb; }
.button.ghost { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: var(--border); }
.button.link { background: transparent; color: var(--accent); padding: 0; border: none; box-shadow: none; }
.button.success { background: var(--accent-2); color: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.92rem; }

.hero {
  background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.2), transparent 36%),
    linear-gradient(160deg, #0a1628, #0b1930 60%, #0c1a32 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 24px 28px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(59, 130, 246, 0.16); color: #bfdbfe; border: 1px solid rgba(59, 130, 246, 0.28); font-weight: 600; }

.hero-title { font-size: 2.6rem; line-height: 1.15; margin: 16px 0 12px; }

.hero-subtitle { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-metadata { display: flex; gap: 14px; flex-wrap: wrap; color: #cbd5e1; margin-top: 14px; font-size: 0.95rem; }

.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

.upload-card { background: #0f1f39; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

label { font-weight: 700; display: block; margin-bottom: 6px; }

.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-subtitle { color: var(--muted); margin-top: 0; margin-bottom: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-size: 0.8rem; margin: 0; }
.lede { color: #cbd5e1; line-height: 1.6; }
.progress-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

select, input[type="text"], input[type="number"], input[type="file"], input[type="date"] {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #fff; font-family: inherit;
}

.file-drop { border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.02); }
.file-drop.active { border-color: var(--accent); background: rgba(59, 130, 246, 0.08); }
.file-drop input { display: none; }

.section { margin-top: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 1.4rem; margin: 0; }
.section-sub { color: var(--muted); margin: 4px 0 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feature-card { background: #0f1f36; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 60%); transform: rotate(12deg); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(59, 130, 246, 0.16); display: grid; place-items: center; color: #bfdbfe; margin-bottom: 10px; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.step-card { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 16px; background: #0f1d33; }
.step-number { width: 34px; height: 34px; border-radius: 10px; background: rgba(59, 130, 246, 0.12); display: grid; place-items: center; font-weight: 700; color: #bfdbfe; margin-bottom: 8px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.price-card { background: #0f1f36; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 18px; }
.price-number { font-size: 2.2rem; font-weight: 800; color: #fff; }
.price-note { color: var(--muted); }
.sim-block { padding: 12px; border: 1px dashed rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }

.bank-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bank-chip { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #cbd5e1; }

.table { width: 100%; display: grid; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.table-head, .table-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; align-items: center; }
.table-head { background: rgba(255, 255, 255, 0.04); color: var(--muted); font-weight: 700; }
.table-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.table.responsive .table-head, .table.responsive .table-row { min-width: 680px; grid-template-columns: repeat(4, 1fr); }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.summary { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.job-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 14px; }
/* Allow wide children (SheetJS table) to overflow/scroll INSIDE the widget without forcing page horizontal scroll. */
.job-layout > .panel { min-width: 0; }
.job-layout > .job-aside { min-width: 0; }
.job-aside { display: flex; flex-direction: column; gap: 12px; }
.cost-card { border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.02); padding: 14px; border-radius: 12px; }

.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.flash { padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.flash.success { background: rgba(16, 185, 129, 0.12); color: #bbf7d0; }
.flash.error { background: rgba(239, 68, 68, 0.15); color: #fecdd3; }
.status-chip { padding: 8px 12px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.status-chip.pending { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.status-chip.success { background: rgba(16, 185, 129, 0.16); color: #bbf7d0; }
.status-chip.danger { background: rgba(239, 68, 68, 0.16); color: #fecdd3; }
.toast-stack { position: fixed; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 1200; }
.toast { padding: 12px 14px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--panel); color: var(--text); min-width: 240px; }
.toast.success { background: rgba(16, 185, 129, 0.12); color: #bbf7d0; border-color: rgba(16, 185, 129, 0.4); }
.toast.error { background: rgba(239, 68, 68, 0.12); color: #fecdd3; border-color: rgba(239, 68, 68, 0.4); }
.payment-table { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; }
.payment-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr 1.4fr; gap: 10px; padding: 12px; align-items: center; background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.payment-row.head { background: rgba(255, 255, 255, 0.06); font-weight: 700; color: var(--muted); border-top: none; }
.payment-row .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 0.9rem; word-break: break-all; }
.payment-row .actions { justify-content: flex-start; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); }

.footer { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; color: var(--muted); }

.auth-body { background: var(--bg-dark); display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.auth-shell { width: 420px; }
.auth-card { box-shadow: var(--shadow); background: var(--panel); }
.social-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); font-weight: 700; text-decoration: none; color: var(--text); }
.social-btn:hover { filter: brightness(1.05); }
.social-btn .social-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.social-btn.google { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.social-btn.telegram { background: linear-gradient(135deg, #37aee2, #1e96c8); color: #fff; border-color: transparent; }

.admin-grid, .chart-grid, .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.alert-card { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, 0.04); }
.alert-card.medium { border-color: rgba(251, 191, 36, 0.4); }
.alert-card.high { border-color: rgba(248, 113, 113, 0.4); }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: none; align-items: flex-end; justify-content: flex-end; z-index: 50; }
.drawer { width: 420px; max-width: 90vw; background: #0f1d33; height: 100vh; border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45); padding: 18px; color: #e2e8f0; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; }
.drawer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.drawer-list li { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 10px; background: rgba(255, 255, 255, 0.02); }

.sheet-preview-widget { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.sheet-preview-scroll { max-height: 460px; overflow-x: auto; overflow-y: auto; padding: 8px; max-width: 100%; min-width: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-preview-scroll table { border-collapse: collapse; width: max-content; min-width: max-content; font-size: 12px; line-height: 1.25; }
.sheet-preview-scroll td, .sheet-preview-scroll th { border: 1px solid rgba(255, 255, 255, 0.08); padding: 6px 8px; white-space: nowrap; vertical-align: top; }
.sheet-preview-scroll th { background: rgba(255, 255, 255, 0.05); font-weight: 700; position: sticky; top: 0; z-index: 2; }
.sheet-preview-scroll tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

@media (max-width: 960px) {
  .hero-grid, .job-layout { grid-template-columns: 1fr; }
  .navbar { position: static; flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { flex-wrap: wrap; }
  .table.responsive .table-head, .table.responsive .table-row { min-width: 520px; }
}
.no-copy, .no-copy * { user-select: none; -webkit-user-select: none; }
