/* Chef Shruti Jain Academy — shared design system */
:root {
  --cream: #f8f2e7; --paper: #fffcf6; --card: #ffffff; --ink: #1c1b17; --ink-2: #3a3731; --muted: #6f685c; --line: #e9dfcd; --line-2: #f1e9da;
  --green: #1d3a2b; --green-2: #2c5a41; --green-soft: #e4ede5; --saffron: #d9822b; --saffron-soft: #fbead6; --rose: #b9472f; --rose-soft: #f8e1da;
  --blue: #2f5e8a; --blue-soft: #e2ecf5; --gold: #b8892f;
  --serif: "Fraunces", Georgia, serif; --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 26px; --shadow: 0 1px 2px rgba(40,30,10,.05), 0 8px 24px -12px rgba(40,30,10,.18);
  --shadow-lg: 0 30px 60px -30px rgba(29,58,43,.45); --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.015em; font-variation-settings: "opsz" 96; }
p { margin: 0; }
::selection { background: var(--saffron-soft); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--saffron); display: inline-flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.muted { color: var(--muted); }
.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -12px rgba(29,58,43,.7); }
.btn-primary:hover { background: var(--green-2); }
.btn-accent { background: var(--saffron); color: #fff; }
.btn-accent:hover { background: #c87420; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: #d9ccb4; }
.btn-light { background: #fff; color: var(--green); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--line-2); }

/* Chips, badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: #d6c7ab; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.badge.green, .badge.paid, .badge.published, .badge.active, .badge.won, .badge.open { background: var(--green-soft); color: var(--green-2); }
.badge.saffron, .badge.pending, .badge.created, .badge.contacted, .badge.draft { background: var(--saffron-soft); color: #9a5512; }
.badge.rose, .badge.failed, .badge.lost, .badge.revoked, .badge.closed, .badge.inactive { background: var(--rose-soft); color: var(--rose); }
.badge.blue, .badge.qualified, .badge.refunded, .badge.new { background: var(--blue-soft); color: var(--blue); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(44,90,65,.12); }
.textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--rose); font-size: 14px; font-weight: 600; min-height: 1em; }

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

/* Modal & drawer */
.overlay { position: fixed; inset: 0; background: rgba(20,24,18,.5); backdrop-filter: blur(6px); z-index: 80; display: grid; place-items: center; padding: 20px; opacity: 0; animation: fade .25s var(--ease) forwards; }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); animation: rise .35s var(--ease) forwards; position: relative; }
.modal.wide { width: min(860px, 100%); }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.modal-close { position: absolute; top: 16px; right: 16px; }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { transform: none; } }

/* Toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 120; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); transform: translateY(10px); }
.toast.error { background: var(--rose); }
.toast.success .lucide { color: #8fe0a9; }

/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), #4c8a63); border-radius: inherit; transition: width .6s var(--ease); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .lucide { width: 34px; height: 34px; color: #c9b896; margin: 0 auto 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px; border-radius: 22px; }
  .container { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.test-note { font-size: 12.5px; background: var(--saffron-soft); color: #8a4d10; padding: 10px 12px; border-radius: 12px; display: flex; gap: 8px; align-items: flex-start; }

/* Brand lockup */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #ffd7a8; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-style: italic; }
.logo b { white-space: nowrap; font-family: var(--serif); font-weight: 500; font-size: 20px; display: block; line-height: 1.1; }
.logo small { white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
html, body { overflow-x: clip; }
