:root {
  --ink: #111111;
  --muted: #6d706a;
  --line: #dfe3d8;
  --paper: #f4f6ef;
  --panel: #ffffff;
  --accent: #78ff15;
  --accent-dark: #00e5ff;
  --teal: #00e5ff;
  --green: #78ff15;
  --charcoal: #171717;
  --shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body {
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.header-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.secondary-button {
  border-color: rgba(17, 17, 17, 0.2);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.primary-button {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(120, 255, 21, 0.24);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  min-height: 640px;
  padding: clamp(38px, 5vw, 72px) clamp(16px, 4vw, 54px);
  background:
    radial-gradient(circle at 82% 24%, rgba(0, 229, 255, 0.18), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(0, 229, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #f8faf2 0%, #eef2e7 100%);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 82px);
  right: clamp(18px, 5vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.88), rgba(0, 229, 255, 0.55), transparent);
}

.hero::after {
  content: "AUTOMATION / ILLUSTRATOR / EXPORT";
  position: absolute;
  top: 24px;
  right: clamp(18px, 5vw, 82px);
  color: rgba(17, 17, 17, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.page-hero {
  padding: clamp(42px, 6vw, 78px) clamp(16px, 4vw, 54px) 34px;
  background:
    radial-gradient(circle at 14% 20%, rgba(0, 229, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #f8faf2 0%, #eef2e7 100%);
}

.page-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-hero-centered {
  text-align: center;
}

.page-hero-centered h1,
.page-hero-centered p:last-child {
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  max-width: 760px;
}

.hero.product-section {
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  align-items: start;
  min-height: auto;
  padding-top: clamp(44px, 6vw, 86px);
  padding-bottom: clamp(44px, 6vw, 86px);
}

.hero.product-section .hero-content {
  width: min(760px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto clamp(22px, 3vw, 34px);
}

.section-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading-centered {
  text-align: center;
}

.section-heading-centered h2,
.section-heading-centered p:last-child {
  margin-left: auto;
  margin-right: auto;
}

@keyframes stripReveal {
  0% {
    transform: translate3d(0, var(--strip-start), 0) scaleY(1.08);
    clip-path: polygon(0 48%, 100% 44%, 100% 56%, 0 52%);
    filter: saturate(1.4) contrast(1.25) blur(8px);
  }

  58% {
    transform: translate3d(0, 0, 0) scaleY(1.02);
    clip-path: polygon(0 0, 100% 6%, 100% 94%, 0 100%);
    filter: saturate(1.14) contrast(1.12) blur(0);
  }

  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: saturate(1.02) contrast(1.06) blur(0);
  }
}

@keyframes stripLight {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes stripMicroShift {
  0%,
  100% {
    background-position-y: center;
  }

  45% {
    background-position-y: calc(50% + 10px);
  }

  70% {
    background-position-y: calc(50% - 6px);
  }
}

.subscriptions {
  padding: clamp(40px, 5vw, 72px) clamp(18px, 5vw, 72px);
  background: #071018;
  overflow: hidden;
}

.billing-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto clamp(22px, 3vw, 34px);
  justify-content: center;
}

.billing-toggle button {
  min-height: 40px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.billing-toggle button.is-active {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(0, 229, 255, 0.24);
}

.subscription-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.plan-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  width: min(1180px, 100%);
  margin: 18px auto 0;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 65%);
}

.plan-card.is-featured {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.14), transparent 34%),
    var(--charcoal);
  border-color: rgba(0, 229, 255, 0.42);
  transform: translateY(-14px);
}

.plan-label {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card.is-featured .plan-label {
  color: var(--accent);
}

.plan-card h3 {
  max-width: 280px;
  min-height: 44px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.18;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}

.plan-price strong {
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  line-height: 0.9;
}

.plan-price span {
  color: var(--muted);
  font-weight: 800;
}

.plan-card.is-featured .plan-price span,
.plan-card.is-featured li {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
  padding-left: 18px;
}

.plan-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.plan-card .primary-button,
.plan-card .secondary-button {
  margin-top: auto;
}

.subscription-gate-message {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(680px, 100%);
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.subscription-gate-message[hidden] {
  display: none;
}

.subscription-gate-message strong {
  color: #ffffff;
}

.subscription-gate-message p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.feature-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 246, 239, 0.94), rgba(244, 246, 239, 0.86)),
    url("https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1600&q=75") center / cover no-repeat;
}

.feature-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.feature-section .feature-grid {
  position: relative;
  z-index: 1;
}

.feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 64%);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.12);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--green);
  font-weight: 900;
}

.feature-card p,
.workflow p,
.pricing-copy p,
.contact-section p,
.price-card li,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
}

.feature-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.module-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 12% 24%, rgba(0, 229, 255, 0.16), transparent 28%),
    var(--charcoal);
  color: #fff;
}

.module-copy p:last-child {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

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

.module-item {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.module-item span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--accent);
  font-weight: 900;
}

.module-item strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.2rem;
}

.module-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.functions-overview .module-item {
  min-height: 160px;
}

