/* =========================================================
   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 ---------- */
[x-cloak] { display: none !important; }

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);
}

/* Enhanced reset for search inputs */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none !important;
}

/* ---------- 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: linear-gradient(90deg, #a1a1aa, #e4e4e7, #a1a1aa) !important;
  color: #0B0B0C !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
  border: none !important;
}

/* Loader Monochrome */
.loader {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #F5F5F7;
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) 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);
}


/* ---------- LIQUID AURORA SYSTEM ---------- */

.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: #000;
}

.aurora-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    mix-blend-mode: screen;
    opacity: 0.3;
    will-change: transform;
    animation: aurora-move 10s ease-in-out infinite;
}

@keyframes aurora-move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.btn-liquid {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    overflow: hidden;
    font-weight: 700;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #a1a1aa, #e4e4e7, #a1a1aa);
    background-size: 200% auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: liquid-flow 3s linear infinite;
}

@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn-liquid:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

.btn-liquid:hover {
    background: linear-gradient(90deg, #a1a1aa, #e4e4e7, #a1a1aa);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.25rem) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

.btn-liquid:active {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-holographic {
    position: relative;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card-holographic:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%), rgba(0,0,0,0.4);
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
}

.animate-breathe {
    animation: pulse-breathe 4s ease-in-out infinite;
}

@keyframes pulse-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); border-color: rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
}

.btn-liquid-green {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    overflow: hidden;
    font-weight: 700;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #a1a1aa, #e4e4e7, #a1a1aa);
    background-size: 200% auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: liquid-flow 3s linear infinite;
}

.btn-liquid-green:hover {
    background: linear-gradient(90deg, #a1a1aa, #e4e4e7, #a1a1aa);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.25rem) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

/* ---------- PREMIUM REVISION (International Design) ---------- */
.text-gradient-premium {
  background: linear-gradient(135deg, #FFFFFF 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* Subtle text shadow for pop */
  text-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-liquid-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  overflow: hidden;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Liquid Silver/White Flow */
  background: linear-gradient(90deg, #e4e4e7, #ffffff, #e4e4e7);
  background-size: 200% auto;
  border-radius: 16px;
  /* Minimal border */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2),
              inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: liquid-flow-premium 3s linear infinite;
  backface-visibility: hidden;
}

.btn-liquid-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4),
              inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-color: #fff;
}

.btn-liquid-premium i {
  color: #000;
}

@keyframes liquid-flow-premium {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}
