:root {
  --bg: #f3ecdf;
  --bg-2: #e7efe6;
  --panel: #fffdf8;
  --line: rgba(27, 58, 47, 0.12);
  --text: #1c2b24;
  --muted: #5d6d63;
  --gold: #c4a15a;
  --gold-deep: #8d6b2d;
  --gold-soft: #f3e6c4;
  --blue: #2f6a4a;
  --blue-deep: #1b3a2f;
  --blue-soft: #e4efe6;
  --ember: #a34b2e;
  --clay: #a34b2e;
  --ok: #2f6a4a;
  --danger: #9a3b32;
  --font-display: "Noto Serif Thai", serif;
  --font-body: "Sarabun", sans-serif;
  --radius: 22px;
  --header-h: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 40px rgba(27, 58, 47, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(720px 280px at 0% 0%, rgba(196, 161, 90, 0.16), transparent 60%),
    linear-gradient(180deg, #f7f1e6 0%, var(--bg) 40%, #eef3ec 100%);
  line-height: 1.7;
}

.noise { display: none; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--clay); }

img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.station-ribbon {
  background: var(--blue-deep);
  color: #f6f0e4;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.ribbon-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 34px;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.ribbon-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.site-header.is-scrolled {
  background: rgba(27, 58, 47, 0.96);
  box-shadow: 0 12px 30px rgba(16, 32, 26, 0.22);
}

.site-header.is-scrolled .station-ribbon { background: #10261d; }

.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .site-nav a { color: #f6f0e4; }

.site-header.is-scrolled .brand-sub { color: rgba(246, 240, 228, 0.72); }

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active {
  color: var(--gold-soft);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-header.is-scrolled .nav-toggle {
  background: transparent;
  border-color: rgba(246, 240, 228, 0.35);
}

.site-header.is-scrolled .nav-toggle span { background: var(--gold-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  min-width: 0;
}

.brand:hover { color: inherit; }

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--blue-deep);
  border: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  line-height: 1.25;
  color: var(--blue-deep);
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.site-nav { display: flex; gap: 0.15rem; }

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.7rem 0.85rem 0.55rem;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue-deep);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--clay);
}

.ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.ico-sm { width: 0.95em; height: 0.95em; }
.ico-inline { margin-right: 0.15rem; }
.ico-title { width: 0.9em; height: 0.9em; margin-right: 0.25rem; color: var(--clay); }
.site-nav .ico,
.site-nav a.is-active .ico,
.site-nav a:hover .ico { color: currentColor; }

.admin-nav a { display: flex; align-items: center; gap: 0.55rem; }
.admin-nav .ico { width: 1.15em; height: 1.15em; }
.admin-side-email { display: flex; align-items: center; gap: 0.4rem; }

.page-hero h1,
.section-head h2,
.admin-main h1,
.admin-card h2,
.contact-list strong,
.contact-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.link-more,
.btn .ico { display: inline-flex; align-items: center; gap: 0.35rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 14px;
  padding: 11px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-deep);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.site-main { position: relative; z-index: 1; padding-bottom: 3rem; }

.hero {
  position: relative;
  overflow: hidden;
  background: #16352b;
  color: #f6f0e4;
  min-height: 460px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 80% 20%, rgba(196, 161, 90, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(47, 106, 74, 0.45), transparent 70%);
}

.hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.4rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-soft);
}

.hero-logo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 32px;
  margin-bottom: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  max-width: 14em;
  color: #fffdf8;
}

.hero-lead {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.hero-note {
  max-width: 34rem;
  margin: 0.8rem 0 0;
  color: rgba(246, 240, 228, 0.82);
}

.player {
  background: rgba(255, 253, 248, 0.96);
  color: var(--text);
  border-radius: 28px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.player-freq {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue-deep);
  letter-spacing: 0.04em;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.player-art {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue-deep);
}

.player-art.is-playing,
.float-player-art.is-playing,
.float-player-open.is-playing img {
  animation: pulseArt 1.6s ease-in-out infinite;
}

@keyframes pulseArt {
  50% { transform: scale(0.96); }
}

.player-meta { flex: 1; min-width: 0; }

.player-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}

.player-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

.player-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0.15rem 0 0;
  color: var(--blue-deep);
}

.player-status,
.float-player-status {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-play {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: var(--clay);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.btn-play:hover { transform: translateY(-2px); }
.btn-play svg { width: 22px; height: 22px; }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 0.35rem;
  opacity: 0.35;
}

.player.is-on .eq,
.float-player.is-on .eq { opacity: 1; }

.eq span {
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--blue);
  animation: eq 0.8s ease-in-out infinite alternate;
}

.eq span:nth-child(2) { animation-delay: 0.15s; }
.eq span:nth-child(3) { animation-delay: 0.3s; }
.eq span:nth-child(4) { animation-delay: 0.05s; }
.eq span:nth-child(5) { animation-delay: 0.22s; }

