/* ==============================================================================
   FoxTools — Approved Design System (design/README-DESIGN.md)
   Colors: accent #EE0A1E | bg #0B0B0C | surface #0E0E0FB8 | line #1D1D1F
   Tiers:  gold #F4D06F | silver #DDE2EA | bronze #E9A56A
   ============================================================================== */
:root {
  --accent: #EE0A1E;
  --bg: #0B0B0C;
  --surface: #0E0E0FB8;
  --line: #1D1D1F;
  --gold: #F4D06F;
  --silver: #DDE2EA;
  --bronze: #E9A56A;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: #F5F5F7;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #FF5A67; }
a.on-accent:hover { color: #FFFFFF; }
input, button { font-family: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.lift { transition: transform .2s ease, border-color .2s ease; }
.lift:hover { transform: translateY(-3px); border-color: var(--accent) !important; }
.navb:hover { background: #141415 !important; }
.dots {
  background-image: radial-gradient(rgba(245,245,247,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scanline { 0% { top: 8%; } 100% { top: 88%; } }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- App shell: sidebar (128px) + main column ---- */
.fox-shell { position: relative; display: flex; min-height: 100vh; width: 100%; overflow-x: hidden; }
.fox-shell::before {
  content: ''; position: absolute; left: 0; top: 80px; width: 2px; height: 340px; z-index: 5;
  pointer-events: none; background: linear-gradient(180deg, transparent, #860610, transparent);
  box-shadow: 0 0 10px 1px rgba(238,10,30,0.3);
}
.fox-main {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  flex-grow: 1; min-width: 0; min-height: 100vh;
}
.fox-main-glow {
  position: absolute; left: 50%; top: 46%; width: 1060px; height: 860px;
  margin-left: -530px; margin-top: -430px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(238,10,30,0.11), rgba(238,10,30,0.035) 62%, transparent);
}
.fox-main-fox-blur, .fox-main-fox-sharp {
  position: absolute; left: 50%; top: 46%; width: 1000px; height: 597px;
  margin-left: -500px; margin-top: -298px; z-index: -1; pointer-events: none;
}
.fox-main-fox-blur { filter: blur(46px); opacity: 0.2; }
.fox-main-fox-sharp { opacity: 0.5; filter: drop-shadow(0 0 26px rgba(238,10,30,0.3)); }

.fox-page { display: flex; flex-direction: column; gap: 32px; padding: 40px; box-sizing: border-box; }
.fox-footer {
  display: flex; align-items: flex-end; justify-content: space-between; flex-grow: 1;
  margin-top: 40px; padding: 24px 40px; box-sizing: border-box; border-top: 1px solid var(--line);
  font-size: 15px; color: #A8A8AF;
}
.fox-footer-links { display: flex; align-items: center; gap: 24px; }

.fox-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; position: relative; }
.fox-card::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, #D4081A, transparent);
  box-shadow: 0 0 12px 0 rgba(238,10,30,0.3); pointer-events: none;
}

.fox-btn {
  display: flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px;
  border-radius: 14px; background: linear-gradient(180deg, #2E2E31 0%, #19191B 100%);
  border: 1px solid #3F3B3B; color: #FFFFFF; font-weight: 600; font-size: 17px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 0 20px -8px rgba(238,10,30,0.35);
}
.fox-btn[disabled] { opacity: .5; cursor: not-allowed; }
.fox-btn-ghost {
  display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 14px;
  font-size: 17px; font-weight: 600; border: 1px solid #3A3A3E; color: #F5F5F7; background: transparent; cursor: pointer;
}

.fox-hero-icon {
  display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 20px; background: #1D1D1F; border: 1px solid #252528;
}
.fox-check { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.fox-table-head {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 12px 18px;
  background: #141415; border-radius: 12px; font-size: 14px; font-weight: 500; color: #7E7E86;
}
.fox-table-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 12px 18px;
  border-radius: 12px; font-size: 15px; color: #F5F5F7; align-items: center;
}
.fox-empty {
  display: flex; align-items: center; justify-content: center; height: 90px;
  border: 1px dashed #3A3A3E; border-radius: 14px; font-size: 16px; color: #7E7E86;
}
.fox-pill { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.fox-pill-ok { background: #1F3A2E; color: #7ED6B5; }
.fox-pill-warn { background: #3D2A1A; color: #F5B36B; }
.fox-pill-bad { background: #3A1414; color: #FF8A94; }

.fox-tier-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.fox-tier-dot { display: block; width: 10px; height: 10px; border-radius: 999px; }
.fox-tier-bronze { background: rgba(205,127,50,0.14); border: 1px solid rgba(205,127,50,0.45); color: var(--bronze); }
.fox-tier-bronze .fox-tier-dot { background: linear-gradient(135deg,#F0B27A,#8C5523); }
.fox-tier-silver { background: rgba(192,199,208,0.12); border: 1px solid rgba(192,199,208,0.4); color: var(--silver); }
.fox-tier-silver .fox-tier-dot { background: linear-gradient(135deg,#F1F3F6,#8E97A3); }
.fox-tier-gold { background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.5); color: var(--gold); }
.fox-tier-gold .fox-tier-dot { background: linear-gradient(135deg,#FFE28A,#B8860B); }
.fox-tier-trial { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #C9C9CE; }
.fox-tier-trial .fox-tier-dot { background: #8F8F98; }

.fox-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #141415; border: 1px solid var(--line); color: #F5F5F7; padding: 14px 22px;
  border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999;
  box-shadow: 0 20px 40px -14px #000;
}
.fox-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
