:root {
  --ink: #1c1024;
  --muted: #6b5360;
  --rose: #e11d48;
  --rose-deep: #be123c;
  --gold: #c2410c;
  --paper: #fffafb;
  --line: rgba(225, 29, 72, 0.14);
}

::selection { background: #fb7185; color: #fff; }

html, body {
  min-height: 100%;
  color: var(--ink);
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(251, 113, 133, 0.28), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(251, 191, 36, 0.22), transparent 50%),
    radial-gradient(700px 500px at 80% 100%, rgba(244, 114, 182, 0.16), transparent 46%),
    linear-gradient(180deg, #fff 0%, #fff7f8 40%, #fff 100%);
  background-attachment: fixed;
}

.grain { display: none; }

.pointer-glow { display: none; }
@media (pointer: fine) {
  .pointer-glow {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 380px; height: 380px;
    margin: -190px 0 0 -190px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.16), transparent 68%);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  body.is-pointer .pointer-glow { opacity: 1; }
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; background: #fecdd3; top: -120px; left: -80px; opacity: 0.85; }
.orb-b { width: 380px; height: 380px; background: #fde68a; bottom: 0; right: -100px; animation-delay: -6s; opacity: 0.7; }
.orb-c { width: 260px; height: 260px; background: #fbcfe8; top: 42%; left: 46%; animation-delay: -11s; opacity: 0.65; }
.orb-d { width: 220px; height: 220px; background: #fda4af; top: 72%; left: 6%; animation-delay: -3s; opacity: 0.5; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(36px, -24px, 0) scale(1.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
.rise-2 { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) 0.08s both; }
.rise-3 { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) 0.16s both; }

.gold-text {
  background: linear-gradient(100deg, #be123c, #c2410c 45%, #be123c);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldflow 8s linear infinite;
}
@keyframes goldflow { to { background-position: -200% 0; } }

.slogan {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.65rem;
  color: var(--rose-deep);
}

.card-vin {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(190, 18, 60, 0.08),
    0 2px 8px rgba(28, 16, 36, 0.04);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-vin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 20%) var(--my, 0%), rgba(251, 113, 133, 0.16), transparent 46%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.card-vin > * { position: relative; z-index: 2; }
.card-vin:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 22px 50px rgba(225, 29, 72, 0.14), 0 8px 18px rgba(28, 16, 36, 0.05);
}
.card-vin:hover::before { opacity: 1; }
a.card-vin { display: block; color: inherit; text-decoration: none; }

.btn-gold, .btn-corail {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold::after, .btn-corail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.btn-gold:hover::after, .btn-corail:hover::after { transform: translateX(120%); }
.btn-gold {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}
.btn-corail {
  background: linear-gradient(180deg, #fb7185, #e11d48);
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}
.btn-gold:hover, .btn-corail:hover { transform: translateY(-2px) scale(1.02); }
.btn-gold:active, .btn-corail:active { transform: translateY(0) scale(0.98); }

.chip-ej {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a3412;
  background: #fff;
  border: 1px solid rgba(234, 88, 12, 0.25);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.12);
  transition: transform 0.2s ease;
}
.chip-ej:hover { transform: translateY(-2px) scale(1.04); }

.logo-mark {
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.25);
  transition: transform 0.35s ease;
}
.group:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.1);
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.05);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.94); }

