/* =========================================================
   SHIGOTO PLUS — DESIGN SYSTEM (indigo/purple SaaS identity)
   ========================================================= */

:root {
  --primary: #6C5DD3;
  --primary-dark: #5A4BC0;
  --primary-light: #EFECFB;
  --accent: #6C5DD3;
  --gradient: linear-gradient(135deg, #6C5DD3 0%, #8B5CF6 100%);

  --ink: #111827;
  --ink-soft: #4B5563;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F7F7FB;
  --card: #FFFFFF;

  --success: #16A34A;
  --success-bg: #ECFDF3;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --info: #2563EB;
  --info-bg: #EFF6FF;

  --sidebar-bg: #1E1B4B;
  --sidebar-hover: #2D2A6E;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
  --shadow-md: 0 8px 20px rgba(17,24,39,.08);
  --shadow-lg: 0 20px 45px rgba(17,24,39,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: #F3F4F6; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #F3F4F6; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Navbar ---------- */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.navbar .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand .logo-badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
}
.brand span.plus { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > span { font-size: 14px; font-weight: 500; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown:hover > span { color: var(--primary); }
.nav-dropdown .dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 8px; min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px); transition: all .15s ease; margin-top: 10px;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown .dropdown-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.nav-dropdown .dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease; max-height: 80vh; overflow-y: auto; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
  .nav-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; margin: 0; display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; }
.hero .grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary);
  font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 42px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { color: var(--ink-soft); font-size: 15.5px; margin: 18px 0 26px; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.hero-stat { text-align: left; }
.hero-stat .num { font-size: 24px; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-visual { position: relative; }

/* Dashboard mockup graphic in hero */
.dash-mock { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-mock .mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dash-mock .mock-titlebar span { width: 9px; height: 9px; border-radius: 50%; }
.dash-mock .mock-titlebar span:nth-child(1) { background: #F87171; }
.dash-mock .mock-titlebar span:nth-child(2) { background: #FBBF24; }
.dash-mock .mock-titlebar span:nth-child(3) { background: #34D399; }
.dash-mock .mock-titlebar .bar { flex: 1; height: 8px; background: #F3F4F6; border-radius: 99px; margin-left: 10px; }
.dash-mock .mock-body { padding: 20px; }
.dash-mock h4 { font-size: 13.5px; margin-bottom: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.mock-stat { background: #F9FAFB; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock-stat .lbl { font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.mock-stat .val { font-size: 15px; font-weight: 800; }
.mock-stat .delta { font-size: 10.5px; color: var(--success); font-weight: 700; margin-top: 2px; }
.mock-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.mock-chart-box { background: #F9FAFB; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mock-cats { background: #F9FAFB; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mock-cat-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 10px; }
.mock-cat-row:last-child { margin-bottom: 0; }
.mock-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.floating-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px 16px; font-size: 13px; font-weight: 600; border: 1px solid var(--border);
}
.floating-card .sub { color: var(--muted); font-weight: 500; font-size: 11.5px; margin-top: 2px; }
.floating-card.top { top: -6%; right: -6%; }
.floating-card.bottom { bottom: -8%; left: -6%; display: flex; align-items: center; gap: 10px; }
.floating-card.bottom .fc-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head .kicker { color: var(--primary); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: 29px; margin-top: 8px; }
.section-head h2 .accent { color: var(--primary); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.section-between { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-between h2 { font-size: 25px; }
.view-all { color: var(--primary); font-weight: 600; font-size: 13.5px; }

/* ---------- Grids & Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2col { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-card .icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.service-card:nth-child(4n+1) .icon { background: #EEF2FF; }
.service-card:nth-child(4n+2) .icon { background: #ECFDF5; }
.service-card:nth-child(4n+3) .icon { background: #FEF3E9; }
.service-card:nth-child(4n+4) .icon { background: #FDF2F8; }
.service-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
.service-card .link { color: var(--primary); font-weight: 600; font-size: 13.5px; }

/* Job card */
.job-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.job-card .bookmark-btn { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.job-card .top-row { display: flex; align-items: flex-start; justify-content: space-between; padding-right: 38px; }
.job-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); font-size: 15px; overflow: hidden; }
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--primary-light); color: var(--primary); }
.job-card h3 { font-size: 16px; }
.job-card .company { color: var(--muted); font-size: 13.5px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-salary { font-weight: 700; color: var(--ink); font-size: 14px; }

/* Carousel dots + arrows */
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.carousel-dots span.active { width: 20px; border-radius: 99px; background: var(--primary); }
.carousel-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); flex-shrink: 0; transition: all .15s; }
.carousel-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-row { display: flex; align-items: center; gap: 16px; }
.carousel-row .logo-grid { flex: 1; overflow: hidden; }

/* How It Works */
.how-it-works-box { background: var(--primary-light); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.how-col-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 22px; }
.how-col-head .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.how-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how-step { text-align: left; }
.how-step .ic { width: 42px; height: 42px; border-radius: 11px; background: #fff; box-shadow: var(--shadow); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.how-step h4 { font-size: 13.5px; margin-bottom: 5px; }
.how-step p { font-size: 12px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) {
  .how-it-works-box { grid-template-columns: 1fr; }
  .how-steps-row { grid-template-columns: repeat(2, 1fr); }
}

/* Why choose row */
.why-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.why-item { flex: 1; min-width: 150px; text-align: center; }
.why-item .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin: 0 auto 12px; }
.why-item:nth-child(6n+1) .ic { background: #EEF2FF; }
.why-item:nth-child(6n+2) .ic { background: #ECFDF5; }
.why-item:nth-child(6n+3) .ic { background: #FFFBEB; }
.why-item:nth-child(6n+4) .ic { background: #FDF2F8; }
.why-item:nth-child(6n+5) .ic { background: #FEF3E9; }
.why-item:nth-child(6n+6) .ic { background: #EFF6FF; }
.why-item h4 { font-size: 13.5px; margin-bottom: 4px; }
.why-item p { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .why-row { justify-content: center; } .why-item { min-width: 40%; } }

/* Company logos strip */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media (max-width: 1200px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-grid .co-logo {
  width: 100%; height: 90px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.logo-grid .co-logo:hover { box-shadow: 0 8px 20px rgba(17,24,39,.08); border-color: var(--primary); transform: scale(1.03); }
.logo-grid .co-logo img { max-width: 140px; max-height: 50px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .logo-grid .co-logo { height: 80px; } }
@media (max-width: 600px) { .logo-grid .co-logo { height: 70px; padding: 14px; } }

/* Testimonials */
.testimonial-card { position: relative; }
.testimonial-card .quote-icon { font-size: 32px; color: var(--primary-light); position: absolute; top: 18px; right: 20px; font-weight: 800; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-person .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.testimonial-person .name { font-weight: 700; font-size: 14px; }
.testimonial-person .role { font-size: 12.5px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--gradient); border-radius: var(--radius-lg); padding: 42px 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 90px; height: 90px; background-image: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 1.5px); background-size: 12px 12px; opacity: .5; }
.cta-band h2 { font-size: 24px; }
.cta-band p { opacity: .9; margin-top: 6px; font-size: 14px; }

/* Footer */
.footer { background: #14123A; color: #C9C7E8; padding: 52px 0 24px; margin-top: 40px; }
.footer .grid-6 { display: grid; grid-template-columns: 1.3fr .9fr .9fr .9fr .9fr 1.3fr; gap: 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer ul li a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .social { display: flex; gap: 10px; margin-top: 16px; }
.footer .social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer .newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.footer .newsletter-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-size: 13px; }
.footer .newsletter-form input::placeholder { color: #8583B0; }
.footer .newsletter-form button { width: 40px; height: 40px; border-radius: 8px; background: var(--primary); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 12.5px; text-align: center; color: #8583B0; }
.footer .legal-links a { color: #C9C7E8; }
.footer .legal-links a:hover { color: #fff; }
@media (max-width: 1024px) { .footer .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .footer .grid-6 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field .error-text { font-size: 12px; color: var(--danger); margin-top: 5px; }
.password-field-wrap { position: relative; }
.password-field-wrap .input { padding-right: 42px; }
.password-toggle-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px; line-height: 0;
  color: var(--muted); display: flex; align-items: center;
}
.password-toggle-btn:hover { color: var(--ink); }
.password-toggle-btn svg { width: 19px; height: 19px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; color: var(--ink); transition: border-color .15s ease;
}
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }
textarea.input { resize: vertical; min-height: 110px; }
.input-row { display: flex; gap: 12px; }
.input-row .field { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }

/* Auth pages */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.auth-card .auth-head { text-align: center; margin-bottom: 26px; }
.auth-card .auth-head h1 { font-size: 22px; }
.auth-card .auth-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.portal-tabs { display: flex; background: #F3F4F6; border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.portal-tabs button { flex: 1; border: none; background: transparent; padding: 9px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-radius: 6px; }
.portal-tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.role-toggle { display: flex; gap: 10px; margin-bottom: 22px; }
.role-toggle label { flex: 1; }
.role-toggle input { display: none; }
.role-toggle .opt { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.role-toggle input:checked + .opt { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.demo-note { background: var(--info-bg); color: var(--info); font-size: 12px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 18px; }

/* ---------- Badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: #F3F4F6; color: var(--muted); }

/* ---------- Dashboard shell ---------- */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; background: var(--sidebar-bg); color: #C9C7E8; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar .side-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px; font-weight: 800; color: #fff; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-sidebar nav { padding: 16px 12px; flex: 1; }
.dash-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.dash-sidebar nav a:hover { background: var(--sidebar-hover); color: #fff; }
.dash-sidebar nav a.active { background: var(--primary); color: #fff; }
.dash-sidebar .side-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar { background: #fff; border-bottom: 1px solid var(--border); height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.dash-topbar h1 { font-size: 19px; }
.dash-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dash-content { padding: 28px; }
.dash-sidebar-toggle { display: none; }

@media (max-width: 960px) {
  .dash-sidebar { position: fixed; left: -260px; z-index: 100; transition: left .2s ease; box-shadow: var(--shadow-lg); }
  .dash-sidebar.open { left: 0; }
  .dash-sidebar-toggle { display: block; background: none; border: none; font-size: 22px; }
  .dash-content { padding: 18px; }
  .dash-topbar { padding: 0 16px; }
}

/* Stat card */
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card .top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.stat-card .value { font-size: 26px; font-weight: 800; }
.stat-card .label { font-size: 12.5px; color: var(--muted); }
.stat-card .delta { font-size: 12px; font-weight: 700; }
.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data-table td { padding: 14px; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #FAFAFE; }
.table-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* Progress ring / bar */
.progress-bar { height: 8px; background: #F3F4F6; border-radius: 99px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--gradient); border-radius: 99px; }

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-8{margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none !important; } }
.skeleton { background: linear-gradient(90deg, #F3F4F6 25%, #E9E9F2 37%, #F3F4F6 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(79,70,229,.25); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#sp-toast { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.sp-toast-item { background: #111827; color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(20px); transition: all .25s ease; }
.sp-toast-item.show { opacity: 1; transform: translateX(0); }
.sp-toast-success { border-left: 3px solid var(--success); }
.sp-toast-error { border-left: 3px solid var(--danger); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-box { background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%; padding: 28px; max-height: 85vh; overflow-y: auto; }
.modal-box.wide { max-width: 760px; }
.modal-box .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--muted); }

/* Toggle switch (Active/Inactive) */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { position: absolute; inset: 0; background: #D1D5DB; border-radius: 99px; cursor: pointer; transition: background .15s; }
.toggle-switch .slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.toggle-switch input:checked + .slider { background: var(--success); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

/* Simple pill tabs (Monthly/Yearly billing toggle, etc.) */
.pill-tabs { display: inline-flex; background: #F3F4F6; border-radius: 99px; padding: 4px; gap: 2px; }
.pill-tabs button { border: none; background: none; padding: 7px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pill-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Notice banner shown on the company profile (top/bottom placement) */
.notice-banner { background: var(--warning-bg); border: 1px solid #FDE68A; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.notice-banner h4 { font-size: 13.5px; margin-bottom: 4px; color: #92400E; }
.notice-banner p { font-size: 13px; color: #78350F; }
.notice-banner .docs { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.notice-banner .docs a { font-size: 12px; color: var(--primary); font-weight: 600; }

/* Pricing "POPULAR" ribbon */
.plan-popular-tag { position: absolute; top: -12px; right: 20px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 20px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); font-weight: 400; flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 20px 17px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13.5px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button:disabled { opacity: .4; }
