* {
  box-sizing: border-box;
}

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --navy: #071936;
  --navy-2: #0b2a63;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --cyan: #08a6c7;
  --blue-bright: #2f6df4;
  --success: #2563eb;
  --warning: #b54708;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.2), transparent 28%),
    radial-gradient(circle at 78% 42%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(29, 78, 216, 0.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #f7fbff 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto,
    auto;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(37, 99, 235, 0.13) 18.2%, transparent 18.6% 52%, rgba(14, 165, 233, 0.12) 52.2%, transparent 52.6%),
    linear-gradient(245deg, transparent 0 34%, rgba(15, 23, 42, 0.08) 34.2%, transparent 34.6% 72%, rgba(37, 99, 235, 0.1) 72.2%, transparent 72.6%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 72%);
}

body::after {
  background:
    radial-gradient(circle at 20% 40%, rgba(37, 99, 235, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 25%, rgba(14, 165, 233, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 68%, rgba(37, 99, 235, 0.18) 0 2px, transparent 3px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: 0.7;
}

.client-shell {
  min-height: 100vh;
}

.login-card {
  width: min(440px, calc(100% - 32px));
  margin: 9vh auto;
  border: 1px solid rgba(217, 226, 239, 0.9);
  border-radius: 18px;
  padding: 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-client-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 528px;
  align-items: center;
  width: min(980px, calc(100% - 36px));
  min-height: 0;
  margin: 6vh auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login-client-visual {
  position: relative;
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 40px 52px 40px 20px;
  color: var(--navy);
  background: transparent;
}

.login-client-brand,
.login-client-copy,
.login-client-badges {
  position: relative;
  z-index: 1;
}

.login-client-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-client-brand span {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border: 0;
  font-size: 20px;
}

.login-client-copy {
  max-width: 560px;
}

.login-client-copy span,
.login-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.login-client-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(54px, 6vw, 74px);
  line-height: 0.94;
}

.login-client-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #586a86;
  font-size: 20px;
  line-height: 1.5;
}

.login-client-badges {
  display: flex;
  margin-top: 28px;
  gap: 12px;
}

.login-client-badges div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  background: #ffffff;
}

.login-client-badges strong,
.login-client-badges span {
  display: block;
}

.login-client-badges span {
  margin-top: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.login-client-badges strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.login-client-form-panel {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 24px;
  padding: 22px 34px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
}

.login-secure-pill {
  position: absolute;
  top: 22px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--blue);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-heading {
  display: none;
}

.login-heading span {
  color: var(--blue);
}

.login-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  line-height: 1.05;
}

.login-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.client-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.client-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.client-input-wrap svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: var(--blue);
}

.client-input-wrap input {
  min-height: 48px;
  flex: 1;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.client-input-wrap input:focus {
  box-shadow: none;
}

.login-client-footer {
  margin-top: 4px;
}

.brand-lockup,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-client-form-panel .brand-lockup {
  padding-right: 104px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
  line-height: 1;
  box-shadow: none;
}

.brand-lockup span,
.sidebar-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.brand-lockup strong,
.sidebar-brand strong {
  font-size: 19px;
  letter-spacing: 0;
}

.login-card h1 {
  margin: 24px 0 8px;
  font-size: 34px;
  line-height: 1.05;
  color: var(--navy);
}

.login-card p,
.login-card a {
  color: var(--muted);
}

.login-card a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.login-help {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 12px;
  margin: 16px 0 8px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #344054;
}

input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #1746ad);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 20px 24px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(7, 25, 54, 0.98) 0%, rgba(10, 37, 84, 0.98) 58%, rgba(22, 64, 155, 0.98) 100%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.dashboard.sidebar-collapsed .sidebar {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  transform: translateX(-100%);
}

.sidebar-brand span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-brand strong {
  font-size: 24px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-nav a svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.92;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.95);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-profile > span {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #1746ad);
  font-weight: 900;
}

.sidebar-profile div {
  min-width: 0;
}

