@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* Base Reset & Theme Tokens */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Zen Kaku Gothic New', system-ui, -apple-system, Segoe UI, Roboto, Noto Sans JP, Hiragino Kaku Gothic ProN, Meiryo, sans-serif; line-height: 1.6; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Make policy links clearly clickable (blue + underline) */
a[href$="policy.html"],
a[href*="/policy.html"],
a[href*="policy.html?"],
a[href*="policy.html#"] {
  color: #3b82f6; /* blue-500 */
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
a[href$="policy.html"]:hover,
a[href*="/policy.html"]:hover,
a[href*="policy.html?"]:hover,
a[href*="policy.html#"]:hover { color: #1d4ed8; /* blue-700 */ }

:root {
  /* Unified (light) theme tokens */
  --bg: #ffeaea;
  --panel: #ffffff;
  --fg: #748dae;
  --fg-muted: #748dae;
  --border: #e7eaf0;
  --header-bg: linear-gradient(180deg, #ffffff 0%, #f9fbff 45%, #eef4ff 100%);
  --header-border: rgba(187, 206, 233, .65);
  --header-fg: #5f6b80;
  --header-pill-mint: #e1f4fb;
  --header-pill-lilac: #e9e7fb;
  --header-pill-beige: #f1f4fb;
  --brand: #748dae;
  --brand-strong: #748dae;
  --accent: #748dae;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 6px 24px rgba(10, 22, 50, .08), 0 2px 8px rgba(10, 22, 50, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --gap: 16px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(127, 127, 127, .05)); }
.section-mypage {
  background: linear-gradient(135deg, rgba(255,234,234,.45), rgba(214,227,250,.5));
}
.section-mypage #mypageName {
  text-align: center;
  font-size: clamp(28px, 5vw, 38px);
  margin-bottom: 24px;
  color: #2f2a36;
}
.section-mypage .profile-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(47,42,54,.08);
}
.section-mypage #mypageMsg { color: rgba(47,42,54,.72); text-align: center; }
.mypage-actions {
  list-style: none;
  margin: clamp(24px, 4vw, 36px) 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 2vw, 18px);
}
.mypage-action {
  width: 100%;
  border: 1px solid rgba(47,42,54,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 36px rgba(15,23,42,.12);
  padding: clamp(14px, 3vw, 22px);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #2f2a36;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mypage-action::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid rgba(47,42,54,.7);
}
.mypage-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(15,23,42,.18);
}
.mypage-action .badge-unread { margin-left: auto; }
.mypage-actions button.mypage-action {
  border: 1px solid rgba(224,72,72,.25);
  color: #b91c1c;
  background: rgba(255,247,247,.95);
}
.mypage-actions button.mypage-action::after { border-left-color: rgba(185,28,28,.7); }

/* Header */
.site-header {
  color: var(--header-fg);
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(0px, 0.5vw, 8px) clamp(28px, 4vw, 56px) clamp(0px, 0.5vw, 8px) clamp(10px, 2vw, 20px);
  box-shadow: 0 18px 36px rgba(140, 174, 209, .25);
  width: 100%;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
}
.site-header::before {
  top: -40px;
  left: -60px;
  width: clamp(320px, 48vw, 520px);
  height: clamp(200px, 26vw, 300px);
  background:
    radial-gradient(circle at 65% 100%, rgba(180, 204, 239, .4) 0%, rgba(180, 204, 239, 0) 65%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20320%20160%27%3E%3Cpath%20fill%3D%27%23d4e6ff%27%20fill-opacity%3D%270.9%27%20d%3D%27M28%20114c-16%200-28-12-28-27%200-11%207-21%2018-25C16%2031%2038%209%2070%209c20%200%2038%2010%2049%2027a63%2063%200%200%2019-3c23%200%2043%2014%2048%2035%202-1%205-1%207-1%2023%200%2041%2017%2041%2037s-18%2037-41%2037H28z%27/%3E%3C/svg%3E")
      no-repeat center / contain;
  filter: drop-shadow(0 18px 38px rgba(145, 176, 213, .35));
  opacity: .95;
}
.site-header::after { content: none; }
.brand {
  font-weight: 900;
  letter-spacing: .2px;
  color: #ffeaea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1;
  flex: 0 0 clamp(94px, 15vw, 108px);
  width: clamp(94px, 15vw, 108px);
  height: clamp(94px, 15vw, 108px);
}
.brand::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url('img/deals_logo.png') no-repeat center / contain;
  filter: none; /* Provide neutral rendering by default */
}
/* If you prefer a PNG/JPG, replace the url above with your filename. */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.8vw, 24px);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 15px);
  border: 1px solid rgba(139, 108, 93, .32);
  color: var(--header-fg);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 26px rgba(217, 169, 151, .2);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(210, 170, 150, .28);
  filter: brightness(1.03);
}
.nav a:nth-of-type(1) {
  background: var(--header-pill-mint);
  border-color: rgba(126, 176, 167, .45);
}
.nav a:nth-of-type(2) {
  background: var(--header-pill-lilac);
  border-color: rgba(146, 129, 183, .45);
}
.nav a:nth-of-type(3) {
  background: var(--header-pill-beige);
  border-color: rgba(199, 150, 119, .45);
}
/* Theme toggle removed */

/* Header actions: hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(139, 108, 93, .32);
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(217, 169, 151, .2);
  position: relative;
  z-index: 130;
  color: var(--header-fg);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  backdrop-filter: blur(6px);
}
.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(210, 170, 150, .28);
  filter: brightness(1.03);
}
.menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s ease, opacity .15s ease;
}
.menu-toggle:focus {
  outline: 2px solid rgba(146, 129, 183, .65);
  outline-offset: 3px;
}

/* Morph to close (X) when open */
.menu-toggle.open { gap: 0; }
.menu-toggle.open .bar { position: absolute; top: 50%; left: 50%; }
.menu-toggle.open .bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Right drawer menu (opens to the left of the toggle) */
.menu-panel { position: fixed; top: var(--menu-top, 0); right: 0; bottom: 0; left: auto; width: min(86vw, 360px); height: calc(100vh - var(--menu-top, 0)); background: var(--panel); border-left: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .25s ease; z-index: 80; }
.menu-panel.open { transform: translateX(0); }
.menu-panel[hidden] { display: none; }
.menu-inner { padding: 16px 20px 24px; height: 100%; overflow: auto; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-list a { display: block; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); font-weight: 700; box-shadow: var(--shadow); }
.menu-list a:hover { background: var(--bg); color: var(--fg); border-color: var(--fg); }

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

/* Unread badge */
.badge-unread { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #f9a09a; color: #fff; font-weight: 800; font-size: 12px; vertical-align: middle; box-shadow: var(--shadow); }

/* Hero */
.hero { background: radial-gradient(1200px 480px at 20% -20%, rgba(124,58,237,.25), transparent), radial-gradient(900px 420px at 80% -20%, rgba(34,211,238,.18), transparent); padding: 72px 0 56px; }
.hero-inner { display: grid; gap: 16px; justify-items: start; text-align: left; }
.avatar { font-size: 56px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.title { font-size: clamp(28px, 4.5vw, 40px); margin: 0; line-height: 1.2; letter-spacing: .2px; }
.subtitle { margin: 6px 0 2px; color: var(--fg-muted); font-size: clamp(14px, 2.2vw, 16px); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); box-shadow: var(--shadow); cursor: pointer; transition: transform .1s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--bg); border-color: var(--fg); color: var(--fg); }
.btn.block { width: 100%; }

