/* ARsitu — brand tokens and shared components (portal, login dialog, Collect). Pedoman Identitas Logo v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@300;400;600;700&display=swap');
:root {
  --ars-teal: #0E8C86;      /* Teal Utama / Primary Teal */
  --ars-deep: #0B4F52;      /* Teal Dalam / Deep Teal */
  --ars-gold: #B8842F;      /* Emas / Gold */
  --ars-ink: #0B2A2C;       /* Tinta / Ink */
  --ars-white: #FFFFFF;
  --ars-tint: #E6F3F2;      /* light tint of Primary Teal */
  --ars-tint-2: #F3F8F8;
  --ars-gold-tint: #F7EEDD;
  --ars-muted: #557072;
  --ars-line: #D5E3E3;
  --ars-bad: #B3261E; --ars-bad-bg: #FDECEB; --ars-ok: #1F7A4D; --ars-ok-bg: #E5F4EC; --ars-warn: #8A5300; --ars-warn-bg: #FFF6E5;
  --ars-radius: 14px;
  --ars-shadow: 0 1px 2px rgba(11, 42, 44, .06), 0 8px 24px rgba(11, 42, 44, .08);
  --ars-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --ars-head: 'Sora', 'Inter', 'Segoe UI', Arial, sans-serif;
}
.ars-wordmark { font-family: var(--ars-head); font-size: 1.35em; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.ars-wordmark b { font-weight: 600; color: var(--ars-teal); }
.ars-wordmark span { font-weight: 300; color: var(--ars-ink); }
.ars-on-dark .ars-wordmark b, .ars-on-dark .ars-wordmark span { color: #fff; }

/* ---------- buttons & inputs used by the login dialog (independent of each app's own CSS) ---------- */
.ars-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: 600 14px/1.2 var(--ars-font); cursor: pointer; background: var(--ars-teal); color: #fff; text-decoration: none; transition: background .15s, box-shadow .15s; }
.ars-btn:hover { background: #0C7B76; }
.ars-btn:focus-visible { outline: 3px solid rgba(14, 140, 134, .35); outline-offset: 2px; }
.ars-btn[disabled] { opacity: .6; cursor: default; }
.ars-btn.line { background: #fff; color: var(--ars-deep); border-color: var(--ars-line); }
.ars-btn.line:hover { background: var(--ars-tint-2); }
.ars-btn.gold { background: var(--ars-gold); }
.ars-btn.gold:hover { background: #A47428; }
.ars-btn.block { width: 100%; }
.ars-btn.google { background: #fff; color: #1f1f1f; border-color: #c9d3d3; }
.ars-btn.google:hover { background: #f6f9f9; }
.ars-btn svg { width: 18px; height: 18px; flex: none; }
.ars-input { width: 100%; box-sizing: border-box; border: 1px solid var(--ars-line); border-radius: 10px; padding: 10px 12px; font: 400 14px var(--ars-font); color: var(--ars-ink); background: #fff; }
.ars-input:focus { outline: none; border-color: var(--ars-teal); box-shadow: 0 0 0 3px rgba(14, 140, 134, .15); }
.ars-label { display: block; font: 600 12.5px var(--ars-font); color: var(--ars-ink); margin: 10px 0 5px; }
.ars-help { font: 400 12.5px/1.45 var(--ars-font); color: var(--ars-muted); }
.ars-link { color: var(--ars-teal); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ars-err { background: var(--ars-bad-bg); color: var(--ars-bad); border-radius: 8px; padding: 8px 10px; font: 500 13px var(--ars-font); margin-top: 10px; }
.ars-ok { background: var(--ars-ok-bg); color: var(--ars-ok); border-radius: 8px; padding: 8px 10px; font: 500 13px var(--ars-font); margin-top: 10px; }

/* ---------- login dialog ---------- */
.ars-overlay { position: fixed; inset: 0; background: rgba(11, 42, 44, .55); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 16px; animation: arsFade .15s ease; }
@keyframes arsFade { from { opacity: 0; } to { opacity: 1; } }
.ars-dialog { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; padding: 26px 26px 22px; position: relative; font-family: var(--ars-font); color: var(--ars-ink); box-sizing: border-box; }
.ars-dialog h2 { font: 600 20px/1.3 var(--ars-head); margin: 14px 0 4px; color: var(--ars-ink); }
.ars-dialog .ars-x { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--ars-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.ars-dialog .ars-x:hover { background: var(--ars-tint-2); }
.ars-dialog .ars-logo { height: 34px; display: block; }
.ars-sep { display: flex; align-items: center; gap: 10px; color: var(--ars-muted); font: 500 12px var(--ars-font); margin: 16px 0 6px; }
.ars-sep::before, .ars-sep::after { content: ''; flex: 1; height: 1px; background: var(--ars-line); }
.ars-tabs { display: flex; gap: 4px; background: var(--ars-tint-2); padding: 4px; border-radius: 10px; margin: 14px 0 4px; }
.ars-tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 8px; font: 600 13px var(--ars-font); color: var(--ars-muted); cursor: pointer; }
.ars-tabs button.on { background: #fff; color: var(--ars-deep); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ars-row { display: flex; gap: 8px; align-items: center; }
.ars-code { letter-spacing: 8px; text-align: center; font: 600 22px var(--ars-head) !important; }
.ars-priv { margin-top: 14px; padding: 10px 12px; background: var(--ars-tint); border-radius: 10px; font: 400 12.5px/1.45 var(--ars-font); color: var(--ars-deep); display: flex; gap: 8px; }
.ars-priv svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- top bar module switcher (shared) ---------- */
.ars-switch { position: relative; }
.ars-switch-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ars-line); border-radius: 12px; box-shadow: var(--ars-shadow); padding: 6px; min-width: 240px; z-index: 9000; }
.ars-switch-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ars-ink); text-decoration: none; font: 500 13.5px var(--ars-font); }
.ars-switch-menu a:hover { background: var(--ars-tint-2); }
.ars-switch-menu a small { display: block; color: var(--ars-muted); font-weight: 400; font-size: 12px; }
.ars-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font: 700 12px var(--ars-head); flex: none; }
.ars-dot.collect { background: var(--ars-teal); } .ars-dot.stats { background: var(--ars-deep); } .ars-dot.q { background: var(--ars-gold); } .ars-dot.home { background: var(--ars-ink); }
