:root {
  --primary: #f8038e;
  --primary-dark: #c4026f;
  --primary-soft: rgba(248, 3, 142, 0.12);
  --primary-glow: rgba(248, 3, 142, 0.32);
  --gold: #e3c55b;
  --gold-bright: #f8dc4c;
  --gold-dark: #b8960c;
  --gold-soft: rgba(227, 197, 91, 0.12);
  --background: #000000;
  --background-deep: #080808;
  --surface: #0f0f0f;
  --surface-raised: #161616;
  --surface-hover: #1c1c1c;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #6f6f6f;
  --border: rgba(227, 197, 91, 0.24);
  --border-pink: rgba(248, 3, 142, 0.28);
  --success: #39d98a;
  --danger: #ff6868;
  --radius: 16px;
  --radius-small: 10px;
  --radius-pill: 999px;
  --container: 1160px;
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.5);
  --transition: 180ms ease;
}

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

html {
  min-width: 320px;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(248, 3, 142, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(227, 197, 91, 0.07), transparent 24rem);
  content: "";
  pointer-events: none;
}

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

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 3px solid rgba(248, 3, 142, 0.55);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
}

p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  width: min(var(--container), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
}

.site-brand {
  width: clamp(150px, 18vw, 210px);
  flex: 0 1 auto;
}

.site-brand img {
  width: 100%;
  max-height: 52px;
  border-radius: 7px;
  object-fit: cover;
}

.site-navigation {
  min-width: 0;
  margin-left: auto;
}

.site-navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-navigation a {
  display: block;
  padding: 0.48rem 0.62rem;
  border-radius: var(--radius-small);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-navigation a:hover,
.site-navigation a.active {
  background: var(--primary-soft);
  color: var(--text);
}

.site-navigation a.active {
  border: 1px solid var(--border-pink);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--text);
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

.logout-form {
  flex: 0 0 auto;
  margin: 0;
}

.logout-icon {
  display: none;
  width: 21px;
  height: 21px;
}

.site-content {
  width: min(var(--container), calc(100% - 2rem));
  min-height: calc(100vh - 240px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background-deep);
}

.site-footer-inner {
  display: flex;
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.flash-messages {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(var(--container), calc(100% - 2rem));
  margin: 1rem auto 0;
  gap: 0.6rem;
}

.alert {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-raised);
}

.alert.success {
  border-color: rgba(57, 217, 138, 0.35);
  color: var(--success);
}

.alert.error {
  border-color: rgba(255, 104, 104, 0.35);
  color: var(--danger);
}

.page-shell,
.dashboard-shell {
  display: grid;
  gap: 1.5rem;
}

.page-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading > div,
.card-heading > div {
  min-width: 0;
}

.page-heading p,
.card-heading p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.section-label {
  margin-bottom: 0.35rem !important;
  color: var(--primary) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.content-card,
.page-card,
.payment-receipt,
.login-card {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--surface-raised), var(--surface));
  box-shadow: var(--shadow-card);
}

.dashboard-heading {
  align-items: stretch;
}

.dashboard-greeting {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.greeting-word {
  margin-bottom: 0;
}

.customer-display-name {
  width: 100%;
  margin: 0.2rem 0 0.85rem;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  white-space: nowrap;
}

.dashboard-intro {
  margin-bottom: 0;
}

.stat-card {
  position: relative;
  display: grid;
  min-width: 270px;
  padding: 1rem 1.15rem;
  overflow: hidden;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  border: 1px solid rgba(227, 197, 91, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 3, 142, 0.24), transparent 58%),
    linear-gradient(145deg, rgba(227, 197, 91, 0.08), rgba(248, 3, 142, 0.08)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-card);
}

.stat-card::after {
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold), var(--primary));
  content: "";
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(227, 197, 91, 0.38);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(227, 197, 91, 0.2), rgba(248, 3, 142, 0.17));
  color: var(--gold-bright);
  font-size: 1.05rem;
  line-height: 1;
}

.stat-copy {
  display: grid;
  min-width: 0;
}

.stat-label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.stat-copy small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.stat-value {
  color: var(--gold-bright);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(227, 197, 91, 0.22);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 1.25rem;
}

.live-cart-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.55rem;
  list-style: none;
}

.live-cart-list li {
  display: flex;
  min-width: 0;
  padding: 0.75rem 0;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.live-cart-list li:last-child {
  border-bottom: 0;
}

.live-cart-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-cart-list strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.85rem;
}

.live-cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.live-cart-remove {
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 104, 104, 0.55);
  background: transparent;
  box-shadow: none;
  color: var(--danger);
  font-size: 0.72rem;
}

.fulfillment-choice {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.fulfillment-choice > p,
.fulfillment-option small {
  color: var(--text-muted);
}

.fulfillment-choice form {
  display: grid;
  gap: 0.75rem;
}

.fulfillment-option {
  display: flex;
  padding: 0.8rem;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.fulfillment-option span {
  display: grid;
}

.empty-list-item,
.empty-table-cell {
  color: var(--text-muted);
  text-align: center;
}

.total-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border-pink);
}

.total-card::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--primary-glow);
  filter: blur(50px);
  content: "";
  pointer-events: none;
}

.total-card > * {
  position: relative;
  z-index: 1;
}

.grand-total {
  margin: 1.2rem 0;
  color: var(--gold-bright);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

button,
.btn-primary,
.btn-outline,
.button-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0.68rem 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

button,
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 24px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.4);
  color: white;
}

button:hover:not(:disabled),
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff4db8, var(--primary));
  box-shadow: 0 0 36px var(--primary-glow);
  color: white;
}

button:disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gold);
  color: black;
}

.btn-small {
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.table-card,
.table-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.86rem;
}

.compact-table table {
  min-width: 420px;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  text-align: left;
}

th {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

td form {
  margin: 0;
}

.table-action-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.form-card,
.login-card form {
  display: grid;
  gap: 1rem;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  outline: none;
  background: var(--surface-raised);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.login-page .site-content {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

.password-change-card > form + form {
  margin-top: 1.25rem;
}

.login-heading {
  margin-bottom: 1.3rem;
  text-align: center;
}

.login-heading .eyebrow,
.login-heading .intro,
.login-card .privacy {
  color: var(--text-muted);
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.remember label {
  margin: 0;
}

.login-card .privacy {
  margin: 1.2rem 0 0;
  font-size: 0.76rem;
  text-align: center;
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.25rem;
}

.coupon-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.coupon-card-media {
  display: grid;
  min-height: 190px;
  padding: 1rem;
  place-items: center;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #ff2aa5, #d90077);
}

.coupon-card-media img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
}

.coupon-card-content {
  padding: 1.35rem;
  background: #ffffff;
  color: #151515;
}

.coupon-card-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.coupon-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.coupon-card p {
  color: #4b4b4b;
}

.status-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-pill);
  color: #515151;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-available {
  border-color: rgba(57, 217, 138, 0.35);
  background: rgba(57, 217, 138, 0.1);
  color: var(--success);
}

.status-used {
  border-color: var(--border-pink);
  background: var(--primary-soft);
  color: var(--primary);
}

.coupon-expiration,
.helper-text {
  font-size: 0.82rem;
}

.coupon-warning {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(184, 150, 12, 0.32);
  border-radius: var(--radius-small);
  background: rgba(227, 197, 91, 0.16);
  color: #715900 !important;
  font-size: 0.82rem;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--text-muted);
  text-align: center;
}

