/* VisaBuddy by What10 — Cloud Fixation brand system.
   Light by default; dark via :root[data-theme="dark"]. */
:root {
  /* brand accents */
  --indigo: #4A00E0;
  --purple: #8E2DE2;
  --blue: #00D2FF;
  --grad: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
  /* semantic */
  --ok: #0E9F6E;
  --warn: #C27803;
  --bad: #DC2626;
  /* light canvas (default) */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface2: #FFFFFF;
  --ink: #0B0F19;
  --ink-soft: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 10px 30px -16px rgba(11, 15, 25, 0.22);
  --focus: 0 0 0 4px rgba(0, 210, 255, 0.18);
  --r-sm: 8px;
  --r: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0B0F19;
  --surface: #111827;
  --surface2: #0f172a;
  --ink: #F1F5F9;
  --ink-soft: #cbd5e1;
  --muted: #94A3B8;
  --border: #1F2937;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s var(--ease), color .25s var(--ease);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(74,0,224,.25) 0%, transparent 60%),
    radial-gradient(900px 480px at 108% 4%, rgba(0,210,255,.12) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--indigo); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 28px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand .logo { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand .bt .b1 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .bt .b1 .ten { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .bt .b2 { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-btn {
  width: 38px; height: 38px; flex: none; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; font-size: 16px; transition: all .2s var(--ease);
}
.theme-btn:hover { border-color: var(--purple); }

.userchip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 14px 5px 5px; border-radius: 999px; max-width: 220px;
  transition: all .2s var(--ease);
}
.userchip:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.userchip img, .userchip .avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover;
}
.userchip .avatar { background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.userchip span.nm { font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-ghost {
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; font-size: 14px;
  font-weight: 600; font-family: var(--body); transition: all .2s var(--ease);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--ink); }

/* ---------- hero ---------- */
.hero { max-width: 720px; margin: 38px auto 6px; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.03em; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0; }
@media (max-width: 620px) { .hero h1 { font-size: 32px; } }

/* ---------- panels & pickers ---------- */
.panel {
  max-width: 720px; margin: 28px auto; padding: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow);
}
.row2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border); color: var(--purple); font-size: 20px; }
@media (max-width: 620px) {
  .row2 { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); margin: -4px auto; }
}
label.fld { display: block; font-size: 12px; color: var(--muted); margin: 0 0 8px 2px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.select { position: relative; }
.select-trigger { display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 16px; cursor: pointer; font-size: 16px; color: var(--ink); transition: all .2s var(--ease); }
.select-trigger:hover, .select.open .select-trigger { border-color: var(--blue); box-shadow: var(--focus); }
.select-trigger img { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.select-trigger .ph { color: var(--muted); }
.select-trigger .caret { margin-left: auto; color: var(--muted); }
.select-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  box-shadow: 0 24px 48px -16px rgba(11,15,25,.3); overflow: hidden; display: none; }
.select.open .select-menu { display: block; }
.select-menu input { width: 100%; border: none; border-bottom: 1px solid var(--border);
  background: var(--bg); color: var(--ink); padding: 12px 16px; font-size: 15px; outline: none; font-family: var(--body); }
.select-list { max-height: 260px; overflow-y: auto; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; font-size: 15px; }
.opt:hover, .opt.active { background: rgba(142,45,226,.08); }
.opt img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.25); }

.btn-primary { width: 100%; margin-top: 22px; border: none; border-radius: var(--r-sm);
  background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; padding: 15px;
  cursor: pointer; font-family: var(--display); letter-spacing: -.01em;
  box-shadow: 0 14px 30px -12px rgba(74,0,224,.5); transition: transform .15s var(--ease), filter .2s var(--ease); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.3); transform: none; }

/* ---------- result card ---------- */
.result { margin-top: 22px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-head { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.result-head.ok { background: rgba(14,159,110,.10); }
.result-head.warn { background: rgba(194,120,3,.10); }
.result-head.bad { background: rgba(220,38,38,.09); }
.result-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none; }
.result-head.ok .result-icon { background: rgba(14,159,110,.18); }
.result-head.warn .result-icon { background: rgba(194,120,3,.18); }
.result-head.bad .result-icon { background: rgba(220,38,38,.16); }
.result-head h3 { margin: 0 0 3px; font-size: 20px; }
.result-head .sub { color: var(--muted); font-size: 14px; }
.flags-mini { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.flags-mini img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; }
.result-body { background: var(--surface); padding: 20px 24px; }
.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); width: 130px; flex: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.ok { background: rgba(14,159,110,.14); color: var(--ok); }
.badge.warn { background: rgba(194,120,3,.16); color: var(--warn); }
.badge.bad { background: rgba(220,38,38,.12); color: var(--bad); }
.source { margin-top: 14px; font-size: 13px; color: var(--muted); }
.source a { color: var(--blue); }

