/* ── VARIABLES ── */
:root {
  --bg: #011C3F;
  --surface: #021e47;
  --surface2: #042258;
  --border: rgba(255, 255, 255, .07);
  --border2: rgba(255, 255, 255, .13);
  --red: #D11A1E;
  --red-h: #e82a2e;
  --green: #84C11B;
  --green-h: #96d820;
  --yellow: #FDD513;
  --blue: #02A0F4;
  --wa-green: #25D366;
  --orange: #D11A1E;
  --orange-h: #e82a2e;
  --text: #FEFEFE;
  --text2: #a8c4d8;
  --text3: #5a7a99;
  --r: 12px;
  --r-lg: 18px;
  --font-d: 'Syne', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

input,
textarea {
  font-family: inherit;
}

/* ── CONTAINER ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 28, 63, .95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: .75rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: clamp(28px, 4vw, 40px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: opacity .2s;
}

.logo-img[src=""] {
  opacity: 0;
}

.header-search {
  flex: 1 1 auto;
  min-width: 0;
}

.header-search input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: .5rem .9rem;
  color: var(--text);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}

.header-search input:focus {
  border-color: var(--red);
}

.header-search input::placeholder {
  color: var(--text3);
}

.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lang-switch {
  display: flex;
  gap: .2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .2rem;
}

.lang-btn {
  padding: .28rem .6rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text3);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--red);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: var(--border2);
  color: var(--text);
}

.menu-btn {
  display: none;
  color: var(--text2);
  font-size: 1.2rem;
  padding: .4rem;
}

@media(max-width:600px) {
  .header-search {
    display: block;
  }

  .menu-btn {
    display: none;
  }

  .logo-img {
    height: clamp(22px, 6vw, 32px);
    max-width: 160px;
  }
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  padding: 4rem 0 2.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(209, 26, 30, .12) 0%, transparent 70%);
  text-align: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hero-logo-img {
  height: clamp(100px, 20vw, 170px);
  width: auto;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(209, 26, 30, .25));
  transition: opacity .3s, transform .3s;
  animation: fadeIn .45s ease both;
}

.hero-logo-img:hover {
  transform: scale(1.03);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .8rem;
  color: var(--text2);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-h1-accent {
  background: linear-gradient(120deg, var(--red), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text2);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.hero-search-wrap {
  margin: 2rem auto 0;
  max-width: 560px;
}

.hero-search-wrap input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: 14px;
  padding: .85rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-b);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.hero-search-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 26, 30, .15), 0 4px 24px rgba(0, 0, 0, .3);
}

.hero-search-wrap input::placeholder {
  color: var(--text3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── DISCLOSURE ── */
.disclosure {
  background: rgba(253, 213, 19, .05);
  border-top: 1px solid rgba(253, 213, 19, .12);
  border-bottom: 1px solid rgba(253, 213, 19, .12);
  padding: .6rem 0;
  font-size: .78rem;
  color: var(--text3);
}

/* ── CATEGORIES ── */
.cats-wrap {
  padding: 1.5rem 0 .5rem;
}

.cats {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .25rem;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  white-space: nowrap;
  flex-shrink: 0;
  padding: .45rem 1rem;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: .83rem;
  font-weight: 500;
  transition: all .18s;
}

.cat:hover {
  border-color: var(--border2);
  color: var(--text);
}

.cat.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}

/* ── SECTION HEADER ── */
.section-main {
  padding: 1.5rem 0 4rem;
}

.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.section-hdr h2 {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 800;
}

.count-label {
  font-size: .8rem;
  color: var(--text3);
}

/* ── STATUS ── */
.status-msg {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text3);
  font-size: .9rem;
}

.status-msg.error {
  color: var(--red);
}

