:root {
  --primary: #9B0E13;
  --primary-hover: #b51218;
  --primary-dark: #7d0a0f;
  --primary-light: #A81015;
  --primary-surface: #fdf2f3;
  --primary-ring: rgba(155, 14, 19, 0.2);
  --bg-page: #F5F3F0;
  --bg-white: #FFFFFF;
  --bg-card: #F9F6F3;
  --text-main: #2C2C2A;
  --text-muted: #6b6a66;
  --text-sub: #7a7873;
  --border-light: #eae6e0;
  --border-subtle: #d9d4cd;
  --badge-green-bg: #E7F2E8;
  --badge-green-text: #2E7D32;
  --hint-gold-bg: #FBF1DC;
  --hint-gold-border: #9A6B00;
  --hint-gold-text: #7a5b12;
  --footer-bg: #2C2C2A;
  --footer-text: #c6c2bb;
  --footer-muted: #8b8781;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'IBM Plex Sans Thai Looped', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.tagwrap {
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demotag {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.demotag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7ddda;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-fast);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo b {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

.logo span {
  display: block;
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 400;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.navlinks a {
  color: #4a4945;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--primary);
}

.navlinks a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 20px;
  font-size: 13px !important;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

/* Mobile Hamburger Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.mobile-toggle:hover {
  background: var(--bg-card);
}

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #4a4945;
  border-bottom: 1px solid #f0ede8;
}

.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 10px;
  text-align: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0 68px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 20%;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: #fff;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero p {
  font-size: 16.5px;
  color: #f7d8da;
  max-width: 640px;
  line-height: 1.65;
}

.hero .cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store {
  background: #fff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #fdfdfd;
}

.store b {
  font-size: 14.5px;
  font-weight: 600;
  display: block;
}

.store small {
  display: block;
  font-size: 10px;
  color: var(--text-sub);
  line-height: 1.1;
}

/* Sections */
.sec {
  padding: 56px 0;
}

.sec.alt {
  background: #fff;
}

.sec-header {
  margin-bottom: 32px;
}

.sec h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec .lead {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

/* About Cards */
.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.acard {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.sec.alt .acard {
  background: var(--bg-card);
}

.acard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8b6b8;
}

.acard .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(155, 14, 19, 0.25);
}

.acard h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.acard p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Officers Section */
.officers-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.slider-hint {
  font-size: 13px;
  color: var(--text-sub);
}

.slider-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.slider-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(155, 14, 19, 0.25);
  transform: scale(1.05);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f7f5f2;
  color: var(--text-sub);
  border-color: var(--border-light);
  box-shadow: none;
}

.officers-slider-wrap {
  position: relative;
  overflow: visible;
}

.officers {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
  cursor: grab;
}

.officers.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* Hide scrollbar for Chrome, Safari, Edge and Opera */
.officers::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ocard {
  flex: 0 0 240px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.sec.alt .ocard {
  background: var(--bg-card);
}

.ocard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #d8b6b8;
}

.ocard .ph {
  height: 160px;
  background: #ddd8d1;
  overflow: hidden;
  position: relative;
}

.ocard .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.ocard:hover .ph img {
  transform: scale(1.04);
}

.ocard .in {
  padding: 16px 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ocard .nm {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.ocard .un {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.ocard .sc {
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 10px;
}

.hint {
  margin-top: 24px;
  background: var(--hint-gold-bg);
  border-left: 3px solid var(--hint-gold-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--hint-gold-text);
  line-height: 1.6;
}

/* How to Steps */
.howsteps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hstep {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sec.alt .hstep {
  background: var(--bg-card);
}

.hstep:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #d8b6b8;
}

.hstep .hnum {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(155, 14, 19, 0.25);
}

.hstep .hic {
  position: absolute;
  top: 22px;
  right: 18px;
  opacity: 0.9;
}

.hstep h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-main);
}

.hstep p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Download Section */
.dl {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.dl .steps {
  display: grid;
  gap: 18px;
}

.dstep {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.dstep:hover {
  transform: translateX(4px);
  border-color: #d8b6b8;
}

.dnum {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(155, 14, 19, 0.25);
}

.dstep .dt {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
}

.dstep .dd {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.dl-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Realistic Phone Mockup with Real App Screenshot */
.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  width: 275px;
  height: 580px;
  background: #0d1117;
  border-radius: 42px;
  padding: 10px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 4.5px;
  background: #252a33;
  border-radius: 4px;
  z-index: 5;
}

.phone .scr {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.screen-selector {
  display: flex;
  gap: 6px;
  background: #f7f1eb;
  padding: 5px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}

.screen-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.screen-btn:hover {
  color: var(--primary);
}

.screen-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(155, 14, 19, 0.25);
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 44px 0 32px;
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}

footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

footer p,
footer a {
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 36px;
}

.footer-brand b {
  font-size: 18px;
  color: #fff;
}

.copy {
  border-top: 1px solid #444;
  margin-top: 32px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--footer-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Modal Popup (Officer QR & Detail Badge) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: transparent;
  max-width: 360px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-sub);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  z-index: 20;
}

.modal-close:hover {
  background: #f0ede8;
  color: var(--text-main);
  transform: rotate(90deg);
}

/* Authentic Officer ID Badge Style */
.officer-badge {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #D9D4CC;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  text-align: center;
}

.badge-top-lanyard {
  height: 36px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-slot {
  width: 68px;
  height: 11px;
  background: #64070B;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-inner {
  padding: 16px 18px 20px;
}

.badge-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-partners img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.badge-brand-text {
  text-align: left;
  line-height: 1.1;
  margin-left: 2px;
}

.badge-brand-text b {
  font-size: 16px;
  color: var(--primary);
  display: block;
}

.badge-brand-text span {
  font-size: 8px;
  color: var(--text-sub);
  display: block;
}

.badge-line {
  height: 1px;
  background: #e5ded7;
  margin: 10px 0;
}

.badge-tag-title {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 10px auto 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #f0ede8;
}

.badge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.badge-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.badge-info {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.badge-info strong {
  color: var(--text-main);
  font-weight: 600;
}

.badge-qr-frame {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  margin: 12px auto 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge-qr-frame svg,
.badge-qr-frame img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.badge-qr-id {
  font-size: 11px;
  color: var(--text-sub);
  font-family: monospace;
  margin-top: 4px;
  font-weight: 600;
}

.badge-instruction {
  font-size: 11.5px;
  color: #555;
  line-height: 1.4;
  margin: 6px 0 12px;
}

.badge-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.badge-btn.primary {
  background: var(--primary);
  color: #fff;
}

.badge-btn.primary:hover {
  background: var(--primary-hover);
}

.badge-btn.secondary {
  background: var(--bg-page);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.badge-btn.secondary:hover {
  background: #ebe6df;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #2C2C2A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Live API indicator */
.api-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #2E7D32;
  background: #E7F2E8;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.api-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E7D32;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.officers-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-sub);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floating Back To Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 34px;
  }
  .howsteps {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .phone-wrapper,
  .phone {
    display: none;
  }
}

@media (max-width: 768px) {
  .navlinks {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .about {
    grid-template-columns: 1fr;
  }
  footer .cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero {
    padding: 44px 0 52px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 15px;
  }
  .sec {
    padding: 42px 0;
  }
  .sec h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .ocard {
    flex: 0 0 220px;
    min-width: 220px;
  }
  .howsteps {
    grid-template-columns: 1fr;
  }
  .hero .cta {
    flex-direction: column;
  }
  .store {
    width: 100%;
    justify-content: center;
  }
}
