/* ============================================================
   ابزار باران‌هاست — استایل Glassmorphism RTL
   ============================================================ */

/* فونت یکان — برای تمام متن‌ها (به جز آیکون‌ها) */
@font-face {
  font-family: 'Yekan';
  src: url('fonts/yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yekan';
  src: url('fonts/yekan.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f1a;
  --bg-2: #0e1422;
  --fg: #e8eef7;
  --muted: #8a96a8;
  --brand: #22d3ee;
  --accent: #34d399;
  --danger: #f43f5e;
  --warn: #f59e0b;
  --card: rgba(20, 27, 45, 0.65);
  --card-solid: #141b2d;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.5);
}

/* Light theme */
body.light {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --fg: #0f172a;
  --muted: #5b6678;
  --card: rgba(255, 255, 255, 0.8);
  --card-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.14);
  --shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.15);
}

* {box-sizing: border-box;margin: 0;padding: 0;}

html { scroll-behavior: smooth; }

body {
  font-family: 'Yekan', "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(at 0% 0%, rgba(34, 211, 238, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(52, 211, 153, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }
.container {max-width: 1200px;margin: 0 auto;padding: 0 16px;width: 100%;}

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
body.light .header { background: rgba(255, 255, 255, 0.8); }
.header-inner {
  display: flex;
  height: 63px;
  center;
  gap: 16px;
  height: 85px;
  flex-wrap: nowrap;
  align-content: space-between;
  justify-content: center;
  align-items: stretch;
}
.logo {display: flex;align-items: center;gap: 6px;text-decoration: none;color: inherit;}
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 20px -4px var(--brand);
}
.logo-title {font-size: 15px;font-weight: 800;}
.logo-sub {font-size: 12px;color: var(--muted);}
.nav-menu { display: flex; gap: 6px; margin-right: auto; }
@media (max-width: 900px) { .nav-menu { display: none; } }
.nav-dropdown summary, .nav-link {
  cursor: pointer; padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; list-style: none;
  transition: background 0.2s;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-dropdown[open] summary { background: rgba(255,255,255,0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown-content {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--card-solid); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 6px; min-width: 220px;
  box-shadow: var(--shadow); display: grid; gap: 2px;
  z-index: 100;
}
.nav-dropdown-content a {
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  text-decoration: none; color: var(--fg); transition: background 0.15s;
}
.nav-dropdown-content a:hover { background: rgba(255,255,255,0.06); }
.header-actions {display: flex;gap: 8px;margin-right: auto;flex-wrap: nowrap;align-items: center;}
@media (max-width: 900px) { .header-actions .nav-link { display: none; } }
.phone-pill {
  display: none; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--card); border: 1px solid var(--border); color: var(--fg);
  text-decoration: none;
}
@media (min-width: 768px) { .phone-pill { display: inline-flex; } }
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s;
}
.theme-toggle:hover { transform: scale(1.1); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #06121a;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost {
  background: var(--card); color: var(--fg); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ============ Hero ============ */
.hero { padding: 40px 0 28px; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 900; line-height: 1.3; }
.grad {
  background: linear-gradient(135deg, var(--brand), var(--accent), #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  max-width: 640px; margin: 16px auto 0;
  font-size: 15px; color: var(--muted);
}

.search-form { max-width: 640px; margin: 28px auto 0; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border-2);
  backdrop-filter: blur(20px); box-shadow: 0 0 40px -8px var(--brand);
}
.search-icon { font-size: 18px; margin-right: 8px; color: var(--muted); }
.search-box input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-size: 15px; color: var(--fg); font-family: inherit;
  padding: 8px 4px;
}
.examples {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  justify-content: center; margin-top: 12px;
}
.examples span { font-size: 11px; color: var(--muted); }
.ex-chip {
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.2s;
}
.ex-chip:hover { border-color: var(--brand); color: var(--brand); }

.features {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px;
}
.feature-pill {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ============ Stats ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
}
.stat-icon { font-size: 24px; }
.stat-value { font-size: 18px; font-weight: 800; }
.stat-label { font-size: 11px; color: var(--muted); }

