/* YGC Receptionist Portal — Jimeng-inspired light theme */
:root {
  --primary: #009efa;
  --primary-hover: #0088d6;
  --primary-wash: #ebf8ff;
  --accent: #6c5ce7;
  --text: #0f1419;
  --text-muted: #5b6470;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --border: #e6e9ed;
  --danger: #e5484d;
  --success: #18a058;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 20, 25, 0.06), 0 4px 16px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 20, 25, 0.1);
  --font: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.nav .logo { font-weight: 700; font-size: 18px; color: var(--text); }
.nav .logo span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease;
  font-family: var(--font); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 80px 40px; gap: 60px;
  min-height: 80vh;
}
.hero-content { flex: 1; max-width: 560px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text); }
.hero .grad { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); }
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* Phone mockup */
.hero-visual { flex: 1; max-width: 400px; }
.phone-mockup {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.phone-header { background: var(--primary); color: #fff; padding: 16px 20px; font-weight: 600; font-size: 14px; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.chat-bubble { padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 85%; line-height: 1.4; }
.chat-bubble.bot { background: var(--primary-wash); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--surface-2); align-self: flex-end; border-bottom-right-radius: 4px; }
.phone-footer { padding: 12px 20px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); text-align: center; }

/* ---- How it works ---- */
.how-it-works { padding: 80px 0; background: var(--surface); }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; flex-wrap: wrap; }
.step { text-align: center; max-width: 260px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-wash); color: var(--primary); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--text-muted); }

/* ---- Sections ---- */
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--text-muted); text-align: center; margin-bottom: 48px; }

/* ---- Features ---- */
.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- Pricing ---- */
.pricing { padding: 80px 0; background: var(--surface); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); text-align: center; position: relative;
}
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.pricing-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 16px; border-radius: 20px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 8px; }
.price { font-size: 40px; font-weight: 800; margin-bottom: 24px; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-card li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-card li:last-child { border-bottom: none; }

/* ---- Footer ---- */
.footer { padding: 48px 0 24px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-grid h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* ============================================ */
/* AUTH PAGES */
/* ============================================ */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); padding: 24px;
}
.auth-card { width: 100%; max-width: 420px; padding: 40px; }
.auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* ---- Form fields ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); color: var(--text); background: var(--surface);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }
.field input[readonly] { background: var(--surface-2); cursor: default; }

/* ---- Card ---- */
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 20px; right: 20px; z-index: 999;
  padding: 12px 20px; border-radius: var(--radius-sm); background: var(--text); color: #fff;
  font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(-8px);
  transition: all 0.2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }

/* ============================================ */
/* DASHBOARD */
/* ============================================ */
.dash-layout {
  display: flex; min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  width: 240px; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0;
}
.dash-sidebar .logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; font-weight: 700; font-size: 16px; }
.dash-sidebar .logo span { color: var(--primary); }
.dash-nav { flex: 1; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all 0.15s;
  border-left: 3px solid transparent;
}
.dash-nav a:hover { background: var(--primary-wash); color: var(--primary); text-decoration: none; }
.dash-nav a.active { background: var(--primary-wash); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.dash-sidebar-footer { padding: 16px 20px 0; border-top: 1px solid var(--border); margin-top: 8px; }

/* Main area */
.dash-main { flex: 1; padding: 32px 40px; overflow-y: auto; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dash-header h2 { font-size: 24px; font-weight: 700; }
.dash-badge {
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.dash-badge.plan-pro { background: var(--primary-wash); color: var(--primary); border-color: var(--primary); }
.dash-badge.plan-growth { background: #f3f0ff; color: var(--accent); border-color: var(--accent); }

/* Stats grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
}
.stat-num { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

/* Dashboard sections */
.dash-section { margin-bottom: 32px; }
.dash-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text); }

/* Activity list */
.activity-list { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.activity-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: 14px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* Settings */
.settings-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; margin-bottom: 16px;
}
.settings-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.integration-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.integration-row:last-child { border-bottom: none; }
.integration-row strong { display: block; font-size: 14px; }
.text-muted