/* Back link area for My Page child screens */
.mypage-back { margin: 12px 0 20px; display: flex; justify-content: flex-start; }
.mypage-back .btn { width: auto; }
body.store-page { background: #fff; }
body.store-page .hero { background: #fff; }
body.store-page .hero .actions { flex-wrap: wrap; }
body.store-page .hero .actions .btn { flex: 1 1 220px; }

/* Dealer auth layout */
.auth-card { margin-top: 18px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-card .actions { justify-content: flex-end; }

/* Features */
.facts { margin: 12px 0 0; padding-left: 18px; color: var(--fg); }
.facts li { margin: 6px 0; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--border); background: rgba(116,141,174,.08); color: var(--fg); }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.card .thumb {
  height: 120px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.18));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  display: grid;
  place-items: center;
}
.card .thumb img { max-width: 74px; max-height: 74px; }
.card .thumb-help { background-image: url('img/help.png'); }
.card .thumb-fulltime { background-image: url('img/full-time.png'); }
.card .thumb-parttime { background-image: url('img/part-time.png'); }
.card h3 { margin: 2px 0 0; font-size: 18px; }
.card p { margin: 0; color: var(--fg); }
.card .help { margin-top: -4px; }
.card-link { color: var(--fg); font-weight: 600; }
.section-lead { margin: 10px 0 24px; color: var(--fg-muted); max-width: 640px; }
.section-featured {
  background: linear-gradient(135deg, rgba(240,248,255,.65), rgba(239,246,255,.3));
  padding-top: clamp(56px, 10vw, 80px);
  padding-bottom: clamp(56px, 10vw, 80px);
}
.section-featured .search-head h2 { font-size: clamp(28px, 5vw, 40px); }
.section-featured .section-lead {
  text-align: center;
  margin: 12px auto 0;
  color: rgba(47,42,54,.72);
}
.search-carousel-wrapper {
  margin-top: clamp(28px, 6vw, 36px);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #2f2a36;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.carousel-nav::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  transition: transform .15s ease;
}
.carousel-nav--prev::before {
  transform: rotate(180deg);
}
.carousel-nav:hover:not(:disabled) { transform: translateY(-2px); }
.carousel-nav:disabled { opacity: .4; cursor: not-allowed; }
.carousel-nav--prev { order: -1; }
.search-carousel {
  flex: 1 1 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: clamp(18px, 3vw, 28px);
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.search-carousel::-webkit-scrollbar { height: 6px; }
.search-carousel::-webkit-scrollbar-track { background: rgba(47,42,54,.08); border-radius: 999px; }
.search-carousel::-webkit-scrollbar-thumb { background: rgba(47,42,54,.25); border-radius: 999px; }
.search-carousel .search-card {
  background: rgba(255,255,255,.95);
  border-color: rgba(47,42,54,.06);
  scroll-snap-align: start;
  min-height: 260px;
}
.search-featured-title {
  margin: 0;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  color: #2f2a36;
}
.search-featured-meta {
  margin: -6px 0 4px;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(47,42,54,.6);
  font-weight: 700;
  text-transform: uppercase;
}

.section-area { background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(158,202,214,.25)); }
.section-area > .container > h2 {
  text-align: center;
  color: #000;
  font-size: clamp(22px, 4.2vw, 28px);
}
.area-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.area-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 22, 50, .12);
}
.area-name { font-weight: 700; font-size: 18px; color: var(--brand-strong); }
.area-detail { font-size: 14px; color: var(--fg-muted); }

.area-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; position: relative; }
.area-illustration {
  margin: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,234,234,.6));
  border-radius: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(116,141,174,.2);
  box-shadow: 0 18px 36px rgba(12,25,48,.12);
  overflow: hidden;
  position: relative;
}
.area-illustration-inner {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.area-illustration-heading {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: .18em;
  font-weight: 300;
  color: #1f2937;
}
.area-illustration-subheading {
  margin: -8px 0 0;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  color: rgba(31,41,55,.7);
}
.area-map-image { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(12,25,48,.18)); }
.area-chips {
  position: absolute;
  inset: 28px;
  pointer-events: none;
}
.area-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  border: 1px solid rgba(15,118,110,.35);
  box-shadow: 0 10px 20px rgba(12,25,48,.16);
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.area-chip:hover { transform: translate(-50%, -52%); box-shadow: 0 16px 28px rgba(12,25,48,.2); }
.area-chip span { pointer-events: none; }
.area-chip--hokkaido { top: 18%; left: 66%; }
.area-chip--tohoku { top: 36%; left: 60%; }
.area-chip--kanto { top: 48%; left: 64%; }
.area-chip--koshin { top: 52%; left: 56%; }
.area-chip--tokai { top: 60%; left: 58%; }
.area-chip--kansai { top: 64%; left: 48%; }
.area-chip--chugoku { top: 70%; left: 34%; }
.area-chip--kyushu { top: 82%; left: 28%; }