.nav-link { position: relative; color: #6b5360; transition: color 0.2s ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e11d48, #ea580c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.is-on { color: #be123c; }
.nav-link:hover::after, .nav-link.is-on::after { transform: scaleX(1); }

.flash-in { animation: rise 0.4s ease both; background: #fff; }

input, select, textarea {
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.18);
  color: var(--ink);
  border-radius: 0.95rem;
  padding: 0.75rem 0.95rem;
  width: 100%;
  box-shadow: 0 1px 2px rgba(28, 16, 36, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(225, 29, 72, 0.4); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: #e11d48; }

label:has(> input[type="radio"][name="usd"]) {
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
label:has(> input[type="radio"][name="usd"]):hover { transform: translateY(-3px); }
label:has(> input[type="radio"][name="usd"]:checked) {
  border-color: #e11d48 !important;
  background: linear-gradient(180deg, #fff, #fff1f2);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.16);
  transform: translateY(-3px);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.16);
  color: #6b5360;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.05);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill:hover { transform: translateY(-2px); color: #be123c; border-color: #fda4af; }
.pill.is-on {
  background: linear-gradient(90deg, #fb7185, #e11d48);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.28);
}

.shimmer {
  background: linear-gradient(110deg, transparent 35%, rgba(225, 29, 72, 0.12) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: shine 2.6s linear infinite;
}
@keyframes shine { to { background-position-x: -220%; } }

.photo-lock {
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,241,242,.2)),
    repeating-linear-gradient(-45deg, #fff1f2 0 12px, #ffe4e6 12px 24px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #be123c;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px dashed rgba(225, 29, 72, 0.35);
}

.hero { position: relative; text-align: center; padding: 2.6rem 0 1.6rem; overflow: hidden; }
.hero .logo-mark { display: block; margin: 0 auto 1.25rem; }
.hero-glow {
  position: absolute;
  left: 50%; top: 0;
  width: 460px; height: 280px;
  margin-left: -230px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.35), transparent 68%);
  pointer-events: none;
}
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hearts span {
  position: absolute; bottom: -12px;
  width: 10px; height: 10px;
  background: #fb7185;
  transform: rotate(45deg);
  opacity: 0.7;
  animation: floatHeart 9s linear infinite;
}
.hearts span::before, .hearts span::after {
  content: ""; position: absolute; width: 10px; height: 10px; background: inherit; border-radius: 50%;
}
.hearts span::before { left: -5px; }
.hearts span::after { top: -5px; }
.hearts span:nth-child(1) { left: 12%; }
.hearts span:nth-child(2) { left: 28%; animation-duration: 11s; animation-delay: -2s; background: #fb923c; }
.hearts span:nth-child(3) { left: 48%; animation-duration: 8s; animation-delay: -4s; }
.hearts span:nth-child(4) { left: 66%; animation-duration: 12s; animation-delay: -1s; background: #fb923c; }
.hearts span:nth-child(5) { left: 82%; animation-duration: 9s; animation-delay: -3s; }
@keyframes floatHeart {
  0% { transform: rotate(45deg) translateY(0); opacity: 0; }
  15% { opacity: 0.75; }
  100% { transform: rotate(45deg) translateY(-380px); opacity: 0; }
}

.coin-spin {
  animation: spinY 6s linear infinite;
  filter: drop-shadow(0 12px 16px rgba(234, 88, 12, 0.25));
}
@keyframes spinY { to { transform: rotateY(360deg); } }

.gift-tile {
  padding: 0.75rem 0.4rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gift-tile:hover {
  transform: translateY(-6px);
  border-color: #fecdd3;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.12);
}

.free-banner {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1.4rem;
  color: #fff;
  background: linear-gradient(110deg, #e11d48 0%, #fb7185 48%, #f97316 100%);
  animation: rise 0.6s ease both;
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
}

.mobile-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(225, 29, 72, 0.12);
  box-shadow: 0 -8px 24px rgba(190, 18, 60, 0.06);
}
.mobile-nav a { color: #6b5360; }
.mobile-nav a:hover, .mobile-nav a.is-on { color: #be123c; font-weight: 600; }

.super-aside {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-color: rgba(225, 29, 72, 0.1) !important;
  box-shadow: 8px 0 30px rgba(190, 18, 60, 0.04);
}
.super-search input {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.18);
}
.site-search {
  flex: 1;
  max-width: 14rem;
  min-width: 8rem;
}
.site-search input {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.16);
}
@media (min-width: 1100px) {
  .site-search { max-width: 18rem; }
}
.super-nav {
  display: block;
  padding: 0.55rem 0.8rem;
  margin: 0.15rem 0;
  border-radius: 0.9rem;
  color: #6b5360;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.super-nav:hover { color: #be123c; background: #fff1f2; transform: translateX(4px); }
.super-nav.is-on {
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #e11d48);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
}

table tbody tr { transition: background 0.2s ease; }
table tbody tr:hover { background: #fff1f2; }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { color: var(--ink) !important; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 0.6rem;
  padding: 0.35rem 0.6rem;
}
table.dataTable, table.dataTable thead th, table.dataTable tbody td {
  color: var(--ink) !important;
  border-color: rgba(225, 29, 72, 0.1) !important;
  background: transparent !important;
}
table.dataTable.display tbody tr.odd { background: #fff7f8 !important; }
table.dataTable.display tbody tr:hover { background: #ffe4e6 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--ink) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(90deg, #fb7185, #e11d48) !important;
  color: #fff !important;
  border: 0 !important;
}

footer { color: #6b5360; }

.install-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, #e11d48, #f97316);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.22);
  cursor: pointer;
}
.install-app-btn[hidden], .install-hint[hidden] { display: none !important; }
.install-hint { color: #6b5360; font-size: 0.75rem; }

.chat-page-main { max-width: 72rem; }
body.is-chat .orb { opacity: 0.35; }
.chat-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  height: calc(100dvh - 10.5rem);
  min-height: 28rem;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.08);
}
.chat-side {
  padding: 0.9rem;
  border-right: 1px solid rgba(225, 29, 72, 0.1);
  background: #fff7f8;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-thread {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.65rem;
  border-radius: 1rem;
  margin-bottom: 0.3rem;
  color: inherit;
  min-height: 3.4rem;
}
.chat-thread.is-on, .chat-thread:hover { background: #fff; box-shadow: 0 6px 16px rgba(225, 29, 72, 0.08); }
.chat-ava {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #fb7185, #e11d48); color: #fff; font-weight: 600;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: linear-gradient(180deg, #fff, #fff5f6);
}
.chat-empty {
  margin: auto;
  text-align: center;
  padding: 1.5rem;
  color: #6b5360;
}
.chat-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(225, 29, 72, 0.1);
  background: #fff;
  flex: none;
}
.chat-back {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  place-items: center;
  flex: none;
  background: #fff1f2;
  color: #be123c;
  font-size: 1.1rem;
  line-height: 1;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: min(78%, 34rem);
  padding: 0.7rem 0.95rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.12);
  box-shadow: 0 4px 12px rgba(28, 16, 36, 0.04);
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.45;
}
.chat-row.mine .chat-bubble { background: linear-gradient(180deg, #fb7185, #e11d48); color: #fff; border: 0; }
.chat-gift {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  background: #fff; border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 1.2rem; padding: 0.55rem 0.8rem;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.1);
}
.chat-gift img { width: 3.2rem; height: 3.2rem; }
.chat-foot {
  flex: none;
  border-top: 1px solid rgba(225, 29, 72, 0.1);
  background: rgba(255, 255, 255, 0.96);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.chat-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.75rem;
  align-items: center;
}
.chat-compose input {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.chat-compose .btn-gold {
  flex: none;
  white-space: nowrap;
  min-height: 2.75rem;
}
.chat-gifts {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0.75rem 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chat-gifts::-webkit-scrollbar { display: none; }
.chat-gifts button {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: 0.9rem; padding: 0.35rem 0.45rem; min-width: 3.4rem;
  flex: none;
}
.chat-gifts img { width: 2rem; height: 2rem; }
.chat-gifts span { font-size: 0.65rem; color: #c2410c; }

@media (max-width: 760px) {
  body.is-chat .site-header { display: none; }
  body.is-chat .chat-page-main {
    max-width: none;
    padding: 0 !important;
    margin: 0;
  }
  body.is-chat footer { display: none; }
  .chat-shell {
    grid-template-columns: 1fr;
    height: calc(100dvh - 3.6rem);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .chat-shell.has-peer .chat-side { display: none; }
  .chat-shell.no-peer .chat-main { display: none; }
  .chat-side {
    border-right: 0;
    height: 100%;
    padding: 1rem 0.85rem 1.2rem;
  }
  .chat-back { display: grid; }
  .chat-bubble { max-width: 86%; }
  .chat-compose { padding-bottom: 0.85rem; }
  .chat-compose .btn-gold { padding-left: 0.9rem; padding-right: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .rise, .rise-2, .rise-3, .shimmer, .gold-text, .coin-spin, .hearts span, .free-banner, .pointer-glow {
    animation: none !important;
  }
  .card-vin:hover, .btn-gold:hover, .btn-corail:hover { transform: none; }
}
