/* =========================================================
   iHACKER — Mobile Operator & Circle Finder · phone.css
   Red console theme
   ========================================================= */
:root{
  --bg:#0B0B0D; --bg-2:#111013; --surface:#17161A; --surface-2:#1F1D22;
  --border:#2C2A30; --border-2:#413E46;
  --text:#F1F1F3; --text-dim:#A0A0A8; --text-mute:#6E6E78;
  --red:#DD0000; --red-bright:#FF2020; --red-deep:#A60000;
  --red-soft:rgba(221,0,0,.12); --red-line:rgba(221,0,0,.45); --red-glow:rgba(221,0,0,.30);
  --green:#22C55E; --amber:#F59E0B;
  --font-ui:'Space Grotesk',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SFMono-Regular',monospace;
}
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html,body{ margin:0; }
body{
  min-height:100vh; font-family:var(--font-ui); color:var(--text);
  background-color:var(--bg);
  background-image:radial-gradient(1000px 520px at 50% -10%, var(--red-soft), transparent 68%), linear-gradient(var(--bg-2), var(--bg));
  background-attachment:fixed; display:flex; flex-direction:column; align-items:center; padding:0 0 40px; overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}
.breadcrumb{ width:95%; max-width:860px; margin:16px auto 0; font-family:var(--font-mono); font-size:12px; color:var(--text-mute); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.breadcrumb a{ color:var(--text-dim); text-decoration:none; font-weight:500; }
.breadcrumb a:hover{ color:var(--red-bright); }
.breadcrumb span[aria-current]{ color:var(--text); }
.main-container{ width:95%; max-width:860px; min-width:0; }
.card{ background:var(--surface); border:2px solid var(--border); border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.4); padding:22px; margin:16px 0; min-width:0; }
.head{ text-align:center; }
.head h1{ font-size:clamp(23px,4.6vw,32px); font-weight:700; color:var(--red); text-shadow:0 0 30px var(--red-glow); letter-spacing:-.5px; margin:0 0 4px; }
.sub{ color:var(--text-dim); font-size:14px; margin:0 auto; max-width:600px; }