.section-search {
  background: linear-gradient(135deg, rgba(255,234,234,.55), rgba(214,227,250,.55));
  padding-top: clamp(56px, 10vw, 80px);
  padding-bottom: clamp(56px, 10vw, 80px);
}
.search-head { text-align: center; display: grid; gap: 8px; }
.search-head h2 { margin: 0; font-size: clamp(28px, 5vw, 40px); color: #2f2a36; letter-spacing: .02em; }
.search-lead { margin: 0; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: rgba(47,42,54,.65); font-weight: 600; }
.search-grid {
  margin-top: clamp(28px, 6vw, 42px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.search-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 32px);
  background: rgba(255,255,255,.92);
  border-radius: 26px;
  box-shadow: 0 20px 36px rgba(15,23,42,.12);
  border: 1px solid rgba(47,42,54,.08);
  align-content: start;
  text-align: left;
}
.search-card::after {
  content: "";
  position: absolute;
  inset: clamp(12px, 1.8vw, 16px);
  border-radius: 20px;
  border: 1px dashed rgba(47,42,54,.14);
  pointer-events: none;
}
.search-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247,208,220,.65), rgba(196,218,253,.75));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 26px rgba(15,23,42,.14);
}
.search-icon img { width: 44px; height: 44px; object-fit: contain; }
.search-card h3 { margin: 0; font-size: clamp(18px, 2.8vw, 22px); color: #2f2a36; }
.search-card-title {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
}
.search-card-title-bold { font-weight: 800; letter-spacing: .02em; }
.search-card-title-sub {
  font-size: clamp(12px, 2.4vw, 14px);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: none;
  color: rgba(47,42,54,.72);
}
.store-postings-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.chip {
  appearance: none;
  border: 1px solid rgba(139, 108, 93, .32);
  background: rgba(255, 255, 255, .86);
  color: var(--header-fg);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.chip:hover { transform: translateY(-1px); filter: brightness(1.02); }
.chip.active {
  background: var(--header-pill-lilac);
  border-color: rgba(146, 129, 183, .6);
  box-shadow: 0 12px 24px rgba(146, 129, 183, .24);
}
.store-postings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(32px, 5vw, 48px);
}
.store-posting-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}
.store-posting-meta {
  margin: 0;
  color: rgba(47,42,54,.7);
  font-size: 14px;
  line-height: 1.6;
}
.store-posting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.posting-detail {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(24px, 4vw, 40px);
}
.posting-detail[hidden] { display: none; }
.posting-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.posting-detail-head .help { margin: 4px 0 0; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(146, 129, 183, .18);
  color: #5c4d8a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
}
.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}
.store-postings-footer {
  margin-top: clamp(28px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.applicant-table td { white-space: nowrap; }
.applicant-table td:nth-child(4) { white-space: normal; min-width: 200px; }
.rating-select {
  width: 100%;
  min-width: 140px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 108, 93, .32);
  background: rgba(255, 255, 255, .86);
  font-weight: 600;
}
.rating-select:focus {
  outline: 2px solid rgba(146, 129, 183, .6);
  outline-offset: 2px;
}
.rating-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(47,42,54,.72);
}
.withdraw-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 40px);
  background: rgba(24, 24, 27, .72);
  z-index: 900;
  backdrop-filter: blur(4px);
}
.withdraw-overlay.open { display: flex; }
.withdraw-overlay[hidden] { display: none !important; }
.withdraw-overlay .withdraw-info {
  margin: 0;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
}
body.withdraw-open { overflow: hidden; }
.withdraw-info {
  margin: 0;
  padding: clamp(24px, 5vw, 36px);
  border-radius: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(139, 108, 93, .18);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 44px rgba(12, 25, 48, .1);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}
.withdraw-info h2 {
  margin: 0;
  font-size: clamp(22px, 4.4vw, 30px);
  color: var(--header-fg);
}
.withdraw-info h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 3.2vw, 22px);
  color: #8b5a4a;
}
.withdraw-lead {
  margin: 0;
  font-weight: 600;
  color: rgba(47,42,54,.82);
}
.withdraw-mail-link {
  appearance: none;
  border: none;
  background: none;
  color: #d97706;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.withdraw-card {
  padding: clamp(18px, 4vw, 26px);
  border-radius: clamp(16px, 2.6vw, 22px);
  border: 1px solid rgba(139, 108, 93, .18);
  background: rgba(255, 244, 235, .9);
  display: grid;
  gap: 12px;
}
.withdraw-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(47,42,54,.82);
  display: grid;
  gap: 6px;
}
.withdraw-card--primary {
  border-color: rgba(241, 169, 125, .4);
  background: rgba(255, 240, 229, .95);
}
.withdraw-card--danger {
  border-color: rgba(248, 113, 113, .35);
  background: rgba(255, 228, 230, .92);
}
.withdraw-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.withdraw-note {
  margin: 0;
  font-weight: 600;
  color: rgba(47,42,54,.8);
}
.withdraw-warning {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(248, 113, 113, .5);
  background: rgba(254, 226, 226, .6);
  color: #b91c1c;
  font-weight: 700;
  line-height: 1.6;
}
.withdraw-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  color: rgba(47,42,54,.84);
}
.withdraw-check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}
.withdraw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.application-history {
  margin-top: clamp(32px, 6vw, 48px);
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}
.application-history[hidden] { display: none; }
.application-card {
  padding: clamp(18px, 4vw, 26px);
  border-radius: clamp(16px, 2.6vw, 22px);
  border: 1px solid rgba(139, 108, 93, .18);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 36px rgba(12, 25, 48, .08);
  display: grid;
  gap: 12px;
}
.application-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.application-card-header h3 {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 22px);
  color: var(--brand-strong);
}
.application-status-label {
  font-weight: 700;
  color: #8b5a4a;
}
.application-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(47,42,54,.65);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.application-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.application-status select {
  min-width: 160px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 108, 93, .32);
  background: rgba(255, 255, 255, .9);
}
.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.application-note {
  margin: 0;
  font-size: 13px;
  color: rgba(47,42,54,.75);
}
.btn.disabled,
.btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}
.job-locked {
  margin: 8px 0 0;
  color: #b91c1c;
  font-weight: 600;
}
.search-card p { margin: 0; color: rgba(47,42,54,.72); font-size: 14px; line-height: 1.7; }
.search-link {
  margin-top: 12px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #2f2a36;
  text-decoration: none;
  letter-spacing: .06em;
}
.search-link::after {
  content: "→";
  font-size: 16px;
  transition: transform .15s ease;
}
.search-link:hover::after { transform: translateX(4px); }

.area-list {
  background: rgba(255,255,255,.9);
  border-radius: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(116,141,174,.2);
  box-shadow: 0 22px 40px rgba(12,25,48,.12);
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 18px;
}
.area-list-item {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(116,141,174,.18);
}
.area-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.area-list-item header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--brand-strong);
}
.area-list-item header span[aria-hidden="true"] { font-size: 20px; color: #0f766e; }
.area-list-item header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--brand-strong); }
.area-list-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
}
.area-list-item li a {
  color: rgba(31,41,55,.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.area-list-item li a:hover { color: #0f766e; }

.section-points {
  position: relative;
  background: linear-gradient(135deg, rgba(255,234,234,.6), rgba(215,227,250,.5));
  overflow: hidden;
}
.section-points::before,
.section-points::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 160px;
  border-radius: 999px;
  filter: blur(0);
}
.section-points::before {
  left: 0;
  top: 40px;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20320%20160%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.32%27%20d%3D%27M40%2098c0-23%2018-41%2041-41%205%200%209%200%2013%202%208-21%2028-36%2053-36%2026%200%2048%2017%2055%2042%202-1%203-1%205-1%2024%200%2043%2018%2043%2040s-19%2040-43%2040H78c-22%200-38-17-38-37%200-7%201-14%204-20-9-6-14-16-14-25z%27/%3E%3C/svg%3E")
    no-repeat center / contain;
  transform: scaleX(-1) rotate(12deg);
}
.section-points::after {
  right: 0;
  top: 40px;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20320%20160%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.32%27%20d%3D%27M40%2098c0-23%2018-41%2041-41%205%200%209%200%2013%202%208-21%2028-36%2053-36%2026%200%2048%2017%2055%2042%202-1%203-1%205-1%2024%200%2043%2018%2043%2040s-19%2040-43%2040H78c-22%200-38-17-38-37%200-7%201-14%204-20-9-6-14-16-14-25z%27/%3E%3C/svg%3E")
    no-repeat center / contain;
  transform: rotate(12deg);
}
.points-header { text-align: center; display: grid; gap: 6px; }
.points-header h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); color: #302828; letter-spacing: .04em; }
.points-lead { margin: 0; font-size: 14px; letter-spacing: .2em; color: rgba(48,40,40,.72); font-weight: 600; text-transform: uppercase; }
.points-line {
  margin: 30px auto 12px;
  width: clamp(200px, 40vw, 360px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,204,204,.6), rgba(215,227,250,.8));
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: 36px;
  position: relative;
}
.points-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  border-top: 2px dashed rgba(48,40,40,.25);
  z-index: 0;
}
.point-card {
  position: relative;
  background: rgba(255,255,255,.9);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 22px 38px rgba(12,25,48,.14);
  border: 1px solid rgba(48,40,40,.08);
  display: grid;
  gap: 12px;
  align-content: start;
  text-align: left;
  z-index: 1;
}
.point-card::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.8vw, 14px);
  border-radius: 18px;
  border: 1px dashed rgba(48,40,40,.12);
  pointer-events: none;
}
.point-badge {
  align-self: start;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(214,189,214,.45);
  color: rgba(48,40,40,.8);
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
  text-transform: uppercase;
}
.point-card h3 {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  color: #302828;
  text-align: center;
}
.point-card p {
  margin: 0;
  color: rgba(48,40,40,.72);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.section-directory { background: #fff; padding: 60px 0; }
.directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}
.directory-brand {
  grid-column: span 2;
  display: grid;
  gap: 10px;
  color: #1f2937;
}
.directory-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: clamp(18px, 3vw, 28px);
}
.directory-logo img {
  width: clamp(48px, 6vw, 68px);
  height: auto;
  display: block;
}
.directory-logo p { margin: 0; letter-spacing: .08em; }
.directory-tagline { margin: 0; font-size: 14px; color: rgba(17,24,39,.8); }
.directory-subtagline { margin: 0; font-size: 13px; color: rgba(17,24,39,.6); }
.directory-column {
  display: grid;
  gap: 8px;
}
.directory-column h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(17,24,39,.6);
}
.directory-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.directory-column a {
  color: rgba(17,24,39,.85);
  font-size: 14px;
  text-decoration: none;
}
.directory-column a:hover { text-decoration: underline; }
.directory-toplink { display: none; }