.functions-overview .module-item span {
  margin-bottom: 24px;
}

.functions-overview {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 54px);
  background: #071018;
}

.functions-overview .module-board {
  width: min(920px, 100%);
  margin: 0 auto;
}

.functions-mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(920px, 100%);
  margin: 0 auto;
}

.functions-compatibility {
  margin-bottom: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1.35fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.06)),
    #071018;
}

.compatibility-title h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin-left: auto;
}

.compatibility-grid article {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.compatibility-grid span,
.compatibility-grid strong,
.compatibility-grid p {
  margin: 0;
}

.compatibility-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compatibility-grid strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.compatibility-grid p {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 229, 255, 0.14), transparent 28%),
    var(--charcoal);
  color: #fff;
}

.workflow .eyebrow,
.pricing .eyebrow {
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at 80% 18%, rgba(0, 229, 255, 0.12), transparent 28%),
    #f8faf2;
}

.pricing-copy {
  max-width: 720px;
}

.price-card {
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent);
}

.price-label {
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.price-card strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-left: 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 229, 255, 0.14), transparent 25%),
    var(--charcoal);
  color: #fff;
}

.contact-section p {
  color: #d8d0c5;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 3px solid rgba(0, 229, 255, 0.28);
  border-color: var(--accent-dark);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 82px);
  background: #0f0f0f;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero,
  .workflow,
  .pricing,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .functions-compatibility {
    text-align: center;
  }

  .compatibility-grid {
    margin: 0 auto;
  }


  .hero::after {
    display: none;
  }

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

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

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

  .module-showcase,
  .module-board {
    grid-template-columns: 1fr;
  }

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


  .plan-card.is-featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }


  .primary-button,
  .secondary-button {
    width: 100%;
  }


  .feature-card {
    min-height: auto;
  }

  .functions-mode-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-icon {
    margin-bottom: 28px;
  }

  .subscriptions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .billing-toggle {
    justify-content: center;
  }

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

  .plan-card {
    padding: 24px;
  }

  .plan-card h3 {
    max-width: none;
    min-height: 0;
  }

  .plan-price {
    flex-wrap: wrap;
  }

}


body {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 10%, rgba(0, 229, 255, 0.12), transparent 26%),
    radial-gradient(circle at 12% 48%, rgba(0, 229, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #05080d 0%, #0d141e 48%, #111111 100%);
}

.hero,
.secondary-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-button:hover {
  border-color: var(--accent);
}

.plan-card.is-featured {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.04)), #05080d;
}

@keyframes imageCinematicIn {
  0% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0) scale(1.13);
    filter: saturate(1.1) contrast(1.12) brightness(0.55) blur(7px);
  }
  55% {
    opacity: 1;
    filter: saturate(1.15) contrast(1.12) brightness(0.9) blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.07);
    filter: saturate(1.08) contrast(1.08) brightness(0.82) blur(0);
  }
}

@keyframes textAfterImage {
  0% {
    opacity: 0;
    transform: translate3d(-34px, 28px, 0) scale(0.98);
    filter: blur(14px);
  }
  62% {
    opacity: 1;
    transform: translate3d(6px, 0, 0) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 760px) {

}

@media (prefers-reduced-motion: reduce) {


}


/* Sistema de suscripcion segura */
.secure-hero,
.account-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.secure-hero h1,
.account-panel h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.06;
  margin: 0 0 18px;
}

.secure-hero p,
.account-panel p {
  color: var(--muted-text, #aeb7c2);
  font-size: 1.02rem;
}

.secure-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.secure-badges span,
.account-status-grid span {
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.07);
  color: #eaffdf;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.88rem;
}

.security-card,
.account-card,
.secure-form {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.security-card strong,
.account-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

[hidden],
.account-dashboard-panel[hidden],
#accountAuthShell[hidden] {
  display: none !important;
}

.account-auth-shell {
  width: min(720px, calc(100% - 28px));
  margin: 48px auto 70px;
  display: grid;
  gap: 16px;
}

.account-auth-layout {
  width: 100%;
  margin: 0;
  padding: 22px 24px 24px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  background: rgba(9, 18, 29, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.account-auth-layout .secure-form {
  width: min(620px, 100%);
}

.account-auth-layout .auth-tabs {
  margin-bottom: 14px;
}

.security-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-text, #aeb7c2);
}

.security-card li { margin: 10px 0; }

.auth-subscription-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.auth-tabs {
  display: inline-flex;
  justify-self: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.auth-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #eaffdf;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: rgba(255,255,255,0.16);
}

.auth-subscription-layout .secure-form {
  width: min(620px, 100%);
  justify-self: center;
}

.account-auth-layout .secure-form {
  padding: 30px 28px;
  border-radius: 22px;
}

.auth-subscription-layout .secure-form.is-hidden {
  display: none;
}

.secure-form h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
}

.secure-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #f5f7fb;
  font-weight: 700;
}

.secure-form label[hidden] {
  display: none;
}

.secure-form input,
.secure-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(3, 6, 10, 0.72);
  color: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
}