.sidebar-profile small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.sidebar-profile strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar button {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.content {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 28px 28px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
}

.menu-button {
  display: inline-grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(7, 25, 54, 0.08);
}

.menu-button span {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: #1f2937;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  font-size: 16px;
}

.topbar-user span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-weight: 900;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 42px 34px;
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(6, 22, 52, 0.98) 0%, rgba(30, 64, 175, 0.96) 50%, rgba(37, 99, 235, 0.98) 100%);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}

.hero + .premium-callout {
  margin-top: 0;
}

.hero:not(.d-none) {
  border-radius: 28px 0 0 28px;
}

.hero:not(.d-none) + .premium-callout {
  border-radius: 0 28px 28px 0;
}

.content:has(.hero:not(.d-none)) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.content:has(.hero:not(.d-none)) .topbar,
.content:has(.hero:not(.d-none)) .cards,
.content:has(.hero:not(.d-none)) .guide {
  grid-column: 1 / -1;
}

.content:has(.hero:not(.d-none)) .hero,
.content:has(.hero:not(.d-none)) .premium-callout {
  min-height: 300px;
  margin-top: 0;
}

.content:has(.hero:not(.d-none)) .premium-callout {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.content:has(.hero:not(.d-none)) .premium-callout .callout-icon,
.content:has(.hero:not(.d-none)) .premium-callout h2,
.content:has(.hero:not(.d-none)) .premium-callout p,
.content:has(.hero:not(.d-none)) .premium-callout a {
  grid-column: 1;
  grid-row: auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 44%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-copy,
.hero-badge {
  position: relative;
  z-index: 1;
}

.hero span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  text-shadow: 0 2px 16px rgba(16, 24, 40, 0.16);
}

.hero-copy h1 {
  font-size: 0;
}

.hero-copy h1::before {
  content: "Hola, " attr(data-first-name) "!";
  font-size: clamp(36px, 4vw, 52px);
}

.hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 17px;
}

.welcome-user {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.welcome-user strong {
  margin-left: 5px;
  color: #ffffff;
}

.hero-badge {
  display: grid;
  gap: 4px;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.premium-callout {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 0;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px;
  color: #ffffff;
  text-align: left;
  background:
    linear-gradient(135deg, #172554 0%, #2563eb 58%, #0ea5e9 100%);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.16);
}

.premium-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 45%);
  pointer-events: none;
}

.callout-icon {
  position: relative;
  z-index: 1;
  grid-row: 1 / 3;
  grid-column: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 34px;
  font-weight: 900;
}

.premium-callout h2 {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.15;
}

.premium-callout p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.premium-callout a {
  position: relative;
  z-index: 1;
  grid-row: 1 / 3;
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  margin-top: 0;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.18);
}

.hero-badge small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-badge strong {
  font-size: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card,
.guide article {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.card {
  min-height: 210px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.card h2,
.guide h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 10px 0;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-transform: capitalize;
}

.status-review,
.status-pending {
  color: var(--warning);
  background: #fff4e6;
}

.status-approved,
.status-active {
  color: var(--success);
  background: #eaf1ff;
}

.status-rejected {
  color: var(--danger);
  background: #feeceb;
}

.days-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue);
  background: #eaf1ff;
  font-size: 14px;
  font-weight: 900;
}

.days-left-expired {
  color: var(--danger);
  background: #feeceb;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.plan-summary {
  gap: 22px;
}

.plan-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.plan-summary-head > div {
  display: grid;
  gap: 10px;
}

.plan-summary-head .status-pill {
  margin: 0;
  color: var(--blue);
  background: #eaf1ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.plan-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-info-item {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.plan-info-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.plan-info-item strong {
  color: var(--navy);
  font-size: 22px;
}

.plan-info-item .days-left {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}

.detail-list p {
  margin: 0;
  color: var(--muted);
}

.detail-list strong {
  color: var(--ink);
}

.membership-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 16px;
  padding: 10px 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.membership-badge > span {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.42);
}

.membership-badge > span::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
}

.membership-badge small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.membership-badge strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.tier-silver > span {
  background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 48%, #e2e8f0 100%);
}

