/* ============================================
   DHANDHAGRUPO — INDUSTRIAL B2B DESIGN SYSTEM
   ============================================ */

:root {
  --bg: #0c0f13;
  --bg-soft: #111419;
  --surface: #161a21;
  --surface-hover: #1c2129;
  --border: #23282f;
  --border-light: #2c333c;
  --text: #e8eaed;
  --text-secondary: #9aa0a9;
  --primary: #ff6a1a;
  --primary-light: #ff8a4c;
  --primary-dark: #d45500;
  --navy: #1a2742;
  --navy-light: #243455;
  --accent-green: #2ecc71;
  --accent-red: #e74c3c;
  --whatsapp: #25d366;
  --topbar-h: 0px;
  --header-h: 60px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .5);
  --transition: .25s ease;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  font-size: .85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 19, .97);
}

.topbar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
}

.topbar .left,
.topbar .right {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.topbar .contact-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.topbar .contact-item:hover {
  color: var(--text);
}

.topbar .lang-btn {
  padding: .3rem .6rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.topbar .lang-btn:hover,
.topbar .lang-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- HEADER ---------- */
header.site {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(12, 15, 19, .97);
  border-bottom: 1px solid var(--border);
}

header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 106, 26, .3);
}

.logo .name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .3px;
  color: var(--text);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

nav.menu {
  display: flex;
  gap: .15rem;
  align-items: center;
}

nav.menu a {
  padding: .55rem .75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

nav.menu a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  nav.menu {
    position: fixed;
    inset: calc(var(--topbar-h) + 56px) 0 auto 0;
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: rgba(12, 15, 19, .99);
    border-top: 1px solid var(--border);
  }

  nav.menu.open {
    display: flex;
  }

  .topbar .row {
    flex-direction: column;
    gap: .4rem;
    padding: .35rem 0;
  }

  .topbar .left,
  .topbar .right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--surface-hover);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 106, 26, .25);
}

.btn.primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 32px rgba(255, 106, 26, .35);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: rgba(255, 106, 26, .08);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem;
}

form .chip {
  width: 100%;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 5rem 0;
  scroll-margin-top: calc(var(--topbar-h) + 72px);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: var(--radius);
  background: rgba(255, 106, 26, .08);
  border: 1px solid rgba(255, 106, 26, .2);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-head h2 {
  font: 700 clamp(1.4rem, 2.5vw, 2rem)/1.2 'Poppins', 'Inter', sans-serif;
  margin: 0 0 .4rem;
  color: var(--text);
}

.section-head .desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 55ch;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('/images/hero-bg.png') center/cover no-repeat;
  filter: brightness(.35) contrast(1.1);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(12, 15, 19, .5) 0%,
      rgba(12, 15, 19, .3) 40%,
      rgba(12, 15, 19, .7) 75%,
      rgba(12, 15, 19, 1) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--radius);
  background: rgba(255, 106, 26, .1);
  border: 1px solid rgba(255, 106, 26, .25);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero .headline {
  font: 800 clamp(2rem, 4.5vw, 3.4rem)/1.1 'Poppins', 'Inter', sans-serif;
  letter-spacing: -.01em;
  margin: 0 0 1.2rem;
  color: #fff;
}

.hero .headline .accent {
  color: var(--primary);
}

.hero .sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

.hero .cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero .trust-chips {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.hero .trust-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 500;
}

.hero .trust-chip .icon {
  width: 16px;
  height: 16px;
  opacity: .7;
}

.hero .hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero .stat-card {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.hero .stat-card .number {
  font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 'Poppins', sans-serif;
  color: var(--primary);
  margin-bottom: .25rem;
}

.hero .stat-card .stat-label {
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding: 4rem 0 3rem;
  }

  .hero .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero .stat-card {
    flex: 1;
    min-width: 140px;
  }

  .hero {
    min-height: 70vh;
  }
}

/* ---------- SOCIAL VIDEOS ---------- */
#social {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.social-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.social-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.social-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

.social-card .platform-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

.social-card .open-link {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.social-card .open-link:hover {
  color: var(--primary);
}

.social-card .embed-wrap {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: var(--bg);
}

.social-card .embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- BALE CATALOG ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bale-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.4rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.bale-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.bale-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.bale-card:hover::before {
  opacity: 1;
}

.bale-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 106, 26, .08);
  border: 1px solid rgba(255, 106, 26, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  font-size: 1.3rem;
}

.bale-card h3 {
  font: 600 1rem/1.3 'Inter', sans-serif;
  margin: 0 0 .3rem;
  color: var(--text);
}

.bale-card .weight-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: rgba(255, 106, 26, .06);
  border: 1px solid rgba(255, 106, 26, .12);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.bale-card .card-desc {
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.bale-card .btn-check {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.bale-card:hover .btn-check {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 106, 26, .05);
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PROCESS / HOW TO BUY ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.step-card .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: 800 .9rem 'Poppins', sans-serif;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 106, 26, .2);
}