.secure-form select {
  min-height: 50px;
}

.secure-form input::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(0, 229, 255, 0.95);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.secure-form input.no-spinner::-webkit-outer-spin-button,
.secure-form input.no-spinner::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.secure-form input.no-spinner {
  appearance: textfield;
}

.secure-form input:focus,
.secure-form select:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.13);
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.optional-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.required-fields-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.required-fields-note span,
.required-mark {
  color: #93c5fd;
  font-weight: 900;
}

.secure-plans { margin-top: 20px; }

.checkout-status { text-align: center; margin-top: 20px; }
.form-message.is-error { color: #ff9c9c; }

.checkout-button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.account-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.account-dashboard-panel {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
  max-width: 980px;
}

.account-dashboard-panel > div:first-child {
  max-width: 760px;
}

.account-dashboard-panel .account-card {
  padding: 24px;
  border-radius: 18px;
  width: 100%;
}

.account-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #ffffff;
  background: #00e5ff;
  font-weight: 900;
  letter-spacing: 0;
}

.account-profile-head strong {
  margin: 0 0 4px;
}

.account-profile-head p {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.account-status-pill.is-active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.account-status-pill.is-inactive {
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.account-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button {
  border: 0;
  background: transparent;
  color: #d7dde8;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 860px) {
  .secure-hero,
  .account-panel,
  .auth-subscription-layout {
    grid-template-columns: 1fr;
  }
}


.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.6);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 229, 255, 0.08);
}

.download-panel p {
  margin: 6px 0 0;
  color: rgba(248, 250, 252, 0.72);
}


.payment-methods,
.manual-plan-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px auto;
}

.payment-methods button,
.manual-plan-toggle button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  font-weight: 800;
  cursor: pointer;
}

.payment-methods button.is-active,
.manual-plan-toggle button.is-active {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(0, 229, 255, 0.22);
}

.payment-help {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}

.payment-help p {
  margin: 6px 0 0;
  color: var(--muted);
}

.manual-payment-section {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 54px);
}

.manual-payment-form {
  max-width: 760px;
  margin: 0 auto;
}

.admin-login-panel {
  min-height: calc(100vh - 180px);
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 46px 0;
}

.admin-login-panel[hidden] {
  display: none;
}

.admin-login-panel .admin-key-card {
  width: 100%;
}

.admin-dashboard-header {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-dashboard-header[hidden] {
  display: none;
}

.admin-dashboard-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.admin-dashboard-header p {
  margin: 0;
  color: var(--muted-text, #aeb7c2);
}

.admin-user-strip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-dark);
  font-weight: 900;
}

.admin-user-strip strong,
.admin-user-strip span {
  display: block;
}

.admin-user-strip strong {
  color: #ffffff;
  line-height: 1.1;
}

.admin-user-strip span {
  color: rgba(248, 250, 252, 0.66);
  font-size: 0.82rem;
}

.admin-user-strip .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

.admin-key-card label {
  display: grid;
  gap: 8px;
  color: #f5f7fb;
  font-weight: 800;
}

.admin-key-card input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(3, 6, 10, 0.72);
  color: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
}

.admin-key-card input:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.13);
}

.admin-key-card.is-connected {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: stretch;
  gap: 18px;
}

.admin-key-card.is-connected > strong,
.admin-key-card.is-connected .form-message {
  grid-column: 1 / -1;
}

.admin-key-card.is-connected .admin-session-panel {
  grid-column: 1;
}

.admin-key-card.is-connected .account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: end;
  grid-column: 2;
  margin-top: 0;
}

.admin-key-card.is-connected .primary-button {
  order: 3;
  grid-column: 1 / -1;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: none;
}

.admin-key-card.is-connected .secondary-button {
  order: 2;
}

.admin-key-card.is-connected .ghost-button {
  order: 1;
}

.admin-session-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(0, 229, 255, 0.08));
}

.admin-session-panel[hidden] {
  display: none;
}

.admin-session-panel > div:first-child {
  position: relative;
  padding-left: 24px;
}

