/* ============================================================
   Assignivo — Main Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1E3A5F;
  --blue:    #2563EB;
  --indigo:  #4F46E5;
  --dark:    #0F172A;
  --slate:   #475569;
  --muted:   #94A3B8;
  --border:  #E2E8F0;
  --surface: #F8FAFF;
  --white:   #FFFFFF;
  --green:   #059669;
  --amber:   #F59E0B;
  --red:     #DC2626;
  --purple:  #7C3AED;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--dark);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.navbar-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.1rem; color: var(--dark);
  text-decoration: none; z-index: 101; flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 15px; flex-shrink: 0;
  transition: background .25s;
}
.brand-icon.small { width: 26px; height: 26px; font-size: 12px; border-radius: 6px; }

/* Desktop links */
.navbar-links {
  display: flex; align-items: center; gap: 1.4rem;
  flex-shrink: 0;
}
.navbar-links a {
  color: var(--slate); font-weight: 500; font-size: 0.9rem;
  text-decoration: none; transition: color .15s;
  white-space: nowrap;
}
.navbar-links a:hover { color: var(--navy); text-decoration: none; }
.nav-logout { color: var(--muted) !important; font-size: 0.86rem !important; }

/* Navbar button styles — solid defaults, override on transparent hero */
.navbar .btn-primary-sm {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white !important;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .15s;
}
.navbar .btn-primary-sm:hover { opacity: .88; text-decoration: none; }

.navbar .btn-outline-sm {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate) !important;
  background: none;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.navbar .btn-outline-sm:hover { border-color: var(--blue); color: var(--blue) !important; text-decoration: none; }

/* Sign Up button specific */
.navbar .btn-signup {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  border-radius: 8px; z-index: 101;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .25s, opacity .2s, width .2s, background .25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99;
  flex-direction: column;
  padding: 16px 1.2rem 32px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  animation: drawerIn .2s ease;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-drawer.open { display: flex; }

.nav-drawer-links {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px;
}
.nav-drawer-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 10px;
  color: var(--dark); font-weight: 600; font-size: 0.97rem;
  text-decoration: none; transition: background .12s;
}
.nav-drawer-links a:hover { background: var(--surface); text-decoration: none; }
.link-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }

.nav-drawer-divider { height: 1px; background: var(--border); margin: 10px 0; }

.nav-drawer-actions {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: auto; padding-top: 20px;
}
.nav-drawer-actions .btn {
  padding: 13px; font-size: 0.97rem;
  justify-content: center; text-align: center;
}

.nav-drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; background: var(--surface);
  border-radius: 12px; margin-bottom: 14px;
}
.nav-drawer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .navbar { padding: 0 1.2rem; }
  .navbar-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Global button utilities ──────────────────────────── */
