:root {
  color-scheme: light;
  font-family:
    'Outfit', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --gold: #fbbf24;
  --sun: #fbbf24;
  --sun-deep: #f97316;
  --cream: #fff6e8;
  --danger: #ef4444;
  --success: #f59e0b;
  --sidebar-bg: #171717;
  --bg-soft: #fffaf2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    url("./assets/textura.png") left top / 560px auto repeat,
    radial-gradient(circle at top left, #fff4da 0, #fff4da 18%, transparent 48%),
    linear-gradient(180deg, #fdf8ef 0%, #f4ede1 100%);
}

button,
input,
select {
  font: inherit;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.18fr) minmax(360px, 0.82fr);
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 247, 231, 0.86), rgba(247, 239, 227, 0.86)),
    url("./assets/textura.png") left top / 520px auto repeat;
}

body.is-logged-in .login-shell {
  display: none !important;
}

body.is-logged-out #app-dashboard {
  display: none !important;
}

.login-shell.logged-in {
  grid-template-columns: 0fr 1fr;
}

.photo-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(180deg, #ffb52e 0%, #ff8f1c 68%, #18181b 68%, #09090b 100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: hidden;
}

.photo-panel::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.24));
  content: "";
}

.photo-panel::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0) 0%, rgba(9, 9, 11, 0.96) 100%);
  content: "";
}

.login-shell.logged-in .photo-panel {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.photo-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 240, 0.84)),
    url("./assets/textura.png") left top / 480px auto repeat;
  transition: all 0.5s ease;
}

.login-shell.logged-in .login-panel {
  background:
    linear-gradient(180deg, rgba(255, 246, 234, 0.92), rgba(255, 246, 234, 0.9)),
    url("./assets/textura.png") left top / 480px auto repeat;
  box-shadow: none;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  animation: reveal-up 560ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.brand-logo.mini {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--sidebar-bg);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.15rem, 3.8vw, 4.4rem);
}

h2 {
  font-size: 1.35rem;
}

.intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}


.login-form {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 26px;
}

label {
  color: #2f3d51;
  font-size: 0.92rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.password-row button,
.primary-button,
.secondary-button,
.google-button,
.apple-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.password-row button {
  min-width: 68px;
  padding: 0 14px;
  color: #1e293b;
  background: #fff1d6;
}

.primary-button {
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(135deg, #18181b 0%, #ea580c 100%);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-strong);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8e2ec;
  color: #243247;
  background: #fffdf9;
}

.google-button:hover,
.google-button:focus-visible {
  border-color: #b7c3d1;
  background: #f9fbfd;
}

.google-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #111827;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #243247 100%);
}

.apple-button:hover,
.apple-button:focus-visible {
  border-color: #0b1220;
  background: #0b1220;
}

.apple-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4285f4;
  font-size: 0.9rem;
  font-weight: 900;
}

.apple-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.secondary-button {
  width: 100%;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  transition: background 0.2s ease;
}

.secondary-button:hover {
  background: var(--accent-strong);
}

#logout-button {
  width: fit-content;
  color: var(--accent-strong);
  background: #fff2d9;
}

#logout-button:hover {
  background: #ffe6bd;
}

.message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.message.error {
  color: var(--danger);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.message.success {
  color: var(--success);
}

/* Dashboard Overall Layout */
.dashboard-layout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--bg-soft);
  z-index: 1000;
  animation: fadeIn 0.4s ease-out;
}

