/* BIM VPN — buy.bimvpn.xyz — style.css
 * Inherits the design tokens from bimvpn.xyz/main.css verbatim.
 */

:root {
  --orange:       #F58300;
  --orange-light: #FF9F2E;
  --orange-dim:   rgba(245,131,0,0.10);
  --orange-bd:    rgba(245,131,0,0.25);
  --orange-glow:  rgba(245,131,0,0.18);
  --dark:         #1A1A1A;
  --dark2:        #141414;
  --surface:      #222222;
  --surface2:     #2A2A2A;
  --bd:           rgba(255,255,255,0.06);
  --bd2:          rgba(255,255,255,0.11);
  --fg:           #E0E0E0;
  --fg2:          #B8B8B8;
  --fg3:          #919191;
  --fg4:          #5E5E5E;
  --white:        #FFFFFF;
  --bronze:       #cd7f32;
  --gold:         #fbbf24;
  --success:      #22c55e;
  --error:        #ef4444;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --max-w:        1100px;
  --nav-h:        68px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: rgba(245,131,0,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--dark);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ANIMATIONS */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,131,0,0.65); }
  50% { box-shadow: 0 0 0 7px rgba(245,131,0,0); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.5); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pop {
  0%   { transform: scale(0.2); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(26,26,26,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(245,131,0,0.18);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.nav__logo img { width: 28px; height: 28px; }
.nav__logo-text { color: var(--white); letter-spacing: 0.02em; }
.nav__logo-text span { color: var(--orange); }
.nav__back {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--bd);
  color: var(--fg2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav__back:hover {
  background: var(--surface2);
  border-color: var(--orange-bd);
  color: var(--fg);
}
.nav__back span { display: inline; }
@media (max-width: 480px) {
  .nav__back span { display: none; }
  .nav__inner { padding: 0 1rem; }
}

/* HERO CANVAS (background particles) */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* MAIN */
.main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 600px) {
  .main { padding: calc(var(--nav-h) + 1rem) 1rem 3rem; }
}

/* STEPS INDICATOR */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
  flex-wrap: nowrap;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg4);
  transition: color 0.25s;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--bd2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg3);
  transition: all 0.25s;
}
.steps__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.steps__sep {
  width: 30px; height: 1px;
  background: var(--bd2);
}
body[data-step="plan"]    .steps__item[data-when="plan"],
body[data-step="method"]  .steps__item[data-when="method"],
body[data-step="pay"]     .steps__item[data-when="pay"] {
  color: var(--orange);
}
body[data-step="plan"]    .steps__item[data-when="plan"]    .steps__num,
body[data-step="method"]  .steps__item[data-when="method"]  .steps__num,
body[data-step="pay"]     .steps__item[data-when="pay"]     .steps__num {
  background: var(--orange);
  color: #1a1a1a;
  border-color: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
}
@media (max-width: 480px) {
  .steps__label { display: none; }
  .steps__sep { width: 20px; }
}

/* STEP shell */
.step {
  background: rgba(34,34,34,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 2rem;
  animation: fade-up 0.25s ease-out;
}
@media (max-width: 600px) {
  .step { padding: 1.4rem 1.2rem; border-radius: var(--radius); }
}
.step__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--fg3);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.step__back:hover { color: var(--orange); }
.step__title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.step__sub {
  color: var(--fg2);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}
.step__cta {
  margin-top: 1.6rem;
  text-align: right;
}
@media (max-width: 600px) {
  .step__cta { text-align: stretch; }
  .step__cta .btn { width: 100%; justify-content: center; }
  .step__title { font-size: 1.5rem; }
}

/* TIER TOGGLE */
.tier-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
}
.tier-btn {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-align: left;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tier-btn:hover { background: var(--surface2); }
.tier-btn--active {
  background: var(--dark2);
  border-color: var(--orange-bd);
  box-shadow: 0 0 0 1px var(--orange-bd) inset, 0 4px 18px rgba(0,0,0,0.4);
}
.tier-btn__dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-bottom: 0.1rem;
}
.tier-btn__dot--bronze { background: var(--bronze); box-shadow: 0 0 8px rgba(205,127,50,0.6); }
.tier-btn__dot--gold   { background: var(--gold);   box-shadow: 0 0 10px rgba(251,191,36,0.6); }
.tier-btn__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.tier-btn__sub {
  font-size: 0.78rem;
  color: var(--fg3);
}