.jobs-scroll { max-height: 70vh; overflow-y: auto; padding-right: 6px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.jobs-scroll .card { gap: 12px; }
.job-card-summary { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.job-card-summary-text { display: grid; gap: 4px; }
.job-card-meta { margin: 0; color: var(--fg-muted); font-size: 14px; }
.job-card-store { margin: 0; font-weight: 700; color: var(--fg); }
.jobs-scroll .card-actions { gap: 8px; }
.jobs-scroll .card-actions .btn { flex: 1 1 auto; min-width: 140px; font-size: 14px; padding: 8px 12px; }
.jobs-scroll .fav-btn { align-self: start; }
.store-detail-link { background: var(--bg); border: 1px solid var(--fg); color: var(--fg); }
.store-detail-link:hover { background: var(--bg); color: var(--fg); }

@media (max-width: 640px) {
  .job-card-summary { grid-template-columns: 1fr; }
}
.card-link:hover { text-decoration: underline; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.card-actions .btn { flex: 1 1 auto; min-width: 140px; font-size: 14px; padding: 8px 12px; }
.card-actions .btn.store-detail-link { flex: 1 1 140px; }
.store-info { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(116,141,174,.08); border: 1px solid var(--border); }
.store-info-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--fg); }
.store-info-line { margin: 4px 0; font-size: 14px; color: var(--fg); display: flex; flex-wrap: wrap; gap: 4px; }
.store-info-label { font-weight: 700; color: var(--fg-muted); min-width: 72px; }
.store-info-value { flex: 1 1 auto; }
.store-info a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.photo-link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-preview-item { position: relative; width: 96px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview-item span { position: absolute; inset: auto 4px 4px 4px; background: rgba(14,19,33,.7); color: var(--fg); font-size: 12px; padding: 2px 4px; border-radius: 3px; text-align: center; }
.upload-inputs { display: grid; gap: 8px; margin-bottom: 8px; }
.upload-input { display: grid; gap: 4px; }
.upload-input-label { color: var(--fg-muted); font-size: 13px; font-weight: 600; }

/* Links, help text */
.links { margin: 10px 0 0; padding: 0; list-style: none; }
.links li { margin: 6px 0; }

/* FAQ */
.faq-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 2vw, 18px);
}
.faq-item {
  border: 1px solid rgba(116, 141, 174, .25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 32px rgba(15, 23, 42, .08);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 2.6vw, 18px);
  font-weight: 800;
  color: var(--fg);
  padding: clamp(14px, 3vw, 20px) clamp(18px, 4vw, 28px);
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.faq-question:focus-visible {
  outline: 3px solid rgba(79, 180, 233, .4);
  outline-offset: 3px;
}
.faq-q-label {
  font-size: .9em;
  letter-spacing: .2em;
  color: rgba(15, 23, 42, .6);
}
.faq-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(116, 141, 174, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--fg);
}
.faq-icon::before { content: "+"; }
.faq-question[aria-expanded="true"] .faq-icon::before { content: "−"; }
.faq-answer {
  padding: 0 clamp(18px, 4vw, 28px) clamp(16px, 3vw, 24px);
  color: var(--fg-muted);
  font-size: 15px;
}
.faq-answer p {
  margin: 0;
  line-height: 1.7;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-a-label {
  font-weight: 800;
  color: var(--fg);
}
.faq-answer[hidden] { display: none; }

@media (max-width: 840px) {
  .area-layout { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-brand { grid-column: span 2; }
}
@media (max-width: 520px) {
  .area-illustration-inner { padding: 22px; }
  .area-chip { font-size: 11px; padding: 4px 12px; }
  .directory-grid { grid-template-columns: 1fr; justify-items: start; }
  .directory-brand { grid-column: span 1; }
}
.help { color: var(--fg-muted); font-size: 14px; }
.notice-required { color: var(--fg); font-size: clamp(16px, 2.2vw, 18px); font-weight: 600; }
.link-cta { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 800; }
.link-cta:hover { color: var(--fg); }

/* Splash */
body.splash-active { overflow: hidden; }
.site-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 248, 242, .85), rgba(255, 248, 242, 0) 60%),
    radial-gradient(circle at 80% 35%, rgba(226, 238, 255, .85), rgba(226, 238, 255, 0) 58%),
    radial-gradient(circle at 40% 80%, rgba(255, 234, 234, .5), rgba(255, 234, 234, 0) 65%),
    linear-gradient(145deg, #fff3ec 0%, #f4ecff 45%, #e2f2ff 100%);
  color: #3f4a63;
  transition: opacity .5s ease, visibility .5s ease;
}
.site-splash--hide {
  opacity: 0;
  visibility: hidden;
}
.site-splash__content {
  text-align: center;
  display: grid;
  gap: 18px;
  padding: clamp(32px, 6vw, 56px);
  border-radius: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 35px 80px rgba(35, 61, 99, .18);
  backdrop-filter: blur(10px);
}
.site-splash__logo {
  width: clamp(110px, 22vw, 180px);
  height: clamp(110px, 22vw, 180px);
  margin: 0 auto;
}
.site-splash__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-splash__tagline {
  margin: 0;
  font-size: clamp(14px, 3vw, 20px);
  letter-spacing: .2em;
  color: rgba(63, 74, 99, .8);
}
.site-splash__title {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: .05em;
  color: #2f3a52;
}

