:root {
  color-scheme: dark;
  --page-bg: #07090E;
  --page-surface: #0E131F;
  --page-card: #141B2D;
  --page-border: rgba(148, 163, 255, 0.18);
  --page-border-strong: rgba(148, 163, 255, 0.34);
  --page-indigo: #6366F1;
  --page-violet: #8B5CF6;
  --page-gold: #F59E0B;
  --page-text: #F3F4F6;
  --page-muted: #9CA3AF;
  --page-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --page-amharic: 'Noto Sans Ethiopic', var(--page-font);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(800px 500px at 5% -5%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(700px 500px at 100% 35%, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--page-bg);
  color: var(--page-text);
  font-family: var(--page-font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.am { font-family: var(--page-amharic); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell[hidden] { display: none; }

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 255, 0.12);
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(20px);
}
.header-inner {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-mark { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }
.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(99, 102, 241, 0.36));
}
.brand-title { font-size: 1.08rem; font-weight: 850; letter-spacing: -0.035em; }
.login-wordmark { display: block; width: min(100%, 300px); height: auto; border-radius: 12px; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--page-muted);
  font-size: 0.88rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(99, 102, 241, 0.14); color: #fff; }
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--page-border-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.12));
  box-shadow: 0 6px 20px rgba(7, 9, 14, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }
.menu-icon-line { transform-box: fill-box; transform-origin: center; transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-menu-btn.is-open .menu-icon-line:first-child { transform: translateY(5px) rotate(45deg); }
.mobile-menu-btn.is-open .menu-icon-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open .menu-icon-line:last-child { transform: translateY(-5px) rotate(-45deg); }

.action-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--page-indigo), var(--page-violet));
  box-shadow: 0 10px 24px -9px rgba(99, 102, 241, 0.8);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.action-button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.action-button--gold {
  background: linear-gradient(135deg, #F6C45B, #D97706);
  box-shadow: 0 10px 24px -9px rgba(245, 158, 11, 0.7);
  color: #17120A;
}
.action-button--quiet { border-color: var(--page-border-strong); background: rgba(99, 102, 241, 0.08); box-shadow: none; }

.page-main {
  width: min(100% - 40px, 1080px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0 84px;
}
.page-intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: #F4CC78;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.page-intro h1 {
  margin: 10px 0 12px;
  background: linear-gradient(110deg, #fff, #D9D9FF 68%, #F8D38D 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.08;
}
.page-intro p { margin: 0; color: var(--page-muted); font-size: clamp(0.94rem, 2vw, 1.05rem); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--page-border);
  border-radius: 23px;
  background: linear-gradient(150deg, rgba(20, 27, 45, 0.96), rgba(11, 15, 26, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--page-border-strong); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34); }
.plan-card--featured {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    linear-gradient(90deg, rgba(17, 18, 31, 0.97) 0%, rgba(17, 18, 31, 0.88) 58%, rgba(17, 18, 31, 0.58) 100%),
    url("assets/collection-06.webp") 72% 38% / cover,
    linear-gradient(150deg, rgba(23, 26, 41, 0.98), rgba(11, 15, 26, 0.98));
}
.plan-card--unlimited {
  border-color: rgba(99, 102, 241, 0.42);
  background:
    linear-gradient(90deg, rgba(14, 17, 30, 0.97) 0%, rgba(14, 17, 30, 0.88) 58%, rgba(14, 17, 30, 0.58) 100%),
    url("assets/collection-07.webp") 70% 40% / cover,
    linear-gradient(150deg, rgba(20, 27, 45, 0.96), rgba(11, 15, 26, 0.98));
}
.plan-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #F4CC78;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-label { color: var(--page-muted); font-size: 0.77rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-card h2 { margin: 8px 0 3px; font-size: 1.55rem; letter-spacing: -0.045em; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 4px; }
.plan-price strong { font-size: clamp(2.15rem, 5vw, 3rem); letter-spacing: -0.07em; line-height: 1.1; }
.plan-price span { color: var(--page-muted); font-size: 0.88rem; }
.plan-note { margin: 0; color: var(--page-muted); font-size: 0.85rem; }
.plan-features { display: grid; gap: 12px; margin: 28px 0 30px; padding: 0; list-style: none; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: #D7D9E7; font-size: 0.9rem; }
.plan-features li::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  color: #AAA8FF;
  content: "✓";
  font-size: 0.76rem;
  font-weight: 900;
}
.plan-card .action-button { width: 100%; margin-top: auto; }
.fine-print {
  max-width: 740px;
  margin: 26px auto 0;
  color: #838A9B;
  font-size: 0.78rem;
  text-align: center;
}

.payment-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 22px; align-items: start; }
.surface-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--page-border);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(20, 27, 45, 0.96), rgba(11, 15, 26, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}
.surface-card h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.035em; }
.surface-card > p { margin: 0 0 22px; color: var(--page-muted); font-size: 0.9rem; }
.selected-plan {
  display: grid;
  gap: 5px;
  padding: 17px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(15, 17, 28, 0.95), rgba(15, 17, 28, 0.76)),
    url("assets/collection-07.webp") 68% 42% / cover,
    rgba(245, 158, 11, 0.07);
}
.selected-plan span { color: var(--page-muted); font-size: 0.77rem; }
.selected-plan strong { color: #FFE2A2; font-size: 1.15rem; }
.payment-methods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.payment-option {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--page-border);
  border-radius: 15px;
  background: rgba(7, 9, 14, 0.43);
}
.payment-option-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.payment-option h3 { margin: 0; font-size: 0.97rem; }
.payment-option-heading > span {
  padding: 4px 8px;
  border: 1px solid rgba(245, 204, 120, 0.3);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #F4CC78;
  font-size: 0.63rem;
  font-weight: 800;
  white-space: nowrap;
}
.payment-option > p { margin: 10px 0 0; color: var(--page-muted); font-size: 0.77rem; line-height: 1.5; }
.payment-status { margin: 14px 0 0 !important; color: #C9CAFF !important; font-size: 0.8rem !important; }
.payment-status a, .telegram-username a { color: #F4CC78; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.telegram-username { margin: 15px 0 0 !important; color: var(--page-muted); font-size: 0.8rem !important; }
.login-layout { display: grid; width: min(100%, 980px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin: 0 auto; }
.login-aside {
  position: relative;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--page-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 13, 23, 0.55), rgba(11, 13, 23, 0.94)),
    url("assets/collection-07.webp") center 35% / cover,
    radial-gradient(circle at 75% 35%, rgba(99, 102, 241, 0.27), transparent 38%),
    linear-gradient(145deg, #191A33, #0E111E 68%);
}
.login-aside::before, .login-aside::after {
  position: absolute;
  right: -55px;
  bottom: 8%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(226, 225, 255, 0.15);
  border-radius: 50%;
  content: "";
}
.login-aside::after { right: -5px; bottom: 19%; width: 160px; height: 160px; border-color: rgba(245, 158, 11, 0.27); }
.login-aside-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-aside-copy { position: relative; z-index: 1; max-width: 340px; }
.login-aside-copy h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -0.055em; line-height: 1.12; }
.login-aside-copy p { margin: 0; color: #B5B8C8; font-size: 0.93rem; }
.login-card { padding: clamp(25px, 5vw, 42px); }
.login-card h1 { margin: 0 0 6px; font-size: 1.8rem; letter-spacing: -0.05em; }
.login-intro { margin: 0 0 26px; color: var(--page-muted); font-size: 0.9rem; }
.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 7px; color: #D7D9E5; font-size: 0.82rem; font-weight: 700; }
.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--page-border-strong);
  border-radius: 12px;
  outline: none;
  background: rgba(7, 9, 14, 0.72);
  color: var(--page-text);
}
.login-field input:focus-visible { border-color: #F4CC78; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.login-form .action-button { width: 100%; margin-top: 3px; }
.login-notice { min-height: 1.5em; margin: -5px 0 0; color: #F4CC78; font-size: 0.86rem; font-weight: 700; }
.login-plans-link { margin: 22px 0 0; text-align: center; }
.login-plans-link a { color: #C9CAFF; font-size: 0.85rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.support-card .action-button { width: 100%; margin-top: 8px; }

.site-footer {
  border-top: 1px solid rgba(148, 163, 255, 0.12);
  background: rgba(4, 6, 10, 0.8);
}
.footer-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 0.87rem; font-weight: 750; }
.footer-brand .brand-icon { width: 34px; height: 34px; border-radius: 12px; font-size: 1.2rem; }
.footer-copy { color: #788093; font-size: 0.77rem; text-align: right; }

@media (max-width: 768px) {
  .header-inner { min-height: 68px; }
  .mobile-menu-btn { display: grid; }
  .nav-links { display: none; }
  .nav-links.is-open {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--page-border-strong);
    border-radius: 17px;
    background: rgba(11, 15, 26, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.58), 0 0 28px rgba(99, 102, 241, 0.13);
    backdrop-filter: blur(18px);
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a { display: flex; width: 100%; min-height: 48px; border-radius: 12px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-layout, .login-layout { grid-template-columns: 1fr; }
  .login-aside { min-height: 260px; }
}
@media (max-width: 580px) {
  .container, .page-main { width: min(100% - 32px, 1080px); }
  .header-inner { min-height: 64px; }
  .brand-icon { width: 40px; height: 40px; border-radius: 13px; }
  .brand-title { font-size: 1rem; }
  .plan-grid { grid-template-columns: 1fr; gap: 15px; }
  .plan-card { padding: 24px 21px; }
  .page-main { padding-top: 44px; }
  .page-intro { margin-bottom: 29px; }
  .payment-methods-grid { grid-template-columns: 1fr; }
  .footer-inner { min-height: 84px; flex-direction: column; justify-content: center; gap: 8px; padding-block: 14px; }
  .footer-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
