:root {
  --color-sky: #74ACDF;
  --color-sky-light: #EAF6FF;
  --color-blue: #1D4E89;
  --color-blue-dark: #0B2545;
  --color-white: #FFFFFF;
  --color-gray-bg: #F5F8FB;
  --color-gray-border: #D8E3EC;
  --color-gray-text: #5F6C7B;
  --color-gold: #F6B40E;
  --color-success: #2ECC71;
  --color-warning: #F39C12;
  --color-danger: #E74C3C;
  --shadow-soft: 0 8px 24px rgba(13, 71, 112, 0.12);
  --radius-card: 18px;
  --radius-button: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--color-blue-dark);
  background: radial-gradient(circle at top right, #f3f9ff 0%, var(--color-gray-bg) 52%);
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(118deg, var(--color-sky), var(--color-blue));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.auth-page .top-header {
  background: var(--color-white);
  color: var(--color-blue-dark);
  border-bottom: 1px solid var(--color-gray-border);
  box-shadow: none;
}

.auth-page .header-pill {
  border-color: #bdd4eb;
  background: #f4f9ff;
  color: var(--color-blue-dark);
}

.auth-page .header-wrap {
  background: var(--color-white);
  color: var(--color-blue-dark);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow-soft);
  margin: 0.8rem auto;
}

.auth-page .brand-row {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.auth-page .top-header p {
  opacity: 1;
}

.auth-page .auth-brand {
  display: none;
}

.auth-wireframe {
  background: radial-gradient(circle at 10% 10%, #2f9ed7 0%, #1d80c2 45%, #1965aa 100%);
}

.auth-wireframe .top-header {
  display: none;
}

.auth-wireframe .app-container {
  max-width: 1080px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.4rem;
}

.auth-wireframe .footer-main {
  color: #e9f5ff;
}

.wireframe-shell {
  width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.wireframe-shell.single-login {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.wire-brand-card,
.wire-login-card {
  border: 1px solid #c8d9ee;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(8, 37, 69, 0.24);
  padding: 1rem;
}

.wire-login-card {
  padding: 0;
  overflow: hidden;
}

.wire-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d4e2f2;
  border-radius: 14px;
  padding: 0.5rem 0.7rem;
}

.auth-wireframe .auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #d7e4f3;
  border: 0;
  box-shadow: none;
  justify-content: center;
}

.auth-wireframe .auth-brand .brand-logo {
  width: 86% !important;
  height: auto !important;
}

.wire-login-content {
  padding: 1rem;
}

.wire-brand-card h2,
.wire-login-card h2 {
  margin-bottom: 0.45rem;
}

.wire-brand-card p,
.wire-login-card p {
  margin-top: 0;
}

.wire-brand-actions {
  display: grid;
  gap: 0.6rem;
  margin: 0.9rem 0 0.6rem;
}

.wire-brand-card small {
  color: var(--color-gray-text);
}

.wire-back-link {
  font-size: 0.84rem;
  margin-bottom: 0.7rem;
}

.wire-subtitle {
  color: var(--color-gray-text);
  font-size: 0.88rem;
}

.wire-login-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.partners-carousel-section {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #c9dbef;
  box-shadow: 0 10px 24px rgba(8, 37, 69, 0.18);
}

.partners-carousel-section h3 {
  margin: 0 0 0.7rem;
  color: var(--color-blue-dark);
}

.partners-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #b9d2ec;
  background: #f1f8ff;
  color: var(--color-blue-dark);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.partners-track {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0.3rem 0.1rem;
}

.offers-track {
  gap: 1rem;
  padding: 0.35rem 0.15rem;
}

.offer-carousel-card {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.offer-carousel-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.dashboard-marketplace-section {
  display: grid;
  gap: 1rem;
}

.dashboard-offers-carousel {
  align-items: stretch;
}

@media (max-width: 640px) {
  .dashboard-marketplace-section .section-header-row {
    align-items: stretch;
  }

  .dashboard-marketplace-section .section-header-row .btn {
    width: fit-content;
  }

  .dashboard-offers-carousel {
    grid-template-columns: repeat(2, auto);
    grid-template-areas:
      "track track"
      "prev next";
    gap: 0.75rem;
    justify-content: space-between;
  }

  .dashboard-offers-carousel [data-carousel-track] {
    grid-area: track;
    width: 100%;
  }

  .dashboard-offers-carousel [data-carousel-prev] {
    grid-area: prev;
  }

  .dashboard-offers-carousel [data-carousel-next] {
    grid-area: next;
  }

  .offers-track {
    gap: 0.8rem;
    padding: 0.15rem 0;
  }

  .offer-carousel-card {
    min-width: min(72vw, 240px);
    max-width: min(72vw, 240px);
    flex: 0 0 min(72vw, 240px);
    padding: 0.8rem;
  }

  .offer-carousel-card img {
    height: 148px;
  }
}

.partner-item {
  min-width: 132px;
  max-width: 132px;
  border-radius: 12px;
  border: 1px solid #d6e5f5;
  background: #ffffff;
  padding: 0.52rem;
  text-align: center;
  scroll-snap-align: start;
}

.partner-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto 0.3rem;
  background: #f8fbff;
}

.partner-item p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.partner-item small {
  color: var(--color-gray-text);
  font-size: 0.72rem;
}

@media (min-width: 920px) {
  .wireframe-shell {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.1rem;
  }

  .wireframe-shell.single-login {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .wire-brand-card,
  .wire-login-card {
    padding: 1.2rem;
  }
}

.header-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--color-white);
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.12);
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;

  animation: logoPulse 7s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logoPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

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

.brand-title {
  display: none;
}

.icon-btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.icon-btn-logout:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
}