.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu-close {
  display: none;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-overlay {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sidebar {
  background-color: var(--sidebar-bg);
  background: linear-gradient(180deg, #1f1f23, #09090b);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.05);
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sidebar-header {
  margin-bottom: 48px;
  padding: 0 10px;
}

.sidebar-header-main {
  display: grid;
  gap: 12px;
}

.sidebar-user-email {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  word-break: break-all;
}

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.side-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.side-nav-btn .icon {
  font-size: 1.2rem;
}

.side-nav-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.side-nav-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.34);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.logout-link {
  color: #fca5a5;
  background: transparent;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: #f87171;
  text-decoration: underline;
}

/* Main Content Area */
.dashboard-content {
  overflow-y: auto;
  position: relative;
  background:
    linear-gradient(rgba(255, 248, 239, 0.72), rgba(245, 237, 225, 0.8)),
    url("./assets/textura.png") left top / 520px auto repeat;
}

.dashboard-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 243, 0.7);
  backdrop-filter: blur(10px);
  z-index: -1;
}

/* Content Views */
.view-header {
  margin-bottom: 40px;
  position: relative;
}

/* Professional Dashboard Content */
.content-view {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.view-header {
  margin-bottom: 40px;
}

.view-title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  font-weight: 900;
  color: var(--sidebar-bg);
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.view-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 108px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
}

.view-title-compact {
  padding-bottom: 14px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.view-title-compact::after {
  width: 76px;
  height: 5px;
}

.view-header-featured .view-title {
  max-width: none;
  font-size: clamp(3.4rem, 5.2vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: transparent;
  background: linear-gradient(
    90deg,
    #0f172a 0%,
    #111827 28%,
    #f59e0b 47.5%,
    #fff6e8 50%,
    #ea580c 52.5%,
    #111827 72%,
    #0f172a 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 10px 24px rgba(180, 83, 9, 0.08));
  animation: featuredTitleShimmer 9.5s ease-in-out infinite;
}

.view-header-featured .view-title::after {
  width: 136px;
  height: 7px;
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 58%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: featuredTitleUnderline 3.8s ease-in-out infinite;
}

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

@keyframes featuredTitleUnderline {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.26);
  }
}

/* Redesigned Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.accordion-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.accordion-item.raffle-attention {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.16), 0 20px 36px rgba(220, 38, 38, 0.16);
  animation: raffleAttentionPanelPulse 1.15s ease-in-out infinite;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  background-image: linear-gradient(180deg, rgba(255, 248, 236, 0.55), rgba(255, 255, 255, 0));
}

.accordion-header span:first-child {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sidebar-bg);
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
  background: #fff8e8;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: var(--bg-soft);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

.accordion-item.open .step-badge {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  padding: 0 32px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.accordion-item.open .accordion-content {
  max-height: 12000px;
  opacity: 1;
  padding: 0 32px 32px;
  overflow: visible;
}

/* Refined Plan Cards */
.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 10px;
}

.plan-card {
  position: relative;
  padding: 28px 30px;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-card:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.plan-card:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: #fff8ec;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.12);
  animation: selectedPlanPulse 1.5s ease-in-out infinite;
}

.plan-card input[type="radio"] {
  appearance: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 0;
  flex: 0 0 28px;
  position: relative;
  transition: all 0.2s ease;
  background: #fff;
  box-shadow: inset 0 0 0 9px #fff;
}

.plan-card input[type="radio"]:checked {
  border-color: var(--accent-strong);
  background: var(--accent);
  box-shadow: inset 0 0 0 6px #fff;
  animation: selectedPlanDotPulse 1.5s ease-in-out infinite;
}

.plan-card:has(input[type="radio"]:checked) .plan-title {
  color: #111827;
}

.plan-card:has(input[type="radio"]:checked) .plan-desc {
  color: var(--accent-strong);
  font-weight: 700;
}

.plan-info {
  display: flex;
  flex-direction: column;
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sidebar-bg);
  line-height: 1.2;
}

.plan-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-price {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-strong);
}

.plan-card:has(input[type="radio"]:checked) .plan-price {
  color: #b45309;
}

@keyframes selectedPlanPulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.12);
  }
  50% {
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
  }
}

@keyframes selectedPlanDotPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 6px #fff;
  }
  50% {
    transform: scale(1.08);
    box-shadow: inset 0 0 0 6px #fff, 0 0 0 7px rgba(245, 158, 11, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card:has(input[type="radio"]:checked),
  .plan-card input[type="radio"]:checked {
    animation: none;
  }
}

/* Beautiful Chapters Grid */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}

.chapter-item {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--sidebar-bg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chapter-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-soft);
  transform: scale(1.05);
}

.chapter-item.purchased {
  border-color: #cbd5e1;
  color: #64748b;
  background: #e2e8f0;
}

.chapter-item.purchased::after {
  content: "Comprado";
  position: absolute;
  right: 6px;
  bottom: 5px;
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-item.purchased:hover {
  border-color: #94a3b8;
  color: #475569;
  background: #cbd5e1;
}

.chapter-item.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.24);
}

.chapter-item.selected::after {
  color: rgba(255, 255, 255, 0.78);
}

.program-section {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.program-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.program-section::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 104px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.32), rgba(226, 232, 240, 0.68));
}