.req-list { margin: 14px 0 4px; padding: 0; list-style: none; }
.req-list li { position: relative; padding: 6px 0 6px 24px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.req-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--ok); font-weight: 700; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--indigo); background: var(--surface); }
.link-pill:hover { border-color: var(--purple); }
.link-pill.embassy { color: var(--warn); border-color: rgba(194,120,3,.4); }
.result-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bookmark-btn, .email-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 14px;
  font-weight: 700; padding: 10px 16px; border-radius: var(--r-sm); cursor: pointer; font-family: var(--body); }
.bookmark-btn { border: 1px solid var(--purple); background: rgba(142,45,226,.08); color: var(--purple); }
.bookmark-btn:hover { background: rgba(142,45,226,.16); }
.bookmark-btn.on { background: var(--grad); color: #fff; border-color: transparent; }
.email-btn { border: 1px solid var(--blue); background: rgba(0,210,255,.08); color: var(--indigo); }
.email-btn:hover { background: rgba(0,210,255,.16); }

/* ---------- My Page (travel) ---------- */
.travel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.travel-head h2 { margin: 0; font-size: 22px; }
.travel-head .acct { margin-left: auto; }
.travel-block { margin-bottom: 22px; }
.fld-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-c { display: inline-flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 14px; }
.chip-c img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.chip-c .x { cursor: pointer; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.chip-c .x:hover { background: rgba(220,38,38,.14); color: var(--bad); }
.chip-c.empty { color: var(--muted); border-style: dashed; }
.pp-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-switch button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-family: var(--body); }
.pp-switch button img { width: 18px; height: 13px; border-radius: 2px; }
.pp-switch button.active { background: var(--grad); color: #fff; border-color: transparent; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.bm-card { position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px; cursor: pointer; transition: all .15s var(--ease); }
.bm-card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow); }
.bm-card .bm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bm-card img { width: 30px; height: 21px; border-radius: 3px; object-fit: cover; }
.bm-card .bm-name { font-weight: 700; font-size: 15px; }
.bm-card .bm-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.bm-card .bm-x:hover { background: rgba(220,38,38,.14); color: var(--bad); }
.bm-card .bm-stay { font-size: 12px; color: var(--muted); margin-top: 6px; }
.bm-empty { color: var(--muted); font-size: 14px; padding: 10px 2px; }

/* ---------- modals ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(11,15,25,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 40px 80px -24px rgba(11,15,25,.4); }
.modal h2 { margin: 0 0 6px; font-size: 24px; }
.modal p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 14px; margin-bottom: 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: #fff; color: #1e293b; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s var(--ease); font-family: var(--body); }
.oauth-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.oauth-btn.google { background: #fff; color: #3c4043; }
.oauth-btn.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.oauth-btn.linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.oauth-btn.zoho { background: #e42527; color: #fff; border-color: #e42527; }
.oauth-btn svg { width: 20px; height: 20px; }
.modal .fineprint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.modal .fineprint a { color: var(--blue); }
.modal .close { position: relative; float: right; margin: -20px -14px 0 0; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }

/* profile + consent */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.profile-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.profile-head .pavatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; }
.profile-head .pname { font-size: 18px; font-weight: 700; }
.profile-head .pemail { color: var(--muted); font-size: 14px; }
.prow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.prow:last-child { border-bottom: none; }
.prow .pk { color: var(--muted); }
.danger-zone { margin-top: 28px; padding: 16px 0 0; border-top: 1px solid var(--border); }
.danger-zone h4 { margin: 0 0 5px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.danger-zone p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.muted-note { color: var(--muted); }
.btn-danger { width: auto; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: var(--r-sm); padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: var(--body); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); background: rgba(220,38,38,.06); }
.field-l { text-align: left; margin-bottom: 14px; }
.field-l label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field-l input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; color: var(--ink); font-size: 14px; font-family: var(--body); }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin: 4px 0 18px; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--purple); }
.consent label { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; padding: 12px 20px; border-radius: var(--r-sm); font-size: 14px;
  box-shadow: var(--shadow); display: none; z-index: 200; background: var(--ink); }