/* search */
.search-row{ display:flex; gap:10px; flex-wrap:wrap; }
.input-wrap{ flex:1 1 260px; min-width:0; position:relative; display:flex; align-items:center; }
.input-wrap .prompt{ position:absolute; left:14px; color:var(--red-bright); font-family:var(--font-mono); font-size:14px; font-weight:600; pointer-events:none; }
#phInput{ width:100%; font-family:var(--font-mono); font-size:16px; letter-spacing:.5px; color:var(--text); background:var(--bg-2); border:2px solid var(--border); border-radius:12px; padding:13px 40px 13px 50px; outline:none; transition:border-color .15s, box-shadow .15s; }
#phInput:focus{ border-color:var(--red); box-shadow:0 0 0 4px var(--red-soft); }
#phInput::placeholder{ color:var(--text-mute); letter-spacing:1px; }
.input-clear{ position:absolute; right:10px; width:28px; height:28px; border:0; border-radius:7px; background:transparent; color:var(--text-mute); cursor:pointer; display:grid; place-items:center; }
.input-clear:hover{ color:#fff; background:var(--surface-2); }
.btn{ font-family:var(--font-ui); font-weight:600; font-size:15px; border-radius:12px; padding:13px 22px; cursor:pointer; border:2px solid transparent; transition:all .15s; display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.btn-primary{ background:var(--red); color:#fff; box-shadow:0 6px 18px var(--red-glow); }
.btn-primary:hover:not(:disabled){ background:var(--red-bright); transform:translateY(-1px); }
.btn-primary:disabled{ opacity:.45; cursor:not-allowed; }
.turnstile-wrap{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:14px; }
.ts-hint{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-mute); }
.form-err{ margin:14px 0 0; font-size:13.5px; color:#FFB3B3; background:var(--red-soft); border:1px solid var(--red-line); border-radius:10px; padding:10px 13px; display:flex; gap:9px; align-items:flex-start; }

.loading{ display:flex; align-items:center; justify-content:center; gap:12px; color:var(--text-dim); font-family:var(--font-mono); font-size:13.5px; padding:24px; }
.spinner{ width:20px; height:20px; border:3px solid var(--border-2); border-top-color:var(--red-bright); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* result */
.op-head{ display:flex; align-items:center; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.op-logo{ width:64px; height:64px; border-radius:16px; background:#fff; border:2px solid var(--border-2); object-fit:contain; padding:7px; flex:0 0 auto; }
.op-logo.ph{ display:grid; place-items:center; background:var(--bg-2); color:var(--red-bright); font-size:28px; }
.op-ht{ min-width:0; }
.op-ht .num{ font-family:var(--font-mono); font-size:13px; color:var(--text-mute); margin-bottom:3px; }
.op-ht h2{ margin:0; font-size:clamp(22px,4.5vw,28px); font-weight:700; color:#fff; letter-spacing:-.5px; }
.op-ht .subline{ font-size:14px; color:var(--text-dim); margin-top:2px; }

.op-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.op-cell{ background:var(--bg-2); border:1px solid var(--border); border-radius:12px; padding:13px 15px; min-width:0; }
.op-cell.hero{ border-color:var(--red-line); background:var(--red-soft); }
.op-cell .k{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--text-mute); margin-bottom:5px; display:flex; align-items:center; gap:6px; }
.op-cell .k i{ color:var(--red-bright); }
.op-cell .v{ font-size:17px; font-weight:600; color:var(--text); word-break:break-word; line-height:1.3; }
.op-cell .v.mono{ font-family:var(--font-mono); font-size:15px; }
.op-cell .v small{ font-size:12px; color:var(--text-mute); font-weight:400; }

.mnp-note{ margin:16px 0 0; font-size:12.5px; color:var(--text-dim); background:var(--bg-2); border:1px solid var(--border); border-radius:10px; padding:11px 13px; display:flex; gap:9px; align-items:flex-start; line-height:1.55; }
.mnp-note i{ color:var(--amber); margin-top:2px; }
.mnp-note b{ color:var(--text); }

.result-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.result-actions button, .result-actions a{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); background:var(--surface-2); border:1px solid var(--border); border-radius:9px; padding:9px 13px; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:7px; transition:all .15s; }
.result-actions button:hover, .result-actions a:hover{ border-color:var(--red); color:#fff; }

.toast{ position:fixed; left:50%; bottom:24px; transform:translate(-50%,12px); opacity:0; z-index:999; background:var(--red); color:#fff; font-family:var(--font-mono); font-size:13px; padding:10px 18px; border-radius:999px; box-shadow:0 10px 24px rgba(0,0,0,.5); transition:opacity .2s, transform .2s; pointer-events:none; max-width:90vw; text-align:center; }
.toast.show{ opacity:1; transform:translate(-50%,0); }

/* about */
.about h2{ font-size:20px; font-weight:600; margin:0 0 12px; }
.about h3{ font-size:16px; font-weight:600; margin:20px 0 8px; }
.about p,.about li{ font-size:14px; line-height:1.7; color:var(--text-dim); }
.about strong{ color:var(--text); font-weight:600; }
.about ul,.about ol{ padding-left:20px; }
.about code{ font-family:var(--font-mono); font-size:12.5px; color:var(--red-bright); background:var(--bg-2); padding:2px 6px; border-radius:5px; }
.faq details{ border:2px solid var(--border); border-radius:12px; background:var(--surface-2); margin-bottom:10px; }
.faq summary{ cursor:pointer; padding:14px 42px 14px 16px; font-weight:600; font-size:14.5px; position:relative; list-style:none; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:16px; top:50%; transform:translateY(-50%); color:var(--red-bright); font-family:var(--font-mono); font-size:20px; }
.faq details[open] summary::after{ content:"\2013"; }
.faq p{ padding:0 16px 16px; margin:0; font-size:13.5px; }

@media (max-width:600px){ .card{ padding:16px; } .search-row .btn{ flex:1; } }
@media (prefers-reduced-motion:reduce){ *{ transition:none!important; animation:none!important; } }