.status-msg.hidden {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  border-top-color: var(--red);
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

@media (min-width: 1024px) {
  .grid {
    gap: 1.4rem;
  }
}

/* ════════════════════════════════════════════
   DEAL CARD
════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: fadeUp .35s ease both;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .22rem .55rem;
  border-radius: 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.badge-hot {
  background: var(--red);
  color: #fff;
}

.badge-new {
  background: var(--green);
  color: #011C3F;
}

.badge-limited {
  background: var(--yellow);
  color: #011C3F;
}

.badge-sale {
  background: var(--blue);
  color: #fff;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface2);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform .3s;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 28, 63, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.card-img-overlay span {
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 8px;
}

.card:hover .card-img-overlay {
  opacity: 1;
}

.card-info {
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-store {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card-cat {
  font-size: .67rem;
  color: var(--text3);
  background: var(--surface2);
  padding: .15rem .45rem;
  border-radius: 5px;
}

.card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: .75rem;
  color: var(--text3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
}

.price-cur {
  font-family: var(--font-b);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.03em;
}

.price-was {
  font-size: .82rem;
  color: var(--text3);
  text-decoration: line-through;
}

.price-off {
  font-size: .72rem;
  font-weight: 700;
  background: rgba(132, 193, 27, .12);
  color: var(--green);
  border: 1px solid rgba(132, 193, 27, .25);
  padding: .12rem .4rem;
  border-radius: 5px;
}

.price-see {
  font-size: .85rem;
  color: var(--text2);
}

.card-timer {
  font-size: .73rem;
  color: var(--blue);
  font-weight: 500;
}

.card-timer.urgent {
  color: var(--red);
}

/* ── COUPON CHIP ── */
.card-coupon {
  background: rgba(253, 213, 19, .06);
  border: 1px dashed rgba(253, 213, 19, .3);
  border-radius: 10px;
  padding: .5rem .65rem;
  margin-top: .1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.scissors-icon {
  flex-shrink: 0;
  color: var(--yellow);
  opacity: .85;
  width: 15px;
  height: 15px;
}

.coupon-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow);
  flex-shrink: 0;
}

.coupon-code {
  font-family: monospace;
  font-size: .82rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .1em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-copy {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .22rem .55rem;
  border-radius: 5px;
  background: rgba(253, 213, 19, .12);
  color: var(--yellow);
  border: 1px solid rgba(253, 213, 19, .22);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, transform .12s, color .15s, border-color .15s;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-b);
  position: relative;
  overflow: hidden;
}

.coupon-copy svg {
  flex-shrink: 0;
}

.coupon-copy:hover {
  background: rgba(253, 213, 19, .22);
  transform: scale(1.05);
}

.coupon-copy.copied {
  background: rgba(132, 193, 27, .18);
  color: var(--green);
  border-color: rgba(132, 193, 27, .35);
  animation: copiedPop .25s ease;
}

@keyframes copiedPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.coupon-timer-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  color: var(--yellow);
  opacity: .85;
}

.coupon-countdown {
  font-family: monospace;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--yellow);
}

.coupon-countdown.expiring {
  color: var(--red);
  animation: timerPulse 1s infinite;
}

.coupon-expired {
  opacity: .45;
  pointer-events: none;
}

.coupon-expired .coupon-countdown {
  color: var(--text3);
}

@keyframes timerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }
}

.card-cta {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  padding: .7rem 1rem;
  border-radius: 10px;
  margin-top: auto;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.card-cta:hover {
  background: var(--red-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(209, 26, 30, .35);
}

.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text3);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: .75rem;
}

.empty h3 {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: .4rem;
}

