:root {
  --bg-main: #0a0c10;
  --bg-card: #141720;
  --bg-input: #1d212b;
  --border: #282d3b;
  --primary: #dc2626; /* Red for urgency */
  --primary-hover: #b91c1c;
  --success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  display: flex;
  place-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}

.app-container {
  width: 100%;
  max-width: 440px;
  padding: 16px;
}

.screen {
  width: 100%;
}

.hidden {
  display: none !important;
}

.card {
  background-color: var(--bg-card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.critical-banner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.critical-banner strong {
  display: block;
  color: #ef4444;
  margin-bottom: 4px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.shield-icon {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.1));
  color: var(--primary);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 18px;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #242938;
}

input.input-error {
  border-color: var(--primary);
  background-color: rgba(220, 38, 38, 0.05);
}

.error-text {
  color: #fca5a5;
  font-size: 13px;
  margin-top: -10px;
  text-align: left;
  padding-left: 8px;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: none;
  background-color: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #2a303f;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.btn-text:hover {
  color: white;
  transform: none;
  background-color: transparent;
}

.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.shrink-0 { flex-shrink: 0; }

/* Status Headers */
.status-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.status-header.safe { color: var(--success); }
.status-header.danger { color: var(--primary); }

.status-header h2 {
  font-size: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.phone-display {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: monospace;
  color: var(--text-muted);
}

/* Details Box */
.details-box {
  background-color: var(--bg-input);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 16px 0;
}

/* Offer Box (Payment Page) */
.offer-box {
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.05) 0%, transparent 100%);
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge {
  background-color: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.offer-details ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.offer-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-tag {
  display: flex;
  flex-direction: column;
  border-top: 1px dashed rgba(220, 38, 38, 0.3);
  padding-top: 16px;
}

.price-tag span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.price-tag strong {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.price-tag small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Alert Boxes */
.alert-box {
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
}

.alert-box.error {
  background-color: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.success-icon-wrapper {
  color: var(--success);
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.slide-down {
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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