/* ============ Cards ============ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px; backdrop-filter: blur(16px);
  margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.card-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hint { font-size: 11px; color: var(--muted); }

/* ============ Empty state ============ */
.empty-state {
  text-align: center; padding: 48px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; margin-bottom: 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h2 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto; }

/* ============ Tabs ============ */
.tabs-list {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 16px;
}
.tab-btn {
  padding: 8px 14px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tab-btn:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.tab-btn.active { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #06121a; }
.tab-panel { display: none; }
.tab-panel.active {display: block;animation: fadeIn 0.3s;}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ Grid layouts ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2-1 {/* display: grid; */grid-template-columns: 2fr 1fr;gap: 16px;}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-2-1 {grid-template-columns: 1fr;}
}

/* ============ Info rows ============ */
.info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
}
.info-row:last-child { border-bottom: none; }
.info-label {font-size: 14px;color: var(--muted);white-space: nowrap;flex-shrink: 0;}
.info-value {font-size: 13px;font-weight: 600;text-align: left;direction: ltr;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;/* max-width: 99%; */}
.info-value.mono {font-family: 'Yekan';font-size: 13px;}
.info-row > div { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 65%; }
@media (max-width: 480px) {
  .info-label { font-size: 11px; }
  .info-value {font-size: 11px;/* max-width: 55%; */}
}

/* ============ Badges ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-2);
}
.badge-mono { font-family: monospace; font-size: 11px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.pill-ok { background: rgba(16,185,129,0.15); color: #34d399; }
.pill-bad { background: rgba(244,63,94,0.15); color: #fb7185; }
.pill-warn { background: rgba(245,158,11,0.15); color: #fbbf24; }
.dot { width: 6px; height: 6px; border-radius: 50%; }

/* ============ DNS records ============ */
.dns-group { margin-bottom: 12px; }
.dns-type-tag {
  display: inline-block; padding: 2px 9px; border-radius: 7px;
  font-family: monospace; font-size: 11px; font-weight: 800; margin-bottom: 6px;
}
.dns-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  margin-bottom: 4px;
}
.dns-val { font-family: monospace; font-size: 12px; flex: 1; min-width: 0; word-break: break-all; direction: ltr; }
.copy-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; padding: 2px 4px;
  transition: color 0.2s;
}
.copy-btn:hover { color: var(--brand); }

/* ============ Score ring ============ */
.score-ring { position: relative; display: inline-grid; place-items: center; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-val { position: absolute; font-size: 26px; font-weight: 900; }
.score-ring-label { position: absolute; bottom: 20%; font-size: 10px; color: var(--muted); }

/* ============ Mini stat ============ */
.mini-stat {
  text-align: center; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.mini-stat-val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============ SSL big card ============ */
.ssl-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 16px; position: relative; overflow: hidden;
}
.ssl-card.valid { border-color: rgba(16,185,129,0.4); }
.ssl-card.warn { border-color: rgba(245,158,11,0.5); }
.ssl-card.critical { border-color: rgba(244,63,94,0.6); animation: blink 1.2s infinite; }
@keyframes blink {
  0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(244,63,94,0); }
}
.ssl-days { font-size: 56px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ssl-ad {
  margin-top: 18px; padding: 12px; width: 100%;
  border-radius: 12px; border: 1px solid rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.08); text-align: center;
}
.ssl-ad p { font-size: 12px; font-weight: 700; color: #fbbf24; }
.ssl-ad small { font-size: 11px; color: var(--muted); }

/* ============ Security header rows ============ */
.sec-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 6px;
  border: 1px solid var(--border);
}
.sec-row.present { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.2); }
.sec-row.missing { background: rgba(244,63,94,0.05); border-color: rgba(244,63,94,0.2); }
.sec-row .info { flex: 1; min-width: 0; }
.sec-row code { font-size: 11px; font-weight: 700; }
.sec-row .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.severity-tag { background: rgba(244,63,94,0.2); color: #fb7185; padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }

/* ============ Control panel ============ */
.cp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 5px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.cp-name { font-size: 13px; font-weight: 600; flex: 1; }
.cp-actions { display: flex; gap: 4px; }

/* ============ Loading ============ */
.loading {
  display: flex; align-items: center; gap: 10px;
  padding: 20px; color: var(--muted); font-size: 13px;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(34,211,238,0.2); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,0.05); border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.6s infinite; transform: translateX(100%);
}
@keyframes shimmer { to { transform: translateX(-100%); } }
.sk-line { height: 12px; margin-bottom: 6px; }