.admin-session-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.admin-session-panel strong {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.admin-session-panel p {
  margin: 0;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-session-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-session-stats span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: rgba(248, 250, 252, 0.68);
  background: rgba(3, 6, 10, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-session-stats b {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-workspace {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto 56px;
}

.admin-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-view-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #eaffdf;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-view-tabs button.is-active {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-notification-button {
  position: relative;
}

.admin-notification-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 229, 255, 0.72);
  font-size: 0.75rem;
  line-height: 1;
}

.admin-notification-button.has-pending span {
  background: #16a34a;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-toolbar h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-summary-grid article {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-summary-grid span {
  display: block;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-controls {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-controls[hidden],
.admin-filters[hidden],
.admin-table-wrap[hidden] {
  display: none;
}

.admin-controls label {
  display: grid;
  gap: 8px;
  color: #f5f7fb;
  font-weight: 900;
}

.admin-controls input,
.admin-controls select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(3, 6, 10, 0.72);
  outline: none;
}

.admin-home-panel {
  display: grid;
  gap: 14px;
}

.admin-home-panel[hidden] {
  display: none;
}

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

.admin-home-card,
.admin-home-lists article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.admin-home-card.is-action {
  border-color: rgba(0, 229, 255, 0.34);
}

.admin-home-card span {
  display: block;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-home-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.admin-home-card p,
.admin-home-list p {
  margin: 10px 0 14px;
  color: rgba(248, 250, 252, 0.68);
  line-height: 1.45;
}

.admin-home-lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-home-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-home-list-head strong {
  color: #ffffff;
  font-size: 1rem;
}

.admin-home-list {
  display: grid;
  gap: 8px;
}

.admin-home-list button {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: inherit;
  text-align: left;
  background: rgba(3, 6, 10, 0.24);
  cursor: pointer;
}

.admin-home-list button:hover {
  border-color: rgba(0, 229, 255, 0.34);
  background: rgba(0, 229, 255, 0.10);
}

.admin-home-list button strong,
.admin-home-list button span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-home-list button strong {
  color: #ffffff;
}

.admin-home-list button span {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.64);
  font-size: 0.86rem;
}

.admin-settings-panel {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.055);
}

.admin-settings-panel[hidden] {
  display: none;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.admin-settings-grid section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-settings-grid h3 {
  margin: 0;
  color: #ffffff;
}

.admin-settings-grid label,
.settings-price-grid label {
  display: grid;
  gap: 7px;
  color: #f5f7fb;
  font-weight: 900;
}

.admin-settings-grid input,
.admin-settings-grid textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 11px 12px;
  color: #ffffff;
  background: rgba(3, 6, 10, 0.72);
  outline: none;
}

.payment-account-manager {
  display: grid;
  gap: 12px;
}

.admin-helper-text {
  margin: 8px 0 14px;
  color: var(--muted-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.payment-account-manager .admin-home-list-head {
  align-items: center;
  padding-top: 4px;
}

.payment-account-manager .admin-home-list-head .secondary-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.payment-account-list {
  display: grid;
  gap: 12px;
}

.payment-account-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
}

.payment-account-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-account-editor-head strong {
  display: block;
  color: #ffffff;
}

.payment-account-editor-head span {
  display: block;
  margin-top: 2px;
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.8rem;
}

.payment-account-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-account-editor-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.compact-check {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px !important;
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.compact-check input {
  width: auto;
}

.payment-account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-account-fields label:last-child {
  grid-column: auto;
}

.admin-pricing-section {
  align-content: start;
}

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

.plan-settings-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.plan-settings-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(47, 211, 233, 0.24);
  border-radius: 12px;
  background: rgba(8, 17, 28, 0.58);
}

.plan-settings-card strong {
  color: var(--accent-green);
}

.smtp-test-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(47, 211, 233, 0.24);
  border-radius: 12px;
  background: rgba(8, 17, 28, 0.58);
}

.smtp-test-box > strong {
  color: var(--accent-green);
}

.admin-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-settings-actions .primary-button,
.admin-settings-actions .secondary-button {
  width: auto;
  min-width: 160px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.admin-settings-actions .secondary-button {
  min-width: 118px;
}

@media (max-width: 920px) {
  .admin-settings-grid,
  .payment-account-fields,
  .settings-price-grid {
    grid-template-columns: 1fr;
  }

  .payment-account-editor-head,
  .payment-account-editor-actions,
  .admin-settings-actions {
    align-items: stretch;
  }

  .payment-account-editor-head {
    flex-direction: column;
  }

  .payment-account-editor-actions,
  .admin-settings-actions {
    width: 100%;
  }

  .admin-settings-actions .primary-button,
  .admin-settings-actions .secondary-button {
    flex: 1 1 180px;
  }
}

.admin-controls input:focus,
.admin-controls select:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.13);
}

.admin-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-control-actions .secondary-button,
.admin-control-actions .primary-button,
.admin-control-actions .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eaffdf;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.admin-filters button.is-active {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.20);
}

.admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #eaffdf;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-table td {
  color: #f8fafc;
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 3px;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.79rem;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
  width: 70px;
}

.admin-table th:last-child,
.admin-table td:last-child {
  width: 280px;
}

#paymentsTableWrap .admin-table th:nth-child(1),
#paymentsTableWrap .admin-table td:nth-child(1) {
  width: 64px;
}

#paymentsTableWrap .admin-table th:nth-child(2),
#paymentsTableWrap .admin-table td:nth-child(2) {
  width: 190px;
}

#paymentsTableWrap .admin-table th:nth-child(3),
#paymentsTableWrap .admin-table td:nth-child(3),
#paymentsTableWrap .admin-table th:nth-child(4),
#paymentsTableWrap .admin-table td:nth-child(4) {
  width: 90px;
}

#paymentsTableWrap .admin-table th:nth-child(5),
#paymentsTableWrap .admin-table td:nth-child(5),
#paymentsTableWrap .admin-table th:nth-child(6),
#paymentsTableWrap .admin-table td:nth-child(6),
#paymentsTableWrap .admin-table th:nth-child(7),
#paymentsTableWrap .admin-table td:nth-child(7) {
  width: 160px;
}