/* PERIOD GRID */
.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
@media (max-width: 960px) {
  .period-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .period-grid { grid-template-columns: 1fr; }
}
.period-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem 1rem;
  background: var(--dark2);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.2s;
  overflow: hidden;
}
.period-card:hover {
  border-color: var(--orange-bd);
  transform: translateY(-2px);
}
.period-card--selected {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(245,131,0,0.06), var(--dark2));
  box-shadow: 0 0 0 1px var(--orange) inset, 0 8px 24px rgba(245,131,0,0.12);
}
.period-card--featured { border-color: var(--orange-bd); }
.period-card__badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--fg3);
}
.period-card__badge--accent { background: var(--orange-dim); color: var(--orange); }
.period-card__badge--best { background: var(--orange); color: #1a1a1a; }
.period-card__name {
  font-size: 0.85rem;
  color: var(--fg2);
  font-weight: 600;
  margin-top: 0.4rem;
}
.period-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0.2rem 0;
}
.period-card__num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
}
.period-card__num::before {
  content: '$';
  font-size: 0.75em;
  font-weight: 600;
  color: var(--fg3);
  margin-right: 0.1em;
}
.period-card__cents {
  font-size: 0.78rem;
  color: var(--fg3);
}
.period-card__hint {
  font-size: 0.75rem;
  color: var(--fg3);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #1a1a1a;
}
.btn--primary:hover:not(:disabled) {
  background: var(--orange-light);
  box-shadow: 0 8px 22px rgba(245,131,0,0.3);
  transform: translateY(-1px);
}
.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* METHOD LIST */
.method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .method-list { grid-template-columns: 1fr 1fr; }
}
.method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.1rem;
  background: var(--dark2);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.2s;
}
.method:hover {
  background: var(--surface);
  border-color: var(--orange-bd);
  transform: translateY(-1px);
}
.method__icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--surface);
  border-radius: 10px;
  flex-shrink: 0;
}
.method__main { flex: 1; min-width: 0; }
.method__name { font-weight: 700; color: var(--fg); }
.method__hint { font-size: 0.8rem; color: var(--fg3); }
.method__arrow { color: var(--fg4); font-size: 0.9rem; transition: color 0.2s; }
.method:hover .method__arrow { color: var(--orange); }

/* PAY SCREEN */
.pay {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .pay { grid-template-columns: 1fr; gap: 1.2rem; justify-items: center; }
}
.pay__qrwrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.pay__qrwrap canvas {
  background: white;
  padding: 12px;
  border-radius: var(--radius);
  width: 240px; height: 240px;
}
.pay__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--fg2);
}
.pay__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 1.8s ease-out infinite;
}
.pay__status--paid {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.35);
  color: var(--success);
}
.pay__status--paid .pay__dot {
  background: var(--success);
  animation: none;
}
.pay__details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}
.pay__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--dark2);
  border: 1px solid var(--bd);
  border-radius: var(--radius-sm);
}
.pay__row-label {
  font-size: 0.75rem;
  color: var(--fg3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pay__row-value {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay__row-value--mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
}
.pay__copy {
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 6px;
  color: var(--fg3);
  font-size: 0.8rem;
  transition: all 0.15s;
}
.pay__copy:hover { color: var(--orange); border-color: var(--orange-bd); }
.pay__copy--copied { color: var(--success); border-color: rgba(34,197,94,0.35); }
.pay__wallet {
  margin-top: 0.4rem;
  text-align: center;
}
.pay__wallet-note {
  font-size: 0.8rem;
  color: var(--fg3);
  margin-top: 0.5rem;
}

/* SUCCESS */
.step--success {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.success__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34,197,94,0.14);
  color: var(--success);
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  animation: pop 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.success__txhint {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--fg4);
  word-break: break-all;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  border-top: 1px solid var(--bd);
  background: var(--dark2);
  color: var(--fg3);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.82rem;
  align-items: center;
  justify-content: space-between;
}
.footer__inner a:hover { color: var(--orange); }
@media (max-width: 480px) {
  .footer__inner { justify-content: center; gap: 0.8rem; text-align: center; }
}