/* ============ Scroll area ============ */
.scroll-area { max-height: 380px; overflow-y: auto; padding-left: 4px; }
.scroll-area::-webkit-scrollbar { width: 8px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.3); border-radius: 999px; }
.scroll-area::-webkit-scrollbar-thumb:hover { background: rgba(34,211,238,0.5); }

/* ============ Map ============ */
.geo-map {
  position: relative; height: 160px; border-radius: 12px; overflow: hidden;
  margin-top: 12px; border: 1px solid var(--border);
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 14px 14px;
}
.geo-marker { position: absolute; transform: translate(-50%, -50%); }
.geo-marker .ping {
  position: absolute; inset: -10px; border-radius: 50%;
  background: var(--brand); opacity: 0.3; animation: ping 1.5s infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }
.geo-marker .pin { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(34,211,238,0.3); }
.geo-label {
  position: absolute; right: 16px; top: 8px;
  background: var(--card-solid); padding: 4px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 600; border: 1px solid var(--border);
}

/* ============ php.ini ============ */
.phpini-types { display: flex; flex-wrap: wrap; gap: 8px; }
.ini-btn {
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--fg); font-family: inherit; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.ini-btn:hover { border-color: var(--brand); color: var(--brand); }
.phpini-output { margin-top: 16px; }
.phpini-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.phpini-actions { display: flex; gap: 6px; }
.phpini-output pre {
  max-height: 400px; overflow: auto; padding: 14px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 10px; font-family: monospace; font-size: 12px; line-height: 1.6;
  color: #c8d3e0;
}
body.light .phpini-output pre { background: rgba(0,0,0,0.05); color: #1a2332; }

/* ============ Tools grid ============ */
.tools-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;6px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}
.tool-chip:hover:not(.disabled) { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.tool-chip.disabled { opacity: 0.4; cursor: not-allowed; }
.tool-cat { font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }

/* ============ Footer ============ */
.footer {
  margin-top: auto; border-top: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.6); backdrop-filter: blur(20px);
  padding: 40px 0 20px;
}
body.light .footer { background: rgba(245, 247, 251, 0.8); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-desc {font-size: 15px;color: var(--muted);margin-bottom: 14px;line-height: 1.8;}
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer-links, .footer-contact { list-style: none; }
.footer-links li, .footer-contact li {margin-bottom: 8px;font-size: 14px;color: var(--muted);}
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer-link-bold { font-weight: 800; color: var(--brand); text-decoration: none; transition: opacity 0.2s; }
.footer-link-bold:hover { opacity: 0.8; }

/* ============ Toast ============ */
#toast-container {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  padding: 12px 20px; border-radius: 12px;
  background: var(--card-solid); border: 1px solid var(--border-2);
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
  animation: toastIn 0.3s, toastOut 0.3s 2.7s forwards;
  max-width: 90vw;
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error { border-color: rgba(244,63,94,0.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* responsive */
@media (max-width: 600px) {
  .hero { padding: 24px 0 16px; }
  .header-actions .btn-primary span { display: none; }
  .search-box { flex-wrap: wrap; }
  .search-box input { width: 100%; }
  .search-box .btn { width: 100%; }
}

/* ============ Hero animated blobs (3D) ============ */
.hero { position: relative; overflow: hidden; }
.hero-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 { width: 320px; height: 320px; background: var(--brand); top: -60px; right: 10%; }
.blob-2 { width: 280px; height: 280px; background: var(--accent); top: 30%; left: 5%; animation-delay: -4s; }
.blob-3 { width: 240px; height: 240px; background: #a855f7; bottom: -40px; right: 40%; animation-delay: -8s; }
body.light .blob { opacity: 0.25; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
.hero-content { position: relative; }

/* ============ 3D Cube (empty state) ============ */
.cube-3d-wrap {
  width: 90px; height: 90px; perspective: 600px; margin: 0 auto 16px;
}
.cube-3d {
  width: 90px; height: 90px; position: relative; transform-style: preserve-3d;
  animation: cubeRotate 14s linear infinite;
}
.cube-face {
  position: absolute; width: 90px; height: 90px;
  display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(52,211,153,0.15));
  border: 1px solid rgba(34,211,238,0.3); border-radius: 14px;
  backdrop-filter: blur(10px);
}
.f-front { transform: rotateY(0deg) translateZ(45px); }
.f-back { transform: rotateY(180deg) translateZ(45px); }
.f-right { transform: rotateY(90deg) translateZ(45px); }
.f-left { transform: rotateY(-90deg) translateZ(45px); }
.f-top { transform: rotateX(90deg) translateZ(45px); }
.f-bottom { transform: rotateX(-90deg) translateZ(45px); }
@keyframes cubeRotate {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ============ Report Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 8, 15, 0.75); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 16px;
  animation: modalFade 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--card-solid); border: 1px solid var(--border-2);
  border-radius: 22px; padding: 28px; max-width: 560px; width: 100%;
  box-shadow: 0 20px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.1);
  position: relative; animation: modalSlide 0.35s cubic-bezier(0.2,0.9,0.3,1.2);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; font-size: 16px;
  display: grid; place-items: center; transition: all 0.2s;
}
.modal-close:hover { background: rgba(244,63,94,0.15); color: #fb7185; border-color: rgba(244,63,94,0.4); }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.modal-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 24px -8px var(--brand);
}
.modal-head h3 { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.modal-sub { font-size: 12px; color: var(--muted); }
.modal-domain-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.15);
}
.modal-domain-box code { font-family: monospace; font-size: 13px; color: var(--brand); font-weight: 700; }
.modal-formats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
  margin-bottom: 16px;
}
.format-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--fg); font-family: inherit; transition: all 0.25s;
  text-align: center;
}
.format-btn:hover:not(:disabled) {
  border-color: var(--brand); background: rgba(34,211,238,0.08);
  transform: translateY(-3px); box-shadow: 0 8px 20px -8px var(--brand);
}
.format-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.format-icon { font-size: 26px; line-height: 1; }
.format-name { font-size: 13px; font-weight: 700; }
.format-desc { font-size: 10px; color: var(--muted); }
.modal-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.modal-fname { font-family: monospace; font-size: 11px; color: var(--accent); direction: ltr; word-break: break-all; }
.modal-hint-text { font-size: 12px; color: var(--warn); text-align: center; padding: 8px; }
.modal-hint-text:empty { display: none; }

