/* Apollo Exporter app: Cinnabar look. Near-black canvas, crimson accent, Satoshi + Inter. */
:root {
  --bg: #030303;
  --accent: #ff5c58;
  --accent-deep: #ff3b30;
  --card-edge: #2a1313;
  --card-edge-hover: #4d1f1f;
  --text: #ffffff;
  --muted: #a1a1aa;
  --faint: #71717a;
  --input: #0a0505;
  --font-display: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans); overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(255, 92, 88, 0.3); }

/* Backdrop */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 40%, #2e0a0a 0%, #150505 40%, #030303 78%); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 59, 48, 0.22) 0%, transparent 60%); }
.particle { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #ffb3b1; box-shadow: 0 0 6px 1px rgba(255, 92, 88, 0.6);
  animation: twinkle var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate; opacity: 0.6; }
@keyframes twinkle { from { opacity: 0.15; transform: scale(0.7); } to { opacity: 0.8; transform: scale(1.2); } }
.bg-mark { position: absolute; left: 50%; top: 52%; width: min(70vw, 560px); transform: translate(-50%, -50%); opacity: 0.16; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8)); animation: floatMark 8s ease-in-out infinite; }
@keyframes floatMark { 0%, 100% { transform: translate(-50%, -50%) rotateY(-8deg) rotateX(6deg); } 50% { transform: translate(-50%, calc(-50% - 14px)) rotateY(8deg) rotateX(2deg); } }
@media (prefers-reduced-motion: reduce) { .particle, .bg-mark { animation: none !important; } }

/* Layout */
.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.topbar .link { font-size: 14px; color: var(--muted); }
.topbar .link:hover { color: #fff; }

.center { flex: 1; display: grid; place-items: center; padding: 24px 16px 56px; }
.card { width: 100%; max-width: 440px; position: relative; border-radius: 26px; padding: 32px 28px 28px;
  background: linear-gradient(180deg, rgba(24, 9, 9, 0.92), rgba(13, 7, 7, 0.96) 60%, #070404); border: 1px solid var(--card-edge);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px); }
.card::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; filter: blur(1px);
  background: linear-gradient(90deg, transparent, rgba(255, 92, 88, 0.85), transparent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent); background: rgba(20, 8, 8, 0.8); border: 1px solid rgba(255, 92, 88, 0.4); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card h1 { font-size: 28px; font-weight: 600; margin-top: 16px; line-height: 1.15; }
.card h1 em { font-style: normal; color: var(--accent); }
.card .sub { margin: 10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px var(--font-sans); cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: #fff; color: #000; box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08); }
.btn-primary:hover { background: #f4f4f5; }
.btn-google { background: #0d0d10; color: #fff; border-color: #3f3f46; }
.btn-google:hover { border-color: #71717a; background: #141417; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--card-edge); }
.btn-ghost:hover { color: #fff; border-color: var(--card-edge-hover); }
.btn-accent { background: #160606; color: #fff; border-color: rgba(255, 92, 88, 0.6); box-shadow: 0 0 20px rgba(255, 92, 88, 0.3); }
.btn-accent:hover { background: var(--accent); color: #000; }

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid #27272a; background: var(--input); color: #fff; font: 15px var(--font-sans); }
.field input::placeholder { color: #52525b; }
.field input:focus { border-color: rgba(255, 92, 88, 0.6); outline: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--card-edge); }
.msg { display: none; margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.msg.show { display: block; }
.msg.error { background: #1a0808; border: 1px solid rgba(255, 92, 88, 0.45); color: #ffb3b1; }
.msg.ok { background: #06140d; border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; }
.foot { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 13px; color: #d4d4d8; }
.perks li { display: flex; align-items: center; gap: 9px; }
.perks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(255, 92, 88, 0.6);
  background: rgba(46, 9, 9, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5c58' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/8px no-repeat; }
.legal { margin-top: 18px; font-size: 11.5px; line-height: 1.5; color: var(--faint); text-align: center; }

/* Dashboard */
.dash { max-width: 1180px; width: 100%; margin: 0 auto; padding: 8px 24px 64px; display: grid; gap: 20px; }
.banner { display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255, 92, 88, 0.45); background: #1a0808; font-size: 14px; }
.banner.show { display: flex; }
.banner .btn { width: auto; padding: 9px 14px; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: 22px; padding: 22px; border: 1px solid var(--card-edge); background: linear-gradient(180deg, rgba(24, 9, 9, 0.9), rgba(13, 7, 7, 0.95) 60%, #070404); box-shadow: 0 20px 60px rgba(0,0,0,0.7); overflow: hidden; }
.tile::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; filter: blur(1px); background: linear-gradient(90deg, transparent, rgba(255, 92, 88, 0.8), transparent); }
.tile .label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tile .big { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile .big small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.tile p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 10px 0 0; }
.tile .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tile .actions .btn { width: auto; padding: 10px 16px; font-size: 13.5px; }
.user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.user img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--card-edge); }
.skeleton { color: transparent; background: linear-gradient(90deg, #1a0a0a, #2a1313, #1a0a0a); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 480px) { .card { padding: 26px 20px 22px; border-radius: 22px; } .topbar { padding: 18px 16px; } }