#paymentsTableWrap .admin-table th:nth-child(8),
#paymentsTableWrap .admin-table td:nth-child(8) {
  width: 108px;
}

#paymentsTableWrap .admin-table th:nth-child(9),
#paymentsTableWrap .admin-table td:nth-child(9) {
  width: 235px;
}

#subscriptionsTableWrap .admin-table th:nth-child(1),
#subscriptionsTableWrap .admin-table td:nth-child(1) {
  width: 210px;
}

#subscriptionsTableWrap .admin-table th:nth-child(2),
#subscriptionsTableWrap .admin-table td:nth-child(2),
#subscriptionsTableWrap .admin-table th:nth-child(3),
#subscriptionsTableWrap .admin-table td:nth-child(3) {
  width: 100px;
}

#subscriptionsTableWrap .admin-table th:nth-child(4),
#subscriptionsTableWrap .admin-table td:nth-child(4) {
  width: 130px;
}

#subscriptionsTableWrap .admin-table th:nth-child(5),
#subscriptionsTableWrap .admin-table td:nth-child(5),
#subscriptionsTableWrap .admin-table th:nth-child(6),
#subscriptionsTableWrap .admin-table td:nth-child(6) {
  width: 145px;
}

#subscriptionsTableWrap .admin-table th:nth-child(7),
#subscriptionsTableWrap .admin-table td:nth-child(7) {
  width: 330px;
}

#engineTableWrap .admin-table {
  min-width: 1180px;
}

#engineTableWrap .admin-table th:nth-child(1),
#engineTableWrap .admin-table td:nth-child(1) {
  width: 130px;
}

#engineTableWrap .admin-table th:nth-child(2),
#engineTableWrap .admin-table td:nth-child(2) {
  width: 210px;
}

#engineTableWrap .admin-table th:nth-child(3),
#engineTableWrap .admin-table td:nth-child(3) {
  width: 245px;
}

#engineTableWrap .admin-table th:nth-child(4),
#engineTableWrap .admin-table td:nth-child(4) {
  width: 150px;
}

#engineTableWrap .admin-table th:nth-child(5),
#engineTableWrap .admin-table td:nth-child(5) {
  width: 210px;
}

#engineTableWrap .admin-table th:nth-child(6),
#engineTableWrap .admin-table td:nth-child(6) {
  width: 235px;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 7px;
  min-width: 0;
  max-width: 270px;
}

.admin-action-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-row-actions .admin-action-button {
  width: 100%;
}

.admin-muted {
  color: rgba(248, 250, 252, 0.58);
  font-weight: 800;
}

.admin-status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(148, 163, 184, 0.22);
  font-weight: 900;
  font-size: 0.76rem;
}

.admin-status-pill.is-pending {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.20);
}

.admin-status-pill.is-approved {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
}

.admin-status-pill.is-rejected {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.admin-status-pill.is-voided {
  color: #e5e7eb;
  background: rgba(100, 116, 139, 0.24);
}

.admin-table td[data-label="Verificacion"] span {
  display: block;
  margin-bottom: 4px;
}

.admin-table td[data-label="Verificacion"] .admin-status-pill {
  display: inline-flex;
}

.admin-status-message {
  margin-top: 16px;
}

.admin-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.admin-detail-panel[hidden] {
  display: none;
}

.admin-detail-card {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 22px;
  background: #111827;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.admin-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-detail-heading h2 {
  margin: 0;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-detail-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(3, 6, 10, 0.24);
}

.admin-detail-grid span {
  display: block;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-detail-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.admin-detail-grid .admin-detail-wide {
  grid-column: 1 / -1;
}

.admin-device-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.admin-device-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(3, 6, 10, 0.20);
}

.admin-device-list p,
.admin-device-list small {
  margin: 0;
  color: rgba(248, 250, 252, 0.66);
  overflow-wrap: anywhere;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  background: #111827;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.admin-confirm-card {
  width: min(520px, 100%);
}

.admin-confirm-card p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-confirm-card textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px;
  color: #ffffff;
  background: rgba(3, 6, 10, 0.72);
}

.admin-proof-card {
  width: min(980px, 100%);
}

.admin-proof-card iframe {
  width: 100%;
  min-height: min(72vh, 760px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: #020617;
}

.primary-button.is-danger {
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.24);
}

.password-requests-card {
  width: min(980px, 100%);
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-admin-table .admin-action-group {
  justify-content: flex-start;
}

#passwordRequestsTableWrap .admin-table th,
#passwordRequestsTableWrap .admin-table td {
  vertical-align: top;
  white-space: normal;
}

#passwordRequestsTableWrap .admin-table th:nth-child(1),
#passwordRequestsTableWrap .admin-table td:nth-child(1) {
  width: 26%;
}

#passwordRequestsTableWrap .admin-table th:nth-child(2),
#passwordRequestsTableWrap .admin-table td:nth-child(2) {
  width: 32%;
}