.btn-primary-sm {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white !important; border-radius: 8px;
  padding: 8px 18px; font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-block; white-space: nowrap;
}
.btn-outline-sm {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 7px 16px; font-weight: 600; font-size: 0.88rem;
  color: var(--slate) !important; background: none;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.93rem; cursor: pointer;
  border: none; font-family: inherit; transition: opacity .15s, transform .15s;
  text-decoration: none;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary  { background: linear-gradient(135deg,var(--navy),var(--blue)); color: white; }
.btn-ghost    { background: none; border: 1.5px solid var(--border); color: var(--slate); }
.btn-green    { background: linear-gradient(135deg,#059669,#10B981); color: white; }
.btn-danger   { background: linear-gradient(135deg,#DC2626,#EF4444); color: white; }
.btn-sm       { padding: 7px 16px; font-size: 0.82rem; }
.btn-block    { display: flex; width: 100%; }

/* ── Flash messages ───────────────────────────────────── */
.flash {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
}
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.flash-close   { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; margin-left: 4px; }

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-block; border-radius: 100px;
  padding: 3px 11px; font-size: 0.74rem; font-weight: 700;
}
.badge-pending  { background: #FEF3C7; color: #92400E; }
.badge-active   { background: #DBEAFE; color: #1E40AF; }
.badge-review   { background: #EDE9FE; color: #5B21B6; }
.badge-done     { background: #D1FAE5; color: #065F46; }
.badge-revision { background: #FFE4E6; color: #9F1239; }

.tier-badge {
  display: inline-block; border-radius: 6px;
  padding: 2px 9px; font-size: 0.73rem; font-weight: 700;
}
.tier-basic    { background: #F1F5F9; color: #64748B; }
.tier-standard { background: #EFF6FF; color: var(--blue); }
.tier-premium  { background: #F3E8FF; color: var(--purple); }

/* ── Page wrapper ─────────────────────────────────────── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 88px 1.5rem 60px; }
.page-wrap-sm { max-width: 680px; margin: 0 auto; padding: 88px 1.5rem 60px; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: white; border-radius: 14px;
  border: 1px solid #E8EDF5; padding: 24px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-weight: 800; font-size: 1.1rem; }

/* ── Stats grid ───────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 14px; margin-bottom: 28px;
}
.stat-card { background: white; border-radius: 14px; border: 1px solid #E8EDF5; padding: 20px 22px; }
.stat-icon  { font-size: 1.4rem; margin-bottom: 8px; }
.stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { color: var(--muted); font-size: 0.81rem; margin-top: 2px; }

/* ── Tables ───────────────────────────────────────────── */
.table-wrap { background: white; border-radius: 14px; border: 1px solid #E8EDF5; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead tr { background: var(--surface); border-bottom: 1px solid var(--border); }
th {
  padding: 11px 14px; text-align: left;
  font-size: 0.73rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
td { padding: 12px 14px; font-size: 0.87rem; border-bottom: 1px solid #F8FAFF; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBFF; }

/* ── Forms ────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-weight: 700; font-size: 0.84rem; color: #374151; margin-bottom: 6px; }
.form-hint   { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 13px; border-radius: 8px;
  border: 1.5px solid var(--border); font-size: 0.92rem;
  font-family: inherit; color: var(--dark); outline: none;
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-error { color: var(--red); font-size: 0.82rem; margin-top: 4px; }

/* Stepper */
.stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.stepper button { background: var(--surface); border: none; padding: 8px 14px; cursor: pointer; font-size: 1.1rem; font-family: inherit; }
.stepper span { padding: 8px 20px; font-weight: 700; font-size: 0.93rem; min-width: 42px; text-align: center; }

/* ── Dashboard tabs ───────────────────────────────────── */
.dash-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 26px; }
.dash-tab {
  background: none; border: none; padding: 10px 20px;
  font-weight: 500; font-size: 0.9rem; cursor: pointer;
  color: var(--slate); font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  text-decoration: none;
}
.dash-tab.active, .dash-tab:hover { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }
.dash-tab.active { font-weight: 700; }

/* ── Dashboard header ─────────────────────────────────── */
.dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.dash-header h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }
.dash-header p  { color: var(--slate); margin-top: 3px; }

/* ── Order steps indicator ────────────────────────────── */
.steps { display: flex; position: relative; margin-bottom: 44px; }
.steps::before {
  content: ''; position: absolute; top: 17px; left: 0; right: 0;
  height: 2px; background: var(--border); z-index: 0;
}
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.step-dot {
  width: 35px; height: 35px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 7px;
  background: white; color: var(--muted); border: 2px solid var(--border);
}
.step.done   .step-dot { background: linear-gradient(135deg,var(--navy),var(--blue)); color: white; border: none; }
.step.active .step-dot { background: linear-gradient(135deg,var(--navy),var(--blue)); color: white; border: none; }
.step-label { font-size: 0.72rem; font-weight: 500; color: var(--muted); text-align: center; }
.step.active .step-label { color: var(--dark); font-weight: 700; }

/* ── Order layout ─────────────────────────────────────── */
.order-layout { display: grid; grid-template-columns: 1fr 290px; gap: 22px; align-items: start; }
.order-summary { position: sticky; top: 82px; }
.summary-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.summary-row .lbl { color: var(--muted); font-size: 0.8rem; }
.summary-row .val { font-size: 0.8rem; font-weight: 500; text-align: right; max-width: 150px; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.18rem; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px; }

/* ── Landing hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0F172A 0%, #1E3A5F 55%, #1D4ED8 100%);
  padding: 0 2rem; position: relative; overflow: hidden;
}
.hero-blob1, .hero-blob2 {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-blob1 { width: 700px; height: 700px; background: rgba(37,99,235,0.12); right: -150px; top: -150px; }
.hero-blob2 { width: 350px; height: 350px; background: rgba(99,102,241,0.1); left: 5%; bottom: 8%; }
.hero-inner { max-width: 760px; text-align: center; position: relative; z-index: 1; padding-top: 60px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(99,102,241,0.35);
  border-radius: 100px; padding: 6px 18px; margin-bottom: 36px;
}
.hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.hero-pill span { color: #BAE6FD; font-size: 0.82rem; font-weight: 500; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  color: white; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero-gradient-text {
  background: linear-gradient(90deg,#60A5FA,#A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { color: rgba(255,255,255,0.62); font-size: 1.1rem; line-height: 1.75; max-width: 540px; margin: 0 auto 44px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 96px 2rem; }
.section-white { background: white; }
.section-surface { background: var(--surface); }
.section-dark { background: linear-gradient(135deg, #0F172A, #1E3A5F); }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-inner-md { max-width: 960px; margin: 0 auto; }
.section-pill {
  display: block; text-align: center; margin-bottom: 14px;
}
.section-pill span {
  background: #EFF6FF; color: var(--blue); border-radius: 100px;
  padding: 4px 14px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.section h2 { font-size: 2.1rem; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-sub { text-align: center; color: var(--slate); margin-bottom: 58px; font-size: 1.05rem; }
.section-dark h2 { color: white; }
.section-dark .section-sub { color: rgba(255,255,255,0.58); }

/* ── How it works ─────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 26px; }
.how-card { padding: 30px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.how-number { font-size: 2.4rem; font-weight: 800; color: #EFF6FF; -webkit-text-stroke: 2px #BFDBFE; line-height: 1; margin-bottom: 20px; }
.how-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.how-card p  { color: var(--slate); line-height: 1.7; font-size: 0.92rem; }

/* ── Pricing cards ────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; align-items: center; }
.pricing-card {
  border-radius: 18px; padding: 32px 28px; position: relative;
  background: white; border: 1.5px solid var(--border);
}
.pricing-card.popular {
  background: linear-gradient(160deg, var(--navy), var(--blue));
  border: none; box-shadow: 0 20px 60px rgba(37,99,235,0.22);
  transform: scale(1.03);
}
.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#F59E0B,#EF4444);
  color: white; border-radius: 100px; padding: 4px 16px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.pricing-tier  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--dark); }
.pricing-price sub { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.pricing-turn  { color: var(--slate); font-size: 0.83rem; margin: 4px 0 22px; }
.pricing-card.popular .pricing-tier  { color: rgba(255,255,255,0.65); }
.pricing-card.popular .pricing-price { color: white; }
.pricing-card.popular .pricing-price sub { color: rgba(255,255,255,0.55); }
.pricing-card.popular .pricing-turn  { color: rgba(255,255,255,0.6); }
.pricing-features { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 9px; }
.pricing-features li { display: flex; gap: 8px; font-size: 0.88rem; color: #374151; align-items: flex-start; }
.pricing-features li::before { content: '✓'; color: #22C55E; flex-shrink: 0; }
.pricing-card.popular .pricing-features li { color: rgba(255,255,255,0.82); }
.pricing-card.popular .pricing-features li::before { color: #4ADE80; }
.pricing-btn {
  display: block; width: 100%; text-align: center;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.93rem;
  cursor: pointer; font-family: inherit; border: none;
  background: linear-gradient(135deg,var(--navy),var(--blue)); color: white;
  text-decoration: none; transition: opacity .15s;
}
.pricing-card.popular .pricing-btn {
  background: rgba(255,255,255,0.17); border: 1.5px solid rgba(255,255,255,0.3);
}
.pricing-btn:hover { opacity: .88; text-decoration: none; }

/* ── Features grid ────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); gap: 22px; }
.feature-card { padding: 22px; border-radius: 14px; border: 1px solid #F1F5F9; }
.feature-icon { font-size: 1.7rem; margin-bottom: 12px; }
.feature-card h4 { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.feature-card p  { color: var(--slate); font-size: 0.85rem; line-height: 1.65; }

/* ── Site footer ──────────────────────────────────────── */
.site-footer { background: #0F172A; padding: 36px 2rem; }
.footer-inner { max-width: 1060px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.86rem; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.83rem; }

/* ── Auth pages ───────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, #0F172A 0%, #1E3A5F 60%, #1D4ED8 100%);
}
.auth-card { background: white; border-radius: 20px; padding: 48px 40px; max-width: 420px; width: 100%; box-shadow: 0 32px 80px rgba(0,0,0,0.25); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .brand-icon { margin: 0 auto 12px; width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
.auth-title { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.4px; }
.auth-sub   { color: var(--slate); font-size: 0.9rem; margin-top: 5px; }
.demo-box {
  background: #F0F7FF; border: 1px solid #BFDBFE; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 22px; font-size: 0.8rem; color: #1E40AF; line-height: 1.7;
}

/* ── Order detail view ────────────────────────────────── */
.order-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.meta-item { background: var(--surface); border-radius: 9px; padding: 12px; }
.meta-item .lbl { color: var(--muted); font-size: 0.75rem; }
.meta-item .val { font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
.timeline { display: flex; flex-direction: column; gap: 9px; }
.timeline-item { display: flex; gap: 10px; align-items: center; }
.timeline-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: white;
}
.timeline-dot.done    { background: #22C55E; }
.timeline-dot.pending { background: var(--border); }
.timeline-item span { font-size: 0.86rem; }
.timeline-item.done span { color: var(--dark); }
.timeline-item.pending span { color: var(--muted); }

/* ── Upload area ──────────────────────────────────────── */
.upload-area {
  border: 2px dashed #BFDBFE; border-radius: 10px; padding: 28px;
  text-align: center; background: #F0F7FF; cursor: pointer;
}
.upload-area p { font-size: 0.85rem; color: var(--muted); }

/* ── Filter bar ───────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-btn {
  background: white; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 0.82rem; font-family: inherit;
  color: var(--slate); font-weight: 500;
}
.filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); font-weight: 700; }

/* ── Success screen ───────────────────────────────────── */
.success-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.success-card {
  background: white; border-radius: 20px; padding: 60px 48px;
  max-width: 480px; width: 100%; text-align: center;
  border: 1px solid #E8EDF5; box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#22C55E,#16A34A);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px; color: white;
}

/* ── Writer job card ──────────────────────────────────── */
.job-card {
  background: white; border-radius: 14px; border: 1px solid #E8EDF5;
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.job-card-body { flex: 1; }
.job-card-meta { display: flex; gap: 16px; color: var(--slate); font-size: 0.82rem; flex-wrap: wrap; margin-top: 5px; }
.job-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.payout-amount { font-weight: 800; font-size: 1.05rem; }
.payout-pct { color: var(--muted); font-size: 0.72rem; font-weight: 400; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row, .form-row-3, .order-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .navbar-links { gap: 1rem; }
  .pricing-card.popular { transform: none; }
  .hero h1 { font-size: 2.2rem; }
  .page-wrap, .page-wrap-sm { padding: 80px 1rem 40px; }
  .steps { overflow-x: auto; }
}

/* ── Print / SEO helpers ──────────────────────────────── */
@media print { .navbar, .site-footer, .flash { display: none; } }