.step-card h3 {
  font: 600 1rem/1.3 'Inter', sans-serif;
  margin: 0 0 .4rem;
  color: var(--text);
}

.step-card p {
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- LOCATIONS (SPLIT SCREEN) ---------- */
.location-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
}

.info-card h3 {
  font: 700 1.15rem 'Poppins', sans-serif;
  margin: 0 0 1.2rem;
  color: var(--text);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--primary);
}

.info-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: .15rem;
}

.info-value {
  font-size: .92rem;
  color: var(--text);
}

.hub-chips {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.hub-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  margin-bottom: .25rem;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition);
}

.location-chip:hover {
  border-color: var(--primary);
}

.location-chip.active {
  border-color: var(--primary);
  background: rgba(255, 106, 26, .06);
  color: var(--primary);
}

.location-chip .flag {
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  letter-spacing: .04em;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
}

.location-map iframe {
  filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(1.1);
  will-change: auto;
  transform: translateZ(0);
}

@media (max-width: 900px) {
  .location-split {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 300px;
  }
}

/* ---------- SOCIAL GRID (TikTok-style) ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* ---------- LOGO SVG ---------- */
.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- STAT UNIT ---------- */
.hero .stat-card .number .unit {
  font-size: .55em;
  font-weight: 600;
  opacity: .7;
  margin-left: 2px;
}

/* ---------- CONTACT FORM ---------- */
#contact .card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}

#contact .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#contact .form-grid .full-width {
  grid-column: 1 / -1;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: 400 .9rem 'Inter', sans-serif;
  transition: border-color var(--transition);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--primary);
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: var(--text-secondary);
  opacity: .6;
}

#contact .form-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  #contact .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- ADMIN MODAL ---------- */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
}

.overlay[style*="flex"] {
  display: flex;
}

.modal {
  max-width: 720px;
  width: 92%;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal .title {
  font: 700 1.2rem 'Poppins', sans-serif;
  margin: 0 0 1rem;
}

.modal label {
  display: block;
  margin-bottom: .8rem;
}

.modal label span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font: 400 .9rem 'Inter', sans-serif;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-pulse 2s ease-out infinite;
  opacity: 0;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ---------- ADMIN UPLOAD UI ---------- */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  margin-top: .5rem;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(255, 106, 26, .05);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.toggle-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.platform-tag {
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .5rem;
  border-radius: 4px;
}

.platform-tag.tiktok {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.platform-tag.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.platform-tag.fb {
  background: #1877f2;
  color: #fff;
}

.spinner.inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-width: 2px;
  vertical-align: middle;
  margin-left: .5rem;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: .88rem;
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-stagger.in-view>*:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(2) {
  transition-delay: .06s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(3) {
  transition-delay: .12s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(4) {
  transition-delay: .18s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(5) {
  transition-delay: .24s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(6) {
  transition-delay: .30s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(7) {
  transition-delay: .36s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(8) {
  transition-delay: .42s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(9) {
  transition-delay: .48s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(10) {
  transition-delay: .54s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(11) {
  transition-delay: .60s;
  opacity: 1;
  transform: none;
}

.reveal-stagger.in-view>*:nth-child(12) {
  transition-delay: .66s;
  opacity: 1;
  transform: none;
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#preloader .spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}

#preloader .label {
  margin-top: .6rem;
  color: var(--text-secondary);
  font-size: .88rem;
  text-align: center;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- UTILITY ---------- */
.text-muted {
  color: var(--text-secondary);
}

.text-primary {
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- LEGAL PAGES (Terms / Privacy) ---------- */
.legal-page {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 80vh;
}

.legal-container {
  max-width: 780px;
}

.legal-page .section-head h1 {
  font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.2 'Poppins', 'Inter', sans-serif;
  margin: 0 0 .4rem;
  color: var(--text);
}

.legal-content {
  margin-top: 2rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font: 600 1.05rem/1.4 'Poppins', 'Inter', sans-serif;
  color: var(--primary);
  margin: 0 0 .6rem;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.75;
  margin: 0;
}

/* ---------- FOOTER LINKS ---------- */
.footer-links {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: .85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-sep {
  color: var(--border-light);
  font-size: .85rem;
}

/* ---------- ADMIN DASHBOARD OVERLAY ---------- */
/*
  Positioned BELOW the fixed topbar + site header so both remain
  visible. z-index sits between page content (0) and the headers
  (topbar: 30, header: 25) so the language switcher and nav are
  always reachable. Same-origin iframe shares localStorage
  (JWT token and dg_lang both auto-sync via storage events).
*/
.admin-overlay {
  position: fixed;
  /* Start directly below topbar + nav header */
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  /* Below headers (25/30) but above page content */
  z-index: 20;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  /* Hidden state */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.admin-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.admin-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
}

/* Prevent body scroll while admin is open */
body.admin-open {
  overflow: hidden;
}

/* When admin is open, hide the site nav so admin fills the space cleanly */
body.admin-open header.site {
  display: none;
}

/* Extend overlay up to topbar (site header is hidden) */
body.admin-open .admin-overlay {
  top: var(--topbar-h);
}