/* Favorite button */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); cursor: pointer; font-weight: 700; box-shadow: var(--shadow); }
.fav-btn:hover { transform: translateY(-1px); }
.fav-btn .icon { font-size: 16px; line-height: 1; }
.fav-btn.active { background: rgba(116,141,174,.15); border-color: var(--fg); color: var(--fg); }

.store-detail { display: grid; gap: 24px; }
.store-detail-header { display: grid; gap: 6px; }
.store-detail-title { margin: 0; font-size: clamp(22px, 4vw, 32px); }
.store-detail-role { margin: 0; font-weight: 700; color: var(--brand); }
.store-detail-meta { margin: 0; color: var(--fg-muted); }
.store-detail-section { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); display: grid; gap: 12px; }
.store-detail-section h2 { margin: 0; font-size: clamp(18px, 3vw, 22px); }
.store-detail-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.store-detail-item { display: grid; gap: 2px; }
.store-detail-item-title { font-weight: 700; color: var(--fg-muted); font-size: 14px; }
.store-detail-item-body { margin: 0; color: var(--fg); }
.store-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-detail-actions .btn { flex: 1 1 180px; }
.store-detail-actions .fav-btn { flex: 1 1 180px; }

body.store-page .store-menu-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { flex: 1 1 200px; background: var(--panel); border: 1px solid var(--border); }
.admin-tab.active { background: var(--bg); color: var(--fg); border-color: var(--fg); }
.admin-tab.active:hover { transform: none; }
.admin-section { margin-top: 32px; display: grid; gap: 16px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
#ownerAdmin .panel:first-of-type { margin-top: 0; }
#ownerAdminContent { display: grid; gap: 32px; }
.store-portal { display: grid; gap: 32px; }
.store-portal-content { display: grid; gap: 32px; }
.store-portal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.store-portal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store-portal-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.store-portal-info dt { font-weight: 700; color: var(--fg-muted); }
.store-portal-info dd { margin: 4px 0 0; font-size: 15px; color: var(--fg); }
.store-portal-info p.help { margin-top: 12px; }
.store-login-form { max-width: 420px; }
.store-dashboard-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.store-dashboard-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.store-dashboard-card h3 { margin: 0; font-size: clamp(18px, 3vw, 22px); }
.store-dashboard-card p { margin: 0; color: var(--fg-muted); }
.store-dashboard-card .btn { justify-self: start; }
.store-dashboard-panel { display: grid; gap: 24px; margin-top: 24px; }
.store-plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(116,141,174,.25); background: linear-gradient(135deg, rgba(225,244,251,.72), rgba(233,231,251,.72)); }
.store-plan-summary h2 { margin: 2px 0; }
.store-plan-summary .help { margin: 0; }
.store-plan-label { margin: 0; color: var(--fg-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.store-dashboard-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.store-tab { border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius-sm); padding: 6px 14px; font-weight: 600; cursor: pointer; color: inherit; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.store-tab:hover { background: rgba(116, 141, 174, 0.12); border-color: var(--accent); color: var(--accent); }
.store-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.store-dashboard-sections { display: grid; gap: 24px; }
.store-dashboard-section { display: grid; gap: 16px; }
.store-posting-create { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.04)); }
.store-posting-create h3 { margin: 0; font-size: clamp(18px, 3vw, 22px); }
.store-posting-create-form { display: grid; gap: 14px; }
.store-posting-create .actions { display: flex; justify-content: flex-start; }
.store-posting-groups { display: grid; gap: 20px; }
.store-posting-group { display: grid; gap: 12px; }
.store-posting-group h3 { margin: 0; font-size: clamp(18px, 3vw, 22px); }
.store-posting-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.store-posting-card h4 { margin: 0; }
.store-posting-card .store-posting-meta { margin: 0; color: var(--fg-muted); }
.store-posting-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-applicant-list { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.store-rating-panel { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.store-rating-list { display: grid; gap: 12px; }
.store-rating-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--panel); display: grid; gap: 8px; }
.store-rating-header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.store-rating-name { margin: 0; font-size: clamp(16px, 2.6vw, 20px); }
.store-rating-meta { margin: 0; color: var(--fg-muted); font-size: 14px; }
.store-rating-bio { margin: 0; color: var(--fg-secondary); font-size: 14px; white-space: pre-line; }
.store-rating-empty { margin: 0; color: var(--fg-muted); }
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.table-scroll table { min-width: 720px; border-collapse: collapse; width: 100%; }
.owner-admin-table th,
.owner-admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  color: var(--fg);
}
.owner-admin-table thead th { background: rgba(116,141,174,.08); font-weight: 700; color: var(--fg); }
.owner-admin-table tbody tr:hover { background: rgba(116,141,174,.08); }
.owner-admin-table tbody tr:last-child td { border-bottom: none; }
.owner-admin-table .col-actions { text-align: right; white-space: nowrap; }
.owner-admin-table .col-actions .btn { margin-right: 8px; }
.owner-admin-table .col-actions .btn:last-of-type { margin-right: 0; }

