:root {
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e293b;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: rgba(255, 255, 255, 0.15);
  --input-focus: #38bdf8;
  --success: #10b981;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background Decor */
.background-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.circle-1 {
  width: 350px;
  height: 350px;
  background: #0066FF;
  top: -100px;
  left: -50px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: #10b981;
  bottom: -150px;
  right: -50px;
}

.container {
  width: 100%;
  max-width: 580px;
  z-index: 1;
}

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

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-logo {
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.paywise-logo {
  height: 52px;
  width: 52px;
  border-radius: 12px;
}

.ubereats-logo {
  height: 44px;
}

.logo-separator {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 300;
  opacity: 0.6;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.webhook-config {
  margin-bottom: 16px;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--card-border);
  margin: 18px 0;
}
.form-group {
  margin-bottom: 22px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.small-label {
  font-size: 12px;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.small-input {
  padding: 8px 12px;
  font-size: 13px;
  font-family: monospace;
}

.input-field:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-hint strong {
  color: #38bdf8;
}

.location-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .location-buttons {
    grid-template-columns: 1fr;
  }
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.status-msg {
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
}

.status-msg.loading {
  color: #38bdf8;
}

.status-msg.success {
  color: var(--success);
}

.status-msg.error {
  color: var(--error);
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(90deg, #0066FF, #0284c7);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

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

.result-banner {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.result-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.result-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
