/* ═══════════════════════════════════════
   STL SHOP — Global Stylesheet
   Inspired by Tripo3D Studio aesthetic
   ═══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg-primary: #09090b;
  --bg-secondary: #111113;
  --bg-elevated: #18181b;
  --bg-card: #131316;
  --border: #1e1e24;
  --border-hover: #2e2e36;
  --accent: #00b4d8;
  --accent-dark: #0077b6;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
  --transition: .2s ease;
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 60px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #33ccee; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* ── Typography ── */
.h1 { font-size: 3.5rem; }
.h2 { font-size: 2.5rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.section { padding: 80px 0; }
.hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,180,216,.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }

.btn-danger {
  background: rgba(239,68,68,.1);
  color: var(--error);
  border-color: rgba(239,68,68,.2);
}
.btn-danger:hover { background: rgba(239,68,68,.2); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
}

.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-flat { transform: none !important; }
.card-flat:hover { transform: none !important; }

/* ── Inputs ── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

.input, select, textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(16,185,129,.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-error { background: rgba(239,68,68,.12); color: var(--error); }
.badge-info { background: var(--accent-glow); color: var(--accent); }
.badge-violet { background: var(--violet-glow); color: var(--violet); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 16px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab {
  padding: 10px 18px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Progress ── */
.progress { height: 6px; background: var(--bg-secondary); border-radius: 100px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width .4s ease;
}
.progress-bar.success { background: linear-gradient(90deg, var(--success), #059669); }

/* ── Avatar ── */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }

/* ── Stat Card ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; margin-top: 4px; }
.stat-card .stat-change { font-size: 0.8rem; margin-top: 4px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--error); }

/* ══════════════════════════════════════
   HEADER / NAVBAR (Landing)
   ══════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,.12) 0%, transparent 70%);
  top: 10%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
  top: 30%; right: 10%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3.75rem; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-trust span::before { content: '✓ '; color: var(--success); }

/* ── Dot Background ── */
.dot-bg {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ══════════════════════════════════════
   SECTIONS (Landing)
   ══════════════════════════════════════ */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); }

/* Steps */
.steps { display: flex; gap: 32px; align-items: flex-start; position: relative; }
.step { flex: 1; text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-glow); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: var(--accent);
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }
.steps-line {
  position: absolute; top: 28px; left: 20%; right: 20%;
  height: 2px; background: var(--border);
  z-index: 0;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Pricing */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 4px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.pricing-name { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,.03);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* CTA Section */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), var(--violet-glow));
  pointer-events: none;
}

/* Recruitment Cards */
.recruit-card {
  display: flex; gap: 40px; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.recruit-card .recruit-text { flex: 1; }
.recruit-card .recruit-visual {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.recruit-card h3 { font-size: 1.75rem; margin-bottom: 12px; }
.recruit-card .price-tag { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 16px 0; }
.recruit-card ul { margin-bottom: 24px; }
.recruit-card ul li { padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }
.recruit-card ul li::before { content: '→ '; color: var(--accent); }

/* Marketplace logos */
.marketplace-logos {
  display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.marketplace-logo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.marketplace-logo:hover { border-color: var(--accent); color: var(--text); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; padding: 4px 0; color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--text-muted); font-size: 1.1rem; }
.social-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: width var(--transition);
}
.sidebar-header { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sidebar-nav a.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
}
.sidebar-nav .nav-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-footer {
  padding: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-footer .user-info { flex: 1; min-width: 0; }
.sidebar-footer .user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-role { font-size: 0.75rem; color: var(--text-muted); }

/* Top Bar */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb span { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.credit-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
}
.credit-pill .coin { color: var(--warning); }
.notif-btn { position: relative; }
.notif-btn .dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--error);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}
.page-content { padding: 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.upload-icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.upload-zone h3 { font-size: 1.1rem; margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Model Card ── */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.model-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.model-thumb {
  height: 200px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.model-thumb .thumb-placeholder { font-size: 3rem; opacity: .2; }
.model-thumb .model-badge { position: absolute; top: 10px; right: 10px; }
.model-info { padding: 14px; }
.model-info h4 { font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-info .model-date { font-size: 0.8rem; color: var(--text-muted); }
.model-actions {
  display: flex; gap: 4px; padding: 8px 14px 14px;
  border-top: 1px solid var(--border);
}
.model-actions .btn-icon { flex: 1; }

/* ── Order Card ── */
.order-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.order-row:last-child { border-bottom: none; }

/* ── Timeline ── */
.timeline { display: flex; justify-content: space-between; position: relative; padding: 0 20px; }
.timeline::before {
  content: ''; position: absolute; top: 16px; left: 40px; right: 40px;
  height: 2px; background: var(--border);
}
.timeline-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 0.75rem;
  transition: all var(--transition);
}
.timeline-step.completed .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-step.active .timeline-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 16px var(--accent-glow); }
.timeline-label { font-size: 0.75rem; color: var(--text-muted); }
.timeline-step.completed .timeline-label { color: var(--success); }
.timeline-step.active .timeline-label { color: var(--accent); }

/* ── Chat ── */
.chat-messages { max-height: 400px; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; max-width: 75%; }
.chat-msg.sent { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px 14px;
  font-size: 0.9rem;
}
.chat-msg.sent .chat-bubble { background: var(--accent-glow); border-color: rgba(0,180,216,.2); }
.chat-input-row { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.chat-input-row .input { flex: 1; }

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-elevated) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Toast ── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  min-width: 300px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  max-width: 500px; width: 90%;
  transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.2rem; }

/* ══════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,.08), transparent 70%);
  top: 20%; left: 50%; transform: translateX(-50%);
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 420px; position: relative; z-index: 1;
}
.auth-card .logo { justify-content: center; margin-bottom: 32px; }
.auth-card h2 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--text-muted); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.oauth-buttons { display: flex; gap: 12px; }
.oauth-buttons .btn { flex: 1; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.role-selector { display: flex; flex-direction: column; gap: 8px; }
.role-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition);
}
.role-option:hover { border-color: var(--border-hover); }
.role-option.selected { border-color: var(--accent); background: var(--accent-glow); }
.role-option input { display: none; }
.role-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.role-option.selected .role-dot { border-color: var(--accent); }
.role-option.selected .role-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ── Checkbox ── */
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .recruit-card { flex-direction: column; }
  .recruit-card .recruit-visual { width: 100%; height: 200px; }
  .steps { flex-direction: column; gap: 24px; }
  .steps-line { display: none; }
  .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: block; }
  .nav-links { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .h2 { font-size: 1.75rem; }
  .pricing-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline { flex-wrap: wrap; gap: 8px; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .section { padding: 48px 0; }
}
