/* ===== CHECKOUT PAGE ===== */

.checkout-section { padding-top: 40px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* ===== ORDER SUMMARY ===== */
.checkout-summary h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.order-plan-badge {
  display: inline-block;
  background: rgba(108,71,255,0.12);
  border: 1px solid rgba(108,71,255,0.3);
  color: var(--primary-light);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.order-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.order-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.order-features {
  list-style: none;
  padding: 0;
}
.order-features li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

/* Pricing breakdown */
.order-pricing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.order-line-discount { color: var(--accent); }
.order-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.order-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.order-total span:last-child {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-guarantee {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: var(--radius);
}
.order-guarantee span { font-size: 1.3rem; flex-shrink: 0; }
.order-guarantee p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* ===== PAYMENT SECTION ===== */
.checkout-payment h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.checkout-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Payment method cards */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.payment-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.payment-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.payment-card.selected {
  border-color: var(--primary);
  background: rgba(108,71,255,0.06);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(108,71,255,0.15);
}

/* Radio button */
.payment-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.payment-card.selected .payment-radio {
  border-color: var(--primary);
}
.payment-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.payment-card.selected .payment-radio-inner {
  transform: scale(1);
}

.payment-info { flex: 1; }
.payment-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.payment-icon {
  font-size: 1.4rem;
}
.payment-logo strong {
  font-size: 0.95rem;
  color: var(--white);
}
.payment-info p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.payment-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ptag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(108,71,255,0.1);
  border: 1px solid rgba(108,71,255,0.2);
  color: var(--primary-light);
}

/* Payment details panel */
.payment-details {
  background: var(--surface);
  border: 1px solid rgba(108,71,255,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  animation: tabFadeIn 0.3s ease;
}
.pdetail h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.pdetail p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.pdetail-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

/* Crypto address */
.crypto-address {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.crypto-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.crypto-address code {
  font-size: 0.82rem;
  color: var(--accent);
  word-break: break-all;
  flex: 1;
}
.copy-btn {
  background: rgba(108,71,255,0.15);
  border: 1px solid rgba(108,71,255,0.3);
  color: var(--primary-light);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(108,71,255,0.25); }

/* Instapay details */
.instapay-details {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.instapay-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.instapay-row:last-child { border-bottom: none; }
.instapay-row span { color: var(--text-muted); }
.instapay-row strong { color: var(--white); }

/* Tabby split */
.tabby-split {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.tabby-item {
  text-align: center;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
}
.tabby-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tabby-item strong {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

/* Email input */
.checkout-form {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-field label .optional {
  color: var(--text-muted);
  font-weight: 400;
}
.form-field input,
.form-field select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,71,255,0.12);
}
.form-field input::placeholder {
  color: var(--text-muted);
}

/* Phone input with country code */
.phone-input-wrap {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.phone-input-wrap select,
.phone-country {
  width: 120px !important;
  max-width: 120px;
  flex: 0 0 120px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 28px 12px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%237878a0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.phone-country:hover {
  border-color: var(--border-hover);
}
.phone-country:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
}
.phone-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

/* Checkout button */
.checkout-btn {
  font-size: 1.05rem;
  padding: 18px 32px;
  margin-bottom: 16px;
}
.checkout-btn span {
  font-weight: 800;
}

.checkout-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
.checkout-legal a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { order: 2; }
  .checkout-payment { order: 1; }
}
@media (max-width: 640px) {
  .tabby-split { grid-template-columns: repeat(2, 1fr); }
  .payment-card { padding: 16px; }
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
