/* =========================================================
   KEYBOXHUB / KEYBOXCHECKER
   Trust-First Monochrome Theme (iOS-inspired, Nothing-style)
   ========================================================= */

/* ---------- BASE COLORS ---------- */
:root {
  /* Backgrounds (NO pure black) */
  --bg-main: #0B0B0C;
  --bg-surface: #111113;
  --bg-card: #161618;
  --bg-elevated: #1C1C1E;
  --bg-hover: #202022;

  /* Borders & dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  --text-disabled: #4A4A4F;

  /* Shadows (very soft, Apple-like) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.45);

  /* Radius (calm, not playful) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion */
  --ease-default: cubic-bezier(0.4, 0.0, 0.2, 1);

  /* VIP Micro-Dose Tokens */
  --vip-gold: #C5A059;                 /* Signature only */
  --vip-gold-soft: rgba(197,160,89,.18);
  --vip-gold-line: rgba(197,160,89,.28);
}

/* ---------- STATUS COLORS (ONLY ALLOWED COLORS) ---------- */
:root {
  --status-strong: #4ade80;   /* Strong / Pass */
  --status-meets:  #fbbf24;   /* Meets / Warning */
  --status-fail:   #f87171;   /* Fail / Error */
  --status-info:   #A1A1A6;   /* Neutral info */
}

/* ---------- GLOBAL ---------- */
html, body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- CARDS / PANELS ---------- */
.card,
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.modal {
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---------- BUTTONS ---------- */
button,
.btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease-default),
              border 0.15s var(--ease-default),
              transform 0.1s ease-out;
}

button:hover,
.btn:hover {
  background: var(--bg-hover);
}

button:active,
.btn:active {
  transform: scale(0.98);
}

button:disabled,
.btn:disabled {
  color: var(--text-disabled);
  border-color: var(--border-subtle);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Monochrome Primary Action */
.btn-glow-primary {
  background: #F5F5F7 !important;
  color: #0B0B0C !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.btn-glow-primary:hover {
  background: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ---------- LINKS (NO BLUE BY DEFAULT) ---------- */
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: none;
}

/* ---------- UTILITIES ---------- */
.focus-mono:focus {
  outline: none;
  border-color: var(--text-primary);
}

.focus-ring-mono:focus-visible {
  outline: none;
  ring: 2px solid rgba(245, 245, 247, 0.35);
  ring-offset: 2px;
  ring-offset-color: var(--bg-main);
}

/* ---------- STATUS BADGES ---------- */
.badge-strong {
  color: var(--status-strong);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-meets {
  color: var(--status-meets);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-fail {
  color: var(--status-fail);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ---------- ICONS ---------- */
.icon {
  color: var(--text-secondary);
}

.icon.status-strong { color: var(--status-strong); }
.icon.status-meets  { color: var(--status-meets); }
.icon.status-fail   { color: var(--status-fail); }

/* ---------- INPUTS ---------- */
input,
textarea,
select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* ---------- TEXT SELECTION (iOS-like) ---------- */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ---------- SCROLLBAR (SUBTLE) ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- BLOCKED / ERROR PAGES ---------- */
.page-blocked,
.page-error {
  background: var(--bg-main);
  color: var(--text-secondary);
}

/* ---------- VIP / LICENSE (Micro-Dose Gold) ---------- */
/* VIP card: mostly monochrome */
.promo-card-vip {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #111113;
  position: relative;
}

/* Tiny premium signature line - Hidden */
.promo-card-vip::before {
  display: none;
}

/* Icon only */
.promo-card-vip .fa-crown {
  color: var(--vip-gold);
}

/* Small VIP pill (not loud) */
.vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--vip-gold-line);
  background: var(--vip-gold-soft);
  color: #F5F5F7;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 1rem; /* Spacing */
}

/* Button stays neutral (trust-first) inside VIP card */
.promo-card-vip a.btn {
  background: #F5F5F7 !important;
  color: #0B0B0C !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
  border: none !important;
}

/* Loader Monochrome */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #F5F5F7;
    animation: spin 1s ease-in-out infinite;
}

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

.license-card {
  background: linear-gradient(
    180deg,
    var(--bg-card),
    var(--bg-surface)
  );
  border: 1px solid var(--border-soft);
}

/* ---------- iOS Style Buttons (Reverted to Standard) ---------- */
.btn-ios {
  background: #1C1C1E; /* bg-elevated */
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 12px; /* Standard radius, not pill */
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ios:hover {
  background: #202022; /* bg-hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--text-primary);
}

.btn-ios:active {
  transform: scale(0.97);
}

.btn-ios-primary {
  background: #F5F5F7; /* Solid White */
  color: #000000;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-ios-primary:hover {
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
