/* ==========================================================================
   Imeawyou design system (2026 redesign) — v1
   - Approved with BB 2026-11-21: navy #003883 leads, red accent supports (2026-11-22: BB chose deep red over coral),
     Kanit 500 for headings/buttons/nav, Noto Sans Thai for reading text.
   - Opt-in only: everything lives under body.imy or .imy-* classes, so the
     current pages (style.css / core.css) are untouched until a page is switched.
   - No gradients, no glass/blur, no floating blobs, no decorative shadows.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/*/OFL.txt) ---------- */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/kanit/kanit-500-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/kanit/kanit-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/noto-sans-thai/noto-sans-thai-400-600-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/noto-sans-thai/noto-sans-thai-400-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* colour — contrast notes are against the background they are meant for */
  --imy-navy: #003883;        /* brand lead. white on navy 11.1:1 */
  --imy-navy-hover: #002C68;
  --imy-navy-soft: #E6ECF5;   /* tinted fills, selected states */
  --imy-coral: #F0584E;       /* bright red: large text on navy only (3.3:1), rules, marks. never small text on white */
  --imy-coral-deep: #C62F2B;  /* deep red (BB mockup): buttons, labels, small text — white on it 5.5:1, on white 5.5:1, on cream 5.1:1 */
  --imy-accent-hover: #A8241F;
  --imy-accent-soft: #FCEAEA; /* tag/hover fill; deep red on it 4.7:1 */
  --imy-cream: #FBF6F1;       /* warm second background */
  --imy-white: #FEFEFE;       /* main background */
  --imy-ink: #1B2333;         /* body text: 15.7:1 on white */
  --imy-ink-soft: #4A5468;    /* secondary text: 7.5:1 on white */
  --imy-line: #E4DED6;        /* hairlines on white/cream */
  /* metal accents (Integrated Review 2026-11-22) — use sparingly */
  --imy-silver: #C0C5CD;      /* 1px dividers, frames that need an edge */
  --imy-steel: #8995A6;       /* icon/graph detail only; not for body text */
  --imy-platinum: #E5E7EB;    /* light secondary fills, back office */
  --imy-gold: #C3AB78;        /* Academy certificates / special Ebook only; never on buttons */
  --imy-on-navy: #FFFFFF;
  --imy-on-navy-soft: #D3DDEE;

  /* type */
  --imy-font-head: "Kanit", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  --imy-font-body: "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  --imy-fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  --imy-fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --imy-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --imy-fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --imy-fs-body: 1rem;
  --imy-fs-small: 0.875rem;
  --imy-fs-eyebrow: 0.78rem;
  --imy-lh-head: 1.28;   /* room for stacked Thai marks (ได้ดีกว่า) */
  --imy-lh-body: 1.7;

  /* space, shape, motion */
  --imy-space-1: 0.25rem;
  --imy-space-2: 0.5rem;
  --imy-space-3: 0.75rem;
  --imy-space-4: 1rem;
  --imy-space-5: 1.5rem;
  --imy-space-6: 2rem;
  --imy-space-7: 3rem;
  --imy-space-8: 4.5rem;
  --imy-section-y: clamp(3rem, 2rem + 4vw, 5.5rem);
  --imy-container: 1160px;
  --imy-radius: 6px;          /* buttons, fields */
  --imy-radius-media: 10px;   /* photos, cards */
  --imy-ease: cubic-bezier(.2, .7, .2, 1);
  --imy-focus: 0 0 0 3px var(--imy-white), 0 0 0 5px var(--imy-navy);
}