@keyframes eq {
  to { height: 100%; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -1.6rem;
  position: relative;
  z-index: 3;
}

.pillar {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.pillar-index {
  margin: 0;
  font-family: var(--font-display);
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

.pillar h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--blue-deep);
}

.pillar p { margin: 0; color: var(--muted); }

.section { padding-block: 2.6rem 0.5rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.page-hero h1,
.product-detail h1,
.admin-main h1 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin: 0;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p,
.page-hero p { margin: 0.3rem 0 0; color: var(--muted); }

.link-more {
  font-weight: 700;
  color: var(--clay);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.product-card {
  display: block;
  color: inherit;
  background: var(--panel);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(27, 58, 47, 0.05);
  transition: transform 0.3s var(--ease);
}

.product-card:hover { color: inherit; transform: translateY(-4px); }

.product-card-media {
  aspect-ratio: 1;
  background: var(--bg-2);
  overflow: hidden;
}

.product-card-media img,
.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body { padding: 0.95rem 1rem 1.1rem; }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.2rem;
  color: var(--blue-deep);
}

.product-card .price,
.product-detail .price {
  margin: 0;
  color: var(--clay);
  font-weight: 700;
}

.page-hero {
  padding: 2rem 0 1.2rem;
  margin: 0 0 1.2rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.product-page { padding-top: 1.5rem; }

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.product-detail-media {
  background: var(--panel);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.product-detail .price { font-size: 1.4rem; margin: 0 0 1rem; }
.product-detail .desc { color: var(--muted); white-space: pre-wrap; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.3rem;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}

.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { color: var(--blue-deep); font-family: var(--font-display); }

.contact-panel {
  background: var(--blue-deep);
  color: #f6f0e4;
  border-radius: 28px;
  overflow: hidden;
}

.contact-visual { margin: 0; aspect-ratio: 800 / 460; background: #10261d; }
.contact-visual img { width: 100%; height: 100%; object-fit: cover; }

.contact-panel h2,
.contact-panel p { color: #f6f0e4; }
.contact-panel h2 { margin: 0; padding: 1.1rem 1.3rem 0.3rem; font-family: var(--font-display); }
.contact-panel p { margin: 0; padding: 0 1.3rem 1.3rem; color: rgba(246, 240, 228, 0.82); }

.site-footer {
  margin-top: 2.5rem;
  margin-bottom: 6rem;
  background: #143028;
  color: #f6f0e4;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 0;
}

.footer-station {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.footer-copy,
.footer-aside { margin: 0; color: rgba(246, 240, 228, 0.75); }
.footer-aside { text-align: right; }
.footer-aside a { color: var(--gold-soft); }
.footer-aside p { margin: 0.15rem 0; }

.float-player {
  position: fixed;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  transform: none;
  z-index: 80;
  width: min(420px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  background: #fffdf8;
  color: var(--text);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(20, 48, 40, 0.2);
}

.float-player.is-collapsed,
.float-player.is-parked {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}

.float-player.is-disabled { opacity: 0.75; }

.float-player-close {
  position: absolute;
  top: -0.45rem;
  right: -0.35rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.float-player-close svg { width: 14px; height: 14px; }

.float-player-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--blue-deep);
}

.float-player-meta { flex: 1; min-width: 0; }

.float-player-title {
  font-family: var(--font-display);
  margin: 0.1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-player .btn-play { width: 46px; height: 46px; border-radius: 14px; }

.float-player-open {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-display);
  cursor: pointer;
}

.float-player-open[hidden] { display: none !important; }
.float-player-open img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--panel);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(27, 58, 47, 0.05);
}

.news-card:hover { color: inherit; }

.news-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-fallback {
  color: var(--blue);
  font-size: 2rem;
}

.news-card-body { padding: 0.95rem 1rem 1.15rem; }
.news-card h3,
.news-article h1 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  margin: 0.15rem 0 0.35rem;
}
.news-card h3 { font-size: 1.15rem; }
.news-card p,
.news-lead { margin: 0; color: var(--muted); }
.news-date {
  margin: 0;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news-article { padding: 1.6rem 0 2rem; max-width: 760px; }
.news-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.news-back { margin: 0 0 0.8rem; }
.news-figure { margin: 1rem 0; border-radius: 24px; overflow: hidden; }
.news-figure img { width: 100%; height: auto; }
.news-lead { font-size: 1.05rem; margin: 0 0 1rem; }
.news-body { color: var(--text); white-space: pre-wrap; }


.thumb-preview,
.table img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.thumb-preview { display: block; margin-top: 0.65rem; max-width: 220px; }
.thumb-contact { max-width: 320px; aspect-ratio: 800 / 460; object-fit: cover; }
.thumb-favicon { width: 48px; height: 48px; object-fit: contain; padding: 4px; background: var(--blue-deep); }
.form-hint { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.85rem; }

.admin-body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--blue-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}

.admin-topbar-title { font-family: var(--font-display); font-weight: 700; }
.admin-topbar-sub {
  font-size: 0.78rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 14px;
  padding: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold-soft);
}

.admin-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.admin-side {
  background: linear-gradient(180deg, #214838 0%, #143028 100%);
  color: #f6f0e4;
  padding: 1.35rem 1rem 1.5rem;
}

.admin-side-head {
  padding: 0 0.4rem 1rem;
  border-bottom: 1px solid rgba(243, 230, 196, 0.2);
  margin-bottom: 0.85rem;
}

.admin-side .brand-name { color: var(--gold-soft); font-size: 1.35rem; }
.admin-side .brand-sub { color: rgba(246, 240, 228, 0.72); }

.admin-nav { display: grid; gap: 0.35rem; }

.admin-nav a {
  color: rgba(246, 240, 228, 0.86);
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  font-weight: 600;
  border-left: 0;
}

.admin-nav a:hover,
.admin-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.1); }

.admin-nav a.nav-logout {
  margin-top: 0.6rem;
  color: #ffd2cc;
  background: rgba(154, 59, 50, 0.25);
}

.admin-side-email {
  margin: 1.2rem 0.5rem 0;
  font-size: 0.78rem;
  color: rgba(246, 240, 228, 0.65);
  word-break: break-all;
}

.admin-backdrop { display: none; }
.admin-main { padding: 1.6rem; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; margin-bottom: 1.1rem; }

.admin-card {
  background: var(--panel);
  border-radius: 22px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  max-width: 760px;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--blue-deep);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  max-width: 980px;
}

.dash-stat {
  background: var(--panel);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}

.dash-stat-blue { border-top-color: #2f6a4a; }
.dash-stat-green { border-top-color: #6d8f62; }
.dash-stat-gold { border-top-color: #c4a15a; }
.dash-stat-rose { border-top-color: #a34b2e; }

.dash-label { margin: 0; font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.35rem; align-items: center; }
.dash-value {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--blue-deep);
}

.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 980px;
}

.dash-panel { max-width: none; margin-bottom: 0; }
.dash-stream-status { display: inline-flex; gap: 0.4rem; margin: 0 0 0.45rem; font-weight: 700; }
.dash-stream-status.is-ready { color: var(--ok); }
.dash-stream-status.is-wait { color: var(--gold-deep); }
.dash-stream-url { margin: 0 0 1rem; color: var(--muted); word-break: break-all; }
.dash-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.dash-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.dash-list li strong { color: var(--clay); }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; margin-bottom: 0.35rem; color: var(--muted); }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  font: inherit;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input[type="checkbox"],
.form-row input[type="radio"],
.form-row input[type="file"] { width: auto; padding: 0; }

.check-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0 !important;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  cursor: pointer;
}
.check-inline input { accent-color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue-deep);
  color: #fff;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }

.flash { padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 14px; }
.flash.ok { background: #e5f3e8; color: #1d5a34; }
.flash.err { background: #fdeceb; color: #8a2433; }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; }
.table img { width: 48px; height: 48px; object-fit: cover; }

.login-box {
  max-width: 420px;
  margin: 10vh auto;
  padding: 1.8rem;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.login-box h1 { font-family: var(--font-display); margin: 0 0 0.35rem; color: var(--blue-deep); }
.login-back { margin: 1.15rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }
.login-back .btn { width: 100%; }
.login-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; }
.login-tabs button {
  flex: 1;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
}
.login-tabs button.is-active { color: var(--blue-deep); border-color: var(--blue-deep); background: var(--blue-soft); }
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.login-otp-hint, .login-otp-ref { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.login-otp-ref strong { font-family: var(--font-display); color: var(--blue-deep); }

.admin-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 32, 26, 0.45);
}
.admin-confirm[hidden] { display: none !important; }
.admin-confirm-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
}
.admin-confirm-title { font-family: var(--font-display); margin: 0 0 0.3rem; color: var(--blue-deep); }
.admin-confirm-text { margin: 0 0 1rem; color: var(--muted); }
.admin-confirm-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.btn-delete-product,
.btn-delete-item {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-grid,
  .news-grid,
  .pillars,
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .product-detail,
  .contact-grid,
  .dash-panels,
  .hero-content { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}

@media (max-width: 860px) {
  .admin-shell { display: block; }
  .admin-topbar { display: flex; }
  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 70;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .admin-side.is-open { transform: translateX(0); }
  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 26, 0.45);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
  }
  .admin-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .admin-body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  :root { --header-h: 104px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .brand-name { font-size: 0.78rem; }
  .brand-sub,
  .ribbon-inner span:nth-child(n+4) { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: #fffdf8;
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-header.is-scrolled .site-nav { background: #143028; }
  .site-nav a { padding: 0.85rem 0.2rem; box-shadow: none; border-bottom: 1px solid var(--line); }
  .footer-inner,
  .footer-aside { display: block; text-align: left; }
  .product-grid,
  .news-grid,
  .pillars,
  .dash-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 96px; height: 96px; }
}