/* ════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2.5rem;
}

.pag-btn {
  padding: .5rem .9rem;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: .83rem;
  font-weight: 600;
  transition: all .16s;
  cursor: pointer;
  font-family: var(--font-b);
}

.pag-btn:hover:not(.disabled):not(.active) {
  border-color: var(--border2);
  color: var(--text);
}

.pag-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pag-btn.disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.pag-arrow {
  padding: .5rem 1.1rem;
}

.pag-ellipsis {
  padding: .5rem .4rem;
  color: var(--text3);
  font-size: .85rem;
  display: flex;
  align-items: center;
}

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
.how-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(2, 160, 244, .07) 0%, transparent 70%);
}

.how-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .how-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 4rem;
  }
}

.how-header {
  top: 80px;
}

.how-eyebrow {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .75rem;
}

.how-title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text);
}

.how-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.how-accordion {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.how-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}

.how-item.open {
  border-color: var(--border2);
}

.how-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  text-align: left;
  color: var(--text2);
  font-size: .9rem;
  font-weight: 600;
  transition: color .15s;
  background: none;
}

.how-item.open .how-q {
  color: var(--text);
}

.how-q:hover {
  color: var(--text);
}

.how-q-num {
  font-family: var(--font-d);
  font-size: .75rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .05em;
  flex-shrink: 0;
  min-width: 1.6rem;
}

.how-q-text {
  flex: 1;
}

.how-chevron {
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--text3);
}

.how-item.open .how-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.how-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1rem 0 calc(1rem + 1.6rem + .8rem);
}

.how-item.open .how-a {
  max-height: 300px;
  padding-bottom: 1rem;
}

.how-a p {
  font-size: .875rem;
  color: var(--text3);
  line-height: 1.7;
}

/* ── Community card ── */
.community-card {
  margin-top: .6rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, .1) 0%, rgba(1, 28, 63, .8) 60%);
  border: 1px solid rgba(37, 211, 102, .25);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(37, 211, 102, .2), transparent 70%);
  pointer-events: none;
}

.community-icon {
  width: 48px;
  height: 48px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
}

.community-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.community-info {
  flex: 1;
  min-width: 180px;
}

.community-info h3 {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .2rem;
}

.community-info p {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.5;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--wa-green);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .65rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
  flex-shrink: 0;
}

.community-btn:hover {
  transform: translateY(-2px);
  background: #1ebe5a;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
}

.community-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   CONTACT SECTION
════════════════════════════════════════════ */
.contact-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 50% at 0% 50%, rgba(2, 160, 244, .06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(209, 26, 30, .06) 0%, transparent 70%);
}

.contact-inner {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
  }
}

/* Left column */
.contact-eyebrow {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .75rem;
}

.contact-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: .75rem;
}

.contact-sub {
  font-size: .95rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1rem;
  transition: border-color .2s;
}

.contact-info-card:hover {
  border-color: var(--border2);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(2, 160, 244, .12);
  border: 1px solid rgba(2, 160, 244, .2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon--wa {
  background: rgba(37, 211, 102, .12);
  border-color: rgba(37, 211, 102, .2);
  color: var(--wa-green);
}

.contact-info-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: .15rem;
}

.contact-info-value {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text2);
}

/* Right column — form */
.contact-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}

@media (min-width: 640px) {
  .contact-right {
    padding: 2.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .03em;
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-b);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 160, 244, .12);
}

.form-input::placeholder {
  color: var(--text3);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--red);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: .9rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-family: var(--font-b);
  transition: background .18s, transform .18s, box-shadow .18s;
  width: 100%;
}

.contact-submit:hover:not(:disabled) {
  background: var(--red-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(209, 26, 30, .35);
}

.contact-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Inline spinner inside button */
.contact-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}

/* Result message */
.contact-result {
  font-size: .875rem;
  font-weight: 500;
  padding: 0;
  border-radius: 8px;
  text-align: center;
  transition: all .3s;
}

.contact-result.success {
  background: rgba(132, 193, 27, .1);
  border: 1px solid rgba(132, 193, 27, .25);
  color: var(--green);
  padding: .75rem 1rem;
}

.contact-result.error {
  background: rgba(209, 26, 30, .1);
  border: 1px solid rgba(209, 26, 30, .2);
  color: #ff6b6b;
  padding: .75rem 1rem;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: .82rem;
  color: var(--text3);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .75rem;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: .85;
}

