:root {
  --primary: #d90429;
  --primary-2: #ff4f68;
  --ink: #15121a;
  --ink-muted: #655f6b;
  --surface: #ffffff;
  --surface-soft: #fff5f8;
  --line: #eee4ea;
  --danger: #c81e39;
  --warning: #946200;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "liga" 1, "kern" 1;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 4, 41, 0.08), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(255, 184, 85, 0.1), transparent 28%),
    linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
}

h1,
h2,
h3,
h4,
.hero-title,
.plan-name,
.status-title,
.success-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: #15121a;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 300;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 4, 41, 0.14);
  box-shadow: 0 8px 26px rgba(21, 18, 26, 0.06);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #eadde4;
  background: linear-gradient(135deg, #ffffff, #fff4f8);
  border-radius: 14px;
  padding: 0.35rem 0.62rem 0.35rem 0.4rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20, 15, 26, 0.05);
}

.logo-img {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid #ece1e7;
  background: rgba(255, 255, 255, 0.9);
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav a:hover {
  border-color: #e7d7df;
  background: #ffffff;
}

.site-nav a:focus-visible,
.footer-nav a:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid rgba(217, 4, 41, 0.6);
  outline-offset: 2px;
}

.promo-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #f0dde6;
  border-bottom: 1px solid #f0dde6;
  background: linear-gradient(90deg, #fff6fa, #fff);
}

.promo-ticker-track {
  display: inline-flex;
  flex-wrap: nowrap;
  min-width: 200%;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: promo-scroll 18s linear infinite;
}

.promo-ticker-item {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.56rem 2.2rem;
  color: #8d1633;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@keyframes promo-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-ticker-track {
    animation-duration: 42s;
  }
}

.home-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 0.9rem 1rem;
}

.home-layout {
  display: block;
}

.home-content {
  min-width: 0;
}

.home-sidebar {
  display: none;
}

.hero {
  padding: 0.75rem 0 1.2rem;
}

.hero-inner {
  max-width: 100%;
  background: linear-gradient(145deg, #fff5f8, #fff);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem 1rem 1rem;
  box-shadow: 0 18px 44px rgba(19, 16, 24, 0.07);
}

.hero-kicker {
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9d1a38;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(217, 4, 41, 0.12);
}

.hero-title {
  font-size: clamp(1.65rem, 7.2vw, 2rem);
  line-height: 1.05;
}

.hero-subtitle {
  margin-top: 0.65rem;
  margin-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.58;
  max-width: 34ch;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.76rem 1rem;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(217, 4, 41, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(217, 4, 41, 0.36);
}

.btn-secondary {
  color: #201d25;
  background: #fff;
  border: 1px solid #ddd3da;
}

.btn-secondary:hover {
  background: #fffbfc;
  border-color: #cfc2ca;
}

.plans-section {
  margin-top: 1rem;
}

.section-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.plan-toggle {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(20, 15, 26, 0.04);
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.toggle-header h4 {
  font-size: 1rem;
}

.toggle-header .arrow {
  transition: transform 0.2s ease;
}

.toggle-header.active .arrow {
  transform: rotate(180deg);
}

.toggle-body {
  display: block;
  padding: 0.9rem;
}

.toggle-body.active {
  display: block;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #efe5ea;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #fff8fb 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 28px rgba(20, 15, 26, 0.07);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.plan-promo-tag {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.52rem;
  border-radius: 999px;
  border: 1px solid #f0c447;
  background: linear-gradient(135deg, #fff7d1, #ffe68a);
  color: #5b4300;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #f95d78);
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.11), transparent 70%);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(19, 16, 24, 0.11);
  border-color: #e6ced8;
}

.plan-top {
  padding-top: 0.25rem;
}

.plan-name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.plan-validity {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.23rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #edd9e2;
  background: #fff;
  color: #5c2c3a;
  font-size: 0.74rem;
  font-weight: 700;
}

.plan-devices {
  display: inline-flex;
  align-items: center;
  padding: 0.23rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #e5dfe4;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5f5a66;
  background: #fff;
}

.plan-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.plan-price {
  color: var(--primary);
  font-size: 1.54rem;
  font-weight: 800;
  line-height: 1;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f1e8ec;
}

.plan-note {
  color: #716c78;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
}

.plan-card .btn-primary {
  width: 100%;
  margin-top: auto;
  min-height: 44px;
  border-radius: 12px;
  letter-spacing: 0.01em;
}

.how-it-works {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff9fb);
  padding: 0.95rem 0.9rem 0.95rem 2.8rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.95rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.84rem;
}

.step-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-text {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 10, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 56px rgba(14, 10, 17, 0.35);
  width: min(92vw, 420px);
  padding: 1.25rem;
  text-align: left;
}

.modal-content h3 {
  margin-bottom: 0.3rem;
}

.modal-content p {
  margin-bottom: 0.8rem;
  color: var(--ink-muted);
}

.modal-content input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfd7dc;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  margin: 0.8rem 0;
  font: inherit;
}

.modal-content .btn {
  width: 100%;
}