#passwordRequestsTableWrap .admin-table th:nth-child(3),
#passwordRequestsTableWrap .admin-table td:nth-child(3) {
  width: 20%;
}

#passwordRequestsTableWrap .admin-table th:nth-child(4),
#passwordRequestsTableWrap .admin-table td:nth-child(4) {
  width: 22%;
}

.muted-line {
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.84rem;
}

.subscription-control-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.subscription-control-summary article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(3, 6, 10, 0.24);
}

.subscription-control-summary span {
  display: block;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-control-summary strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.admin-modal-actions-top {
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.admin-modal-actions-top .secondary-button,
.admin-modal-actions-top .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-edit-grid.is-readonly {
  opacity: 0.78;
}

.admin-edit-grid.is-readonly input,
.admin-edit-grid.is-readonly select {
  cursor: not-allowed;
}

.admin-edit-grid label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-weight: 900;
}

.admin-edit-grid input,
.admin-edit-grid select {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(3, 6, 10, 0.72);
  outline: none;
}

.admin-edit-grid input:focus,
.admin-edit-grid select:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.13);
}

@media (max-width: 860px) {
  .admin-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-strip {
    align-self: flex-start;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .admin-key-card.is-connected {
    grid-template-columns: 1fr;
  }

  .admin-key-card.is-connected .admin-session-panel,
  .admin-key-card.is-connected .account-actions {
    grid-column: 1;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filters {
    justify-content: flex-start;
  }

  .admin-summary-grid,
  .admin-detail-grid,
  .subscription-control-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-controls,
  .admin-detail-heading {
    align-items: stretch;
  }

  .admin-controls {
    grid-template-columns: 1fr;
  }

  .admin-control-actions {
    justify-content: flex-start;
  }

  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: #eaffdf;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-table td[colspan] {
    display: block;
  }

  .admin-table td[colspan]::before {
    content: "";
  }
}

@media (max-width: 520px) {
  .admin-summary-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

.manual-payment-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}


.subscription-note {
  max-width: 760px;
  position: relative;
  z-index: 0;
  margin: 18px auto 22px;
  text-align: center;
  color: var(--muted);
}

.payment-workflow {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 40px rgba(17,17,17,0.08);
}

.compact-heading h3 {
  margin-bottom: 8px;
}

.compact-heading h3 small {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.compact-heading .compact-action {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.payment-action-row {
  display: flex;
  justify-content: center;
  margin: 18px 0 10px;
}


.password-requirements {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.password-requirements strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.password-requirements ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.password-requirements li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.password-requirements li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 999px;
  color: #071018;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 900;
}

.password-requirements li.is-valid {
  color: #86efac;
}

.password-requirements li.is-valid::before {
  content: "?";
  border-color: rgba(34, 197, 94, 0.72);
  background: #22c55e;
}

.password-help-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.password-help-box strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
}

.password-help-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.password-help-box.is-highlighted {
  border-color: rgba(0, 229, 255, 0.78);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.14);
}

.forgot-password-link {
  width: fit-content;
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid rgba(219, 234, 254, 0.55);
  padding: 0;
  color: #eaffdf;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.password-reset-box[hidden] {
  display: none;
}

.password-reset-box label {
  display: block;
  margin-top: 12px;
}

.password-reset-check {
  min-height: 22px;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 800;
}

.password-reset-check.is-valid {
  color: #86efac;
}

.password-reset-check.is-invalid {
  color: #fca5a5;
}

.admin-password-help {
  margin-top: 14px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.34);
}

.password-toggle.is-visible {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.42);
}


.bank-transfer-card {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.bank-transfer-card strong {
  display: block;
  margin-bottom: 8px;
}

.bank-transfer-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.bank-account-destination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
}

.bank-account-destination > span {
  grid-column: 1 / -1;
  color: #00e5ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bank-account-destination div {
  display: grid;
  gap: 4px;
  align-content: start;
}

.bank-account-destination b {
  color: var(--muted);
  font-size: 0.82rem;
}

.bank-account-destination strong {
  margin: 0;
  color: var(--text);
}

.payment-qr-box {
  grid-column: 1 / -1;
  width: min(180px, 100%);
}

.payment-qr-box[hidden] {
  display: none;
}

.payment-qr-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  padding: 8px;
}

.payment-file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  position: relative;
}

.payment-file-preview[hidden] {
  display: none;
}

.payment-file-preview img,
.file-preview-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.payment-file-preview img {
  object-fit: cover;
}

.file-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.18);
  color: #bff7ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.payment-file-preview strong,
.payment-file-preview span {
  display: block;
}

.payment-file-preview span {
  color: var(--muted);
  font-size: 0.86rem;
}

.remove-file-button {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  font-weight: 900;
  cursor: pointer;
}

.remove-file-button:hover {
  background: rgba(220, 38, 38, 0.28);
}

.upload-progress {
  display: grid;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 229, 255, 0.20);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.46);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.upload-progress b {
  color: #bff7ff;
}

.upload-progress progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
}