.icon-btn-logout svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  display: block;
}

.top-header h1 {
  margin: 0;
  font-size: 1.24rem;
}

.top-header p {
  margin: 0;
  max-width: 760px;
  font-size: 0.92rem;
  opacity: 0.96;
}

.header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.header-pill {
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.73rem;
}

.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.page-transition {
  animation: fadeSlideIn 0.35s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.card h2,
.card h3,
.card h4 {
  margin-top: 0;
}

.card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 210px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  background: var(--color-white);
  width: fit-content;
  margin-inline: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--color-gray-border);
}

.auth-brand img,
.brand-row img {
  display: block;
  width: auto !important;
}

.auth-brand .brand-logo {
  width: 40px !important;
  height: 40px !important;
  max-height: none !important;
  max-width: none !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.68rem;
  font-size: 0.74rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.discount {
  background: #fff3d1;
  color: #7f5b00;
  border-color: #ffd778;
}

.badge.verified {
  background: #e6f6ff;
  color: var(--color-blue);
  border-color: #b4deff;
}

.badge.today {
  background: #eafde8;
  color: #128245;
  border-color: #baf3cf;
}

.badge.state {
  background: #eef4ff;
  color: var(--color-blue-dark);
  border-color: #ceddf6;
}

.state-pill {
  display: inline-flex;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid;
}

.state-pendiente {
  background: #fff7e4;
  color: #a05e00;
  border-color: #ffd57a;
}

.state-aprobado {
  background: #e8f9ee;
  color: #1b8045;
  border-color: #9fddb8;
}

.state-rechazado {
  background: #ffeceb;
  color: #b42318;
  border-color: #ffc5c1;
}

.state-pausado {
  background: #edf0f3;
  color: #4c5561;
  border-color: #d1d7de;
}

.state-usado,
.state-activo,
.state-vencido {
  background: #eaf1ff;
  color: var(--color-blue-dark);
  border-color: #c6d7f9;
}

.btn,
button,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1rem;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  text-decoration: none;
}

button,
.btn,
.btn-primary {
  background: linear-gradient(130deg, #2d6fb7, var(--color-blue));
  color: var(--color-white);
}

button:hover,
.btn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(29, 78, 137, 0.24);
  text-decoration: none;
}

.btn.secondary,
.btn-secondary {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn.warning {
  background: linear-gradient(128deg, #f9c74f, var(--color-gold));
  color: #3e2f00;
}

.btn.danger {
  background: linear-gradient(128deg, #ef695d, var(--color-danger));
  color: var(--color-white);
}

.btn.ghost {
  background: #eef5ff;
  color: var(--color-blue-dark);
  border-color: #c9dbf8;
}

button:disabled,
.btn:disabled,
.is-loading {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.form-group {
  margin-bottom: 0.88rem;
}

label {
  display: block;
  margin-bottom: 0.34rem;
  font-weight: 700;
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  padding: 0.68rem 0.72rem;
  font-size: 0.94rem;
  color: var(--color-blue-dark);
  background: #fbfdff;
}

input::placeholder,
textarea::placeholder {
  color: #8b97a5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.24);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18);
}

.field-help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--color-gray-text);
}

.field-error {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.76rem;
  color: var(--color-danger);
}

.search-block {
  position: sticky;
  top: 83px;
  z-index: 12;
  background: linear-gradient(180deg, rgba(245, 248, 251, 0.95), rgba(245, 248, 251, 0.8));
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 0.55rem;
  border: 1px solid #dce9f5;
}

.search {
  margin: 0;
}

.categories,
.filters-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.28rem;
  margin-top: 0.8rem;
}

.categories::-webkit-scrollbar,
.filters-row::-webkit-scrollbar {
  height: 6px;
}

.category-chip,
.filter-chip {
  border: 1px solid #bdd6ee;
  border-radius: 999px;
  background: #f2f9ff;
  color: var(--color-blue-dark);
  white-space: nowrap;
  padding: 0.43rem 0.84rem;
  font-size: 0.79rem;
  cursor: pointer;
}

.category-chip.active,
.filter-chip.active {
  border-color: var(--color-blue);
  background: #dcecff;
  font-weight: 700;
}

.market-meta {
  color: var(--color-gray-text);
  font-size: 0.86rem;
  margin: 0.32rem 0;
}

.market-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 1.2rem;
  border: 1px dashed #bfd2e5;
  border-radius: var(--radius-card);
  background: #f8fcff;
  color: var(--color-gray-text);
}

.empty-state h3 {
  margin-top: 0;
  color: var(--color-blue-dark);
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cfe0f2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  margin-top: 1rem;
}

.bottom-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  padding: 0.68rem 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.bottom-nav a:hover {
  text-decoration: none;
  background: #eff6ff;
}

.side-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.54rem;
  margin-bottom: 1rem;
}

.side-nav-functions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  align-items: stretch;
}

.side-nav-functions a {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  padding: 0.6rem 0.72rem;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(13, 71, 112, 0.08);
}

.side-nav-functions a:first-child,
.side-nav-functions a[data-confirm] {
  grid-column: 1 / -1;
}

.side-nav-functions a[data-confirm] {
  justify-content: center;
  background: #f6fbff;
}

.side-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  padding: 0.54rem 0.8rem;
  color: var(--color-blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.side-nav a:hover {
  text-decoration: none;
  background: #edf5ff;
}

.ui-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav .ui-icon {
  width: 17px;
  height: 17px;
}

.layout-with-sidebar {
  display: block;
}

.flash-payload {
  display: none;
}

.toast-stack {
  position: fixed;
  top: 96px;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(92vw, 320px);
}

.toast {
  border-radius: 14px;
  border: 1px solid;
  padding: 0.78rem 0.86rem;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  font-size: 0.86rem;
  font-weight: 700;
  transform: translateX(12px);
  opacity: 0;
  animation: toastIn 0.2s ease forwards;
}

@keyframes toastIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-color: #a6e8c0;
  color: #1d7d44;
  background: #ecfdf4;
}