.contract-tools {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 108, 93, .18);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 36px rgba(12,25,48,.1);
  display: grid;
  gap: 16px;
  max-width: 620px;
}
.contract-tools .contract-form { display: grid; gap: 12px; }
.contract-tools .contract-result {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(249,115,22,.4);
  background: rgba(254,235,200,.45);
  display: grid;
  gap: 6px;
}
.store-admin-list { display: grid; gap: 12px; }
.store-admin-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.store-admin-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.store-admin-card h4 { margin: 0; font-size: clamp(18px, 3vw, 22px); }
.store-admin-meta { color: var(--fg-muted); margin: 0; }
.store-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-status { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(34,197,94,.15); color: #15803d; }
.badge-status.closed { background: rgba(248,113,113,.2); color: #b91c1c; }
.store-detail-notes { color: var(--fg-muted); margin: 0; }

@media (max-width: 900px) {
  .site-header { width: 100%; margin: 0; }
}

/* Profile */
.profile-card { margin-top: 16px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 14px; }
.profile-card.empty { text-align: center; }
.profile-header { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(79, 180, 233, 0.2); background: #fff; box-shadow: var(--shadow); }
.profile-header-text { display: grid; gap: 6px; }
.profile-name { margin: 0; font-size: clamp(18px, 3vw, 22px); font-weight: 800; color: var(--fg); }
.profile-location { margin: 0; font-size: 14px; color: var(--fg-muted); }
.profile-rating { margin: 0; font-size: 14px; font-weight: 700; color: #4fb4e9; display: inline-flex; align-items: baseline; gap: 6px; }
.profile-rating-score { font-size: 16px; }
.profile-rating-stars { letter-spacing: 1px; color: #f59e0b; }
.profile-body { margin-top: 4px; }
.profile-games { display: grid; gap: 8px; margin-bottom: 16px; }
.profile-games-title { margin: 0; font-size: 14px; font-weight: 800; color: var(--fg); }
.profile-game-list { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-game-chip { display: inline-flex; padding: 5px 10px; border: 1px solid rgba(79,180,233,.28); border-radius: 999px; background: rgba(79,180,233,.09); color: var(--fg); font-size: 13px; line-height: 1.35; }
.profile-bio { margin: 0; font-size: 14px; line-height: 1.7; color: var(--fg); white-space: pre-line; }
.profile-actions { display: flex; gap: 8px; justify-content: flex-start; }

.profile-upload { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: rgba(79,180,233,.08); border: 1px dashed rgba(79,180,233,.4); }
.profile-upload-preview { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
#profileImagePreview { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .profile-header { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-header-text { justify-items: center; }
  .profile-upload { grid-template-columns: 1fr; text-align: center; }
  .profile-actions { justify-content: center; }
}

/* Forms */
.form { display: grid; gap: 14px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field.inline { grid-template-columns: 160px 1fr; align-items: center; gap: 10px; }
.field label { color: var(--fg); font-weight: 600; }
.field.required > label::after { content: ' *必須'; color: var(--danger); margin-left: 6px; font-weight: 700; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.dealer-games { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dealer-games legend { padding: 0 6px; color: var(--fg); font-weight: 700; }
.dealer-games.required > legend::after { content: ' *必須'; color: var(--danger); margin-left: 6px; font-weight: 700; }
.dealer-games .checkboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 10px; }
.dealer-games .checkboxes label { display: flex; align-items: flex-start; gap: 3px; font-weight: 500; }
.dealer-games .checkboxes input { margin-top: .25em; flex: 0 0 auto; }
.dealer-games-other { margin-top: 4px; }

@media (max-width: 560px) {
  .dealer-games .checkboxes { grid-template-columns: 1fr; }
}

/* Compact time range inputs */
.time-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.time-range input[type="time"] { width: 9.5ch; min-width: 90px; max-width: 120px; }
.time-range .help { margin: 0; }

input, select, textarea {
  appearance: none; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
/* Make checkbox inputs small squares */
input[type="checkbox"] {
  appearance: auto; /* restore native */
  width: auto; height: auto; padding: 0; margin: 0 6px 0 0;
  accent-color: var(--brand);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.22); }
input[required], textarea[required] { border-color: rgba(239,68,68,.6); }
input[required]:focus, textarea[required]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.22); }

/* Tables */
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table thead th { background: rgba(124,58,237,.08); color: var(--fg); position: sticky; top: 0; }
.table tbody tr:hover { background: rgba(127,127,127,.06); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--panel); padding: 18px 0; color: var(--fg-muted); }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.legal-footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }

/* Typography tweaks inside sections */
h1, h2, h3 { color: var(--fg); line-height: 1.25; }
h1 { font-size: clamp(22px, 4.2vw, 28px); margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0; }
p { margin: 0; }

/* Responsive */
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .field.inline { grid-template-columns: 1fr; }
}

/* Print (CSV exports readability) */
@media print {
  .site-header, .theme-toggle, .actions, .hero, .site-footer { display: none !important; }
  body { background: #fff; color: #748dae; }
  .table thead th { background: #f0f0f0; color: #748dae; }
}

/* Modal (policy, etc.) */
.modal-backdrop {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); z-index: 1000; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: min(860px, 100%); max-height: 85vh; overflow: auto; padding: 16px;
}
.modal .close-btn { appearance: none; border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  border-radius: var(--radius); padding: 8px 16px; cursor: pointer; box-shadow: var(--shadow); font-weight: 600; }
.modal .close-btn:hover { transform: translateY(-1px); }
.modal .content { display: grid; gap: 8px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* Small tagline next to brand in header */
.site-tagline {
  color: var(--header-fg);
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 15px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 1.2vw, 10px) clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, .86);
  border-radius: 999px;
  border: none;
  box-shadow: 0 14px 26px rgba(217, 169, 151, .2);
  line-height: 1.3;
  text-align: center;
}
.site-tagline:hover { filter: brightness(1.04); }

/* Messages */
.messages-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.messages-heading .title { margin-bottom: 4px; }
.messages-layout { display: grid; grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.messages-sidebar, .messages-thread { min-height: 560px; }
.messages-sidebar h2, .messages-thread h2 { margin: 0 0 14px; font-size: 1.15rem; }
.messages-new-form { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #e5e7eb; }
.messages-new-form > label { display: block; margin-bottom: 8px; font-weight: 700; }
.messages-new-row { display: flex; gap: 8px; }
.messages-new-row select { min-width: 0; flex: 1; }
.conversation-list { display: grid; gap: 8px; }
.conversation-item { position: relative; width: 100%; padding: 12px 34px 12px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item.active { border-color: #e03a3e; background: #fff7f7; }
.conversation-item-name { display: block; font-weight: 700; }
.conversation-item-preview { display: block; margin-top: 4px; overflow: hidden; color: #667085; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-unread-dot { position: absolute; top: 50%; right: 13px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 999px; background: #e03a3e; box-shadow: 0 0 0 1px rgba(224,58,62,.18); transform: translateY(-50%); }
.message-unread-badge { display: inline-flex; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: #e03a3e; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; vertical-align: middle; box-shadow: 0 2px 8px rgba(224,58,62,.28); }
.messages-thread { display: flex; flex-direction: column; }
.messages-thread-header { padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.message-list { flex: 1; min-height: 340px; max-height: 520px; padding: 16px 4px; overflow-y: auto; }
.message-row { display: flex; margin: 8px 0; }
.message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(78%, 560px); padding: 10px 13px; border-radius: 14px 14px 14px 3px; background: #f1f3f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.mine .message-bubble { border-radius: 14px 14px 3px 14px; background: #e03a3e; color: #fff; }
.message-time { display: block; margin-top: 5px; color: #7b8494; font-size: .72rem; }
.message-row.mine .message-time { color: rgba(255,255,255,.78); }
.message-send-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-top: 14px; border-top: 1px solid #e5e7eb; align-items: end; }
.message-send-form textarea { resize: vertical; }
@media (max-width: 720px) {
  .messages-layout { grid-template-columns: 1fr; }
  .messages-sidebar, .messages-thread { min-height: auto; }
  .message-list { min-height: 300px; }
  .message-send-form { grid-template-columns: 1fr; }
  .messages-new-row { align-items: stretch; flex-direction: column; }
}

/* Pricing */
.launch-promo-section { padding: 22px 0 0; background: linear-gradient(180deg, rgba(248,251,255,.95), transparent); }
.launch-promo { display: grid; justify-items: center; gap: 8px; padding: 22px clamp(18px, 4vw, 38px); border: 1px solid rgba(116,141,174,.28); border-radius: 22px; background: linear-gradient(135deg, rgba(225,244,251,.96), rgba(255,234,234,.92), rgba(233,231,251,.94)); box-shadow: 0 18px 40px rgba(47,58,82,.12); text-align: center; }
.launch-promo--pricing { width: min(760px, 100%); margin-top: 8px; }
.launch-promo__eyebrow { margin: 0; color: #748dae; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.launch-promo__title { margin: 0; color: #2f3a52; font-size: clamp(23px, 4vw, 36px); font-weight: 900; line-height: 1.3; }
.launch-promo__note { max-width: 700px; margin: 0; color: #5f6b80; font-size: 13px; }
.launch-promo .btn { margin-top: 6px; }
.pricing-page { background: linear-gradient(180deg, #f8fbff 0%, #ffeaea 55%, #fff 100%); }
.pricing-hero { padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 76px); text-align: center; background: radial-gradient(circle at 50% 0%, rgba(180,204,239,.55), transparent 58%); }
.pricing-hero .container { display: grid; justify-items: center; gap: 16px; }
.pricing-hero h1 { max-width: 760px; font-size: clamp(32px, 6vw, 58px); color: #2f3a52; letter-spacing: .02em; }
.pricing-hero > .container > p:not(.pricing-eyebrow) { max-width: 690px; font-size: clamp(16px, 2.5vw, 20px); color: #5f6b80; }
.pricing-eyebrow, .pricing-plan-name { margin: 0; color: #748dae; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.pricing-prelaunch { display: inline-flex; padding: 9px 14px; border: 1px solid rgba(116,141,174,.25); border-radius: 999px; background: rgba(255,255,255,.78); color: #52647c; font-size: 13px; font-weight: 700; }
.pricing-heading { margin-bottom: 34px; text-align: center; }
.pricing-heading h2 { font-size: clamp(26px, 4vw, 38px); color: #2f3a52; }
.pricing-heading p { color: #667085; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; border: 1px solid rgba(116,141,174,.22); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 20px 45px rgba(47,58,82,.10); }
.pricing-card--recommended { border: 2px solid #748dae; transform: translateY(-10px); box-shadow: 0 26px 55px rgba(76,99,130,.2); }
.pricing-badge { position: absolute; top: -14px; right: 22px; padding: 5px 13px; border-radius: 999px; background: #748dae; color: #fff; font-size: 12px; font-weight: 900; }
.pricing-card h3 { margin-top: 3px; font-size: 24px; color: #2f3a52; }
.pricing-price { display: flex; align-items: baseline; gap: 7px; color: #2f3a52; }
.pricing-price strong { font-size: clamp(38px, 5vw, 50px); line-height: 1; }
.pricing-price span, .pricing-description { color: #667085; }
.pricing-features { display: grid; gap: 11px; margin: 0 0 8px; padding: 0; list-style: none; color: #46566d; }
.pricing-features li { position: relative; padding-left: 25px; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: #748dae; font-weight: 900; }
.pricing-cta { width: 100%; margin-top: auto; justify-content: center; text-align: center; }
.pricing-options { display: grid; grid-template-columns: minmax(220px, .75fr) 1.5fr; gap: 28px; margin-top: 42px; padding: 30px; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.pricing-options h2 { margin-top: 6px; font-size: clamp(22px, 3vw, 30px); color: #2f3a52; }
.pricing-option-list { display: grid; gap: 10px; }
.pricing-option-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #e7eaf0; }
.pricing-option-list article:last-child { border-bottom: 0; }
.pricing-option-list h3 { color: #46566d; }
.pricing-option-list p { white-space: nowrap; color: #667085; }
.pricing-note { display: grid; justify-items: center; gap: 12px; margin-top: 30px; padding: 28px; border-radius: 22px; text-align: center; background: linear-gradient(135deg, rgba(225,244,251,.86), rgba(233,231,251,.86)); }
.pricing-note h2 { font-size: clamp(23px, 3vw, 32px); color: #2f3a52; }
.pricing-note p { max-width: 680px; color: #5f6b80; }
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--recommended { transform: none; }
  .pricing-options { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pricing-hero { padding-top: 48px; }
  .pricing-card, .pricing-options { padding: 22px 18px; }
  .pricing-option-list article { align-items: flex-start; flex-direction: column; }
  .store-plan-summary { align-items: flex-start; flex-direction: column; }
}
/* Always honor the HTML hidden attribute, even on grid/flex components. */
[hidden] {
  display: none !important;
}

/* Store analytics */
.store-analytics { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.store-analytics-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.store-analytics-header h3 { margin: 4px 0 0; }
.store-analytics-period { display: flex; gap: 8px; flex-wrap: wrap; }
.store-analytics-period-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.store-analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.store-analytics-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.store-analytics-card span { color: var(--fg-muted); font-size: .9rem; }
.store-analytics-card strong { font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.store-analytics-table-wrap { overflow-x: auto; }
.store-analytics-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.store-analytics-table th, .store-analytics-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: middle; }
.store-analytics-table th:first-child, .store-analytics-table td:first-child { text-align: left; }
.store-analytics-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .store-analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#activityAreas{min-height:12rem}.store-dealer-search{margin:1.5rem 0;padding:1.25rem;border:1px solid #ddd;border-radius:14px}.store-dealer-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1rem}.store-dealer-card{border:1px solid #ddd;border-radius:12px;padding:1rem;background:#fff}.store-dealer-card-head{display:flex;gap:.8rem;align-items:center;margin-bottom:.8rem}.store-dealer-card-head h4{margin:0}.store-dealer-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover}.store-dealer-label{font-weight:700;margin:.8rem 0 .35rem}.store-dealer-bio{white-space:pre-wrap;margin:.8rem 0}

/* Region-grouped activity area selector */
.area-region-list{display:grid;gap:.65rem;margin-top:.6rem}
.area-region{border:1px solid #ddd;border-radius:10px;background:#fff}
.area-region summary{cursor:pointer;font-weight:700;padding:.8rem 1rem;user-select:none}
.area-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.55rem;padding:0 1rem 1rem}
.area-check{display:flex;align-items:center;gap:.45rem;padding:.5rem .6rem;border:1px solid #e3e3e3;border-radius:8px;cursor:pointer}
.area-check input{width:auto;margin:0}
.field-label{display:block;font-weight:700;margin-bottom:.35rem}
.store-area-filters{display:flex;gap:.75rem;flex-wrap:wrap;align-items:end}
.store-area-filters .field{min-width:150px;margin:0}
@media(max-width:640px){.area-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-area-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}}

.dealer-work-profile,.store-scout-extra-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:1rem 0}
.store-scout-management{margin:1.5rem 0;padding:1.25rem;border:1px solid #ddd;border-radius:14px}
.store-scout-management-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.scout-pipeline-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-bottom:1px solid #eee}
@media(max-width:760px){.store-scout-management-grid{grid-template-columns:1fr}}

.seo-intro{padding:2.5rem 0}.seo-intro h2{margin-bottom:.75rem}.seo-intro p{max-width:850px;line-height:1.8}

/* Stripe billing */
.store-billing-card{margin:1rem 0 1.5rem;padding:1rem;border:1px solid rgba(0,0,0,.12);border-radius:14px;background:#fff}
.store-billing-payment-element{max-width:720px;margin:1rem 0}
.store-billing-card .actions{margin-top:1rem}

/* Stripe card registration */
.store-billing-payment-element {
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  min-height: 50px;
  box-sizing: border-box;
}
.store-billing-payment-element.StripeElement--focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.store-billing-payment-element.StripeElement--invalid {
  border-color: #dc2626;
}

.store-billing-name-label{display:block;font-weight:700;margin:.9rem 0 .35rem}
.store-billing-name-input{display:block;width:min(100%,720px);box-sizing:border-box;padding:.85rem 1rem;border:1px solid rgba(0,0,0,.18);border-radius:12px;background:#fff;color:#1f2937;font-size:16px}
.store-billing-name-input:focus{outline:2px solid rgba(59,130,246,.28);border-color:#3b82f6}


/* DEALS billing usage sandbox */
.store-billing-usage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.store-billing-usage-summary>div{border:1px solid rgba(40,64,100,.14);border-radius:14px;padding:14px;background:rgba(255,255,255,.72);display:flex;flex-direction:column;gap:6px}
.store-billing-usage-summary span{font-size:.86rem;color:#65718a}
.store-billing-usage-summary strong{font-size:1.2rem}
.store-billing-usage-history{display:grid;gap:8px}
.store-billing-usage-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 12px;border-top:1px solid rgba(40,64,100,.1)}
.store-billing-usage-row small{color:#7b8497;font-weight:400;margin-left:6px}
@media(max-width:720px){.store-billing-usage-summary{grid-template-columns:1fr}.store-billing-usage-row{align-items:flex-start}}

.deals-fee-summary { width: 100%; }
.deals-fee-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 4px; text-align: left; }
.deals-fee-card { padding: 20px 18px; border: 1px solid rgba(116,141,174,.2); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 10px 24px rgba(47,58,82,.07); }
.deals-fee-card__label { margin: 0 0 8px; color: #52647c; font-size: 14px; font-weight: 900; }
.deals-fee-card__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 10px; color: #2f3a52; }
.deals-fee-card__price strong { font-size: clamp(30px, 4vw, 42px); line-height: 1; }
.deals-fee-card__price span { color: #667085; font-size: 13px; font-weight: 700; }
.deals-fee-card > p:last-child { margin: 0; color: #5f6b80; font-size: 13px; line-height: 1.7; }
.deals-fee-summary__rule { max-width: 860px; margin: 8px 0 0; color: #46566d; font-size: 13px; font-weight: 700; }
@media (max-width: 760px) { .deals-fee-grid { grid-template-columns: 1fr; } .deals-fee-card { text-align: left; } }


/* Owner admin billing overview */
.owner-admin-billing-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.owner-admin-billing-actions{align-items:flex-end;display:flex}
.billing-admin-status{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(100,116,139,.14);color:#475569;white-space:nowrap}
.billing-admin-status.paid{background:rgba(34,197,94,.15);color:#15803d}
.billing-admin-status.pending,.billing-admin-status.unbilled{background:rgba(245,158,11,.16);color:#a16207}
.billing-admin-status.failed,.billing-admin-status.card-required,.billing-admin-status.uncollectible{background:rgba(248,113,113,.2);color:#b91c1c}
.billing-admin-card-ok{font-weight:700;color:#15803d}
.billing-admin-card-missing{font-weight:700;color:#b91c1c}
@media(max-width:900px){.owner-admin-billing-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.owner-admin-billing-summary{grid-template-columns:1fr}}

/* SEO landing pages: visible to users, but intentionally low-profile in site navigation */
.seo-landing-hero{padding-bottom:20px}
.seo-landing-hero h1{margin:.35rem 0 .8rem}
.seo-landing-lead{max-width:780px;line-height:1.9}
.seo-breadcrumb{display:flex;gap:.45rem;flex-wrap:wrap;font-size:.88rem;margin-bottom:1.25rem;opacity:.8}
.seo-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.seo-landing-copy{max-width:900px}
.seo-landing-copy p{line-height:1.9}
.seo-link-title{font-size:1.2rem;margin-top:0}
.seo-related-links{text-align:center;padding-top:18px}
.seo-related-links p,.seo-feature-links{line-height:1.8}
.seo-feature-links{text-align:center;margin:20px 0 0;font-size:.95rem}

/* SEO complete additions */
.seo-category-intro{margin:10px 0 16px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.55)}
.seo-category-intro h2{font-size:1rem;margin:0 0 6px}
.seo-category-intro p{margin:0;line-height:1.7}

/* Store search / job image enhancements */
.owner-admin-store-search { max-width: 720px; margin: 12px 0 16px; }
.owner-admin-store-search input { width: 100%; }
.store-posting-image-preview { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.store-posting-image-preview[hidden] { display: none; }
.store-posting-image-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.job-card-image { width: 112px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #f4f6f8; }
.store-detail-job-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.store-detail-job-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.store-posting-admin-image { width: 120px; max-height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0; }
@media (max-width: 640px) { .job-card-image { width: 100%; height: 170px; } .store-posting-image-preview, .store-detail-job-gallery { grid-template-columns: 1fr; } }

/* Billing / application caps */
.store-billing-limit-box{margin-top:16px;padding:14px;border:1px solid rgba(31,58,91,.14);border-radius:14px;background:rgba(247,250,255,.75)}
.store-billing-limit-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.store-billing-limit-controls input{min-width:180px;max-width:280px}
.store-posting-limit-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.store-posting-limit-row input{width:110px}
.store-posting-limit-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:rgba(31,58,91,.08);font-size:.9rem}
.job-cap-reached{margin:.5rem 0;color:#9f3a38;font-weight:700}
@media (max-width:700px){.store-billing-limit-controls{align-items:stretch}.store-billing-limit-controls input,.store-billing-limit-controls .btn{width:100%;max-width:none}.store-posting-limit-row input{width:100%}}


/* ===== Dashboard side navigation (store / owner) ===== */
.dashboard-nav-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:20px; align-items:start; margin-top:18px; }
.dashboard-main-content { min-width:0; }
.dashboard-side-nav { position:sticky; top:18px; display:flex; flex-direction:column; gap:6px; padding:14px; border:1px solid var(--border,#d9dee8); border-radius:16px; background:rgba(255,255,255,.97); box-shadow:0 8px 26px rgba(22,35,62,.06); z-index:10; }
.dashboard-side-nav-title { font-weight:800; font-size:.9rem; padding:4px 8px 8px; color:#42516b; }
.dashboard-side-nav a { display:block; padding:10px 11px; border-radius:10px; color:#24324a; text-decoration:none; font-weight:700; line-height:1.35; }
.dashboard-side-nav a:hover,.dashboard-side-nav a:focus-visible { background:#eef4ff; color:#245eea; outline:none; }
.dashboard-anchor { scroll-margin-top:22px; }
html { scroll-behavior:smooth; }
@media (max-width:880px) { .dashboard-nav-layout{display:block;} .dashboard-side-nav{position:sticky;top:0;flex-direction:row;overflow-x:auto;white-space:nowrap;margin:0 0 16px;padding:10px;border-radius:14px;-webkit-overflow-scrolling:touch;} .dashboard-side-nav-title{display:none;} .dashboard-side-nav a{flex:0 0 auto;padding:9px 12px;} .dashboard-anchor{scroll-margin-top:74px;} }