.upload-progress progress::-webkit-progress-bar {
  background: rgba(255,255,255,0.10);
}

.upload-progress progress::-webkit-progress-value {
  background: #00e5ff;
}

.upload-progress progress::-moz-progress-bar {
  background: #00e5ff;
}

.bank-transfer-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.transfer-only-workflow .manual-payment-form {
  margin-top: 16px;
}

/* Funciones dark theme overrides */
.page-hero,
.feature-section,
.module-showcase,
.workflow {
  background: #071018;
  color: #f8fafc;
}

.page-hero {
  padding: clamp(42px, 6vw, 78px) clamp(16px, 4vw, 54px) 34px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
}

.page-hero h1,
.feature-card h3,
.module-copy h2,
.workflow h2,
.timeline h3 {
  color: #ffffff;
}

.page-hero h1,
.module-copy h2,
.workflow h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.page-hero p:last-child,
.feature-card p,
.feature-card li,
.workflow p,
.module-copy p,
.module-item p,
.timeline p {
  color: rgba(248, 250, 252, 0.76);
}

.feature-section {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 54px);
}

.feature-section::before,
.feature-card::after {
  display: none;
}

.feature-card {
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
}

.feature-section .feature-grid,
.module-showcase,
.workflow {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.module-showcase,
.workflow {
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 54px);
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.module-board,
.timeline li {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

/* Global light background cleanup */
.section,
.contact-card,
.checkout-card,
.account-card,
.payment-workflow,
.manual-payment-form {
  background: #071018;
  color: #f8fafc;
}

.contact-card,
.checkout-card,
.account-card,
.payment-workflow,
.manual-payment-form {
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.contact-card p,
.checkout-card p,
.account-card p,
.payment-workflow p,
.manual-payment-form p {
  color: rgba(248, 250, 252, 0.74);
}



/* Contact page spacing fix */
.contact-section.page-contact {
  width: min(1120px, calc(100% - 36px));
  min-height: auto;
  margin: clamp(28px, 4vw, 48px) auto;
  padding: clamp(34px, 5vw, 58px);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 229, 255, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(13, 18, 22, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-section.page-contact h1 {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.contact-section.page-contact p {
  max-width: 540px;
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 8px;
  color: #dffcff;
  background: rgba(0, 229, 255, 0.08);
  font-weight: 800;
}

.contact-section.page-contact .contact-form {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  color: #f8fafc;
}

.contact-section.page-contact .contact-form label {
  color: rgba(248, 250, 252, 0.86);
}

.contact-section.page-contact .contact-form input {
  min-height: 52px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 229, 255, 0.24);
}

.contact-section.page-contact .contact-form .primary-button {
  min-height: 52px;
}

.contact-section.page-contact + .site-footer {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

@media (max-width: 860px) {
  .contact-section.page-contact {
    width: min(100% - 28px, 720px);
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .contact-section.page-contact .contact-form {
    max-width: none;
    justify-self: stretch;
  }
}



/* payment requires login */
.payment-workflow.requires-login .manual-payment-form {
  display: none;
}

.payment-workflow.requires-login .checkout-status {
  display: block;
  max-width: 680px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
}

.subscription-login-alert {
  width: min(760px, 100%);
  margin: 18px auto 28px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.subscription-login-alert[hidden] {
  display: none;
}

.subscription-login-alert p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.45;
}

.subscription-login-alert .primary-button {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .subscription-login-alert {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}

.auth-subscription-layout[hidden] {
  display: none;
}

.subscription-is-logged-in .auth-subscription-layout {
  display: none;
}

.subscription-is-logged-in #subscriptionSessionPanel {
  display: flex;
}

.subscription-is-logged-in .subscription-hero {
  display: none;
}

.subscription-is-logged-in .secure-plans {
  margin-top: 0;
}

.subscription-is-logged-in .secure-plans > .section-heading {
  display: none;
}

.subscription-is-logged-in .subscription-steps {
  margin-top: 8px;
}

.subscription-flow-locked .subscription-hero,
.subscription-flow-locked .subscription-steps,
.subscription-flow-locked #planes,
.subscription-public-locked .subscription-steps,
.subscription-public-locked #planes {
  display: none;
}

.subscription-license-flow .subscription-hero {
  display: none;
}

.subscription-license-flow .subscription-steps,
.subscription-license-flow #planes {
  scroll-margin-top: 96px;
}

.secure-plans.is-payment-step > .section-heading,
.secure-plans.is-payment-step > .billing-toggle,
.secure-plans.is-payment-step > .subscription-note,
.secure-plans.is-payment-step > .plan-grid,
.secure-plans.is-payment-step > .subscription-login-alert,
.secure-plans.is-activation-step > .section-heading,
.secure-plans.is-activation-step > .billing-toggle,
.secure-plans.is-activation-step > .subscription-note,
.secure-plans.is-activation-step > .plan-grid,
.secure-plans.is-activation-step > .subscription-login-alert,
.secure-plans.is-activation-step > .payment-workflow {
  display: none;
}

.secure-plans.is-plan-step > .payment-workflow,
.secure-plans.is-plan-step > .activation-status-panel,
.secure-plans.is-payment-step > .activation-status-panel {
  display: none;
}

.subscription-auth-only .subscription-hero,
.subscription-auth-only .subscription-steps,
.subscription-auth-only #subscriptionSessionPanel,
.subscription-auth-only #planes {
  display: none;
}

.subscription-auth-only .auth-subscription-layout {
  display: grid;
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.account-subscription-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(34, 197, 94, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.account-subscription-summary strong {
  margin: 0;
}

.account-subscription-summary.is-empty {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.account-subscription-summary p {
  margin: 0;
}

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

.account-subscription-meta span {
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  color: rgba(248, 250, 252, 0.74);
  background: rgba(3, 6, 10, 0.22);
}

.account-subscription-meta b {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.02rem;
}

.auth-subscription-layout,
.secure-plans,
.payment-workflow,
.manual-payment-section,
.activation-status-panel,
.account-card,
.account-history-panel,
.download-panel {
  scroll-margin-top: 96px;
}

.account-history-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 229, 255, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.account-history-panel > strong {
  color: #ffffff;
  font-size: 1rem;
}

.account-history-panel > p {
  margin: 0;
  color: rgba(248, 250, 252, 0.68);
}

.account-history-list {
  display: grid;
  gap: 8px;
}

.account-history-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(3, 6, 10, 0.22);
}

.account-history-list b,
.account-history-list span,
.account-history-list p {
  overflow-wrap: anywhere;
}

.account-history-list b {
  color: #ffffff;
}

.account-history-list span,
.account-history-list p {
  color: rgba(248, 250, 252, 0.66);
}

.account-history-list p {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 860px) {
  .account-dashboard-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

.password-eye {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 999px 999px / 80% 80% 80% 80%;
}

.password-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.password-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-38deg);
}

.password-toggle.is-visible .password-eye::after {
  opacity: 1;
}

/* Professional subscription flow */
.subscription-steps,
.subscription-session-panel {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.subscription-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.subscription-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.72);
}

.subscription-step span {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.28);
  font-weight: 900;
}

.subscription-step strong {
  color: #ffffff;
}

.subscription-step small {
  color: rgba(248, 250, 252, 0.62);
  line-height: 1.35;
}

.subscription-step.is-active {
  border-color: rgba(0, 229, 255, 0.58);
  background: rgba(0, 229, 255, 0.11);
  box-shadow: 0 18px 42px rgba(0, 229, 255, 0.12);
}

.subscription-step.is-active span,
.subscription-step.is-complete span {
  color: #071018;
  background: #78ff15;
}

.activation-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.activation-timeline div {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
}

.activation-timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-weight: 900;
}

.activation-timeline strong {
  color: inherit;
  font-size: 0.9rem;
}

.activation-timeline .is-complete {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
}

.activation-timeline .is-complete span {
  background: #22c55e;
  color: #052e16;
}

.activation-timeline .is-active {
  border-color: rgba(0, 229, 255, 0.56);
  background: rgba(0, 229, 255, 0.12);
  color: #bff7ff;
}

.activation-timeline .is-active span {
  background: #00e5ff;
  color: #071018;
}

.subscription-session-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.10), rgba(120, 255, 21, 0.055));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.subscription-session-panel[hidden] {
  display: none;
}