.toast.error {
  border-color: #ffc5c1;
  color: #a4261d;
  background: #fff0ef;
}

.toast.warning {
  border-color: #ffd88d;
  color: #975c00;
  background: #fff8e6;
}

.toast.info {
  border-color: #bfdcfb;
  color: #17487c;
  background: #eef7ff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 27, 49, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: min(94vw, 430px);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-gray-border);
  padding: 1rem;
}

.modal-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.modal-card p {
  margin-top: 0;
  color: var(--color-gray-text);
}

.modal-close-x {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #c6d9ef;
  background: #f5f9ff;
  color: var(--color-blue-dark);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.modal-card {
  position: relative;
}

.image-preview-modal {
  width: min(94vw, 760px);
  padding-top: 2rem;
}

.image-preview-modal img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  background: #f8fbff;
}

.status-check-modal {
  width: min(94vw, 460px);
  text-align: center;
  padding: 1.4rem 1.2rem 1.2rem;
}

.status-check-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #7bf0ae 0%, #2ecc71 60%, #24b862 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(46, 204, 113, 0.26);
}

.status-check-detail {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.status-check-modal .modal-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.form-modal {
  width: min(96vw, 760px);
  max-height: 90vh;
  overflow-y: auto;
  padding-top: 1.8rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.56rem;
  margin-top: 0.8rem;
}

.stat {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 800;
  color: var(--color-blue);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(116, 172, 223, 0.16);
}

.stat-pending {
  border-color: #f6dcaa;
  background: #fffbf2;
}

.stat-success {
  border-color: #b9e8cc;
  background: #f4fff8;
}

.stat-danger {
  border-color: #ffcfc8;
  background: #fff7f6;
}

.stat-blue {
  border-color: #c5daf8;
  background: #f4f8ff;
}

.stat-gray {
  border-color: #d5dbe4;
  background: #f8f9fb;
}

.table-wrap {
  overflow-x: auto;
}

.admin-review-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.admin-review-card {
  border: 1px solid #d7e5f4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 71, 112, 0.08);
  padding: 0.9rem;
}

.admin-review-card h3 {
  margin: 0 0 0.62rem;
}

.admin-review-meta p,
.admin-review-image-link {
  margin: 0.22rem 0;
  font-size: 0.9rem;
}

.admin-review-badges {
  margin: 0.58rem 0 0.4rem;
  display: grid;
  gap: 0.38rem;
}

.admin-review-badges > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.admin-review-actions {
  margin-top: 0.68rem;
  display: grid;
  gap: 0.52rem;
}

.admin-review-actions form .btn {
  flex: 1 1 auto;
}

.product-selector-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.product-selector-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.56rem 0.64rem;
  border: 1px solid #d7e5f4;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 0.9rem;
}

.product-selector-item input {
  width: auto;
}

.benefit-preview-card {
  margin-bottom: 0.8rem;
}

.preview-list {
  display: grid;
  gap: 0.4rem;
}

.preview-item {
  border: 1px solid #d7e5f4;
  border-radius: 10px;
  background: #fff;
  padding: 0.52rem 0.62rem;
  font-size: 0.88rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 14px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid #e5edf5;
  padding: 0.7rem;
  font-size: 0.86rem;
  text-align: left;
}

th {
  background: #edf5ff;
  color: var(--color-blue-dark);
}

tr:hover td {
  background: #f9fcff;
}

.qr-sim {
  border: 2px dashed #7fb1e0;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  background: repeating-linear-gradient(45deg, #f4f9ff, #f4f9ff 12px, #ebf4ff 12px, #ebf4ff 24px);
}

.token-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.token-card {
  position: relative;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.token-card .token-code {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--color-blue-dark);
  letter-spacing: 0.04em;
}

.token-meta {
  margin: 0.36rem 0;
  font-size: 0.82rem;
  color: var(--color-gray-text);
}

.progress-card {
  border: 1px solid #cfe0f4;
  background: #f8fcff;
  border-radius: var(--radius-card);
  padding: 1rem;
}

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

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0.48rem 0.65rem;
  background: var(--color-white);
  border: 1px solid #d8e7f7;
  font-size: 0.86rem;
  gap: 0.8rem;
}

.progress-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.7rem;
  border-radius: 12px;
  background: #f4f7fb;
}

.progress-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.progress-main strong,
.progress-main small {
  display: block;
}

.progress-main small {
  margin-top: 0.12rem;
  color: var(--color-gray-text);
  font-size: 0.8rem;
}

.progress-state-label {
  font-weight: 700;
  color: var(--color-blue-dark);
  white-space: nowrap;
}

.progress-ok .progress-icon {
  color: var(--color-success);
  background: rgba(46, 204, 113, 0.12);
}

.progress-pending .progress-icon {
  color: var(--color-warning);
  background: rgba(243, 156, 18, 0.12);
}

.progress-bad .progress-icon {
  color: var(--color-danger);
  background: rgba(231, 76, 60, 0.12);
}