.program-header {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8ec, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.program-thumb {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e2e8f0 center / cover no-repeat;
}

.program-thumb.is-empty {
  display: grid;
  place-items: center;
  color: var(--sidebar-bg);
  font-size: 1.4rem;
  font-weight: 900;
}

.program-title {
  margin: 0 0 4px;
  color: var(--sidebar-bg);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.program-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.episode-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding-top: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.episode-item {
  min-height: 178px;
  aspect-ratio: auto;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  text-align: left;
}

.episode-art {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  border-radius: 8px;
  background: #e2e8f0 center / cover no-repeat;
  overflow: hidden;
}

.episode-art.is-empty {
  display: grid;
  place-items: center;
}

.episode-art.is-empty span {
  color: var(--sidebar-bg);
  font-size: 1rem;
  font-weight: 900;
}

.episode-code {
  margin-top: 2px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.catalog-status {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  color: #9a3412;
  background: #fffaf0;
}

.access-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #ffffff);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.06);
}

.summary-label {
  margin: 0;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-value {
  margin: 0;
  color: var(--sidebar-bg);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: #fff7e8;
  color: #b45309;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #ffefcc;
  border-color: rgba(234, 88, 12, 0.36);
}

.catalog-status.error {
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

/* Buttons */
.primary-button {
  width: auto;
  min-width: 200px;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.accordion-content > .primary-button,
.accordion-content > .outline-button {
  display: block;
  width: min(100%, 320px);
}

.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.18);
}

/* Inputs & Forms */
.daily-contest-container {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.day-contest-card {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.day-contest-card.raffle-attention {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
  animation: raffleAttentionCardPulse 1.15s ease-in-out infinite;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.day-label {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--sidebar-bg);
}

.daily-inputs-grid {
  display: grid;
  grid-template-columns: minmax(160px, 280px);
  gap: 12px;
}

.lucky-mini-input {
  width: 100%;
  padding: 16px 12px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--sidebar-bg);
  transition: all 0.2s ease;
}

.lucky-mini-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.lucky-mini-input.raffle-attention {
  border-color: #dc2626;
  background: #fff5f5;
  animation: raffleAttentionInputPulse 1.15s ease-in-out infinite;
}

@keyframes raffleAttentionPanelPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.16), 0 20px 36px rgba(220, 38, 38, 0.16);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.24), 0 24px 40px rgba(220, 38, 38, 0.22);
  }
}

@keyframes raffleAttentionCardPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.16);
  }
}

@keyframes raffleAttentionInputPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-item.raffle-attention,
  .day-contest-card.raffle-attention,
  .lucky-mini-input.raffle-attention,
  .empty-history-text.purchase-register-attention,
  .register-raffle-button.purchase-register-attention,
  .view-header-featured .view-title,
  .view-header-featured .view-title::after {
    animation: none;
  }
}

/* Profile Form centered */
.profile-card-center {
  background: #fff;
  padding: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  max-width: 700px;
  margin-top: 20px;
}

.profile-required-notice {
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
  background: #fffbeb;
  color: #78350f;
}

.profile-required-notice h2,
.profile-required-notice p {
  margin: 0;
}

.profile-required-notice h2 {
  margin-bottom: 8px;
  color: #78350f;
  font-size: 1.25rem;
}

.notice-kicker {
  margin-bottom: 6px !important;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-fields {
  display: grid;
  gap: 28px;
}

.profile-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="number"],
.field-group input[type="password"],
.field-group select {
  width: 100%;
  box-sizing: border-box;
}

.field-group-full {
  grid-column: 1 / -1;
}

.field-group-ci {
  min-width: 0;
}

.field-group-complemento {
  max-width: 180px;
  justify-self: start;
}

.profile-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #f8fafc;
}

.profile-section-billing {
  border-color: rgba(245, 158, 11, 0.22);
  background: #fff7e2;
}

.profile-section-billing .profile-subgrid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.profile-section-header {
  margin-bottom: 18px;
}

.profile-section-eyebrow,
.profile-section-title,
.profile-section-copy {
  margin: 0;
}

.profile-section-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-section-title {
  margin-top: 6px;
  color: var(--sidebar-bg);
  font-size: 1.15rem;
  font-weight: 900;
}

.profile-section-copy {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.billing-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
}

.billing-toggle input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.birthdate-grid {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(140px, 1.2fr) minmax(110px, 1fr);
  gap: 12px;
}

.field-group-required {
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 8px;
  padding: 12px;
  background: #fffbeb;
}

.field-group-required input,
.field-group-required select {
  border-color: var(--gold);
  background: #fff;
}

.field-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select {
  padding: 14px 18px;
  border: 2.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

.dashboard-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.outline-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--accent-strong);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.outline-button:hover,
.outline-button:focus-visible {
  border-color: var(--accent);
  background: #fff7e8;
}