.subscription-session-panel strong,
.subscription-session-panel span {
  display: block;
}

.subscription-session-panel span {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.68);
}

.subscription-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.plan-card.is-selected {
  border-color: rgba(120, 255, 21, 0.78);
  box-shadow: 0 22px 54px rgba(120, 255, 21, 0.16);
}

.plan-card.is-selected::before {
  content: "Seleccionado";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #071018;
  background: #78ff15;
  font-size: 0.74rem;
  font-weight: 900;
}

button.is-loading,
button:disabled {
  opacity: 0.7;
  transform: none !important;
}

button.is-loading {
  cursor: wait;
}

button:disabled {
  cursor: not-allowed;
}

.payment-account-link {
  width: min(360px, 100%);
  margin: 16px auto 0;
}

.payment-account-link[hidden] {
  display: none;
}

.activation-status-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(15, 23, 42, 0.72));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.activation-status-panel[hidden] {
  display: none;
}

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

.activation-status-head h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.activation-status-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 250, 252, 0.74);
}

.activation-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.activation-status-pill.is-pending {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.activation-status-pill.is-active {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.44);
}

.activation-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.activation-status-grid span {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.88rem;
}

.activation-status-grid b {
  color: #ffffff;
  font-size: 1rem;
}

.activation-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 820px) {
  .subscription-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-session-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-session-actions {
    justify-content: stretch;
  }

  .activation-status-head {
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .subscription-steps {
    grid-template-columns: 1fr;
  }

  .activation-status-grid {
    grid-template-columns: 1fr;
  }

  .activation-status-actions > * {
    width: 100%;
  }

  .bank-account-destination {
    grid-template-columns: 1fr;
  }
}
