/* ============================================================
   JUMP GLASS — Landing Page Stylesheet
   Design token + utility layer
   ============================================================ */

:root {
  --green:       #6bbf3a;
  --green-dark:  #376d24;
  --green-footer:#1e2d17;
  --yellow:      #ffd600;
  --yellow-btn:  #ffd220;
  --black:       #111111;
  --dark-bg:     #1d1f22;
  --light-bg:    #fcfef4;
  --white:       #ffffff;
  --border:      #ececec;
  --border-card: #e8e8e8;
  --text-soft:   #686868;
  --text-muted:  #8a8a8a;
  --shadow-card: 0 2px 12px rgba(17,17,17,0.07);
  --shadow-lg:   0 16px 40px rgba(17,17,17,0.06);
  --radius-lg:   22px;
  --radius-md:   18px;
  --radius-sm:   14px;
  --font-family: "Noto Sans Thai", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--black);
  background: #f0f0f0;
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ── Shell & Surface ────────────────────────────────────────── */
.landing-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 10px 32px;
}

.landing-surface {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(17,17,17,0.10);
  overflow: hidden;         /* clips child radii against surface edges */
}

.landing-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;              /* ระยะห่างระหว่าง section */
  padding-bottom: 10px;  /* พื้นที่ด้านล่างก่อน footer */
}

/* ── Generic card defaults ───────────────────────────────────── */
.landing-card {
  border-radius: 0;
  background: transparent;
}

.mainsite-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
}

.mainsite-header {
  position: relative;
  min-height: 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.mainsite-header-logo {
  width: 162px;
  height: auto;
}

.mainsite-header-home {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.mainsite-menu {
  width: 34px;
  height: 34px;
  justify-self: end;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mainsite-menu-wrap {
  position: relative;
  justify-self: end;
}

.mainsite-menu-line {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--black);
}

.mainsite-menu-line.top,
.mainsite-menu-line.bottom {
  width: 22px;
}

.mainsite-menu-line.middle {
  width: 14px;
  background: var(--black);
}

.mainsite-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.1);
  z-index: 20;
}

.mainsite-menu-panel[hidden] {
  display: none !important;
}

.mainsite-menu-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.mainsite-menu-panel a:hover {
  background: #f5f5f5;
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card-landing {
  padding: 0 20px 18px;
}

/* Logo */
.logo { height: auto; }
.landing-logo {
  width: 250px;
}

/* Headline */
.landing-copy {
  margin-top: 24px;
}

.landing-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--black);
}

.landing-title span {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-weight: 800;
}

.landing-subtitle {
  margin: 16px 0 0;
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(107, 191, 58, 0.22);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hero-cta-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Product image */
.landing-product-stage {
  margin: 20px 0 10px;
  text-align: center;
}

.hero-product-image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
}

/* ── Feature row (3 film types) ─────────────────────────────── */
.landing-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.landing-feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-feature-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto;
}

.landing-feature-icon svg {
  width: 100%;
  height: 100%;
}

.landing-feature strong {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.landing-feature small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

/* ============================================================
   WHY JUMP GLASS
   ============================================================ */
.why-card {
  padding: 22px 20px 20px;
  background: var(--light-bg);
  border: 1px solid #ddefc5;  /* ขอบเขียวอ่อน */
  border-radius: 18px;        /* มุมโค้ง */
  margin: 0 12px;             /* ห่างจากขอบซ้าย-ขวา */
}

.why-card h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
}

.why-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.why-item small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ============================================================
   WHOLESALE CTA
   ============================================================ */
.wholesale-cta {
  position: relative;
  z-index: 2;
  padding: 26px 20px 24px;
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  border-radius: 18px;   /* มุมโค้ง */
  margin: 0 12px;        /* ห่างจากขอบซ้าย-ขวา */
}

.wholesale-cta h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.wholesale-cta p {
  margin: 10px 0 18px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  font-weight: 400;
}

.sales-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffe040 0%, #ffd018 100%);
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
  letter-spacing: -0.01em;
}

.sales-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.line-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0 0;
  min-height: 50px;
  border-radius: 999px;
  background: var(--white);
  color: #1e3d10;
  font-size: 15px;
  font-weight: 600;
}

.line-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: visible;
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  margin: -48px 12px 0;
  padding: 38px 20px 22px;
  background: var(--dark-bg);
  color: var(--white);
  text-align: center;
  border-radius: 18px;
}