.tier-bronze > span {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 48%, #fed7aa 100%);
}

.tier-gold > span {
  background: linear-gradient(135deg, #fff7ad 0%, #f59e0b 48%, #facc15 100%);
}

.tier-default > span {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.membership-badge-compact {
  border-color: rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.membership-badge-compact > span {
  width: 34px;
  height: 34px;
}

.membership-badge-compact > span::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.membership-badge-compact small,
.membership-badge-compact strong {
  color: #ffffff;
}

.membership-badge-compact strong {
  font-size: 22px;
}

.credential-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbff, #f1f5f9);
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.credential-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.credential-row strong {
  color: var(--navy);
  font-size: 15px;
  text-align: right;
  word-break: break-word;
}

.credential-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.guide {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.guide article:first-child {
  scroll-margin-top: 24px;
}

.guide ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.store-showcase {
  border-color: #242630;
  background: #17181d;
}

.store-section-head {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-section-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ed0b69;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.plan-option {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f1117;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
}

.plan-option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(237, 11, 105, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.plan-option-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: inherit;
  object-fit: cover;
  background: linear-gradient(135deg, #0b1f4d, #2563eb);
  transition: transform 220ms ease, filter 220ms ease;
}

.plan-option-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.plan-option-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ed0b69;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.plan-option-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.plan-option strong {
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  text-transform: capitalize;
}

.plan-option p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.35;
}

.plan-option-overlay span {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.plan-option small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 800;
}

.plan-option em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.plan-option:hover::after,
.plan-option:focus-visible::after,
.plan-option:hover .plan-option-overlay,
.plan-option:focus-visible .plan-option-overlay {
  opacity: 1;
}

.plan-option:hover .plan-option-overlay,
.plan-option:focus-visible .plan-option-overlay {
  transform: translateY(0);
}

.plan-option:hover .plan-option-image,
.plan-option:focus-visible .plan-option-image {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(0.78);
}

.d-none {
  display: none;
}

@media (max-width: 920px) {
  .login-client-pro {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 24px auto;
    gap: 20px;
  }

  .login-client-visual {
    min-height: 0;
    padding: 24px 8px;
  }

  .login-client-copy h1 {
    font-size: 38px;
  }

  .login-client-form-panel {
    padding: 30px;
  }

  .content:has(.hero:not(.d-none)) {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero:not(.d-none),
  .hero:not(.d-none) + .premium-callout {
    border-radius: 24px;
  }

  .hero + .premium-callout {
    margin-top: 0;
  }

  .content:has(.hero:not(.d-none)) .cards,
  .content:has(.hero:not(.d-none)) .guide {
    margin-top: 0;
  }

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

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(292px, 84vw);
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 22px 0 50px rgba(7, 25, 54, 0.22);
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .sidebar-nav {
    display: grid;
  }

  .dashboard.sidebar-open .sidebar {
    opacity: 1;
    transform: translateX(0);
  }

  .sidebar-profile {
    margin-top: auto;
    max-width: none;
  }

  .hero {
    flex-direction: column;
    min-height: 0;
    padding: 30px 24px;
  }

  .hero::before {
    width: 70%;
  }

  .premium-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .callout-icon,
  .premium-callout h2,
  .premium-callout p,
  .premium-callout a {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .login-client-brand,
  .login-client-copy > span {
    display: none;
  }

  .login-client-visual {
    min-height: 0;
    padding: 0 4px 10px;
  }

  .login-client-badges {
    flex-direction: column;
  }

  .login-client-form-panel {
    padding: 24px;
  }

  .login-heading h1 {
    font-size: 32px;
  }

  .content {
    padding: 16px;
  }

  .cards,
  .plan-options {
    grid-template-columns: 1fr;
  }

  .plan-option,
  .plan-option-image {
    min-height: 360px;
  }

  .hero {
    padding: 24px;
  }
}

@media (hover: none) {
  .plan-option::after,
  .plan-option .plan-option-overlay {
    opacity: 1;
  }

  .plan-option .plan-option-overlay {
    transform: none;
  }
}