.skeleton-area {
  display: grid;
  gap: 0.8rem;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-card);
  border: 1px solid #d7e7f7;
  background: linear-gradient(90deg, #edf4fb 25%, #f8fbff 37%, #edf4fb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}

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

[data-skeleton-group].loaded .skeleton-area {
  display: none;
}

[data-skeleton-group]:not(.loaded) [data-skeleton-content] {
  display: none;
}

.market-hero {
  margin-bottom: 0.9rem;
}

.market-hero .location {
  color: var(--color-gray-text);
  font-size: 0.84rem;
}

.footer-main {
  margin-top: 1rem;
  text-align: center;
  padding: 1.3rem 1rem 2rem;
  font-size: 0.9rem;
  color: var(--color-gray-text);
}

.footer-main strong {
  color: var(--color-blue-dark);
}

@media (min-width: 900px) {
  .header-wrap {
    padding: 1.1rem 1rem;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .layout-with-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
  }

  .side-nav {
    flex-direction: column;
    position: sticky;
    top: 92px;
    align-self: start;
  }

  .side-nav-functions {
    display: flex;
    gap: 0.54rem;
  }

  .side-nav-functions a {
    width: 100%;
    box-shadow: none;
  }

  .bottom-nav {
    display: none;
  }

  .user-side-nav {
    display: flex;
  }

  .search-block {
    top: 92px;
  }

  .admin-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Institutional redesign */

:root {
  --brand-coral: #ed6c6c;
  --brand-yellow: #ffcc00;
  --brand-sky: #29a9e0;
  --brand-green: #39b34a;
  --brand-brown: #5e4e43;
  --brand-dark-gray: #575756;
  --brand-light: #f7f5f1;
  --brand-surface: #ffffff;
  --brand-border: #e6dfd8;
  --brand-shadow: 0 18px 44px rgba(94, 78, 67, 0.12);
  --brand-shadow-soft: 0 10px 24px rgba(87, 87, 86, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--brand-dark-gray);
  background:
    radial-gradient(circle at top left, rgba(41, 169, 224, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.12), transparent 22%),
    linear-gradient(180deg, #fcfbf8 0%, #f5f2ee 100%);
}

a {
  color: var(--brand-dark-gray);
}

.top-header {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark-gray);
  box-shadow: 0 6px 28px rgba(94, 78, 67, 0.08);
  border-bottom: 1px solid rgba(94, 78, 67, 0.08);
  backdrop-filter: blur(18px);
}

.header-wrap {
  max-width: 1240px;
  padding: 0.9rem 1rem;
}

.brand-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.brand-system {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand-system:hover {
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  animation: pulseLogo 8s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(41, 169, 224, 0.12));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: stretch;
}

.brand-name {
  display: block;
  color: var(--brand-coral);
  font-size: clamp(1.08rem, 2.45vw, 1.92rem);
  font-weight: 900;
  line-height: 0.98;
}

.brand-city {
  display: block;
  width: 100%;
  margin-top: 0.22rem;
  color: var(--brand-dark-gray);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: justify;
  text-align-last: justify;
  text-transform: uppercase;
}

.brand-tagline {
  display: block;
  margin-top: 0.14rem;
  color: rgba(87, 87, 86, 0.84);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.header-actions,
.header-menu {
  display: none;
}

.icon-btn-logout {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(237, 108, 108, 0.18);
  background: linear-gradient(180deg, #fff, #fff7f5);
  color: var(--brand-coral);
  box-shadow: var(--brand-shadow-soft);
}

.icon-btn-logout:hover {
  background: linear-gradient(180deg, #fff7f5, #fff0ec);
}

.app-container {
  width: min(1240px, 100%);
  padding: 1rem;
}

.card,
.brand-card,
.progress-card,
.token-card,
.admin-review-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--brand-shadow);
}

.card,
.brand-card,
.progress-card,
.token-card {
  padding: 1.15rem;
}

.brand-section-title,
.card h2,
.card h3,
.progress-card h3 {
  color: #21314d;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(237, 108, 108, 0.15), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 204, 0, 0.17), transparent 24%),
    radial-gradient(circle at 50% 88%, rgba(41, 169, 224, 0.13), transparent 28%);
  pointer-events: none;
}

.brand-pill,
.header-pill,
.category-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  padding: 0.52rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 87, 86, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark-gray);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-pill-sky {
  background: rgba(41, 169, 224, 0.12);
  color: #0a6b98;
  border-color: rgba(41, 169, 224, 0.24);
}

.brand-pill-yellow {
  background: rgba(255, 204, 0, 0.18);
  color: #876700;
  border-color: rgba(255, 204, 0, 0.28);
}

.brand-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 1.35rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #fffdfa 0%, #fff6f1 100%);
  border: 1px solid rgba(237, 108, 108, 0.14);
  box-shadow: var(--brand-shadow);
}

.brand-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
}