.outline-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.history-status {
  min-height: 24px;
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.history-status.error {
  color: #b91c1c;
}

.history-status.loading {
  color: var(--accent-strong);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245, 158, 11, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spinStatus 0.8s linear infinite;
  flex: 0 0 auto;
}

.post-payment-banner {
  margin: 0 0 18px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: #fff7e2;
}

.post-payment-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.post-payment-banner-kicker,
.post-payment-banner h2,
.post-payment-banner p {
  margin: 0;
}

.post-payment-banner-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-payment-banner h2 {
  margin-top: 6px;
  color: var(--sidebar-bg);
  font-size: 1.35rem;
}

.post-payment-banner p {
  margin-top: 8px;
  color: #9a3412;
  line-height: 1.55;
  font-weight: 700;
}

.post-payment-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-payment-banner-button {
  margin-top: 0;
}

.purchase-history-list {
  display: grid;
  gap: 18px;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

.history-pagination-button {
  min-width: 132px;
}

.history-pagination-info {
  flex: 1;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  line-height: 1.5;
}

.payment-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
}

.payment-status.success {
  border-color: rgba(245, 158, 11, 0.24);
  background: #fff7e2;
  color: #9a3412;
}

.payment-status.error {
  border-color: rgba(239, 68, 68, 0.22);
  background: #fef2f2;
  color: #b91c1c;
}

.payment-status.warning {
  border-color: rgba(217, 119, 6, 0.28);
  background: #fffbeb;
  color: #92400e;
}

.payment-status.loading {
  border-color: rgba(245, 158, 11, 0.24);
  background: #fff7e8;
  color: #b45309;
}

.terms-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.payment-helper-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 700;
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.terms-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--accent);
}

.terms-check a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.terms-status.success {
  color: var(--accent-strong);
}

.payment-embed {
  margin-top: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.payment-embed-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e5edf5;
  background: #f8fafc;
}

.payment-embed-title,
.payment-embed-subtitle {
  margin: 0;
}

.payment-embed-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.payment-embed-subtitle {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.payment-frame {
  display: block;
  width: 100%;
  min-height: 1455px;
  border: 0;
  background: #fff;
}

.purchase-history-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.purchase-history-card-focus {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.14);
}

.purchase-history-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.history-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.purchase-status {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent-strong);
  background: #fff7e8;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-status[data-state="pendiente_pago"] {
  border-color: rgba(217, 119, 6, 0.28);
  background: #fffbeb;
  color: #92400e;
}

.purchase-status[data-state="pendiente_verificacion"] {
  border-color: rgba(24, 24, 27, 0.18);
  background: #fff4df;
  color: #3f3f46;
}

@keyframes spinStatus {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.purchase-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.purchase-meta-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf1, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 14px;
  background: var(--bg-soft);
}

.purchase-meta-item span {
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 800;
}

.purchase-meta-item strong {
  color: var(--ink);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.purchase-numbers-section h3 {
  margin: 0 0 12px;
  color: var(--sidebar-bg);
  font-size: 1rem;
}

.purchase-number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.purchase-number-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.purchase-number-pill span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.purchase-number-pill strong {
  color: var(--accent-strong);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.empty-history-text {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.purchase-next-step {
  margin: 10px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.5;
}

.register-raffle-button {
  width: fit-content;
  margin-top: 12px;
}

.empty-history-text.purchase-register-attention {
  color: #b91c1c;
  font-weight: 800;
  animation: purchaseRegisterAttentionText 1.2s ease-in-out infinite;
}

.register-raffle-button.purchase-register-attention {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fff5f5;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  animation: purchaseRegisterAttentionButton 1.2s ease-in-out infinite;
}

.register-raffle-button.purchase-register-attention:hover,
.register-raffle-button.purchase-register-attention:focus-visible {
  border-color: #dc2626;
  color: #991b1b;
  background: #ffe4e6;
}

@keyframes purchaseRegisterAttentionText {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    opacity: 0.78;
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.16);
  }
}

@keyframes purchaseRegisterAttentionButton {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.12);
  }
}