.footer-sub {
  margin-top: .3rem;
  font-size: .78rem;
  color: var(--text3);
}

/* ── Footer legal nav ── */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin: 1.25rem 0 1rem;
}

.footer-legal-link {
  font-size: .78rem;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  padding: .15rem 0;
  transition: color .15s;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-legal-sep {
  color: var(--border2);
  font-size: .7rem;
  pointer-events: none;
  user-select: none;
}

.footer-rights {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--text3);
  opacity: .7;
}

/* ════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--wa-green);
  color: #fff;
  padding: .75rem 1.2rem .75rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .4);
  transition: transform .2s, box-shadow .2s, bottom .4s cubic-bezier(.22, 1, .36, 1);

}

body.cookie-visible .wa-float {
  bottom: calc(1.75rem + 90px);
  z-index: 600;
}

@media (max-width: 480px) {
  body.cookie-visible .wa-float {
    bottom: calc(1.25rem + 135px);
  }
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .55);
}

.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-label {
  white-space: nowrap;
}

.wa-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: waPulse 2s infinite;
}

@keyframes waPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: .7;
  }
}

@media (max-width: 480px) {
  .wa-label {
    display: none;
  }

  .wa-float {
    padding: .8rem;
    border-radius: 50%;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .wa-icon {
    width: 26px;
    height: 26px;
  }
}

/* ════════════════════════════════════════════
   COOKIE CONSENT BANNER
════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(2, 30, 71, .97);
  border-top: 1px solid var(--border2);
  backdrop-filter: blur(16px);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .4);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
}

.cookie-banner-title {
  display: block;
  width: 100%;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .2rem;
}

.cookie-more-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: .82rem;
  font-family: var(--font-b);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.cookie-more-link:hover {
  color: #4db8ff;
}

.cookie-banner-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: .55rem 1.1rem;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-b);
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}

.cookie-btn--decline {
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border2);
}

.cookie-btn--decline:hover {
  background: var(--border2);
  color: var(--text);
}

.cookie-btn--accept {
  background: var(--red);
  color: #fff;
}

.cookie-btn--accept:hover {
  background: var(--red-h);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ════════════════════════════════════════════
   LEGAL MODALS
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(1, 10, 28, .8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(.96) translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Modal dialog box */
.modal-header,
.modal-body {
  position: relative;
}

.modal>* {
  position: relative;
}

/* We wrap the modal content in a dialog container */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text2);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--red);
  color: #fff;
}

.modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 2px;
}

/* The actual dialog container (child of .modal) */
.modal>.modal-header,
.modal>.modal-body {
  /* These are direct children — we need a wrapper */
}

/* Correct approach: all modals get a dialog box wrapper via CSS grid trick */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  padding: 1rem;
  overflow-y: auto;
}

.modal.open {
  display: grid;
  place-items: center;
  animation: modalIn .22s ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Dialog inner box */
.modal-header+.modal-body {
  /* sibling selector to group them */
}

/* We target the dialog-like children with a wrapper div approach in CSS */
.modal>.modal-header {
  /* This won't work directly — the children need a container */
  /* Actually in our HTML the modal element IS the container, 
     but we position the inner content using a pseudo wrapper */
}

/* ── Clean approach: style modal's children as a unit ── */
.modal-header,
.modal>.modal-body {
  /* These sit inside the modal which is the fixed overlay */
  /* We need an inner box — add via ::before pseudo? No, JS approach is cleaner */
  /* Actually, since we're using display:grid with place-items:center on .modal,
     and our modal children (header + body) need to be inside a box,
     let's just style the modal to look like a dialog using a child div. */
}

/* ── The real dialog box styles ──
   The modal element is the full-screen overlay.
   Inside, we render .modal-dialog as a child box.
   Since the HTML uses .modal-header and .modal-body directly as children,
   we group them visually by styling the entire .modal as a dialog-like surface.
   
   But that means the backdrop is the dialog — wrong.
   
   Let me use a different strategy: use the modal-overlay as backdrop
   and style .modal itself as the dialog box, centered via fixed positioning.
*/

/* ── FINAL CLEAN MODAL APPROACH ── */
/* Override all prior modal rules with this final clean version */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 700;
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: modalSlideIn .22s ease both;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ════════════════════════════════════════════
   LEGAL CONTENT STYLES (inside modals)
════════════════════════════════════════════ */
.legal-content {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.75;
}

.legal-updated {
  font-size: .75rem;
  color: var(--text3);
  margin-bottom: 1.25rem;
  padding: .4rem .75rem;
  background: var(--surface2);
  border-radius: 6px;
  display: inline-block;
}

.legal-content h3 {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h3:first-of-type {
  margin-top: .5rem;
}

.legal-content h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.1rem 0 .4rem;
}

.legal-content p {
  margin-bottom: .75rem;
  color: var(--text2);
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.legal-content ul li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text2);
}