/* ---------- Base (only on pages that opt in with <body class="imy">) ---------- */
@media (min-width: 821px) { :root { --imy-fs-body: 1.125rem; } }  /* body 18px on desktop, 16px on phones */
body.imy {
  margin: 0;
  background: var(--imy-white);
  color: var(--imy-ink);
  font-family: var(--imy-font-body);
  font-size: var(--imy-fs-body);
  line-height: var(--imy-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.imy *, .imy *::before, .imy *::after { box-sizing: border-box; }
.imy [hidden] { display: none !important; }
.imy img { max-width: 100%; height: auto; display: block; }
.imy p { margin: 0 0 var(--imy-space-4); }
.imy :focus-visible { outline: none; box-shadow: var(--imy-focus); border-radius: var(--imy-radius); }

/* ---------- Layout ---------- */
.imy-container {
  width: 100%;
  max-width: var(--imy-container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.imy-band { padding-block: var(--imy-section-y); }
.imy-band--white { background: var(--imy-white); color: var(--imy-ink); }
.imy-band--cream { background: var(--imy-cream); color: var(--imy-ink); }
.imy-band--navy  { background: var(--imy-navy);  color: var(--imy-on-navy); }

/* ---------- Typography ---------- */
.imy-h1, .imy-h2, .imy-h3 {
  font-family: var(--imy-font-head);
  font-weight: 500;
  line-height: var(--imy-lh-head);
  color: var(--imy-navy);
  margin: 0 0 var(--imy-space-4);
  text-wrap: balance;
}
.imy-h1 { font-size: var(--imy-fs-h1); }
.imy-h2 { font-size: var(--imy-fs-h2); }
.imy-h3 { font-size: var(--imy-fs-h3); line-height: 1.35; }
.imy-band--navy .imy-h1, .imy-band--navy .imy-h2, .imy-band--navy .imy-h3 { color: var(--imy-on-navy); }
.imy-accent { color: var(--imy-coral); }                 /* large text on navy only */
.imy-band--white .imy-accent, .imy-band--cream .imy-accent { color: var(--imy-coral-deep); }

.imy-eyebrow {
  display: block;
  font-family: var(--imy-font-body);
  font-size: var(--imy-fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;          /* tracking for Latin labels only — never on Thai copy */
  text-transform: uppercase;
  color: var(--imy-coral-deep);
  margin: 0 0 var(--imy-space-2);
}
.imy-band--navy .imy-eyebrow { color: var(--imy-on-navy-soft); }
/* Thai short label (บทที่ 1, หมวด): same role as eyebrow but no tracking/uppercase,
   because letter-spacing breaks Thai vowel/tone stacking ("บ ท ที่") */
.imy-label {
  display: block;
  font-family: var(--imy-font-body);
  font-size: var(--imy-fs-small);
  font-weight: 500;
  color: var(--imy-coral-deep);
  margin: 0 0 var(--imy-space-1);
}
.imy-band--navy .imy-label { color: var(--imy-on-navy-soft); }

.imy-lead { font-size: var(--imy-fs-lead); line-height: 1.7; color: var(--imy-ink-soft); max-width: 40ch; }
.imy-band--navy .imy-lead { color: var(--imy-on-navy-soft); }
.imy-prose { max-width: 62ch; }
.imy-small { font-size: var(--imy-fs-small); color: var(--imy-ink-soft); }

/* underline mark under a key word: a flat coral rule, not a hand-drawn swoosh */
.imy-mark { text-decoration: underline; text-decoration-color: var(--imy-coral); text-decoration-thickness: 0.09em; text-underline-offset: 0.28em; }

/* ---------- Buttons ---------- */
.imy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  white-space: nowrap;
  min-height: 48px;                 /* comfortable tap target */
  padding: 0.7em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;             /* pill, per BB's approved mockup 2026-11-22 */
  font-family: var(--imy-font-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--imy-ease), color .18s var(--imy-ease), border-color .18s var(--imy-ease);
}
.imy-btn .imy-arrow { transition: transform .18s var(--imy-ease); }
.imy-btn:hover .imy-arrow { transform: translateX(3px); }

/* main action on light backgrounds */
.imy-btn--primary { background: var(--imy-navy); color: var(--imy-on-navy); }
.imy-btn--primary:hover { background: var(--imy-navy-hover); }
/* secondary action on light backgrounds */
.imy-btn--outline { background: transparent; color: var(--imy-navy); border-color: var(--imy-navy); }
.imy-btn--outline:hover { background: var(--imy-navy-soft); }
/* main action on navy */
.imy-btn--light { background: var(--imy-white); color: var(--imy-navy); }
.imy-btn--light:hover { background: var(--imy-navy-soft); }
/* secondary action on navy */
.imy-btn--ghost { background: transparent; color: var(--imy-on-navy); border-color: rgba(255,255,255,.85); }
.imy-btn--ghost:hover { background: rgba(255,255,255,.1); }
/* red action (BB mockup): deep red with white text */
.imy-btn--accent { background: var(--imy-coral-deep); color: #FFFFFF; }
.imy-btn--accent:hover { background: var(--imy-accent-hover); }
.imy-btn--outline-accent { background: var(--imy-white); color: var(--imy-coral-deep); border-color: var(--imy-coral-deep); }
.imy-btn--outline-accent:hover { background: var(--imy-accent-soft); }
.imy-btn--block { width: 100%; }

/* round arrow button used at the corner of service cards */
.imy-round { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--imy-coral-deep); color: #FFFFFF; font-size: 1.15rem; transition: background-color .18s var(--imy-ease), transform .18s var(--imy-ease); }

/* service card: photo on top, label + title + round arrow. The whole card is one link. */
.imy-service { display: flex; flex-direction: column; background: var(--imy-white); border: 1px solid var(--imy-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; min-width: 0; transition: border-color .18s var(--imy-ease); }
/* overflow + absolute img: otherwise the photo's own height overrides the 5:2 box */
.imy-service__img { position: relative; aspect-ratio: 5 / 2; overflow: hidden; background: var(--imy-navy-soft); }
.imy-service__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imy-service__body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--imy-space-4); padding: var(--imy-space-4) var(--imy-space-5) var(--imy-space-5); }
.imy-service__body .imy-eyebrow { color: var(--imy-ink); margin-bottom: var(--imy-space-1); }
.imy-service__body .imy-h3 { margin: 0; }
.imy-service:hover { border-color: #CFC8BE; }
.imy-service:hover .imy-round { background: var(--imy-accent-hover); transform: translateX(2px); }

/* desktop dropdown in the main nav (<details>, no JS) */
.imy-drop { position: relative; }
.imy-drop summary { list-style: none; cursor: pointer; font-family: var(--imy-font-head); font-weight: 500; font-size: 0.98rem; color: var(--imy-ink); padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.imy-drop summary::-webkit-details-marker { display: none; }
.imy-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.imy-drop[open] summary { color: var(--imy-navy); }
.imy-drop__panel { position: absolute; left: -16px; top: calc(100% + 12px); min-width: 230px; display: flex; flex-direction: column; background: var(--imy-white); border: 1px solid var(--imy-line); border-radius: var(--imy-radius-media); padding: var(--imy-space-2) 0; z-index: 60; }
.imy-nav .imy-drop__panel a { padding: 10px 18px; border: 0; }
.imy-nav .imy-drop__panel a:hover { background: var(--imy-cream); }
.imy-btn[disabled], .imy-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Text link (secondary actions inside content) ---------- */
.imy-link {
  font-family: var(--imy-font-head);
  font-weight: 500;
  color: var(--imy-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.imy-link:hover { text-decoration-thickness: 2px; }
.imy-band--navy .imy-link { color: var(--imy-on-navy); }

/* ---------- Media + cards ---------- */
.imy-media { display: block; border-radius: var(--imy-radius-media); overflow: hidden; background: var(--imy-navy-soft); aspect-ratio: 4 / 3; max-width: 100%; }
.imy-media img { width: 100%; height: 100%; object-fit: cover; }

/* chapter card: a rule on top, no box, no shadow */
.imy-chapter { border-top: 2px solid var(--imy-navy); padding-top: var(--imy-space-3); min-width: 0; display: flex; flex-direction: column; gap: var(--imy-space-2); }
.imy-chapter .imy-media { margin-bottom: var(--imy-space-2); }
.imy-chapter .imy-h3 { margin: 0; }
.imy-chapter p { margin: 0; color: var(--imy-ink-soft); }

/* boxed card: for things you act on (a product, a room) */
.imy-card { background: var(--imy-white); border: 1px solid var(--imy-line); border-radius: var(--imy-radius-media); padding: var(--imy-space-5); min-width: 0; }

/* ---------- Quote ---------- */
.imy-quote { position: relative; padding-left: var(--imy-space-6); border-left: 1px solid var(--imy-line); }
.imy-quote::before { content: "\201C"; position: absolute; left: var(--imy-space-3); top: -0.15em; font-family: var(--imy-font-head); font-size: 3rem; line-height: 1; color: var(--imy-coral); }
.imy-quote blockquote { margin: 0 0 var(--imy-space-3); font-family: var(--imy-font-head); font-weight: 500; font-size: var(--imy-fs-h3); line-height: 1.5; color: var(--imy-navy); }
.imy-quote figcaption { font-size: var(--imy-fs-small); color: var(--imy-ink-soft); }

/* ---------- Price, tag ---------- */
.imy-price { font-family: var(--imy-font-head); font-weight: 500; font-size: 1.5rem; color: var(--imy-navy); font-variant-numeric: tabular-nums; }
.imy-price del { font-family: var(--imy-font-body); font-size: 0.6em; color: var(--imy-ink-soft); margin-left: 0.4em; }
.imy-tag { display: inline-block; font-size: var(--imy-fs-small); font-weight: 500; line-height: 1.4; padding: 0.15em 0.65em; border-radius: 999px; background: var(--imy-navy-soft); color: var(--imy-navy); }
.imy-tag--coral { background: var(--imy-accent-soft); color: var(--imy-coral-deep); }

/* ---------- Forms ---------- */
.imy-field { display: flex; flex-direction: column; gap: var(--imy-space-1); margin-bottom: var(--imy-space-4); }
.imy-field label { font-size: var(--imy-fs-small); font-weight: 500; color: var(--imy-ink); }
.imy-input {
  font: inherit;
  color: var(--imy-ink);
  background: var(--imy-white);
  border: 1px solid #CFC8BE;
  border-radius: var(--imy-radius);
  padding: 0.7em 0.9em;
  min-height: 48px;
  width: 100%;
}
.imy-input:focus { outline: none; border-color: var(--imy-navy); box-shadow: 0 0 0 3px var(--imy-navy-soft); }
.imy-field .imy-hint { font-size: var(--imy-fs-small); color: var(--imy-ink-soft); }
.imy-field .imy-error { font-size: var(--imy-fs-small); color: #A02232; }

/* ---------- Utilities ---------- */
.imy-nowrap { white-space: nowrap; }   /* keep a Thai word/phrase on one line (ความรู้) */
.imy-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.imy-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--imy-white); border-bottom: 1px solid var(--imy-line); }
.imy-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--imy-space-5); min-height: 72px; }
.imy-logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.imy-logo b { font-family: var(--imy-font-head); font-weight: 500; font-size: 1.6rem; color: var(--imy-navy); letter-spacing: -0.01em; }
.imy-logo small { font-family: var(--imy-font-body); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--imy-ink-soft); margin-top: 4px; white-space: nowrap; }
@media (max-width: 480px) { .imy-logo small { letter-spacing: 0.1em; font-size: 0.56rem; } }  /* phones with large system font wrapped it */
.imy-nav { display: flex; align-items: center; gap: var(--imy-space-6); }
.imy-nav a:not(.imy-btn) { font-family: var(--imy-font-head); font-weight: 500; font-size: 0.98rem; color: var(--imy-ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.imy-nav a:not(.imy-btn):hover, .imy-nav a[aria-current="page"] { color: var(--imy-navy); border-bottom-color: var(--imy-coral-deep); }
.imy-header .imy-btn { min-height: 42px; padding: 0.55em 1.2em; }
.imy-nav__links { display: contents; }
.imy-menu { display: none; }
.imy-btn__short { display: none; }
@media (max-width: 900px) {
  .imy-nav .imy-nav__links { display: none; }
  .imy-nav { gap: var(--imy-space-4); }
  .imy-menu { display: block; position: relative; }
  .imy-menu summary { list-style: none; cursor: pointer; font-family: var(--imy-font-head); font-weight: 500; color: var(--imy-navy); padding: 8px 4px; }
  .imy-menu summary::-webkit-details-marker { display: none; }
  .imy-menu[open] .imy-menu__panel { display: flex; }
  .imy-menu__panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--imy-white); border: 1px solid var(--imy-line); border-radius: var(--imy-radius-media); padding: var(--imy-space-2) 0; }
  .imy-nav .imy-menu__panel a { padding: 12px 18px; border: 0; font-family: var(--imy-font-head); font-weight: 500; color: var(--imy-ink); text-decoration: none; }
  .imy-menu__panel a:hover { background: var(--imy-cream); color: var(--imy-navy); }
}
@media (max-width: 420px) {
  .imy-header .imy-btn .imy-btn__long { display: none; }
  .imy-header .imy-btn .imy-btn__short { display: inline; }
}

/* ---------- Account (login / profile) in the header ---------- */
.imy-account { display: inline-flex; align-items: center; gap: var(--imy-space-4); }
.imy-account a { font-family: var(--imy-font-head); font-weight: 500; font-size: 0.98rem; color: var(--imy-ink); text-decoration: none; white-space: nowrap; }
.imy-account a:hover { color: var(--imy-navy); }
.imy-account__user { display: inline-flex; align-items: center; gap: 6px; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.imy-account__user::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--imy-navy-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003883'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 20c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.imy-account__out { font-size: 0.88rem !important; color: var(--imy-ink-soft) !important; }
.imy-menu__panel .imy-account { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--imy-line); margin-top: var(--imy-space-2); padding-top: var(--imy-space-2); }
.imy-nav .imy-menu__panel .imy-account a { padding: 12px 18px; }
@media (max-width: 900px) { .imy-nav > .imy-account { display: none; } }

/* skip link for keyboard users */
.imy-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--imy-navy); color: #FFFFFF; padding: 10px 16px; border-radius: var(--imy-radius); font-weight: 600; text-decoration: none; }
.imy-skip:focus { top: 12px; }

/* test-only banner on /new/ pages (removed by the launch build) */
.test-bar { background: #FFF8D6; color: #5A4A00; font-size: .85rem; padding: .45rem 0; }
.test-bar a { color: inherit; }

/* ---------- Footer ---------- */
.imy-footer { background: var(--imy-white); border-top: 1px solid var(--imy-line); padding-block: var(--imy-space-6); font-size: var(--imy-fs-small); color: var(--imy-ink-soft); }
.imy-footer__in { display: flex; flex-wrap: wrap; gap: var(--imy-space-4) var(--imy-space-6); justify-content: space-between; align-items: center; }
.imy-footer nav { display: flex; flex-wrap: wrap; gap: var(--imy-space-2) var(--imy-space-5); }
.imy-footer a { color: var(--imy-ink-soft); text-decoration: none; }
.imy-footer a:hover { color: var(--imy-navy); text-decoration: underline; }
.imy-footer__contact { display: flex; flex-wrap: wrap; gap: var(--imy-space-3) var(--imy-space-6); justify-content: space-between; align-items: center; padding-bottom: var(--imy-space-5); margin-bottom: var(--imy-space-5); border-bottom: 1px solid var(--imy-line); }
.imy-footer .imy-footer__tel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--imy-font-head); font-weight: 500; font-size: 1.125rem; color: var(--imy-navy); }
.imy-footer__social { display: flex; gap: 10px; }
.imy-footer .imy-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--imy-line); color: var(--imy-navy); }
.imy-footer .imy-footer__social a:hover { background: var(--imy-navy); border-color: var(--imy-navy); color: #FFFFFF; text-decoration: none; }

/* ---------- Shared login popup (auth-modal.js) restyled for pages on this system only ----------
   Scoped to body.imy so the Laravel shop/booking pages keep their current look until they move over. */
body.imy .auth-modal-box, body.imy .auth-modal-box input, body.imy .auth-modal-box button { font-family: var(--imy-font-body); }
body.imy .auth-modal-brand, body.imy .auth-tab, body.imy .auth-submit { font-family: var(--imy-font-head); font-weight: 500; }
body.imy .auth-modal-icon { background: var(--imy-navy); }
body.imy .auth-modal-brand { color: var(--imy-navy); }
body.imy .auth-tab.active { color: var(--imy-navy); border-bottom-color: var(--imy-navy); }
body.imy .auth-field input:focus { border-color: var(--imy-navy); box-shadow: 0 0 0 3px var(--imy-navy-soft); }
body.imy .auth-pw-eye:hover { color: var(--imy-navy); }
body.imy .auth-submit { background: var(--imy-navy); border-radius: 999px; }
body.imy .auth-submit:hover { background: var(--imy-navy-hover); box-shadow: none; }
body.imy .auth-switch a { color: var(--imy-coral-deep); }
body.imy .auth-line-btn { border-radius: 999px; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .imy *, .imy *::before, .imy *::after { transition: none !important; animation: none !important; }
}