/* ============ Export buttons row (in results toolbar) ============ */
.export-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.export-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  color: var(--fg); font-family: inherit; font-size: 12px; font-weight: 600;
  transition: all 0.2s; text-decoration: none;
}
.export-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.export-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.export-btn .ex-ico { font-size: 14px; }

/* ============ Robots download button ============ */
.robots-dl {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: #34d399; font-family: inherit; font-size: 11px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.robots-dl:hover { background: rgba(16,185,129,0.2); }

/* ============ php.ini tab content ============ */
.phpini-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* sound toggle button */
.sound-toggle {
  position: fixed; bottom: 20px; left: 20px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-solid); border: 1px solid var(--border-2);
  color: var(--brand); cursor: pointer; font-size: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.sound-toggle:hover { transform: scale(1.1); }
.sound-toggle.muted { color: var(--muted); }

/* ============ tab fix for single row ============ */
.tabs-list { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.tabs-list::-webkit-scrollbar { height: 4px; }
.tab-btn { white-space: nowrap; flex-shrink: 0; }

/* header actions cleanup */
.header-actions {margin-right: auto;gap: 8px;}

/* responsive modal */
@media (max-width: 520px) {
  .modal-card { padding: 20px 16px; }
  .modal-formats { grid-template-columns: 1fr 1fr; }
  .format-btn { padding: 12px 6px; }
  .modal-head h3 { font-size: 15px; }
}

/* dns row single-line */
.dns-row { flex-wrap: nowrap; }
.dns-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* card head single row */
.card-head { flex-wrap: wrap; }

/* feature pills nowrap */
.feature-pill { white-space: nowrap; }