.brand-hero h1 {
  margin: 0;
  color: #21314d;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.brand-hero p {
  margin: 0;
  max-width: 700px;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.dashboard-hero {
  margin-bottom: 1rem;
}

.dashboard-hero-user {
  background: linear-gradient(135deg, #fff8f7 0%, #fff9ee 100%);
}

.dashboard-hero-local {
  background: linear-gradient(135deg, #fbffff 0%, #f6fbff 100%);
}

.dashboard-hero-admin {
  background: linear-gradient(135deg, #fffaf3 0%, #fff8f8 100%);
}

.brand-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 1rem;
  border: 1px solid transparent;
  box-shadow: var(--brand-shadow-soft);
}

.brand-kpi p:first-child {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-kpi .stat {
  color: #21314d;
}

.kpi-coral {
  background: linear-gradient(180deg, #fff4f2, #fffaf9);
  border-color: rgba(237, 108, 108, 0.2);
}

.kpi-yellow {
  background: linear-gradient(180deg, #fff8df, #fffdf6);
  border-color: rgba(255, 204, 0, 0.28);
}

.kpi-sky {
  background: linear-gradient(180deg, #eefaff, #f9fdff);
  border-color: rgba(41, 169, 224, 0.2);
}

.kpi-green {
  background: linear-gradient(180deg, #f0fbf1, #fbfffc);
  border-color: rgba(57, 179, 74, 0.22);
}

.kpi-brown {
  background: linear-gradient(180deg, #f6f1ee, #fffdfb);
  border-color: rgba(94, 78, 67, 0.18);
}

.btn,
button,
.btn-primary {
  background: linear-gradient(180deg, #ef7a78, var(--brand-coral));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(237, 108, 108, 0.2);
}

.btn:hover,
button:hover,
.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(237, 108, 108, 0.24);
}

.btn.secondary,
.btn-secondary {
  background: #fff;
  color: var(--brand-dark-gray);
  border: 1px solid rgba(87, 87, 86, 0.18);
  box-shadow: none;
}

.btn.warning {
  background: linear-gradient(180deg, #ffd93b, var(--brand-yellow));
  color: #5c4600;
}

.btn.danger {
  background: linear-gradient(180deg, #ef7a78, var(--brand-coral));
  color: #fff;
}

.btn.success {
  background: linear-gradient(180deg, #4ec65d, var(--brand-green));
  color: #fff;
}

.btn.info {
  background: linear-gradient(180deg, #4cb9ea, var(--brand-sky));
  color: #fff;
}

label {
  color: #21314d;
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid rgba(87, 87, 86, 0.16);
  border-radius: 16px;
  background: #fff;
  color: var(--brand-dark-gray);
  padding: 0.82rem 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(237, 108, 108, 0.48);
  box-shadow: 0 0 0 4px rgba(237, 108, 108, 0.12);
}

.search-block {
  top: 82px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(87, 87, 86, 0.08);
  box-shadow: var(--brand-shadow-soft);
}

.category-chip.active,
.filter-chip.active {
  background: rgba(237, 108, 108, 0.12);
  border-color: rgba(237, 108, 108, 0.3);
  color: var(--brand-coral);
}

.brand-market-card {
  display: grid;
  gap: 0.72rem;
  padding: 0.88rem;
  border-radius: 24px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  background: #fff;
  box-shadow: var(--brand-shadow-soft);
  overflow: hidden;
}

.brand-market-card img,
.card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 196px;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfa, #f7f3ee);
}

.card-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge.discount {
  background: rgba(237, 108, 108, 0.12);
  border-color: rgba(237, 108, 108, 0.22);
  color: var(--brand-coral);
}

.badge.verified {
  background: rgba(41, 169, 224, 0.12);
  border-color: rgba(41, 169, 224, 0.22);
  color: #0b739f;
}

.badge.today {
  background: rgba(57, 179, 74, 0.12);
  border-color: rgba(57, 179, 74, 0.2);
  color: #1d8b2b;
}

.badge.state,
.state-pendiente {
  background: rgba(255, 204, 0, 0.16);
  color: #876700;
  border-color: rgba(255, 204, 0, 0.3);
}

.state-aprobado {
  background: rgba(57, 179, 74, 0.12);
  color: #1d8b2b;
  border-color: rgba(57, 179, 74, 0.26);
}

.state-rechazado {
  background: rgba(237, 108, 108, 0.12);
  color: var(--brand-coral);
  border-color: rgba(237, 108, 108, 0.26);
}

.state-pausado,
.state-vencido,
.state-usado,
.state-activo {
  background: rgba(41, 169, 224, 0.08);
  color: #246983;
  border-color: rgba(41, 169, 224, 0.2);
}

.empty-state {
  border-style: solid;
  border-color: rgba(237, 108, 108, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdfa, #fff8f6);
}

.bottom-nav {
  border-top: 1px solid rgba(87, 87, 86, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(94, 78, 67, 0.08);
}

.bottom-nav a {
  color: var(--brand-dark-gray);
}

.bottom-nav a:hover {
  background: rgba(237, 108, 108, 0.06);
}

.side-nav {
  gap: 0.7rem;
}

.side-nav a {
  border-radius: 18px;
  border: 1px solid rgba(94, 78, 67, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #21314d;
  box-shadow: var(--brand-shadow-soft);
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 1);
}

.user-side-nav {
  display: none;
}

@media (min-width: 900px) {
  .layout-with-sidebar > .user-side-nav {
    display: flex;
  }

  .layout-with-sidebar > .user-bottom-nav {
    display: none;
  }
}

.admin-review-card {
  border-radius: 24px;
  padding: 1rem;
}

.admin-review-card h3 {
  color: #21314d;
  font-size: 1.2rem;
  font-weight: 900;
}

.auth-page .top-header {
  background: rgba(255, 255, 255, 0.92);
}

.auth-page .footer-main {
  margin-top: 2rem;
}

.auth-hero {
  margin-bottom: 1.1rem;
}

.auth-login-card {
  position: relative;
  z-index: 1;
}

.auth-brand-system {
  margin-bottom: 1rem;
}

.partners-carousel-section {
  max-width: none;
  margin-top: 0;
  background: #fff;
  border-color: rgba(94, 78, 67, 0.1);
  box-shadow: var(--brand-shadow);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.partner-item {
  border-radius: 18px;
  border-color: rgba(94, 78, 67, 0.1);
  box-shadow: var(--brand-shadow-soft);
}

.partner-item img {
  background: linear-gradient(180deg, #fff7f2, #f9fdff);
}

.footer-main {
  margin-top: 2rem;
  padding: 0 1rem 2.3rem;
  color: var(--brand-dark-gray);
}

.footer-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--brand-shadow);
}

.brand-system-footer .brand-logo {
  width: 48px;
  height: 48px;
}

.footer-copy p {
  margin: 0.16rem 0;
}

.footer-copy strong {
  color: #21314d;
}

.modal-card {
  border-radius: 24px;
  border-color: rgba(94, 78, 67, 0.12);
  box-shadow: var(--brand-shadow);
}

.image-preview-modal,
.form-modal {
  background: #fffdfa;
}

@keyframes pulseLogo {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (max-width: 759px) {
  .auth-page .top-header,
  .auth-page .footer-main,
  .auth-page .brand-hero-copy {
    display: none;
  }
  .brand-name {
    font-size: 1.9rem;
  }
  .auth-page .app-container {
    width: min(100%, 540px);
    min-height: 100vh;
    padding: 1rem 1rem 1.4rem;
    display: grid;
    gap: 1rem;
    align-content: center;
  }

  .auth-page .auth-hero {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-page .auth-login-card {
    margin: 0;
  }

  .auth-page .partners-carousel-section {
    margin-top: 0;
  }

  .auth-page .section-header-row {
    justify-content: center;
  }

  .auth-page .section-header-row .brand-pill {
    display: none;
  }

  .progress-item {
    align-items: flex-start;
  }

  .progress-main {
    align-items: flex-start;
  }

  .progress-state-label {
    font-size: 0.8rem;
  }

  .profile-hero-strip {
    padding: 0.9rem;
  }

  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .brand-hero {
    padding: 1.6rem;
  }

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

  .header-actions,
  .header-menu {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .header-actions {
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
  }

  .header-menu-label,
  .header-meta {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(87, 87, 86, 0.72);
  }

  .auth-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .footer-shell {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.user-bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}

.inline-form {
  display: inline-flex;
}

.ticket-progress-card,
.prize-form-card,
.admin-toolbar-card {
  display: grid;
  gap: 0.9rem;
}

.profile-shell {
  display: grid;
  gap: 1rem;
}

.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.profile-progress-card .section-header-row,
.profile-card .section-header-row {
  margin-bottom: 1rem;
}

.profile-card {
  display: grid;
  gap: 1rem;
}

.profile-hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf7 0%, #fffdfb 100%);
  border: 1px solid rgba(237, 108, 108, 0.12);
}

.profile-identity h3 {
  margin: 0 0 0.18rem;
  font-size: 1.3rem;
}

.profile-identity p,
.profile-label {
  margin: 0;
  color: var(--color-gray-text);
}

.profile-status-chip {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.profile-details-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.profile-detail-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(87, 87, 86, 0.12);
  background: #fff;
  display: grid;
  gap: 0.35rem;
}

.profile-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-text);
}

.profile-detail-card strong {
  color: #21314d;
  line-height: 1.45;
}

.profile-modal {
  max-width: 880px;
}

.progress-counter-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #21314d;
}

.progress-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(41, 169, 224, 0.12);
  overflow: hidden;
}

.progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-coral), var(--brand-yellow));
}

.ticket-summary-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ticket-summary-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ticket-card,
.coupon-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px dashed rgba(237, 108, 108, 0.28);
  background: linear-gradient(180deg, #fffdfa, #fff7f4);
  box-shadow: var(--brand-shadow);
  padding: 1rem;
}

.ticket-code-large {
  margin: 0.2rem 0 0.5rem;
  color: #21314d;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ticket-win-note,
.token-status-copy {
  color: #21314d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ranking-summary-grid {
  margin: 0 0 1rem;
}

.ranking-list {
  display: grid;
  gap: 0.8rem;
}

.ranking-list.compact {
  gap: 0.55rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  background: #fff;
  box-shadow: var(--brand-shadow-soft);
}

.ranking-item-copy {
  display: grid;
  gap: 0.15rem;
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 0.8rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff0ed, #ffe5df);
  color: var(--brand-coral);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ranking-item:nth-child(1) .ranking-badge,
.winner-item .ranking-badge {
  background: linear-gradient(180deg, #fff7d2, #ffe582);
  color: #7c5d00;
}

.ranking-item:nth-child(2) .ranking-badge {
  background: linear-gradient(180deg, #eef7fc, #d7ebf8);
  color: #246983;
}

.ranking-item:nth-child(3) .ranking-badge {
  background: linear-gradient(180deg, #f6f1ee, #eaded7);
  color: #7f6658;
}

.prize-grid {
  align-items: stretch;
}

.prize-card {
  display: grid;
  gap: 0.7rem;
}

.admin-inline-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

.winners-list .ranking-item {
  background: linear-gradient(180deg, #fffdf6, #fff8e2);
}

.ticket-exchange-panel {
  position: relative;
  overflow: hidden;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.14), transparent 24%),
    radial-gradient(circle at left center, rgba(237, 108, 108, 0.1), transparent 22%),
    linear-gradient(135deg, #fffdf8 0%, #fff8f4 100%);
}

.ticket-exchange-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.ticket-exchange-copy {
  display: grid;
  gap: 0.55rem;
}

.ticket-exchange-copy .brand-section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.ticket-exchange-note {
  margin: 0;
  color: #21314d;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 500;
}

.ticket-exchange-badge {
  min-width: 168px;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  background: linear-gradient(180deg, #fff5c8, #fff9df);
  box-shadow: var(--brand-shadow-soft);
  display: grid;
  justify-items: center;
  text-align: center;
}

.ticket-badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c5d00;
}

.ticket-exchange-badge strong {
  color: #21314d;
  font-size: 2.3rem;
  line-height: 1;
}

.ticket-exchange-badge small {
  color: #7c5d00;
  font-size: 0.82rem;
  font-weight: 700;
}

.ticket-exchange-stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-mini-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--brand-shadow-soft);
  display: grid;
  gap: 0.32rem;
}

.ticket-mini-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-text);
}

.ticket-mini-card strong {
  color: #21314d;
  font-size: 1.14rem;
}

.ticket-progress-row {
  margin-top: 0.15rem;
}

.ticket-progress-meter {
  height: 16px;
  background: rgba(41, 169, 224, 0.1);
  border: 1px solid rgba(41, 169, 224, 0.12);
}

.ticket-progress-meter span {
  background: linear-gradient(90deg, var(--brand-coral), var(--brand-yellow), var(--brand-green));
}

.ticket-exchange-actions .btn:first-child {
  min-width: 220px;
}

.draw-showcase {
  display: grid;
  gap: 1.1rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(255, 204, 0, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(41, 169, 224, 0.1), transparent 20%),
    linear-gradient(180deg, #fffdfa 0%, #fff 100%);
}

.draw-showcase-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 1.15rem;
  align-items: start;
}

.draw-headline {
  display: grid;
  gap: 0.8rem;
}

.draw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(237, 108, 108, 0.12);
  color: var(--brand-coral);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.draw-headline h2 {
  margin: 0;
  color: #21314d;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.draw-headline > p {
  margin: 0;
  max-width: 580px;
  color: #394b68;
  font-size: 1.02rem;
  line-height: 1.5;
}

.draw-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.draw-date-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(94, 78, 67, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--brand-shadow-soft);
  display: grid;
  gap: 0.32rem;
}

.draw-date-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-text);
}

.draw-date-card strong {
  color: #21314d;
  font-size: 1.04rem;
}

.draw-prizes {
  display: grid;
  gap: 0.8rem;
}

.draw-ribbon {
  justify-self: end;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a73, var(--brand-coral));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 28px rgba(237, 108, 108, 0.22);
}

.draw-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.draw-prize-card {
  position: relative;
  overflow: hidden;
  padding: 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  background: #fff;
  box-shadow: var(--brand-shadow-soft);
  display: grid;
  gap: 0.72rem;
}

.draw-prize-rank {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--brand-shadow-soft);
}

.prize-rank-1 .draw-prize-rank {
  background: linear-gradient(180deg, #ffc950, #f1a80d);
}

.prize-rank-2 .draw-prize-rank {
  background: linear-gradient(180deg, #cfd6de, #9ba4b0);
}

.prize-rank-3 .draw-prize-rank {
  background: linear-gradient(180deg, #d99d65, #b46c32);
}

.draw-prize-card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa, #f7f3ee);
}

.draw-prize-icon-media {
  position: relative;
  width: 100%;
  height: 156px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa, #f7f3ee);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.draw-prize-icon {
  width: 70px;
  height: 70px;
  stroke-width: 1.8;
  position: relative;
  z-index: 1;
}

.prize-rank-1 .draw-prize-icon {
  color: #f1a80d;
}

.prize-rank-1 .draw-prize-icon-media {
  background:
    radial-gradient(circle at top, rgba(255, 223, 120, 0.45), transparent 42%),
    linear-gradient(180deg, #fffefa, #f9f1dc);
  box-shadow: inset 0 0 0 1px rgba(241, 168, 13, 0.08);
}

.prize-rank-1 .draw-prize-icon-media::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -38%;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0.75;
  animation: prizeLuxuryShine 3.2s ease-in-out infinite;
}

.prize-rank-1 .draw-prize-icon-media::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 210, 94, 0.95);
  box-shadow:
    0 0 0 6px rgba(255, 210, 94, 0.12),
    0 0 18px rgba(255, 210, 94, 0.45);
}

.prize-rank-2 .draw-prize-icon {
  color: #9ba4b0;
}

.prize-rank-3 .draw-prize-icon {
  color: #b46c32;
}

@keyframes prizeLuxuryShine {
  0% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }
  20% {
    opacity: 0.35;
  }
  50% {
    transform: translateX(210%) rotate(18deg);
    opacity: 0.95;
  }
  100% {
    transform: translateX(260%) rotate(18deg);
    opacity: 0;
  }
}

.draw-prize-card h3 {
  margin: 0;
  color: #21314d;
  font-size: 1.08rem;
}

.draw-prize-card p {
  margin: 0;
  color: #51627b;
  line-height: 1.4;
}

.draw-showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.draw-progress-card,
.draw-tickets-card,
.draw-cta-card {
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(94, 78, 67, 0.1);
  box-shadow: var(--brand-shadow-soft);
}

.draw-progress-card,
.draw-tickets-card {
  background: rgba(255, 255, 255, 0.88);
}

.draw-side-block {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.12fr);
  gap: 0.9rem;
  align-items: stretch;
}

.draw-cta-card {
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.18), transparent 24%),
    linear-gradient(180deg, #fff7f6 0%, #fff3f1 100%);
}

.draw-card-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.draw-card-header h3 {
  margin: 0;
  color: #21314d;
  font-size: 1.08rem;
}

.draw-card-header p {
  margin: 0;
  color: #51627b;
  line-height: 1.45;
}

.draw-progress-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.draw-progress-score strong {
  color: var(--brand-coral);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.9;
}

.draw-progress-score span {
  color: #21314d;
  font-size: 2.1rem;
  font-weight: 900;
}

.draw-progress-score small {
  display: block;
  margin-top: 0.3rem;
  color: var(--brand-coral);
  font-size: 0.98rem;
  font-weight: 800;
}

.draw-progress-ring {
  --progress: 0%;
  width: 168px;
  height: 168px;
  padding: 12px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-coral) 0 var(--progress), rgba(237, 108, 108, 0.12) var(--progress) 100%);
  display: grid;
  place-items: center;
}

.draw-progress-ring-center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #21314d;
}