.detail-actions {
  display: flex;
  margin-top: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.detail-actions form {
  margin: 0;
}

.details-summary,
.receipt-summary,
.receipt-totals,
article > dl {
  display: grid;
  margin: 1.2rem 0;
  gap: 0;
}

dl > div {
  display: flex;
  padding: 0.65rem 0;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

dt {
  color: var(--text-muted);
}

dd {
  margin: 0;
  text-align: right;
}

.paid-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(57, 217, 138, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(57, 217, 138, 0.1);
  color: var(--success);
  font-size: 0.78rem;
}

.receipt-heading,
.receipt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.receipt-actions {
  margin-top: 1rem;
}

.receipt-grand-total {
  color: var(--gold-bright);
  font-size: 1.08rem;
  font-weight: 800;
}

.receipt-note {
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-navigation {
    display: none;
    order: 4;
    width: 100%;
    margin: 0;
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.75rem 0 0.15rem;
    gap: 0.45rem;
  }

  .site-navigation a {
    text-align: center;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header-inner,
  .site-content,
  .site-footer-inner,
  .flash-messages {
    width: min(100% - 1rem, var(--container));
  }

  .site-brand {
    width: min(42vw, 150px);
    min-width: 0;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .logout-form {
    flex: 0 0 40px;
  }

  .logout-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .logout-label {
    display: none;
  }

  .logout-icon {
    display: block;
  }

  .site-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-heading,
  .dashboard-heading,
  .card-heading,
  .receipt-heading,
  .receipt-actions,
  .site-footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-card {
    min-width: 0;
    width: 100%;
  }

  .content-card,
  .page-card,
  .payment-receipt,
  .login-card {
    padding: 1rem;
    border-radius: 13px;
  }

  .table-card,
  .table-scroll {
    margin-right: 0;
    margin-left: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table-card table,
  .table-scroll table,
  .compact-table table {
    display: block;
    min-width: 100%;
  }

  .table-card thead,
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-card tbody,
  .table-scroll tbody {
    display: grid;
    gap: 0.75rem;
  }

  .table-card tbody tr,
  .table-scroll tbody tr {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(248, 3, 142, 0.34);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(22, 4, 14, 0.94), rgba(7, 7, 7, 0.99));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  }

  .table-card tbody tr:hover,
  .table-scroll tbody tr:hover {
    background: linear-gradient(145deg, rgba(30, 5, 18, 0.96), rgba(9, 9, 9, 1));
  }

  .table-card td,
  .table-scroll td,
  .compact-table td {
    display: flex;
    min-width: 0;
    padding: 0.72rem 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
  }

  .table-card td::before,
  .table-scroll td::before {
    flex: 0 0 auto;
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-align: left;
  }

  .table-card td > *,
  .table-scroll td > * {
    max-width: 65%;
  }

  .table-card .table-action-cell form,
  .table-scroll .table-action-cell form {
    display: flex;
    justify-content: flex-end;
  }

  .dashboard-page .vip-pending-invoices .table-action-cell {
    padding-top: 0.85rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
    background: rgba(248, 3, 142, 0.055);
  }

  .dashboard-page .vip-pending-invoices .table-action-cell::before {
    width: 100%;
  }

  .dashboard-page .vip-pending-invoices .table-action-cell form {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .dashboard-page .vip-pending-invoices .table-action-cell .btn-primary {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    background: linear-gradient(135deg, #ff2aa5, #d50076);
    box-shadow: 0 8px 20px rgba(248, 3, 142, 0.25);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
  }

  .dashboard-page .vip-pending-invoices .table-action-cell .btn-primary::after {
    margin-left: 0.45rem;
    content: "→";
    font-size: 1rem;
  }

  .dashboard-page .vip-pending-invoices .table-action-cell .btn-primary:hover {
    background: linear-gradient(135deg, #ff45b2, #ee0085);
    box-shadow: 0 10px 25px rgba(248, 3, 142, 0.38);
  }

  .table-card .empty-table-cell,
  .table-scroll .empty-table-cell {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  .table-card .empty-table-cell::before,
  .table-scroll .empty-table-cell::before {
    content: none;
  }

  .live-cart-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .coupon-card-title,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-actions > *,
  .detail-actions form,
  .detail-actions button,
  .detail-actions a {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .site-brand {
    width: min(39vw, 128px);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-navigation a {
    padding: 0.55rem 0.35rem;
    font-size: 0.75rem;
  }

  .table-action-cell .btn-small {
    padding: 0.4rem 0.7rem;
  }
}

/* Dashboard VIP: composición compacta inspirada en la tarjeta móvil de referencia. */
.dashboard-page {
  background:
    radial-gradient(circle at 50% 11rem, rgba(248, 3, 142, 0.1), transparent 17rem),
    #000000;
}

.dashboard-page::before,
.dashboard-page .site-header,
.dashboard-page .site-footer {
  display: none;
}

.dashboard-page .site-content {
  width: 100%;
  min-height: 100vh;
  padding: 4px 0;
}

.dashboard-page .flash-messages {
  width: min(452px, calc(100% - 1rem));
}

.vip-dashboard-frame {
  position: relative;
  width: min(452px, calc(100% - 8px));
  min-height: calc(100vh - 8px);
  margin: 0 auto;
  padding: 17px 16px 22px;
  overflow: hidden;
  border: 0;
  border-radius: 27px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18rem),
    #020202;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.78);
}

.vip-dashboard-topbar {
  position: relative;
  display: flex;
  min-height: 83px;
  align-items: flex-start;
  justify-content: center;
}

.vip-dashboard-brand {
  display: grid;
  width: min(225px, 63vw);
  place-items: center;
  color: white;
}

.vip-dashboard-brand:hover {
  color: white;
}

.vip-dashboard-brand img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.vip-dashboard-brand span {
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1;
}

.vip-notification-button {
  position: absolute;
  top: 7px;
  right: 1px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
}

.vip-notification-button:hover {
  color: var(--primary);
}

.vip-notification-button svg {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.14));
}

.vip-notification-button strong {
  position: absolute;
  top: -1px;
  right: -1px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #020202;
  border-radius: var(--radius-pill);
  background: var(--primary);
  box-shadow: 0 0 14px rgba(248, 3, 142, 0.62);
  color: white;
  font-size: 0.75rem;
  line-height: 1;
}

.vip-profile-card {
  display: grid;
  padding: 2px 0 12px;
  place-items: center;
  text-align: center;
}

.vip-avatar {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 12px;
  place-items: center;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(145deg, #2a2a2a, #080808 62%);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.9),
    0 0 23px rgba(248, 3, 142, 0.28);
}

.vip-avatar > span {
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 3.7rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(248, 3, 142, 0.45);
}

.vip-avatar > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.vip-avatar-upload {
  position: absolute;
  right: -6px;
  bottom: 3px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 3px solid #020202;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(248, 3, 142, 0.55);
  color: white;
  cursor: pointer;
  font-style: normal;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vip-avatar-upload:hover,
.vip-avatar-upload:focus-within {
  box-shadow: 0 0 22px rgba(248, 3, 142, 0.78);
  transform: scale(1.06);
}

.vip-avatar-upload svg {
  width: 22px;
  height: 22px;
}

.vip-greeting-line {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vip-greeting-line h1 {
  max-width: calc(100% - 52px);
  margin: 0;
  overflow: hidden;
  color: white;
  font-size: clamp(1.22rem, 5.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
  white-space: nowrap;
}

.vip-greeting-line > span {
  color: var(--primary);
  font-size: 0.92rem;
  line-height: 1;
  transform: rotate(-12deg);
}

.vip-greeting-line > span:last-child {
  align-self: flex-start;
  font-size: 0.75rem;
  transform: translateY(-1px) rotate(18deg);
}

.vip-status-chip {
  margin: 8px 0 0;
  padding: 4px 19px;
  border: 1px solid #ff46b3;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ff29a5, #df007a);
  box-shadow: 0 0 16px rgba(248, 3, 142, 0.42);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.vip-membership-card,
.vip-points-card {
  position: relative;
  border: 1px solid rgba(248, 3, 142, 0.82);
  border-radius: 15px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow:
    inset 0 0 18px rgba(248, 3, 142, 0.035),
    0 0 18px rgba(248, 3, 142, 0.08);
}

.vip-membership-card {
  display: grid;
  min-height: 103px;
  margin-bottom: 10px;
  padding: 17px 0 14px 18px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 100px;
}

.vip-membership-card > div:first-child {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 7px;
}

.vip-membership-card > div:first-child span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.vip-membership-card > div:first-child strong {
  overflow-wrap: normal;
  color: white;
  font-size: clamp(0.75rem, 3.4vw, 0.88rem);
  font-weight: 600;
  line-height: 1.35;
}

.vip-membership-age {
  display: grid;
  padding: 0 10px;
  place-items: center;
  border-left: 1px solid rgba(248, 3, 142, 0.78);
  text-align: center;
}

.vip-membership-age small,
.vip-membership-age span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  line-height: 1.15;
}

.vip-membership-age strong {
  color: white;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.vip-membership-age span {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.vip-points-card {
  display: flex;
  min-height: 126px;
  margin-bottom: 12px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 55%, rgba(248, 3, 142, 0.22), transparent 31%),
    linear-gradient(115deg, #080308, #17020f 67%, #3d0525);
  color: white;
}

a.vip-points-card:hover {
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.vip-points-card::after {
  position: absolute;
  right: -34px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(248, 3, 142, 0.2);
  filter: blur(27px);
  content: "";
}

.vip-points-card > div:first-child {
  position: relative;
  z-index: 1;
  display: grid;
}

.vip-points-card > div:first-child > span {
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
}

.vip-points-card > div:first-child > strong {
  margin: 4px 0 2px;
  color: var(--primary);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 18px rgba(248, 3, 142, 0.34);
}

.vip-points-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.vip-gift-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 57px;
  height: 57px;
  margin-right: 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 166, 0.34), rgba(248, 3, 142, 0.08));
  box-shadow: 0 0 24px rgba(248, 3, 142, 0.31);
  color: white;
}

.vip-gift-icon svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.32));
}

.vip-points-heart {
  position: absolute;
  right: 13px;
  bottom: 8px;
  z-index: 1;
  color: var(--primary);
  font-size: 0.75rem;
  transform: rotate(-18deg);
}

.vip-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.vip-quick-grid a {
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 8px 4px 7px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(13, 13, 13, 0.96), rgba(2, 2, 2, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 5px 15px rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.vip-quick-grid a:hover {
  border-color: rgba(248, 3, 142, 0.74);
  background: rgba(248, 3, 142, 0.1);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(248, 3, 142, 0.14);
}

.vip-quick-grid svg {
  width: 25px;
  height: 25px;
}

.vip-quick-grid span {
  overflow-wrap: normal;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.18;
}

.vip-dashboard-details {
  display: grid;
  margin-top: 32px;
  padding-top: 22px;
  gap: 12px;
  border-top: 1px solid rgba(248, 3, 142, 0.32);
  scroll-margin-top: 18px;
}

.dashboard-page .dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.dashboard-page .content-card {
  padding: 15px;
  border-color: rgba(248, 3, 142, 0.34);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(22, 4, 14, 0.92), rgba(7, 7, 7, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.dashboard-page .content-card h2 {
  font-size: 1.05rem;
}

.dashboard-page .grand-total {
  color: var(--primary);
  font-size: 2.15rem;
}

.dashboard-page .vip-pending-invoices {
  margin-top: 0;
}

.vip-dashboard-logout {
  display: flex;
  margin: 19px 0 0;
  justify-content: center;
}

.vip-dashboard-logout .btn-outline {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.68);
}

.vip-dashboard-logout .btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: white;
}

@media (min-width: 700px) and (max-width: 959px) {
  .dashboard-page .site-content {
    padding: 16px 0;
  }

  .vip-dashboard-frame {
    min-height: calc(100vh - 32px);
  }
}

@media (min-width: 960px) {
  .dashboard-page .site-content {
    padding: 10px 24px 24px;
  }

  .vip-dashboard-frame {
    display: grid;
    width: min(1180px, 100%);
    min-height: calc(100vh - 34px);
    padding: 12px 32px 30px;
    align-content: start;
    column-gap: 22px;
    grid-template-areas:
      "topbar topbar topbar"
      "profile membership points"
      "quick quick quick"
      "details details details"
      "logout logout logout";
    grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1.1fr) minmax(280px, 1.1fr);
    border-radius: 22px;
  }

  .vip-dashboard-topbar {
    grid-area: topbar;
    min-height: 82px;
    justify-content: flex-start;
  }

  .vip-dashboard-brand {
    width: 235px;
  }

  .vip-dashboard-brand img {
    height: 64px;
  }

  .vip-notification-button {
    top: 10px;
    right: 5px;
  }

  .vip-profile-card {
    grid-area: profile;
    min-height: 214px;
    padding: 0 22px;
    align-content: center;
    border: 1px solid rgba(248, 3, 142, 0.32);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 4, 12, 0.82), rgba(4, 4, 4, 0.98));
  }

  .vip-avatar {
    width: 128px;
    height: 128px;
  }

  .vip-greeting-line h1 {
    font-size: 1.35rem;
  }

  .vip-membership-card {
    grid-area: membership;
    min-height: 214px;
    margin: 0;
    padding: 26px 0 26px 30px;
    grid-template-columns: minmax(0, 1fr) 138px;
    border-color: rgba(248, 3, 142, 0.56);
    border-radius: 18px;
    background:
      radial-gradient(circle at 92% 12%, rgba(248, 3, 142, 0.12), transparent 42%),
      linear-gradient(145deg, rgba(18, 5, 13, 0.96), rgba(5, 5, 5, 0.99));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  }

  .vip-membership-card > div:first-child {
    gap: 12px;
  }

  .vip-membership-card > div:first-child span,
  .vip-points-card > div:first-child > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }

  .vip-membership-card > div:first-child strong {
    max-width: 220px;
    color: white;
    font-size: 1.18rem;
    line-height: 1.35;
  }

  .vip-membership-age {
    margin: -8px 0;
    padding: 16px 18px;
    border-left-color: rgba(248, 3, 142, 0.52);
    background: linear-gradient(90deg, rgba(248, 3, 142, 0.025), rgba(248, 3, 142, 0.09));
  }

  .vip-membership-age strong {
    color: var(--primary);
    font-size: 2.65rem;
    font-weight: 600;
    text-shadow: 0 0 18px rgba(248, 3, 142, 0.3);
  }

  .vip-points-card {
    grid-area: points;
    min-height: 214px;
    margin: 0;
    padding: 28px 30px;
    border-color: rgba(248, 3, 142, 0.68);
    border-radius: 18px;
    background:
      radial-gradient(circle at 82% 50%, rgba(248, 3, 142, 0.28), transparent 34%),
      linear-gradient(125deg, #090307, #210313 68%, #48072c);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  }

  .vip-points-card > div:first-child > strong {
    margin: 12px 0 7px;
    font-size: 3.35rem;
  }

  .vip-points-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
  }

  .vip-gift-icon {
    width: 76px;
    height: 76px;
  }

  .vip-gift-icon svg {
    width: 42px;
    height: 42px;
  }

  .vip-quick-grid {
    grid-area: quick;
    margin-top: 22px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .vip-quick-grid a {
    min-height: 92px;
    padding: 13px 8px 11px;
  }

  .vip-quick-grid svg {
    width: 30px;
    height: 30px;
  }

  .vip-quick-grid span {
    font-size: 0.78rem;
  }

  .vip-dashboard-brand span,
  .vip-notification-button strong,
  .vip-status-chip,
  .vip-membership-age small,
  .vip-membership-age span,
  .vip-points-heart,
  .vip-quick-grid span,
  .vip-dashboard-frame .section-label,
  .vip-dashboard-frame .btn-small,
  .vip-dashboard-frame th,
  .vip-dashboard-frame td {
    font-size: max(12px, 0.75rem);
  }

  .vip-dashboard-details {
    grid-area: details;
    margin-top: 34px;
    padding-top: 28px;
    gap: 18px;
  }

  .dashboard-page .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 18px;
  }

  .dashboard-page .content-card {
    padding: 22px;
  }

  .vip-dashboard-logout {
    grid-area: logout;
  }

  .dashboard-page .flash-messages {
    width: min(1180px, calc(100% - 48px));
  }
}

@media (max-width: 360px) {
  .vip-dashboard-frame {
    width: calc(100% - 4px);
    padding-right: 11px;
    padding-left: 11px;
    border-radius: 23px;
  }

  .vip-dashboard-brand {
    width: min(205px, 61vw);
  }

  .vip-avatar {
    width: 108px;
    height: 108px;
  }

  .vip-membership-card {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .vip-membership-card,
  .vip-points-card {
    padding-left: 14px;
  }
}

@media print {
  body,
  body::before {
    background: white !important;
    color: black !important;
  }

  .site-header,
  .site-footer,
  .flash-messages,
  .no-print {
    display: none !important;
  }

  .site-content {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .payment-receipt,
  .page-card {
    border: 0;
    background: white;
    box-shadow: none;
    color: black;
  }

  table {
    min-width: 0;
    color: black;
  }

  th,
  td,
  dl > div {
    border-color: #cccccc;
  }
}

.public-home-page .site-content {
  width: min(1200px, calc(100% - 2rem));
  padding-top: 0;
}
.public-nav { display: flex; margin-left: auto; align-items: center; gap: .8rem; }
.public-hero { display: grid; min-height: 0; padding: clamp(2.5rem, 5vw, 4.5rem) 0; align-items: center; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2rem, 7vw, 6rem); }
.public-hero h1 { max-width: 820px; font-size: clamp(2.6rem, 7vw, 5.6rem); }
.public-hero > div > p:not(.section-label) { max-width: 720px; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.public-actions { display: flex; margin-top: 2rem; flex-wrap: wrap; gap: .8rem; }
.public-vip-card { padding: clamp(1.5rem, 4vw, 2.6rem); border: 1px solid rgba(248, 3, 142, .58); border-radius: 26px; background: radial-gradient(circle at 90% 0, rgba(248,3,142,.35), transparent 44%), linear-gradient(145deg,#210313,#0b0b0b); box-shadow: 0 24px 70px rgba(248,3,142,.17); }
.public-vip-card > span { display: block; color: var(--primary); font-weight: 800; }
.public-vip-card > strong { display: inline-block; margin-top: .65rem; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; }
.public-vip-card > small { color: var(--text-muted); }
.public-vip-card ul { margin: 1.7rem 0 0; padding-left: 1.25rem; color: #eee; }
.account-options { display: grid; padding: 2rem 0 5rem; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.account-options header { grid-column: 1 / -1; }
.account-options article { padding: 1.5rem; border: 1px solid var(--border-pink); border-radius: var(--radius); background: var(--surface); }
.account-options article > strong { color: var(--gold); font-size: 1.7rem; }
.membership-price { display: flex; margin: 1.5rem 0; align-items: baseline; gap: .5rem; }
.membership-price strong { color: var(--primary); font-size: clamp(3rem,8vw,5rem); }
.membership-price span { color: var(--text-muted); }
.subscription-consent { display: flex; margin-bottom: 1.2rem; align-items: flex-start; gap: .7rem; color: var(--text-muted); }
.subscription-consent input { margin-top: .35rem; }
.invoice-coupons { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-pink); }
.invoice-coupon-list { display: grid; gap: .75rem; }
.invoice-coupon-list form, .selected-coupon { display: grid; padding: 1rem; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: .45rem 1rem; border: 1px solid var(--border-pink); border-radius: 12px; background: rgba(248,3,142,.06); }
.invoice-coupon-list form div { display: grid; }
.invoice-coupon-list form span, .invoice-coupon-list small, .selected-coupon span { color: var(--text-muted); }
.invoice-coupon-list form small { grid-column: 1; }
.invoice-coupon-list form button { grid-column: 2; grid-row: 1 / span 2; }
.points-shell { padding: 2rem 0 4rem; }
.points-summary-grid { display: grid; margin-top: 1.5rem; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 1rem; }
.points-balance-card, .next-reward-card, .points-history { padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--border-pink); border-radius: var(--radius); background: linear-gradient(145deg,#180310,#0d0d0d); box-shadow: var(--shadow-card); }
.points-balance-card { display: grid; align-content: center; text-align: center; }
.points-balance-card > span, .next-reward-card > span { color: var(--text-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.points-balance-card > strong { margin: .5rem 0; color: var(--primary); font-size: clamp(4rem,10vw,7rem); line-height: 1; }
.points-balance-card > small { color: var(--gold); font-size: 1rem; font-weight: 700; }
.next-reward-card h2 { margin: .55rem 0 .35rem; }
.next-reward-card p { color: var(--text-muted); }
.next-reward-card > strong { color: var(--gold); }
.points-progress { height: 12px; margin: 1.15rem 0 .45rem; overflow: hidden; border-radius: 999px; background: #303030; }
.points-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary-dark),var(--primary),var(--gold)); }
.next-reward-card > small { color: var(--text-muted); }
.points-history { margin-top: 1rem; }
.points-history-list { display: grid; }
.points-history-list article { display: flex; padding: .9rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.points-history-list article:last-child { border-bottom: 0; }
.points-history-list article > div { display: grid; }
.points-history-list article span { color: var(--text-muted); font-size: .78rem; }
.points-history-list article b { font-size: 1.15rem; }
.points-history-list .positive { color: var(--success); }
.points-history-list .negative { color: var(--danger); }

@media (max-width: 680px) {
  .public-nav > a:first-child { display: none; }
  .public-nav .btn-primary { padding-inline: .85rem; font-size: .78rem; }
  .public-home-page .site-content { padding-top: 1rem; }
  .public-hero { min-height: 0; padding: 3.25rem 0 3.5rem; grid-template-columns: 1fr; }
  .account-options { grid-template-columns: 1fr; }
  .points-summary-grid { grid-template-columns: 1fr; }
  .invoice-coupon-list form, .selected-coupon { grid-template-columns: 1fr; }
  .invoice-coupon-list form button { width: 100%; grid-column: 1; grid-row: auto; }
}


/* ---------- Página de inicio de sesión con la imagen de marca ---------- */
.login-branded {
  background: #050505 url("../img/fondo-login.jpg") center / cover no-repeat fixed;
}

.login-branded::before {
  /* Oscurece un poco el centro para que el formulario se lea bien. */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 85%);
}

.login-branded .site-header {
  /* El logo oficial ya va dentro de la tarjeta; se quita la barra superior. */
  display: none;
}

.login-branded .site-content {
  min-height: 100vh;
  padding-top: clamp(1.5rem, 6vh, 3rem);
  padding-bottom: clamp(1.5rem, 6vh, 3rem);
}

.login-branded .login-card {
  border: 1px solid rgba(227, 197, 91, 0.45);
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 0 0 1px rgba(248, 3, 142, 0.12), 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 60px rgba(248, 3, 142, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-branded .login-logo {
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto 1.4rem;
}

.login-branded .login-heading .eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-branded .login-heading h1 {
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.login-branded input:not([type="checkbox"]):not([type="hidden"]) {
  background: rgba(22, 22, 22, 0.85);
}

.login-branded .flash-messages {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .login-branded {
    /* En el celular se ve la onda fucsia de la derecha detrás del formulario. */
    background-position: 78% center;
    background-attachment: scroll;
  }
}


/* ---------- Barra de arriba con el fondo de marca y el logo oficial ---------- */
.site-header {
  border-bottom: 1px solid rgba(227, 197, 91, 0.35);
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    #050505 url("../img/fondo-login.jpg") center 42% / cover no-repeat;
}

.site-brand img {
  height: auto;
  max-height: 56px;
  border-radius: 0;
  object-fit: contain;
}

/* Barra de arriba de "Mi cuenta" (inicio de la clienta). */
.vip-dashboard-topbar {
  min-height: 0;
  margin-bottom: 14px;
  padding: 16px 12px 12px;
  align-items: center;
  border: 1px solid rgba(227, 197, 91, 0.35);
  border-radius: 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    #050505 url("../img/fondo-login.jpg") center / cover no-repeat;
}

.vip-dashboard-brand img {
  height: auto;
  max-height: 58px;
}

.vip-dashboard-brand span {
  margin-top: 8px;
  color: var(--gold);
  letter-spacing: 0.28em;
}

.vip-notification-button {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}


/* ---------- Página de presentación (Club VIP) ---------- */
.public-home-page {
  --lux-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --lux-sans: "Montserrat", "Poppins", system-ui, sans-serif;
  --lux-gold: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  --lux-hair: rgba(227, 197, 91, 0.32);
  background: #020202;
  font-family: var(--lux-sans);
}

.public-home-page::before {
  display: none;
}

/* La barra no queda fija aquí: así nunca tapa el título ni el precio. */
.public-home-page .site-header {
  position: absolute;
  right: 0;
  left: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.public-home-page .site-header-inner {
  min-height: 84px;
}

.public-home-page .site-content {
  width: 100%;
  min-height: 0;
  padding: 0;
}

.public-home-page .site-footer {
  border-top: 1px solid var(--lux-hair);
  background: #020202;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.public-login-link {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(227, 197, 91, 0.6);
  color: #ecd27a;
  font-family: var(--lux-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-login-link:hover {
  border-color: #fff1b8;
  color: #fff1b8;
}

.lux-hero {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 1.5rem 5.5rem;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 45%, #020202 100%),
    radial-gradient(ellipse 60% 55% at center, rgba(0, 0, 0, 0.7) 0%, transparent 100%),
    #050505 url("../img/fondo-login.jpg") center / cover no-repeat;
  text-align: center;
}

.lux-hero-inner {
  width: min(100%, 720px);
}

.lux-hero h1 {
  display: grid;
  margin: 0;
  gap: 1.1rem;
}

.lux-title-club {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-size: clamp(3.8rem, 17vw, 7.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.lux-title-brand {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--lux-sans);
  font-size: clamp(0.72rem, 3.1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1.6;
  text-transform: uppercase;
}

.lux-ornament {
  display: flex;
  margin: 2.2rem auto;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.lux-ornament span {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e3c55b);
}

.lux-ornament span:last-child {
  background: linear-gradient(90deg, #e3c55b, transparent);
}

.lux-ornament i {
  width: 7px;
  height: 7px;
  background: var(--lux-gold);
  transform: rotate(45deg);
}

.lux-intro {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--lux-serif);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.lux-actions {
  display: flex;
  margin-top: 2.8rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.lux-btn {
  display: inline-flex;
  min-height: 54px;
  padding: 0.9rem 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-family: var(--lux-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lux-btn-gold {
  background: var(--lux-gold);
  background-size: 160% 100%;
  box-shadow: 0 10px 34px rgba(227, 197, 91, 0.22);
  color: #120d02;
}

.lux-btn-gold:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 40px rgba(227, 197, 91, 0.34);
  color: #000000;
}

.lux-btn-line {
  border: 1px solid rgba(227, 197, 91, 0.75);
  background: rgba(0, 0, 0, 0.3);
  color: #f1dc8f;
}

.lux-btn-line:hover {
  border-color: #fff1b8;
  background: rgba(227, 197, 91, 0.1);
  color: #fff1b8;
}

.lux-plans {
  display: grid;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 6rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 2rem;
}

.lux-plan {
  position: relative;
  display: grid;
  padding: clamp(2.2rem, 7vw, 3.2rem) clamp(1.5rem, 6vw, 3rem);
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #0e0e0e, #070707);
}

.lux-plan header {
  display: grid;
  gap: 0.6rem;
  text-align: center;
}

.lux-plan-label {
  margin: 0;
  color: rgba(227, 197, 91, 0.85);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.lux-plan h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: clamp(2.1rem, 8vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.lux-price {
  display: flex;
  margin: 0.2rem 0 0;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.lux-price strong {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--lux-serif);
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.lux-price span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lux-plan-vip {
  border: 1px solid rgba(227, 197, 91, 0.65);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(248, 3, 142, 0.16), transparent 60%),
    linear-gradient(180deg, #110a0d, #070707);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(248, 3, 142, 0.08);
}

/* Marco fino interior, como una tarjeta de invitación. */
.lux-plan-vip::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(227, 197, 91, 0.22);
  content: "";
  pointer-events: none;
}

.lux-plan-vip .lux-price strong {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.8rem, 11vw, 3.4rem);
  font-weight: 500;
}

.lux-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lux-list > li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
}

.lux-list > li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lux-benefits {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lux-benefits > li {
  display: grid;
  padding: 1.35rem 0;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  border-top: 1px solid var(--lux-hair);
}

.lux-benefits > li:last-child {
  border-bottom: 1px solid var(--lux-hair);
}

.lux-icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 1px solid rgba(227, 197, 91, 0.45);
  border-radius: 50%;
  fill: none;
  stroke: url(#oro);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(227, 197, 91, 0.25));
}

.lux-benefits p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}

.lux-benefits b {
  display: block;
  margin-bottom: 0.2rem;
  color: #ecd27a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.lux-plan > .lux-btn {
  width: 100%;
}

@media (max-width: 820px) {
  .lux-plans {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 680px) {
  .public-home-page .site-header-inner {
    width: calc(100% - 2.5rem);
    flex-wrap: nowrap;
  }

  .public-home-page .site-brand {
    width: min(44vw, 170px);
  }

  .public-nav > a.public-login-link:first-child {
    display: inline-flex;
  }

  .public-login-link {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .lux-hero {
    padding: 120px 1.5rem 4.5rem;
    background-position: center, center, 6% center;
  }

  .lux-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .lux-plans {
    width: calc(100% - 2rem);
    padding-top: 0.5rem;
  }
}

.public-home-page .lux-price strong {
  font-feature-settings: "lnum" 1;
  font-variant-numeric: lining-nums;
}

/* Tarjeta Cliente Regular con más vida: dorado suave y "Gratis" en oro metálico. */
.lux-plan:not(.lux-plan-vip) {
  border: 1px solid rgba(227, 197, 91, 0.38);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 197, 91, 0.14), transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(248, 3, 142, 0.07), transparent 60%),
    linear-gradient(180deg, #14110a, #080707);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(227, 197, 91, 0.07);
}

.lux-plan:not(.lux-plan-vip) .lux-price strong {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.8rem, 11vw, 3.4rem);
  font-style: italic;
  font-weight: 500;
  filter: drop-shadow(0 2px 14px rgba(227, 197, 91, 0.3));
}

.lux-plan:not(.lux-plan-vip) h2 {
  color: #fff6dc;
}

.lux-list > li {
  border-top-color: rgba(227, 197, 91, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.lux-list > li:last-child {
  border-bottom-color: rgba(227, 197, 91, 0.18);
}

.lux-list > li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.75rem;
  background: var(--lux-gold);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.lux-plan:not(.lux-plan-vip) .lux-btn-line {
  border-color: #e3c55b;
  background: rgba(227, 197, 91, 0.08);
  color: #f8dc4c;
}

/* Cada beneficio de la tarjeta Regular en una sola línea, también en el celular. */
.lux-list > li {
  font-size: min(0.92rem, 3.1vw);
  letter-spacing: 0;
  white-space: nowrap;
}


/* ---------- Crear cuenta con el estilo de lujo del Club VIP ---------- */
.lux-register {
  --lux-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --lux-sans: "Montserrat", "Poppins", system-ui, sans-serif;
  --lux-gold: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  --lux-hair: rgba(227, 197, 91, 0.32);
  font-family: var(--lux-sans);
}

.lux-register .lux-register-card {
  width: min(100%, 460px);
  padding: clamp(1.6rem, 5vw, 2.6rem) clamp(1.3rem, 5vw, 2.4rem);
  border-radius: 4px;
  border-color: rgba(227, 197, 91, 0.55);
  background: rgba(4, 4, 4, 0.82);
}

.lux-register .login-logo {
  width: min(100%, 250px);
  margin-bottom: 1.6rem;
}

.lux-register-heading {
  text-align: center;
}

.lux-register-eyebrow {
  margin: 0 0 0.6rem;
  color: #ecd27a;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lux-register-heading h1 {
  margin: 0;
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-size: clamp(2.4rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.lux-register .lux-ornament {
  margin: 1rem auto 1.4rem;
}

.lux-steps {
  display: grid;
  margin: 0 0 1.6rem;
  padding: 0;
  gap: 0;
  list-style: none;
}

.lux-steps li {
  display: flex;
  padding: 0.7rem 0;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--lux-hair);
}

.lux-steps li:last-child {
  border-bottom: 1px solid var(--lux-hair);
}

.lux-steps span {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(227, 197, 91, 0.7);
  border-radius: 50%;
  color: #f1dc8f;
  font-family: var(--lux-serif);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
}

.lux-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--lux-serif);
  font-size: 1.12rem;
  font-variant-numeric: lining-nums;
  line-height: 1.3;
}

.lux-register-form label {
  color: #ecd27a;
  font-family: var(--lux-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lux-register.login-branded .lux-register-form input:not([type="checkbox"]):not([type="hidden"]) {
  border: 1px solid rgba(227, 197, 91, 0.35);
  border-radius: 2px;
  background: rgba(14, 14, 14, 0.9);
  font-family: var(--lux-sans);
}

.lux-register-form input:focus {
  border-color: #e3c55b;
  box-shadow: 0 0 0 3px rgba(227, 197, 91, 0.18);
}

.lux-register-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lux-register-form button.lux-btn {
  width: 100%;
  margin-top: 0.6rem;
  border: 0;
  cursor: pointer;
}

.lux-register-login {
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  text-align: center;
}

.lux-register-login a {
  border-bottom: 1px solid rgba(227, 197, 91, 0.6);
  color: #ecd27a;
}

.lux-register-minimum {
  margin: -0.6rem 0 1.6rem;
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}


/* ---------- Tarjeta de número de canasta (Mi cuenta) ---------- */
.basket-card {
  margin: 0 0 14px;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(227, 197, 91, 0.12), transparent 70%),
    #070707;
  color: #ffffff;
  text-align: center;
}

.basket-card-label {
  margin: 0 0 0.4rem;
  color: #ecd27a;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.basket-card h2 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
}

.basket-card .basket-card-number {
  margin: 0.2rem 0 0.6rem;
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.4rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.basket-card-text {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.basket-card-note {
  margin: 0;
  color: #ecd27a;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.basket-card-list {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.basket-card-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-top: 1px solid rgba(227, 197, 91, 0.25);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.basket-card-list li:last-child {
  border-bottom: 1px solid rgba(227, 197, 91, 0.25);
}

.basket-card-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0.2rem;
  width: 6px;
  height: 6px;
  background: #e3c55b;
  content: "";
  transform: rotate(45deg);
}

.basket-card .basket-card-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  box-shadow: 0 10px 30px rgba(227, 197, 91, 0.22);
  color: #120d02;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fulfillment-destination {
  display: grid;
  margin: 0 0 0.8rem;
  gap: 0.35rem;
}

.fulfillment-destination span {
  font-size: 0.85rem;
  font-weight: 600;
}

.deposit-credit-line dt,
.deposit-credit-line dd {
  color: #b8960c;
  font-size: 0.85em;
}


/* ---------- Canasta en vivo: número, punto verde y fotos ---------- */
.live-cart-head {
  display: flex;
  margin-bottom: 0.8rem;
  align-items: center;
  gap: 0.8rem;
}

.live-cart-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  fill: none;
  stroke: #e3c55b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.live-cart-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.live-cart-titles .section-label {
  margin: 0;
}

.live-cart-titles h2 {
  margin: 0;
  font-variant-numeric: lining-nums;
}

.live-badge {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge[hidden] {
  display: none;
}

.live-badge i {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}

.live-badge i::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  content: "";
  animation: live-pulse 1.4s ease-out infinite;
}

@keyframes live-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}

@media (prefers-reduced-motion: reduce) {
  .live-badge i::after { animation: none; }
}

.live-cart-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.live-cart-photo {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(227, 197, 91, 0.35);
  border-radius: 10px;
  background: #111111;
  object-fit: cover;
}

.live-cart-photo-empty {
  display: block;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e3c55b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19h38M8 19l4 21h24l4-21M16 19l6-11M32 19l-6-11'/%3E%3C/svg%3E") center / 60% no-repeat,
    #111111;
}

.live-cart-info {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.live-cart-info .live-cart-name {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 600;
}

.live-cart-info small {
  color: rgba(255, 255, 255, 0.65);
}

.live-cart-info .live-cart-saving {
  color: #e3c55b;
  font-weight: 600;
}

.live-cart-savings {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(227, 197, 91, 0.45);
  border-radius: 12px;
  background: rgba(227, 197, 91, 0.08);
  color: #f1dc8f;
  font-size: 0.9rem;
  text-align: center;
}

.live-cart-savings[hidden] {
  display: none;
}

.live-cart-list li.empty-list-item {
  display: block;
}

@media (max-width: 640px) {
  .live-cart-list li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .live-cart-photo {
    width: 48px;
    height: 48px;
  }

  .live-cart-line-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }
}

/* ---------- Método de entrega: Envío, Entrega y Pickup ---------- */
.fulfillment-fields {
  display: grid;
  margin: -0.2rem 0 0.9rem;
  padding: 0.9rem 1rem;
  gap: 0.7rem;
  border: 1px solid rgba(227, 197, 91, 0.35);
  border-radius: 12px;
}

.fulfillment-fields[hidden] {
  display: none;
}

.fulfillment-fields legend {
  padding: 0 0.4rem;
  color: #e3c55b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fulfillment-fields label {
  display: grid;
  gap: 0.3rem;
}

.fulfillment-fields label span {
  font-size: 0.85rem;
  font-weight: 600;
}


/* ---------- Factura y recibo con el estilo de lujo (fondo de marca, letras finas y dorado) ---------- */
.lux-doc {
  --lux-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --lux-sans: "Montserrat", "Poppins", system-ui, sans-serif;
  --lux-gold: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  --lux-hair: rgba(227, 197, 91, 0.32);
  background: #050505 url("../img/fondo-login.jpg") center / cover no-repeat fixed;
  font-family: var(--lux-sans);
}

.lux-doc::before {
  background: rgba(0, 0, 0, 0.55);
}

.lux-doc .page-card,
.lux-doc .payment-receipt {
  border: 1px solid rgba(227, 197, 91, 0.5);
  border-radius: 6px;
  background: rgba(6, 6, 6, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(248, 3, 142, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lux-doc .section-label,
.lux-doc .receipt-eyebrow {
  color: #ecd27a;
  font-family: var(--lux-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lux-doc h1 {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-size: clamp(2.3rem, 9vw, 3rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lux-doc h2 {
  color: #f6ecd0;
  font-family: var(--lux-serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.lux-doc .page-heading p,
.lux-doc .fulfillment-choice > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.lux-doc table {
  font-family: var(--lux-sans);
}

.lux-doc th {
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lux-doc th,
.lux-doc td,
.lux-doc dl > div {
  border-color: var(--lux-hair);
}

.lux-doc td,
.lux-doc dd {
  font-variant-numeric: lining-nums tabular-nums;
}

.lux-doc dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lux-doc .page-card > dl > div:last-child dt,
.lux-doc .invoice-summary > dl > div:last-child dt,
.lux-doc .receipt-grand-total dt {
  color: #ecd27a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lux-doc .page-card > dl > div:last-child dd,
.lux-doc .invoice-summary > dl > div:last-child dd,
.lux-doc .receipt-grand-total dd {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-size: 2rem;
  font-weight: 600;
}

.lux-doc .fulfillment-option {
  border-color: var(--lux-hair);
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.85);
}

.lux-doc .fulfillment-option strong {
  color: #f6ecd0;
  font-family: var(--lux-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.lux-doc .fulfillment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #e3c55b;
}

.lux-doc .fulfillment-fields {
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.6);
}

.lux-doc input:not([type="radio"]):not([type="hidden"]),
.lux-doc select {
  border: 1px solid rgba(227, 197, 91, 0.35);
  border-radius: 2px;
  background: rgba(14, 14, 14, 0.9);
  font-family: var(--lux-sans);
}

.lux-doc .btn-primary {
  border: 0;
  border-radius: 2px;
  background: var(--lux-gold);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px rgba(227, 197, 91, 0.22);
  color: #120d02;
  font-family: var(--lux-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lux-doc .btn-primary:disabled {
  opacity: 0.45;
}

.lux-doc .btn-outline {
  border: 1px solid rgba(227, 197, 91, 0.75);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  color: #f1dc8f;
  font-family: var(--lux-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lux-doc .paid-badge {
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lux-doc .receipt-note p {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--lux-serif);
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
}

@media (max-width: 640px) {
  .lux-doc {
    background-position: 78% center;
    background-attachment: scroll;
  }
}

@media print {
  .lux-doc {
    background: white;
  }

  .lux-doc h1,
  .lux-doc .page-card > dl > div:last-child dd,
  .lux-doc .invoice-summary > dl > div:last-child dd,
  .lux-doc .receipt-grand-total dd {
    background: none;
    color: black;
  }

  .lux-doc .page-card,
  .lux-doc .payment-receipt {
    backdrop-filter: none;
  }
}


/* ---------- Cuenta gratis: solo la canasta, con el estilo de lujo ---------- */
.free-greeting {
  margin: 0.6rem 0 1.2rem;
  text-align: center;
}

.free-greeting p {
  margin: 0 0 0.4rem;
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.free-greeting .lux-ornament {
  margin: 0.9rem auto 0;
}

.free-dashboard .vip-dashboard-topbar {
  justify-content: center;
}

.free-dashboard .basket-card,
.free-dashboard .content-card {
  border: 1px solid rgba(227, 197, 91, 0.5);
  border-radius: 6px;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.free-dashboard .basket-card h2 {
  font-family: var(--lux-serif);
}

.free-dashboard .basket-card .basket-card-button,
.free-dashboard .total-card .btn-primary {
  border-radius: 2px;
}

.free-dashboard .grand-total {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-variant-numeric: lining-nums;
}

.free-dashboard .vip-dashboard-logout {
  display: flex;
  justify-content: center;
}

.free-dashboard .vip-dashboard-logout .btn-outline {
  border: 0;
  border-bottom: 1px solid rgba(227, 197, 91, 0.6);
  border-radius: 0;
  background: transparent;
  color: #ecd27a;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.lux-remember {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lux-remember input {
  width: 18px;
  height: 18px;
  accent-color: #e3c55b;
}

.lux-register .lux-remember label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Cuenta gratis: etiquetas doradas y botón "Revisar" completo */
.free-dashboard .section-label,
.lux-doc .section-label {
  color: #ecd27a !important;
}

.free-dashboard .vip-pending-invoices .table-action-cell {
  display: block;
  width: 100%;
  overflow: visible;
}

.free-dashboard .vip-pending-invoices .table-action-cell::before {
  display: none;
}

.free-dashboard .vip-pending-invoices .table-action-cell .btn-primary {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 2px;
  background: var(--lux-gold);
  box-shadow: none;
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  text-indent: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.free-dashboard .vip-pending-invoices .table-action-cell .btn-primary::before,
.free-dashboard .vip-pending-invoices .table-action-cell .btn-primary::after {
  content: none;
}

.free-dashboard .vip-pending-invoices tr {
  border-color: rgba(227, 197, 91, 0.35);
  background: rgba(10, 10, 10, 0.6);
}

/* ---------- Factura: reloj de 24 horas, resumen e IVU, botones dorados ---------- */
.payment-timer {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.85);
  text-align: center;
}

.payment-timer-label {
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.payment-timer-clock {
  background: var(--lux-gold, linear-gradient(100deg, #b8960c, #f8dc4c 30%, #fff4c9 50%, #e3c55b 72%, #a8860a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif, Georgia, serif);
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  line-height: 1.1;
}

.payment-timer > span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
}

.payment-timer-expired {
  border-color: rgba(248, 3, 142, 0.6);
}

.payment-timer-expired strong {
  color: #ff5fb4;
  font-family: var(--lux-serif, Georgia, serif);
  font-size: 1.6rem;
}

.invoice-summary {
  margin: 1.4rem 0;
}

.invoice-summary h2,
.lux-doc .fulfillment-choice h2 {
  font-family: var(--lux-serif, Georgia, serif);
}

.invoice-summary dl {
  display: grid;
  margin: 0;
}

.invoice-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--lux-hair, rgba(227, 197, 91, 0.25));
}

.invoice-summary dd {
  margin: 0;
}

/* Las opciones de entrega se ven como botones dorados */
.lux-doc .fulfillment-option {
  position: relative;
  justify-content: center;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(227, 197, 91, 0.7);
  border-radius: 2px;
  background: transparent;
  text-align: center;
}

.lux-doc .fulfillment-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lux-doc .fulfillment-option span {
  justify-items: center;
  gap: 0.2rem;
}

.lux-doc .fulfillment-option strong {
  color: #ecd27a;
  font-family: var(--lux-sans, "Montserrat", sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lux-doc .fulfillment-option small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.lux-doc .fulfillment-option:has(input:checked) {
  border-color: transparent;
  background: var(--lux-gold, linear-gradient(100deg, #b8960c, #f8dc4c 30%, #fff4c9 50%, #e3c55b 72%, #a8860a));
}

.lux-doc .fulfillment-option:has(input:checked) strong,
.lux-doc .fulfillment-option:has(input:checked) small {
  color: #120d02;
}

.lux-doc .fulfillment-option:has(input:focus-visible) {
  outline: 2px solid #ecd27a;
  outline-offset: 3px;
}

.lux-doc .detail-actions {
  display: grid;
  gap: 0.8rem;
}

.lux-doc .pay-invoice-button {
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 2px;
  background: var(--lux-gold, linear-gradient(100deg, #b8960c, #f8dc4c 30%, #fff4c9 50%, #e3c55b 72%, #a8860a));
  color: #120d02;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lux-doc .pay-invoice-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pay-hint {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.pending-timer {
  display: block;
  color: #ecd27a;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.pending-timer.is-expired {
  color: #ff5fb4;
}

/* Entrega: aviso de coordinación */
.gps-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Factura cancelada: cuadro dorado */
.payment-timer-expired {
  border-color: rgba(227, 197, 91, 0.75);
  box-shadow: inset 0 0 0 1px rgba(227, 197, 91, 0.18);
}

.payment-timer-expired strong {
  background: var(--lux-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.9rem;
}

.pending-timer.is-expired {
  color: #ecd27a;
}

/* Crear cuenta: clientas que ya tienen número de canasta */
.lux-basket-field label small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75em;
  letter-spacing: 0.04em;
  text-transform: none;
}

.lux-field-hint {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Olvidé mi contraseña */
.lux-center {
  margin: 0 0 1.2rem;
  text-align: center;
}

.lux-forgot {
  margin-top: 0.8rem;
}


/* ---------- Paso 22: cuenta de la clienta (VIP y gratis) con menú dorado ---------- */
.cuenta-lujo .cuenta-topbar {
  position: relative;
  display: flex;
  justify-content: center;
}

.cuenta-menu-button {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 9px 6px;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #ecd27a;
  cursor: pointer;
  transform: translateY(-50%);
}

.cuenta-menu-lines {
  display: grid;
  gap: 4px;
}

.cuenta-menu-lines i {
  display: block;
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, #b8960c, #f8dc4c, #e3c55b);
}

.cuenta-menu-word {
  font-family: var(--lux-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cuenta-menu-dot,
.cuenta-menu-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 40%, #e3c55b 100%);
  color: #120d02;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.cuenta-menu-dot {
  position: absolute;
  top: -8px;
  right: -8px;
}

.cuenta-saludo {
  margin: 1.4rem 0 1.2rem;
  text-align: center;
}

.cuenta-saludo h1 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
}

.cuenta-plan {
  margin: 0 0 0.5rem;
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cuenta-insignia {
  display: inline-flex;
  margin: 0 0 0.9rem;
  padding: 0.45rem 1.1rem 0.45rem 0.85rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(227, 197, 91, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(227, 197, 91, 0.14), rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 18px rgba(227, 197, 91, 0.18);
  color: #ecd27a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cuenta-insignia svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: url(#oro);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.cuenta-lujo .lux-ornament {
  margin: 0 auto;
}

/* Menú que se abre desde arriba */
.cuenta-menu {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.cuenta-menu[hidden] {
  display: none;
}

.cuenta-menu-abierto {
  overflow: hidden;
}

.cuenta-menu-panel {
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  height: 100%;
  padding: 1.2rem 1.2rem 1.5rem;
  overflow-y: auto;
  border-left: 1px solid rgba(227, 197, 91, 0.45);
  background:
    radial-gradient(ellipse at top, rgba(227, 197, 91, 0.12), transparent 60%),
    #070707;
  font-family: var(--lux-sans);
}

.cuenta-menu-head {
  display: flex;
  margin-bottom: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.cuenta-menu-head p {
  margin: 0;
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.cuenta-menu-close {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(227, 197, 91, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cuenta-menu-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ecd27a;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cuenta-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cuenta-menu-list a {
  display: grid;
  padding: 0.85rem 0.2rem;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid rgba(227, 197, 91, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 300;
  text-decoration: none;
}

.cuenta-menu-list li:last-child a {
  border-bottom: 1px solid rgba(227, 197, 91, 0.22);
}

.cuenta-menu-list a:hover,
.cuenta-menu-list a:focus-visible {
  background: rgba(227, 197, 91, 0.07);
  outline: none;
}

.cuenta-menu-list b {
  display: block;
  margin-bottom: 0.15rem;
  color: #ecd27a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cuenta-menu-logout {
  margin-top: auto;
  padding-top: 1.2rem;
}

.cuenta-menu-logout button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(227, 197, 91, 0.6);
  border-radius: 2px;
  background: transparent;
  color: #ecd27a;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Invitación a hacerse VIP (cuenta gratis con canasta) y página de membresía */
.cuenta-invitacion,
.cuenta-membresia,
.cuenta-acciones {
  margin: 0 0 14px;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(227, 197, 91, 0.12), transparent 70%),
    #070707;
  color: #ffffff;
}

.cuenta-invitacion {
  text-align: center;
}

.cuenta-invitacion h2 {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: 2rem;
  font-weight: 500;
}

.cuenta-invitacion-precio {
  margin: 0 0 1rem;
}

.cuenta-invitacion-precio strong {
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lux-serif);
  font-size: 2.6rem;
  font-variant-numeric: lining-nums;
}

.cuenta-invitacion-precio span {
  margin-left: 0.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.cuenta-invitacion .lux-benefits {
  margin-bottom: 1.3rem;
  text-align: left;
}

.cuenta-boton-oro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cuenta-consentimiento {
  display: flex;
  margin: 0 0 1rem;
  gap: 0.6rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  text-align: left;
}

.cuenta-consentimiento input {
  margin-top: 0.2rem;
  accent-color: #e3c55b;
}

.cuenta-membresia {
  display: grid;
  padding: 0.4rem 1.3rem;
}

.cuenta-dato {
  display: grid;
  padding: 1rem 0;
  gap: 0.2rem;
  border-top: 1px solid rgba(227, 197, 91, 0.22);
  text-align: center;
}

.cuenta-dato:first-child {
  border-top: 0;
}

.cuenta-dato span {
  color: #ecd27a;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cuenta-dato strong {
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: 1.55rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

.cuenta-dato-meses strong {
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  line-height: 1;
}

.cuenta-acciones {
  display: grid;
  padding: 0.4rem 1.3rem 1rem;
}

.cuenta-acciones form {
  margin: 0;
}

.cuenta-accion {
  display: grid;
  width: 100%;
  padding: 0.95rem 0;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  border: 0;
  border-bottom: 1px solid rgba(227, 197, 91, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 300;
  text-align: left;
}

.cuenta-accion b {
  display: block;
  margin-bottom: 0.15rem;
  color: #ecd27a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cuenta-nota {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  text-align: center;
}

.cuenta-aviso {
  margin: 0 0 14px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(227, 197, 91, 0.6);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #ecd27a;
  font-size: 0.85rem;
  text-align: center;
}

.lux-plan-steps {
  margin: 1rem 0 0;
  color: #ecd27a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}

.cuenta-lujo .cuenta-topbar {
  padding-right: 72px;
  padding-left: 72px;
}

.cuenta-lujo .vip-dashboard-details {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cuenta-lujo .total-card::after {
  display: none;
}

.cuenta-lujo .live-cart-remove {
  border-color: rgba(227, 197, 91, 0.55);
  color: #ecd27a;
}

.cuenta-lujo .vip-dashboard-brand {
  min-width: 0;
  max-width: 100%;
}

.cuenta-lujo .vip-dashboard-brand img {
  width: 100%;
  max-width: 230px;
}

.cuenta-lujo .cuenta-accion,
.cuenta-lujo .cuenta-accion:hover,
.cuenta-lujo .cuenta-accion:focus-visible {
  min-height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.cuenta-lujo .cuenta-accion:hover b,
.cuenta-lujo .cuenta-accion:focus-visible b {
  color: #fff1b8;
}

.cuenta-lujo .cuenta-boton-oro {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(100deg, #b8960c 0%, #f8dc4c 28%, #fff4c9 50%, #e3c55b 72%, #a8860a 100%);
  box-shadow: 0 10px 30px rgba(227, 197, 91, 0.22);
  color: #120d02;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Paso 22b: Mis facturas (por pagar, pagadas y canceladas) */
.facturas-grupo {
  margin: 0 0 14px;
  padding: 1.2rem 1.3rem 0.4rem;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(227, 197, 91, 0.1), transparent 70%),
    #070707;
}

.facturas-grupo h2 {
  margin: 0 0 0.4rem;
  color: #ecd27a;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.factura-fila {
  display: flex;
  padding: 0.9rem 0;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(227, 197, 91, 0.22);
  color: #ffffff;
  text-decoration: none;
}

.facturas-grupo h2 + .factura-fila {
  border-top: 0;
}

.factura-datos {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 300;
}

.factura-datos b {
  color: #ffffff;
  font-family: var(--lux-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.factura-estado {
  color: #ecd27a;
  font-size: 0.74rem;
}

.factura-monto {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  flex: none;
}

.factura-monto strong {
  color: #f3d977;
  font-family: var(--lux-serif);
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

.factura-monto em {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(227, 197, 91, 0.7);
  border-radius: 999px;
  color: #ecd27a;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.factura-cancelada .factura-datos b,
.factura-cancelada .factura-monto strong {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.factura-cancelada .factura-estado {
  color: #d98a9b;
}

.factura-vacia {
  margin: 0;
  padding: 0.6rem 0 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

/* Paso 23: marca a la izquierda, pegada al botón del menú */
.cuenta-lujo .cuenta-topbar {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
  padding-left: 18px;
}

.cuenta-lujo .vip-dashboard-brand {
  flex: 0 1 230px;
  width: auto;
  justify-items: start;
  place-items: center start;
}

.cuenta-lujo .vip-dashboard-brand img {
  object-position: left center;
}

.cuenta-lujo .vip-dashboard-brand span {
  padding-left: 0.2rem;
  text-align: left;
}

.cuenta-lujo .cuenta-menu-button {
  position: relative;
  top: auto;
  right: auto;
  flex: none;
  transform: none;
}

/* Canasta en vivo: precio regular tachado y precio VIP */
.live-cart-info .live-cart-regular {
  margin-right: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.live-cart-info .live-cart-vip {
  color: #f3d977;
  font-weight: 600;
}

.live-cart-regular {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.live-cart-vip {
  color: #f3d977;
  font-weight: 600;
}

.linea-ahorro {
  display: block;
  color: #e3c55b;
  font-weight: 600;
}

.precio-vip {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

@media print {
  .live-cart-regular { color: #666 !important; }
  .live-cart-vip,
  .linea-ahorro { color: #000 !important; }
}

/* Fotos de los productos en la factura y el recibo */
.factura-producto {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-align: right;
}

.factura-foto {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(227, 197, 91, 0.45);
  border-radius: 10px;
  object-fit: cover;
}

@media print {
  .factura-foto { border-color: #999; }
}

/* Paso 24: cupón dorado dentro de la factura */
.invoice-coupons { border-top-color: rgba(227, 197, 91, 0.3); }
.invoice-coupons > p { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
.invoice-coupon-list .cupon-factura,
.selected-coupon.cupon-factura {
  position: relative;
  border: 1px solid rgba(227, 197, 91, 0.55);
  border-left: 3px solid #e3c55b;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 0 0, rgba(227, 197, 91, 0.14), transparent 60%),
    linear-gradient(165deg, #17130a, #070707);
}
.cupon-factura div { display: grid; gap: 0.15rem; }
.cupon-factura small {
  color: #ecd27a;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.cupon-factura strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #f1dc8f;
}
.cupon-factura strong::first-letter { text-transform: uppercase; }
.cupon-factura span { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }
.cupon-factura .cupon-factura-aviso { color: #f1dc8f; }
.invoice-coupon-list .cupon-factura small { grid-column: auto; }
.cupon-factura .lux-btn { min-height: 44px; padding: 0.6rem 1.6rem; border-radius: 999px; }
.cupon-factura .lux-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.envio-gratis-vip { color: #ecd27a; font-weight: 600; }

/* Paso 25: entrega con 2 botones; los casilleros salen al tocar uno */
.entrega-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.4rem 0 0.9rem; }
.lux-doc .entrega-botones .fulfillment-option { display: grid; min-height: 84px; align-content: center; padding: 0.8rem 0.6rem; border-radius: 14px; }
.lux-doc .entrega-botones .fulfillment-option small { font-size: 0.66rem; }
.entrega-escogida {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  margin: 0 0 0.9rem; padding: 0.75rem 1rem;
  border: 1px solid rgba(227, 197, 91, 0.35); border-radius: 12px;
  color: rgba(255, 255, 255, 0.82); font-size: 0.82rem;
}
.entrega-escogida[hidden] { display: none; }
.entrega-cambiar {
  flex: 0 0 auto; padding: 0.4rem 0.9rem; border: 1px solid rgba(227, 197, 91, 0.7); border-radius: 999px;
  background: transparent; color: #ecd27a; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.entrega-guardando { margin: 0; color: #ecd27a; font-size: 0.8rem; text-align: center; }
.fulfillment-fields [data-solo-usa][hidden] { display: none; }
.lux-doc .fulfillment-choice .entrega-titulo { font-size: clamp(1.05rem, 5.2vw, 1.6rem); text-align: center; white-space: nowrap; }
.lux-doc .entrega-botones .fulfillment-option span { gap: 0.15rem; }

/* Paso 27: el mismo botón Menú dorado en las páginas con el encabezado general (factura, recibo) */
.site-header-inner {
  position: relative;
}

.site-header .site-menu-button {
  z-index: 2;
}

.cuenta-menu-button,
.cuenta-menu-button:hover:not(:disabled) {
  min-height: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: none;
  color: #ecd27a;
}

.site-header .site-menu-button:hover:not(:disabled) {
  transform: translateY(-50%);
}

.cuenta-menu {
  z-index: 200;
}

.cuenta-menu-close:hover:not(:disabled),
.cuenta-menu-logout button:hover:not(:disabled) {
  background: rgba(227, 197, 91, 0.08);
  box-shadow: none;
  color: #ecd27a;
  transform: none;
}

.cuenta-menu-close {
  min-height: 0;
  box-shadow: none;
}

/* ---------- Paso 28: "VIP PORTAL" centrado y saludo con sello de insignia ---------- */
.cuenta-lujo .vip-dashboard-brand {
  justify-items: center;
}

.cuenta-lujo .vip-dashboard-brand span {
  width: 100%;
  padding-left: 13%;
  text-align: center;
}

.sello {
  display: block;
  width: 3rem;
  height: 3rem;
  filter: drop-shadow(0 0 10px rgba(227, 197, 91, 0.25));
}

.sello.is-apagado {
  filter: grayscale(0.85) brightness(0.55);
  opacity: 0.7;
}

.sello-grande {
  width: 6.4rem;
  height: 6.4rem;
  transform-origin: 50% 50%;
  animation: sello-vaiven 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(248, 220, 76, 0.35));
}

.saludo-vip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

.saludo-sello {
  flex: none;
  line-height: 0;
}

.saludo-texto {
  min-width: 0;
}

.cuenta-saludo.saludo-vip h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 7.5vw, 2.4rem);
}

.saludo-vip p {
  margin: 0;
  font-family: var(--lux-sans);
}

.saludo-vip-linea {
  color: #ecd27a;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.saludo-insignia {
  margin-top: 0.3rem !important;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.saludo-insignia b {
  color: #ecd27a;
  font-family: var(--lux-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.saludo-meses {
  margin-top: 0.1rem !important;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.saludo-ornamento {
  margin: 0 auto 1.2rem !important;
}

@media (min-width: 960px) {
  .cuenta-lujo .saludo-vip,
  .cuenta-lujo .saludo-ornamento {
    grid-column: 1 / -1;
  }
}

/* Paso 29: el sello late (se acerca y se aleja), con brillo dorado */
@keyframes sello-vaiven {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(248, 220, 76, 0.25)); }
  14% { transform: scale(1.1); filter: drop-shadow(0 0 22px rgba(248, 220, 76, 0.6)); }
  28% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(248, 220, 76, 0.3)); }
  42% { transform: scale(1.07); filter: drop-shadow(0 0 18px rgba(248, 220, 76, 0.5)); }
  70% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(248, 220, 76, 0.25)); }
}

@media (prefers-reduced-motion: reduce) {
  .sello-grande { animation: none; }
}