.manual-verify-box {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.manual-verify-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.manual-verify-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.manual-verify-input {
  flex: 1 1 280px;
  min-width: 220px;
  min-height: 46px;
  background: #fff;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .login-shell {
    display: block;
    min-height: 100vh;
  }

  .photo-panel {
    display: flex;
    min-height: 42vh;
    padding: 18px 18px 22px;
    align-items: flex-end;
  }

  .login-panel {
    min-height: auto;
    padding: 0 18px 28px;
    margin-top: -12px;
    position: relative;
    z-index: 1;
  }

  .login-card {
    padding: 22px 18px 24px;
  }

  .brand {
    margin-bottom: 22px;
  }

  .brand-main {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .intro {
    width: 100%;
  }

  .intro h1,
  .view-title {
    font-size: 2rem;
    letter-spacing: 0;
  }

  .view-title {
    padding-bottom: 14px;
    line-height: 1;
  }

  .view-header-featured .view-title {
    max-width: 7ch;
    font-size: 3.35rem;
    line-height: 0.86;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 12px 26px rgba(180, 83, 9, 0.1));
  }

  .view-title::after {
    width: 72px;
    height: 5px;
  }

  .view-header-featured .view-title::after {
    width: 108px;
    height: 6px;
  }

  .dashboard-layout {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mobile-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    right: auto;
    z-index: 3000;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 52px;
    height: 52px;
    padding: 0 11px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--sidebar-bg);
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    border: 0;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .dashboard-layout.mobile-menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(320px, 86vw);
    padding: 18px 16px 16px;
    border-right: 0;
    border-bottom: 0;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.28);
    transform: translateX(104%);
    transition: transform 0.26s ease;
  }

  .dashboard-layout.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    min-width: 0;
  }

  .sidebar-header-main {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .brand-logo.mini {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .sidebar-user-email {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .side-nav-btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
  }

  .side-nav-btn .icon {
    font-size: 1rem;
  }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
  }

  .logout-link {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(252, 165, 165, 0.35);
    border-radius: 8px;
    text-align: center;
  }

  .dashboard-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background-attachment: scroll;
    padding-top: 64px;
  }

  .content-view {
    width: 100%;
    max-width: none;
    padding: 22px 14px 36px;
  }

  .view-header {
    margin-bottom: 22px;
  }

  .accordion {
    gap: 12px;
  }

  .accordion-item {
    border-radius: 8px;
  }

  .accordion-header {
    gap: 12px;
    padding: 16px;
  }

  .accordion-header span:first-child {
    font-size: 1rem;
  }

  .step-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .accordion-content {
    padding: 0 16px;
  }

  .accordion-item.open .accordion-content {
    padding: 0 16px 18px;
    max-height: 16000px;
  }

  .plan-options,
  .profile-subgrid,
  .purchase-meta-grid {
    grid-template-columns: 1fr;
  }

  .field-group-complemento {
    max-width: none;
  }

  .birthdate-grid {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .day-contest-card,
  .profile-card-center,
  .purchase-history-card {
    padding: 16px;
    border-radius: 8px;
  }

  .chapters-grid {
    gap: 16px;
  }

  .access-summary {
    grid-template-columns: 1fr;
  }

  .chapter-item {
    border-radius: 8px;
    font-size: 0.98rem;
  }

  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .program-header {
    grid-template-columns: 72px 1fr;
    padding: 10px;
    margin-bottom: 14px;
  }

  .program-thumb {
    width: 72px;
  }

  .program-section {
    padding: 14px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
  }

  .program-section::after {
    left: 14px;
    right: 14px;
    top: 98px;
  }

  .episode-item {
    min-height: 156px;
    padding: 7px;
  }

  .episode-code {
    font-size: 0.82rem;
  }

  .primary-button,
  .outline-button {
    width: 100%;
    min-width: 0;
  }

  .day-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .daily-inputs-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header-row,
  .purchase-history-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .post-payment-banner-inner,
  .post-payment-banner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .history-pagination-button {
    width: 100%;
  }

  .history-pagination-info {
    text-align: left;
  }

  .purchase-number-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .dashboard-layout {
    grid-template-columns: 220px 1fr;
  }

  .sidebar {
    padding: 28px 14px;
  }

  .content-view {
    max-width: 920px;
    padding-inline: 28px;
  }

  .plan-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .content-view {
    padding-inline: 10px;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .episode-item {
    min-height: 0;
    padding: 8px;
  }

  .program-header {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 8px;
  }

  .program-thumb {
    width: 56px;
  }

  .program-title {
    font-size: 1rem;
  }

  .program-subtitle {
    font-size: 0.82rem;
  }

  .program-section::after {
    top: 86px;
  }

  .program-section::before {
    height: 5px;
  }

  .accordion-item.open .accordion-content {
    max-height: 22000px;
  }

  .purchase-number-pill {
    align-items: flex-start;
    flex-direction: column;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  select {
    min-height: 48px;
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  .dashboard-header-row,
  .purchase-history-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-meta-grid {
    grid-template-columns: 1fr;
  }
}