.footer-brand-logo {
  width: 160px;
  margin: 0 auto;
  mix-blend-mode: screen;   /* พื้นขาวของ PNG กลืนหายกับ dark footer */
}

.landing-footer-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}

.landing-footer-links span {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

.landing-footer-links a {
  color: rgba(255,255,255,0.88);
  transition: color 0.15s;
}

.landing-footer-links a:hover {
  color: var(--white);
}

.landing-footer-copy {
  margin-top: 14px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* ============================================================
   STEP 1 PAGE
   ============================================================ */
.step-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 10px 32px;
  background: #f0f0f0;
}

.step-surface {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(17,17,17,0.10);
  overflow: hidden;
}

.step-content {
  padding: 16px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.step-page-title {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.step-page-subtitle {
  margin: 8px 0 16px;
  color: #525252;
  font-size: 16px;
  line-height: 1.6;
}

.step-search-form {
  margin-bottom: 20px;
}

.step-search-wrap {
  position: relative;
  display: block;
}

.step-search-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,191,58,0.12);
}

.step-search-input::placeholder {
  color: #8c8c8c;
}

.step-primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.step-primary-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.step-search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid #1f1f1f;
  border-radius: 50%;
  transform: translateY(-50%);
}

.step-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #1f1f1f;
  transform: rotate(45deg);
}

.step-brand-section {
  margin-bottom: 20px;
}

.step-brand-form {
  display: block;
}

.step-brand-submit {
  margin-top: 16px;
}

.step-section-label {
  margin-bottom: 12px;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 600;
}

.step-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-brand-button {
  min-height: 58px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.step-brand-button:hover {
  transform: translateY(-1px);
}

.step-brand-button.is-active {
  border-color: transparent;
  background: var(--green);
  color: var(--white);
}

.step-brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.step-other-dots {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.step-other-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.step-info-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f5f8f2;
}

.step-info-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.step-info-body {
  flex: 1;
}

.step-info-title {
  color: var(--black);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.step-info-subtitle {
  margin-top: 2px;
  color: #5a5a5a;
  font-size: 14px;
  line-height: 1.5;
}

.step-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  margin-top: 14px;
}

.step-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-info-item-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.8px solid currentColor;
  border-radius: 6px;
  margin-top: 2px;
}

.step-info-item-icon.clear {
  color: #f2c300;
  transform: rotate(45deg);
  border-radius: 4px;
}

.step-info-item-icon.privacy {
  color: var(--green);
  position: relative;
}