.toast.show { display: block; animation: pop .25s var(--ease); }
.toast.ok { background: var(--ok); }
.toast.bad { background: var(--bad); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 50px; }
footer a { color: var(--blue); }

.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: inline-block; vertical-align: -3px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tabs (Check a visa / My Page) ---------- */
.tabs-nav { max-width: 1100px; margin: 22px auto 2px; padding: 0 22px; display: flex; gap: 8px; justify-content: center; }
.tab-btn { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-family: var(--display); font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px;
  cursor: pointer; transition: all .18s; }
.tab-btn:hover { color: var(--ink); border-color: var(--purple); }
.tab-btn.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(74,0,224,.6); }
.tabpane[hidden] { display: none; }

/* ---------- My Page (passports + saved destinations) ---------- */
#tab-mypage { max-width: 1080px; margin: 8px auto 60px; padding: 0 22px; }
#tab-mypage .panel { max-width: none; margin: 0 0 18px; }

/* two-column My Page: narrow left (passports + add) · wide right (cards) */
.mypage-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.mypage-left { display: flex; flex-direction: column; gap: 18px; }
.mypage-left .panel { margin: 0; }
.mypage-right { min-width: 0; }
/* right column: one card per row, stacked (true two-column page) */
.mypage-right .bm-grid { grid-template-columns: 1fr; gap: 14px; margin: 0; }
@media (max-width: 820px) { .mypage-grid { grid-template-columns: 1fr; } }

/* expanded bookmark card — full visa detail per country, full-width */
.bm-card.detail { padding: 20px 22px; cursor: default; background: var(--surface); }
.bm-card.detail:hover { transform: none; border-color: var(--border); box-shadow: none; }
.bm-card .bm-x { cursor: pointer; top: 14px; right: 14px; }

.bm-head { display: flex; align-items: center; gap: 14px; padding-right: 28px; }
.bm-head img { width: 42px; height: 30px; border-radius: 5px; object-fit: cover; flex: none; box-shadow: 0 1px 3px rgba(11,15,25,.15); }
.bm-h-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bm-card.detail .bm-name { font-size: 18px; font-weight: 700; font-family: var(--display); }
.bm-card.detail .badge { align-self: flex-start; }

.bm-kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.bm-kvs:empty { display: none; }
.bm-kv { display: flex; flex-direction: column; gap: 3px; }
.bm-kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bm-kv span:last-child { font-size: 14px; color: var(--ink); line-height: 1.4; }

.bm-reqs-wrap { margin-top: 16px; }
.bm-reqs-h { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; }
.bm-reqs { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 5px 22px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.bm-card.detail .links-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bm-src { margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.pf-id { display: flex; align-items: center; gap: 16px; }
.pf-id .pavatar, .pf-id img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.pf-id .pavatar { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: var(--grad); }
.pf-id .pname { font-size: 20px; font-weight: 700; font-family: var(--display); }
.pf-id .pemail { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 20px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pf-stat { background: var(--surface); padding: 14px 16px; }
.pf-stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pf-stat .v { font-size: 15px; font-weight: 600; margin-top: 3px; }
.pf-section-h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.pf-section-h h2 { margin: 0; font-size: 17px; }
.pf-section-h .muted, .pf-section-h .pp-switch { margin-left: auto; }
.pf-hint { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.account-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 4px 2px 0; }
.account-note a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.account-note a:hover { text-decoration: underline; }

/* clickable marketing-consent toggle (My Page banner) */
.consent-row { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; margin-top: 16px;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; font-family: var(--body); transition: border-color .18s; }
.consent-row:hover { border-color: var(--purple); }
.consent-row:disabled { opacity: .6; cursor: default; }
.consent-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.consent-title { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.consent-sub { font-size: 12.5px; color: var(--muted); }
.consent-switch { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; }
.consent-row.on .consent-switch { background: var(--grad); }
.consent-switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.consent-row.on .consent-switch .knob { transform: translateX(20px); }
