:root {
  --bg-color: #0b0e14;
  --card-bg: #151922;
  --card-border: #232a3b;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #f0b90b; /* Binance Yellow */
  --primary-hover: #fcd535;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-container {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.checkout-header {
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.timer-badge {
  background: #1f2533;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-body {
  padding: 24px;
}

.order-summary {
  background: #0d1117;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--card-border);
}

.amount-highlight {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.qr-section {
  text-align: center;
  margin-bottom: 24px;
}

.qr-box {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-box img {
  display: block;
  width: 200px;
  height: 200px;
}

.instructions-card {
  margin-bottom: 20px;
}

.data-group {
  margin-bottom: 12px;
}

.data-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.data-value-box {
  display: flex;
  align-items: center;
  background: #1c212d;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.95rem;
  color: #fff;
  justify-content: space-between;
}

.copy-btn {
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid rgba(240, 185, 11, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #000;
}

.note-box {
  border-color: rgba(240, 185, 11, 0.4);
  background: rgba(240, 185, 11, 0.05);
}

.status-polling {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #1a202c;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success View */
.success-view {
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 2.2rem;
}

.manual-verify-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.manual-verify-box {
  margin-top: 10px;
  background: #11151e;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

.input-field {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: #1a202c;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-binance-app {
  width: 100%;
  background: linear-gradient(135deg, #f0b90b 0%, #fcd535 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(240, 185, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-binance-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.5);
}

.toast-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Credentials Delivery Card */
.credentials-card {
  background: linear-gradient(145deg, #121824 0%, #1a2332 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.credentials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.cred-service-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.credential-row {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cred-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.cred-value {
  font-family: monospace;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.cred-rules-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

.cred-rules-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-rules-list {
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cred-rules-list li::before {
  content: "• ";
  color: var(--primary);
  font-weight: bold;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