.modal-cancel-btn {
  margin-top: 0.6rem;
  background: linear-gradient(135deg, #ffffff, #fff7fa);
  border: 1px solid #d9c7d1;
  color: #2b2431;
  box-shadow: 0 8px 16px rgba(24, 18, 30, 0.08);
}

.modal-cancel-btn:hover {
  background: #fff;
  border-color: #cdb6c2;
  transform: translateY(-1px);
}

#payBtn,
.copy-btn,
.status-actions .btn-primary,
.success-card .btn-primary {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

body.modal-open {
  overflow: hidden;
}

.status-page {
  padding-top: 0.8rem;
}

.status-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffafc);
  box-shadow: 0 16px 40px rgba(18, 12, 22, 0.07);
  padding: 1.1rem;
}

.status-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid #eadfe5;
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-title {
  text-align: center;
  font-size: 1.32rem;
  margin-bottom: 0.45rem;
}

.status-subtitle {
  text-align: center;
  color: var(--ink-muted);
  line-height: 1.5;
  font-size: 0.93rem;
  margin: 0 auto 0.95rem;
  max-width: 40ch;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.status-label {
  color: var(--ink-muted);
  font-weight: 700;
}

.status-value {
  text-align: right;
  font-weight: 700;
}

.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
  border: 1px dashed rgba(217, 4, 41, 0.35);
  background: rgba(217, 4, 41, 0.05);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warning {
  margin-top: 0.85rem;
  border-radius: 12px;
  border: 1px solid #eadfe5;
  background: #fff4f7;
  color: var(--ink-muted);
  padding: 0.7rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-actions {
  margin-top: 0.95rem;
  display: flex;
}

.status-actions .btn {
  width: 100%;
}

.success-wrapper {
  min-height: calc(100dvh - 120px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.success-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffafc);
  box-shadow: 0 16px 40px rgba(18, 12, 22, 0.07);
  padding: 1.1rem;
  text-align: center;
}

.success-title {
  color: var(--danger);
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.success-subtitle {
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.voucher-box {
  border: 1px dashed rgba(217, 4, 41, 0.4);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.voucher-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.voucher-details {
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: none;
}

.balance-page {
  padding: 0.75rem 0 0;
}

.balance-shell {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffafc);
  box-shadow: 0 16px 40px rgba(18, 12, 22, 0.07);
  padding: 1rem;
}

.balance-subtitle {
  margin: -0.1rem 0 0.95rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.balance-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.7rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.balance-loading-text {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.gauge-card {
  margin-top: 0.3rem;
}

.gauge-track {
  height: 16px;
  border-radius: 999px;
  background: #f3e7ed;
  overflow: hidden;
  border: 1px solid #ecdae2;
  margin-bottom: 0.95rem;
}

.gauge-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 14px rgba(217, 4, 41, 0.25);
}

.gauge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.gauge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

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

.gauge-value {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.form-label {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #dfd7dc;
  padding: 0.68rem 0.75rem;
  font: inherit;
}

.form-control:focus {
  border-color: rgba(217, 4, 41, 0.65);
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.13);
  outline: none;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.06rem;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  margin-bottom: 0.6rem;
}

.alert {
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.alert-danger {
  border: 1px solid rgba(200, 30, 57, 0.4);
  background: rgba(200, 30, 57, 0.07);
  color: var(--danger);
}

.alert-warning {
  border: 1px solid rgba(148, 98, 0, 0.35);
  background: rgba(255, 221, 153, 0.2);
  color: var(--warning);
}

.site-footer {
  margin-top: 2.8rem;
  padding: 1.6rem 0;
  border-top: 1px solid #eedfe6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 245, 248, 0.85));
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #eddfe6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(20, 15, 26, 0.06);
  padding: 1rem;
}

.footer-tagline {
  font-weight: 700;
  color: #3b3440;
}

.footer-copy {
  margin-top: 0.3rem;
}

.footer-dev {
  margin-top: 0.45rem;
}

.footer-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #514b58;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ece1e7;
  background: #fff;
}

.footer-nav a:hover {
  color: var(--ink);
  background: #fff5f8;
  border-color: #e5d4dd;
}

.developer-name {
  color: #2f2940;
  font-weight: 700;
  text-decoration: none;
}

.developer-name:hover {
  text-decoration: underline;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.35rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.w-100 {
  width: 100%;
}

.text-muted {
  color: var(--ink-muted);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }
}

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

  .gauge-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
  }

@media (min-width: 768px) {
  .home-main {
    padding: 1rem 1.2rem 1.25rem;
  }

  .hero {
    text-align: center;
    padding-top: 1.15rem;
  }

  .hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 430px;
    margin: 0 auto;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .section-title {
    font-size: 1.52rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.15rem 1.2rem;
  }

  .brand-name {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .home-main {
    max-width: none;
    width: min(1280px, 100%);
    padding: 1.25rem;
  }

  .home-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 1.25rem;
    align-items: start;
  }

  .home-sidebar {
    display: block;
    position: sticky;
    top: 1.25rem;
    height: calc(100dvh - 2.5rem);
    border-radius: 18px;
    border: 1px solid var(--line);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 12px 36px rgba(20, 15, 26, 0.1);
  }

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