.draw-progress-ring-center strong {
  display: block;
  font-size: 1.25rem;
}

.draw-progress-ring-center span {
  display: block;
  color: #51627b;
}

.draw-step-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin: 1rem 0 0.9rem;
}

.draw-step-dot {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px dashed rgba(94, 78, 67, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f7a89;
  font-size: 0.98rem;
  font-weight: 900;
}

.draw-step-dot.is-complete {
  border-style: solid;
  border-color: rgba(57, 179, 74, 0.28);
  background: linear-gradient(180deg, #54c763, #39b34a);
  color: #fff;
}

.draw-inline-note {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.draw-inline-note.is-success {
  background: rgba(57, 179, 74, 0.1);
  color: #176b21;
}

.draw-inline-note.is-neutral {
  background: rgba(255, 204, 0, 0.12);
  color: #7c5d00;
}

.draw-inline-note.is-info {
  background: rgba(41, 169, 224, 0.12);
  color: #165d88;
}

.draw-tickets-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 100%;
}

.draw-ticket-counter {
  color: #298ee7;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.9;
  font-weight: 900;
  text-align: center;
}

.draw-ticket-caption {
  margin: -0.35rem 0 0;
  color: #214370;
  font-size: 1.05rem;
  text-align: center;
}

.draw-cta-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 100%;
}

.draw-cta-art {
  min-height: 92px;
  border-radius: 22px;
  display: grid;
  place-items: center;
}

.draw-cta-icon {
  width: 72px;
  height: 72px;
  color: rgba(237, 108, 108, 0.7);
  filter: drop-shadow(0 12px 20px rgba(237, 108, 108, 0.18));
  transform-origin: center;
  animation: drawCtaFloat 3.2s ease-in-out infinite;
}

@keyframes drawCtaFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-9deg);
  }
  50% {
    transform: translateY(-8px) rotate(7deg) scale(1.04);
  }
}