.step-info-item-icon.privacy::before {
  content: "◔";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.step-info-item-icon.matte {
  color: #8a8a8a;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.18), rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
}

.step-info-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.step-info-item small {
  display: block;
  margin-top: 2px;
  color: #727272;
  font-size: 12px;
  line-height: 1.35;
}

.step-search-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.step-search-context {
  color: #525252;
  font-size: 14px;
  line-height: 1.55;
}

.step-secondary-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.step-model-list {
  display: grid;
  gap: 12px;
}

.step-model-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step-model-card:hover {
  transform: translateY(-1px);
  border-color: #d7e9c8;
  box-shadow: 0 10px 20px rgba(17,17,17,0.06);
}

.step-model-copy {
  min-width: 0;
}

.step-model-brand {
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 700;
}

.step-model-name {
  margin-top: 4px;
  color: var(--black);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.step-model-meta {
  margin-top: 6px;
  color: #666666;
  font-size: 13px;
}

.step-model-arrow {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}

.step-empty-state {
  padding: 20px 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 18px;
  background: #fafafa;
}

.step-empty-state strong {
  display: block;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.step-empty-state p {
  margin: 10px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.step-empty-button {
  display: inline-flex;
  text-decoration: none;
}

/* ============================================================
   SEARCH / APP PAGES (kept for other pages)
   ============================================================ */
.page-shell {
  padding: 16px 12px 32px;
}

.mobile-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.card, .panel, .result-card, .stat-card, .table-card, .login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card { padding: 24px; }

.logo.logo-sm { width: 150px; }

/* ── Typography ─────────────────────────────────────────────── */
.hero-title, .section-title, .page-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero-title          { font-size: 32px; }
.hero-title span     { display: block; margin-top: 6px; color: var(--green); }
.section-title       { margin-top: 14px; font-size: 30px; }
.section-subtitle, .hero-subtitle, .page-subtitle { color: var(--text-soft); }
.hero-subtitle       { margin: 16px 0 0; font-size: 18px; line-height: 1.65; }
.section-subtitle    { margin: 10px 0 0; line-height: 1.6; }

/* ── Step label ─────────────────────────────────────────────── */
.step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

/* ── Search form ────────────────────────────────────────────── */
.search-form { margin-top: 20px; }

.input-wrap { position: relative; }

.text-input {
  width: 100%;
  min-height: 58px;
  padding: 16px 62px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
}

.text-input:focus {
  outline: 2px solid rgba(107,191,58,0.16);
  border-color: var(--green);
}

.search-button {
  position: absolute;
  top: 8px; right: 8px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.search-lens {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--black);
  border-radius: 50%;
  position: relative;
}

.search-lens::after {
  content: "";
  position: absolute;
  right: -7px; bottom: -4px;
  width: 8px; height: 2px;
  background: var(--black);
  transform: rotate(45deg);
  border-radius: 999px;
}

/* ── Brand block ────────────────────────────────────────────── */
.brand-block { margin-top: 22px; }
.block-label { margin-bottom: 12px; font-size: 14px; font-weight: 600; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Buttons & tags ─────────────────────────────────────────── */
.tag-button, .button-primary, .button-secondary, .cta-button, .film-card {
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tag-button:hover, .button-primary:hover,
.button-secondary:hover, .cta-button:hover, .film-card:hover {
  transform: translateY(-1px);
}

.tag-button {
  min-height: 58px;
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

.tag-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* ── Info card (soft) ───────────────────────────────────────── */
.soft-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8fbf3;
}

.info-card-icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 800;
  flex: 0 0 auto;
}

.info-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}

.info-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ── Device card ────────────────────────────────────────────── */
.device-card, .result-top, .sku-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.device-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}

.device-brand   { margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.device-name, .result-device-name { font-size: 26px; line-height: 1.1; font-weight: 800; }
.device-caption { margin-top: 18px; font-size: 14px; color: var(--text-soft); }
.device-selected{ margin-top: 4px; font-size: 18px; font-weight: 700; }

/* ── Film card list ─────────────────────────────────────────── */
.film-card-list { display: grid; gap: 12px; margin-top: 18px; }

.film-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  text-align: left;
}

.film-card.is-active { border: 2px solid var(--green); }

.film-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 2px solid currentColor;
}

.film-crystal_clear  { color: var(--black); transform: rotate(45deg) scale(0.8); }
.film-matte          { color: #818181; background: repeating-linear-gradient(135deg,rgba(0,0,0,0.18),rgba(0,0,0,0.18) 2px,transparent 2px,transparent 4px); }
.film-privacy        { color: var(--black); position: relative; }
.film-privacy::before{ content:"◔"; position:absolute; inset:0; display:grid; place-items:center; font-size:22px; }

.film-card-copy strong,
.film-card-copy small,
.film-card-copy em   { display: block; }

.film-card-copy strong { font-size: 18px; font-weight: 800; }

.film-card-copy small,
.film-card-copy em {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 14px;
  font-style: normal;
}

.film-card-check {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #dddddd;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.film-card.is-active .film-card-check { background: var(--green); }

/* ── Result section ─────────────────────────────────────────── */
.result-section { display: grid; gap: 18px; }
.result-device-name { margin: 0; }
.result-film-type { margin-top: 10px; line-height: 1.5; color: var(--text-soft); }

.sku-box {
  padding: 18px;
  border-radius: 20px;
  background: #f8f7f1;
}

.sku-label { font-size: 14px; color: var(--text-soft); }

.sku-value {
  margin-top: 8px;
  color: var(--green);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ── Shared button sizes ─────────────────────────────────────── */
.button-primary, .button-secondary, .cta-button {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 800;
}

.button-primary   { background: var(--black); color: var(--white); }
.button-secondary { background: var(--yellow); color: var(--black); }
.full-width       { width: 100%; }

/* ── Result block ───────────────────────────────────────────── */
.result-block { display: grid; gap: 12px; }
.block-title  { font-size: 16px; font-weight: 800; }

.compatible-list {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.compatible-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}

.compatible-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 900;
}

.note-box { padding: 16px; border-radius: 18px; background: var(--light-bg); }
.note-box p { margin: 10px 0 0; color: #4e4e4e; line-height: 1.65; }

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, #4d842a 0%, #2f5720 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; }
.cta-section p  { margin: 12px 0 18px; color: rgba(255,255,255,0.82); line-height: 1.65; }

.cta-button {
  width: 100%;
  border-color: transparent;
  background: var(--yellow);
  color: var(--black);
}

.line-id {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: #27451a;
  font-weight: 700;
}

/* ── Footer (app pages) ─────────────────────────────────────── */
.footer-card { text-align: center; }
.footer-logo { width: 132px; margin: 0 auto; }

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 12px;
  font-weight: 600;
}

.footer-copy { font-size: 14px; color: var(--text-soft); }

/* ── Tables / Admin ─────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }

.table-card { padding: 18px; overflow: hidden; }
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
}

/* ── Login ──────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card { width: min(460px,100%); padding: 26px; }

/* ── Utilities ──────────────────────────────────────────────── */
.stack        { display: grid; gap: 14px; }
.stats-grid   { display: grid; gap: 14px; }
.stat-card    { padding: 18px; }

.stat-value {
  margin: 10px 0 4px;
  font-size: 34px;
  font-weight: 900;
}

.muted { color: var(--text-soft); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .page-shell { padding-top: 24px; }
  .mobile-frame { max-width: 420px; }
}

/* ============================================================
   STEP 3 — FILM TYPE SELECTION
   ============================================================ */
.step-film-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.step-film-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: var(--white);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.step-film-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 18px rgba(107, 191, 58, 0.15);
  transform: translateY(-1px);
}

.step-film-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-film-icon svg {
  width: 52px;
  height: 52px;
}

.step-film-copy {
  flex: 1;
  min-width: 0;
}

.step-film-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.step-film-sublabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.step-film-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 5px;
  line-height: 1.5;
}

/* ============================================================
   STEP 4 — SKU RESULTS
   ============================================================ */

/* ── Film badge ─────────────────────────────────────────── */
.result-film-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.result-film-badge--clear   { background: #fff4d6; color: #c47f00; }
.result-film-badge--matte   { background: #e8f7de; color: #3a7d1a; }
.result-film-badge--privacy { background: #e8f7de; color: #3a7d1a; }

/* ── Section label + demo tag ───────────────────────────── */
.result-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

.result-demo-tag {
  background: #f0f0f0;
  color: #888;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── SKU list ────────────────────────────────────────────── */
.result-sku-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-sku-card {
  background: var(--white);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 14px 14px 12px;
}

.result-sku-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-sku-model {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.result-sku-seq {
  font-size: 11px;
  color: var(--text-soft);
}

.result-sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--light-bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.result-sku-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* ── Copy button ─────────────────────────────────────────── */
.result-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border-card);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.result-copy-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.result-copy-btn.is-copied {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.copy-icon {
  width: 14px;
  height: 14px;
}

/* ── Compatible models card ──────────────────────────────── */
.result-compatible-card {
  background: var(--white);
  border: 1.5px solid #ddefc5;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-top: 10px;
}

.result-compatible-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.compat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.result-compatible-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-compatible-list li {
  background: #e8f7de;
  color: var(--green-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Note card ───────────────────────────────────────────── */
.result-note-card {
  display: flex;
  gap: 12px;
  background: #fffbf0;
  border: 1.5px solid #f0dea0;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-top: 10px;
}

.result-note-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
}

.result-note-body { flex: 1; min-width: 0; }

.result-note-title {
  font-size: 12px;
  font-weight: 700;
  color: #9a6f00;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-note-text {
  font-size: 13px;
  color: #5a4200;
  line-height: 1.55;
  margin: 0 0 4px;
}
.result-note-text:last-child { margin-bottom: 0; }

/* ── Bottom action button ────────────────────────────────── */
.result-bottom-actions {
  padding: 16px 20px 4px;
}

.result-restart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* ============================================================
   ADMIN PANEL — Mobile-First Professional Design
   ============================================================ */

/* ── Reset for admin ─────────────────────────────────────── */
.adm * { box-sizing: border-box; }

/* ── Admin Wrapper ───────────────────────────────────────── */
.adm-shell {
  min-height: 100vh;
  background: #f0f2f5;
  padding-bottom: 80px; /* space for bottom nav */
  font-family: "Noto Sans Thai", sans-serif;
}

/* ── Sticky Top Nav ──────────────────────────────────────── */
.adm-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-bottom: 1px solid #e5e7eb;
}

.adm-topnav-logo {
  height: 28px;
  width: auto;
}

.adm-topnav-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  flex: 1;
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-topnav-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--green);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-left: 8px;
  white-space: nowrap;
}

.adm-topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-topnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.adm-topnav-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ── Bottom Tab Nav (mobile primary navigation) ──────────── */
.adm-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.adm-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 12px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.adm-nav-item.is-active { color: var(--green); }
.adm-nav-item:hover { color: #374151; }

.adm-nav-icon {
  font-size: 22px;
  line-height: 1;
}

/* ── Page container ──────────────────────────────────────── */
.adm-page {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.adm-page-wide {
  padding: 16px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Page header ─────────────────────────────────────────── */
.adm-page-header {
  margin-bottom: 20px;
}

.adm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.adm-breadcrumb a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.adm-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  margin: 0;
}

.adm-page-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}

/* ── Stat cards ──────────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.adm-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.adm-stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111;
  line-height: 1;
}

.adm-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 6px;
}

.adm-stat-card.is-green .adm-stat-value { color: var(--green); }
.adm-stat-card.is-muted .adm-stat-value { color: #9ca3af; }

/* ── Card / Panel ────────────────────────────────────────── */
.adm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 14px;
}

.adm-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
}

.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.adm-btn:hover { transform: translateY(-1px); opacity: 0.93; }
.adm-btn:active { transform: translateY(0); }

.adm-btn-primary  { background: var(--green); color: #fff; border-color: var(--green); }
.adm-btn-dark     { background: #111; color: #fff; border-color: #111; }
.adm-btn-ghost    { background: transparent; color: #374151; border-color: #d1d5db; }
.adm-btn-ghost:hover { background: #f3f4f6; }
.adm-btn-danger   { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.adm-btn-danger:hover { background: #fca5a5; }

.adm-btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

.adm-btn-full { width: 100%; }

/* ── Form Controls ───────────────────────────────────────── */
.adm-form { display: grid; gap: 14px; }

.adm-field { display: grid; gap: 6px; }

.adm-field-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.adm-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.03em;
}

.adm-label span { color: #ef4444; }

.adm-input,
.adm-select,
.adm-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.adm-textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,191,58,0.14);
}

.adm-input[readonly] {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.adm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.adm-field-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────── */
.adm-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.55;
}

.adm-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.adm-alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.adm-alert-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.adm-alert-warn    { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }

/* ── Table (mobile: card list, desktop: table) ───────────── */
.adm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -18px;
  padding: 0 18px 4px;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.adm-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.adm-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #111;
  vertical-align: middle;
}

.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: #f9fafb; }

.adm-table-toolbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.adm-table-subtitle {
  margin-top: 2px;
  color: #9ca3af;
  font-size: 12px;
}

.adm-bulk-bar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.adm-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.adm-row-checkbox,
.adm-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

/* ── Tags / Badges ───────────────────────────────────────── */
.adm-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.adm-tag-green   { background: #dcfce7; color: #15803d; }
.adm-tag-gray    { background: #f3f4f6; color: #6b7280; }
.adm-tag-yellow  { background: #fef9c3; color: #92400e; }

.adm-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* ── Search bar ──────────────────────────────────────────── */
.adm-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}

.adm-search-input-wrap {
  flex: 1;
  position: relative;
}

.adm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}

.adm-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-family: inherit;
}

.adm-search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,191,58,0.12);
}

.adm-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.adm-filter-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.adm-filter-select:focus {
  outline: none;
  border-color: var(--green);
}

/* ── Action buttons in table ─────────────────────────────── */
.adm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .adm-table-toolbar,
  .adm-bulk-bar,
  .adm-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Import tabs ─────────────────────────────────────────── */
.adm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}

.adm-tab {
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.adm-tab.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.adm-tab-panel { display: none; }
.adm-tab-panel.is-active { display: block; }

/* ── Upload zone ─────────────────────────────────────────── */
.adm-upload {
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.adm-upload:hover,
.adm-upload.is-over { border-color: var(--green); background: rgba(107,191,58,0.04); }

.adm-upload input[type="file"] { display: none; }

.adm-upload-icon { font-size: 36px; margin-bottom: 10px; }

.adm-upload-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 12px;
}

.adm-upload-label {
  display: inline-block;
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.adm-upload-file-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* ── Import log item ─────────────────────────────────────── */
.adm-log-item {
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.adm-log-item:last-child { border-bottom: none; }

.adm-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.adm-log-time {
  font-size: 12px;
  color: #9ca3af;
}

.adm-log-by {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.adm-log-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-log-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
}

.adm-log-stat.ins  { background: #dcfce7; color: #15803d; }
.adm-log-stat.upd  { background: #dbeafe; color: #1d4ed8; }
.adm-log-stat.skip { background: #f3f4f6; color: #6b7280; }
.adm-log-stat.err  { background: #fee2e2; color: #b91c1c; }

.adm-log-msg {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.5;
  word-break: break-all;
}

/* ── Help / CSV format ───────────────────────────────────── */
.adm-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.adm-help-table th,
.adm-help-table td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.adm-help-table th {
  background: #f9fafb;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.adm-code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  color: #374151;
}

/* ── Admin Login Page ────────────────────────────────────── */
.adm-login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, #111 0%, #1d2a14 60%, #2a3d1a 100%);
}

.adm-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.adm-login-logo {
  width: 160px;
  margin: 0 auto 6px;
  display: block;
}

.adm-login-badge {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.adm-login-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.adm-login-sub {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 22px;
}

/* ── Dashboard quick links ───────────────────────────────── */
.adm-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.adm-quick-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.adm-quick-link:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(107,191,58,0.15);
  transform: translateY(-1px);
}

.adm-quick-link-icon { font-size: 26px; }
.adm-quick-link-label { font-size: 14px; font-weight: 700; }
.adm-quick-link-sub   { font-size: 12px; color: #6b7280; }

/* ── Responsive: wider layout ────────────────────────────── */
@media (min-width: 640px) {
  .adm-shell { padding-bottom: 0; }
  .adm-bottom-nav { display: none; }
  .adm-topnav-btn span { display: inline; }

  .adm-stats { grid-template-columns: repeat(4, 1fr); }

  .adm-field-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .adm-field-2 { grid-template-columns: 1fr; }
  .adm-quick-links { grid-template-columns: 1fr 1fr; }
}


/* ── Admin Shell ─────────────────────────────────────────── */
.site-shell {
  min-height: 100vh;
  background: #f4f5f7;
  padding: 0 0 48px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-subtitle {
  color: var(--text-soft);
  font-size: 14px;
  margin: 4px 0 0;
}

/* ── Panel / Card ────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(17,17,17,0.05);
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.table-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(17,17,17,0.05);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.table-toolbar h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -22px;
  padding: 0 22px;
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(17,17,17,0.05);
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 8px 0 2px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Form Controls ───────────────────────────────────────── */
.search-grid {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  align-items: end;
}

@media (max-width: 700px) {
  .search-grid { grid-template-columns: 1fr; }
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.input,
.select,
textarea.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
textarea.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,191,58,0.12);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: #d1d5db;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-danger:hover {
  background: #fca5a5;
}

.btn-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* ── Toolbar ─────────────────────────────────────────────── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ── Table ───────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 14px;
}

th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover { background: #f9fafb; }
tbody tr:last-child td { border-bottom: none; }

/* ── Tags / Badges ───────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-active {
  background: #dcfce7;
  color: #15803d;
}

.status-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* ── Muted text ──────────────────────────────────────────── */
.muted {
  color: var(--text-soft);
  font-size: 13px;
}

/* ── Admin Login ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f5f7;
}

.login-card {
  width: min(440px, 100%);
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(17,17,17,0.08);
}

/* ── Form groups ─────────────────────────────────────────── */
.stack { display: grid; gap: 16px; }

.form-group { display: grid; gap: 6px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── File upload zone ────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--green);
  background: rgba(107,191,58,0.04);
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-zone-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.upload-zone-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.upload-zone-label {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Import method tabs ──────────────────────────────────── */
.import-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.import-tab {
  padding: 12px 16px;
  border: none;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.import-tab.is-active {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 -2px 0 var(--green);
}

.import-panel { display: none; }
.import-panel.is-active { display: block; }

/* ── Action cell ─────────────────────────────────────────── */
.action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 600;
}

.breadcrumb span { color: #d1d5db; }

/* ── CSV format help table ───────────────────────────────── */
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.help-table th,
.help-table td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.help-table th {
  background: #f9fafb;
  font-weight: 700;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.help-table code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #374151;
}
