:root {
  --bg: #0b0b0f;
  --card: #121212;
  --panel: #1c1c1c;
  --border: #2a2a2a;
  --text: #f7f7f7;
  --muted: #b5b5b5;
  --accent: #6a00ff;
  --accent-2: #a100ff;
  --cream: #ead9b6;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 92px;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.top-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.timer-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(30, 30, 30, 0.88);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.timer .time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.2px;
  color: rgba(20, 20, 20, 0.92);
  font-variant-numeric: tabular-nums;
}

.timer .time span {
  min-width: 1.05ch;
  text-align: center;
}

.timer .separator {
  font-weight: 700;
  color: rgba(20, 20, 20, 0.8);
}

.phrase {
  background: linear-gradient(90deg, #f2d57f, #c79a2a);
  color: #2a1a00;
  text-align: center;
  font-weight: 700;
  padding: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.banner {
  margin-top: 18px;
}

.banner img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  border: 1px solid #151515;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.flag {
  font-size: 1rem;
}

.chevron {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.product-text h1 {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.price {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.description {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.4;
}

.form-card {
  background: var(--panel);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.9rem;
  color: #e8e8e8;
}

input,
select {
  width: 100%;
  height: 46px;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pix-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

input::placeholder,
select::placeholder {
  color: #6f6f6f;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(106, 0, 255, 0.3);
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px 0 8px;
  height: 46px;
}

.flag-box {
  font-size: 1.1rem;
}

.ddi {
  color: var(--text);
  font-weight: 600;
}

.phone-field input {
  border: none;
  background: transparent;
  height: 100%;
  padding: 0 4px;
}

.payment-methods {
  display: flex;
  gap: 10px;
}

.payment-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  height: 48px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-btn .icon {
  font-size: 1rem;
}

.payment-btn:hover {
  border-color: var(--accent);
}

.payment-btn.active {
  border-color: #fff;
  background: #1f1f1f;
  box-shadow: 0 0 0 1px #fff;
}

.swipe-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.input-icon {
  position: relative;
}

.input-icon input {
  padding-right: 34px;
}

.hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--muted);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 12px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.hidden {
  display: none;
}

.order-bumps {
  position: relative;
  overflow: visible;
}

.order-bumps::before,
.order-bumps::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.order-bumps::before {
  left: -8px;
}

.order-bumps::after {
  right: -8px;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-header h3 {
  font-size: 1.02rem;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.check-inline input {
  width: 18px;
  height: 18px;
}

.bump {
  background: #111;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px dashed #2f2f2f;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bump+.bump {
  margin-top: 12px;
}

.bump-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bump-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.bump-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bump-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.bump-description {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.78);
}

.bump-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.summary-card h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e6e6e6;
  padding: 6px 0;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1rem;
}

.summary-row.discount {
  color: #9bffce;
}

.coupon-box {
  margin-top: 10px;
  margin-bottom: 6px;
  background: #171717;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.coupon-box label {
  display: block;
  margin-bottom: 8px;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-row input {
  margin: 0;
}

.coupon-apply {
  border: 1px solid rgba(53, 196, 95, 0.45);
  background: rgba(53, 196, 95, 0.15);
  color: #c9ffd8;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.coupon-apply:hover {
  background: rgba(53, 196, 95, 0.22);
}

.coupon-hint {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.coupon-hint[data-type="success"] {
  color: #9bffce;
}

.coupon-hint[data-type="error"] {
  color: #ff9b9b;
}

.cta {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(90deg, #1ea94b, #35c45f);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(30, 169, 75, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cta-pulse 1.6s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(30, 169, 75, 0.45);
}

.cta:active {
  transform: translateY(0);
}

.cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

@keyframes cta-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(30, 169, 75, 0.35);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 16px 38px rgba(30, 169, 75, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(30, 169, 75, 0.35);
  }
}

.feedback {
  min-height: 18px;
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.floating-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11, 11, 15, 0), rgba(11, 11, 15, 0.92) 35%, rgba(11, 11, 15, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-cta-inner {
  width: min(480px, calc(100vw - 20px));
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.floating-cta-wrap .cta {
  margin-top: 0;
}

.global-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.global-overlay.hidden {
  display: none;
}

.global-overlay-card {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  padding: 18px 20px;
  border-radius: 14px;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.global-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(17, 17, 17, 0.12);
  border-top-color: #111;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

.global-overlay-card p {
  margin: 0;
  font-weight: 700;
}

.feedback[data-type="error"] {
  color: #ff9b9b;
}

.feedback[data-type="success"] {
  color: #9bffce;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  background: #131313;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 20px;
  width: min(90vw, 420px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.modal h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.modal-sub {
  color: var(--muted);
  margin-bottom: 12px;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.qr-box {
  background: #0b0b0f;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  place-items: center;
}

.qr-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.pix-code {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pix-code textarea {
  width: 100%;
  min-height: 90px;
  background: #0f0f14;
  border: 1px solid #2a2a2a;
  color: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
  resize: none;
}

.pix-code button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

.spinner.hidden {
  display: none;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.modal-actions .secondary {
  background: #1f1f1f;
  border: 1px solid #2d2d2d;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.telegram-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.telegram-link {
  display: grid;
  place-items: center;
  margin-top: 0;
  text-decoration: none;
}

.telegram-link:hover {
  text-decoration: none;
}

.telegram-actions .secondary {
  width: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.safe {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.safe-icon {
  font-size: 1.1rem;
}

.safe-title {
  font-weight: 700;
}

.safe-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 12px;
}

.copyright {
  margin-top: 8px;
  color: #d9d9d9;
  font-size: 0.85rem;
  text-align: left;
}

.testimonial {
  background: #161616;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #313131, #222);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.name {
  font-weight: 700;
  font-size: 0.95rem;
}

.rating {
  color: #f5d100;
  font-size: 0.9rem;
}

.testimonial-text {
  color: #ededed;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (min-width: 500px) {
  .page {
    padding: 110px 0 80px;
  }

  .top-inner {
    padding: 10px 0;
  }
}