.draw-cta-form {
  display: grid;
}

.draw-cta-btn {
  width: 100%;
  min-height: 58px;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ed6c6c, #f49898);
  border-color: transparent;
  color: #fff;
}

.draw-cta-btn:disabled {
  background: linear-gradient(135deg, #d9dee5, #c7ced8);
  border-color: transparent;
  color: #5f6c7b;
  opacity: 1;
  cursor: not-allowed;
}

.draw-cta-foot {
  margin: 0;
  color: #7c5d00;
  line-height: 1.45;
}

.draw-ranking-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 204, 0, 0.22);
  background: linear-gradient(180deg, #fffdf7, #fffaf1);
}

.draw-ranking-intro {
  display: grid;
  gap: 0.45rem;
  min-width: 240px;
}

.draw-ranking-intro h3,
.draw-ranking-intro p {
  margin: 0;
}

.draw-ranking-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.draw-ranking-person {
  position: relative;
  padding: 0.35rem 0.2rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.draw-ranking-place {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
  box-shadow: var(--brand-shadow-soft);
}

.rank-1 .draw-ranking-place {
  background: linear-gradient(180deg, #ffc950, #f1a80d);
  color: #fff;
}

.rank-2 .draw-ranking-place {
  background: linear-gradient(180deg, #cfd6de, #9ba4b0);
  color: #fff;
}

.rank-3 .draw-ranking-place {
  background: linear-gradient(180deg, #d99d65, #b46c32);
  color: #fff;
}

.rank-4 .draw-ranking-place,
.rank-5 .draw-ranking-place {
  background: #fff;
  border: 1px solid rgba(94, 78, 67, 0.18);
  color: #56657b;
}

.draw-ranking-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffe8e4, #fff5f4);
  color: var(--brand-coral);
  font-weight: 900;
  box-shadow: var(--brand-shadow-soft);
}

.draw-ranking-copy {
  display: grid;
  gap: 0.08rem;
}

.draw-ranking-copy strong {
  color: #21314d;
  font-size: 1rem;
}

.draw-ranking-copy span {
  color: #51627b;
}

.draw-ranking-empty {
  color: #51627b;
}

.draw-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(94, 78, 67, 0.08);
}

.draw-footer p,
.draw-footer a {
  margin: 0;
  color: #51627b;
}

.draw-footer a {
  justify-self: end;
  font-weight: 700;
}

@media (max-width: 759px) {
  .ticket-summary-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-marketplace-section {
    min-width: 0;
    overflow: hidden;
  }

  .dashboard-offers-carousel {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-offers-carousel .carousel-btn {
    display: none;
  }

  .offers-track {
    width: 100%;
    min-width: 0;
    gap: 0.85rem;
    padding: 0 0 0.35rem;
    scroll-padding-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .offer-carousel-card {
    min-width: 86%;
    max-width: 86%;
    flex: 0 0 86%;
    overflow: hidden;
  }

  .offer-carousel-card img {
    display: block;
    width: 100%;
    height: 180px;
  }

  .ticket-exchange-hero {
    grid-template-columns: 1fr;
  }

  .ticket-exchange-badge {
    min-width: 0;
    width: 100%;
  }

  .ticket-exchange-stats {
    grid-template-columns: 1fr;
  }

  .ticket-exchange-actions .btn:first-child {
    min-width: 0;
  }

  .draw-showcase {
    padding: 1rem;
  }

  .draw-showcase-top,
  .draw-showcase-body,
  .draw-side-block,
  .draw-ranking-strip,
  .draw-footer {
    grid-template-columns: 1fr;
  }

  .draw-dates,
  .draw-prize-grid,
  .draw-ranking-list {
    grid-template-columns: 1fr;
  }

  .draw-ribbon {
    justify-self: start;
  }

  .draw-progress-main {
    grid-template-columns: 1fr;
  }

  .draw-progress-ring {
    width: 146px;
    height: 146px;
    margin: 0 auto;
  }

  .draw-ranking-intro {
    min-width: 0;
  }

  .draw-ranking-person {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 0;
  }

  .draw-footer a {
    justify-self: start;
  }
}