.legal-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .8rem;
  top: .05em;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.legal-content a:hover {
  color: #4db8ff;
}

.legal-content code {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .85em;
  color: var(--yellow);
  font-family: monospace;
}

/* Legal table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.legal-table th {
  background: var(--surface2);
  color: var(--text2);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .5rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}

.legal-table td {
  padding: .5rem .75rem;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, .02);
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-lg);
  height: 360px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 3px;
}

/* ════════════════════════════════════════════
   COOKIE PREFERENCES MODAL
════════════════════════════════════════════ */
.cookie-pref-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(1, 10, 28, .85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-pref-overlay.open {
  display: flex;
  animation: modalIn .22s ease both;
}

.cookie-pref-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cookie-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cookie-pref-title {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.cookie-pref-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text2);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.cookie-pref-close:hover {
  background: var(--red);
  color: #fff;
}

.cookie-pref-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-pref-desc {
  font-size: .83rem;
  color: var(--text3);
  line-height: 1.65;
}

/* ── Cookie category row ── */
.cookie-cat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color .2s;
}

.cookie-cat.active {
  border-color: var(--border2);
}

.cookie-cat-info {
  flex: 1;
  min-width: 0;
}

.cookie-cat-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cookie-cat-badge {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .12rem .4rem;
  border-radius: 4px;
  background: rgba(132, 193, 27, .15);
  color: var(--green);
  border: 1px solid rgba(132, 193, 27, .25);
}

.cookie-cat-desc {
  font-size: .78rem;
  color: var(--text3);
  line-height: 1.55;
}

/* ── Toggle switch ── */
.cookie-toggle-wrap {
  flex-shrink: 0;
  margin-top: .15rem;
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  display: block;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text3);
  border-radius: 50%;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform .2s, background .2s;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
  background: rgba(132, 193, 27, .18);
  border-color: var(--green);
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
  transform: translateX(18px) translateY(-50%);
  background: var(--green);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
  opacity: .5;
  cursor: not-allowed;
}

/* ── Footer buttons ── */
.cookie-pref-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-pref-btn {
  flex: 1;
  min-width: 120px;
  padding: .65rem 1rem;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-b);
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s;
  text-align: center;
}

.cookie-pref-btn--save {
  background: var(--red);
  color: #fff;
}

.cookie-pref-btn--save:hover {
  background: var(--red-h);
  transform: translateY(-1px);
}

.cookie-pref-btn--all {
  background: rgba(132, 193, 27, .15);
  color: var(--green);
  border: 1px solid rgba(132, 193, 27, .25);
}

.cookie-pref-btn--all:hover {
  background: rgba(132, 193, 27, .25);
}

.cookie-pref-btn--reject {
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border2);
}

.cookie-pref-btn--reject:hover {
  background: var(--border2);
  color: var(--text);
}

/* ── Saved toast ── */
.cookie-pref-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: .6rem 1.2rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  z-index: 900;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}

.cookie-pref-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}