/* SocialNexa design tokens — Material-style surfaces with the SocialNexa logo colors.
   Note: token "blue" = brand purple (#55128C), "red" = brand coral (#FD6250); yellow/green kept for status + category accents.
   Shared by the website and the admin portal. */
:root {
  --blue: #55128c; --blue-ink: #55128c; --blue-tint: #f1e8fa;
  --red: #fd6250; --red-ink: #c03a2b; --red-tint: #ffe9e5;
  --yellow: #f6b40e; --yellow-ink: #855700; --yellow-tint: #fef7e0;
  --green: #2f9e5b; --green-ink: #146c3a; --green-tint: #e6f4ea;

  --bg: #faf8fd;
  --surface: #ffffff;
  --surface-2: #f3eff8;
  --fg: #20152c;
  --muted: #625a6c;
  --outline: #e6e0ee;
  --shadow: 0 1px 2px rgba(31, 31, 31, .06), 0 4px 16px rgba(31, 31, 31, .06);
  --shadow-lg: 0 12px 40px rgba(85, 18, 140, .14);
  --wa: #1fa855;

  --font-display: "Outfit", "Google Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, Consolas, monospace;
  --r-sm: 10px; --r: 18px; --r-lg: 28px; --pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #c9a2f2; --blue-ink: #d8bbf8; --blue-tint: #2e1f42;
    --red: #ff8a7a; --red-ink: #ffab9f; --red-tint: #3d2320;
    --yellow: #fdd663; --yellow-ink: #fde293; --yellow-tint: #3a3220;
    --green: #81c995; --green-ink: #a8dab5; --green-tint: #1f3326;
    --bg: #131017; --surface: #1c1821; --surface-2: #26212c; --fg: #ece6f2; --muted: #ada4b8; --outline: #393241;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3); --shadow-lg: 0 12px 40px rgba(0,0,0,.5); --wa: #3ccf74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #c9a2f2; --blue-ink: #d8bbf8; --blue-tint: #2e1f42;
  --red: #ff8a7a; --red-ink: #ffab9f; --red-tint: #3d2320;
  --yellow: #fdd663; --yellow-ink: #fde293; --yellow-tint: #3a3220;
  --green: #81c995; --green-ink: #a8dab5; --green-tint: #1f3326;
  --bg: #131017; --surface: #1c1821; --surface-2: #26212c; --fg: #ece6f2; --muted: #ada4b8; --outline: #393241;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3); --shadow-lg: 0 12px 40px rgba(0,0,0,.5); --wa: #3ccf74;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ms { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }
.ms.fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

/* color helpers for service tiles / chips */
.c-blue { --c: var(--blue-ink); --ct: var(--blue-tint); }
.c-red { --c: var(--red-ink); --ct: var(--red-tint); }
.c-yellow { --c: var(--yellow-ink); --ct: var(--yellow-tint); }
.c-green { --c: var(--green-ink); --ct: var(--green-tint); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: var(--pill); border: 1px solid transparent; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #26073f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #26073f; } }
.btn-primary:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--blue) 40%, transparent); }
.btn-tonal { background: var(--blue-tint); color: var(--blue-ink); }
.btn-tonal:hover { background: color-mix(in srgb, var(--blue-tint) 80%, var(--blue) 20%); }
.btn-outline { border-color: var(--outline); background: var(--surface); color: var(--fg); }
.btn-outline:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--wa) 45%, transparent); }
.btn-text { background: none; color: var(--blue-ink); padding: 0 12px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* form fields */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--outline);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
textarea.input { min-height: 96px; resize: vertical; }

/* status chips */
.chip-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending_payment { background: var(--yellow-tint); color: var(--yellow-ink); }
.st-payment_review { background: var(--red-tint); color: var(--red-ink); }
.st-paid { background: var(--blue-tint); color: var(--blue-ink); }
.st-in_progress { background: var(--blue-tint); color: var(--blue-ink); }
.st-completed { background: var(--green-tint); color: var(--green-ink); }
.st-cancelled { background: var(--surface-2); color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  background: #202124; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 1000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* brand logo (PNG from the logo pack; kept on a light surface in dark mode) */
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; border-radius: 12px; }
.brand img { height: auto; object-fit: contain; }
:root[data-theme="dark"] .brand { background: #fff; padding: 6px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { background: #fff; padding: 6px 10px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
