@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #121d30;
  --surface-2: #17243a;
  --border: #263650;
  --text: #edf3ff;
  --muted: #9aaac2;
  --accent: #60a5fa;
  --accent-2: #2563eb;
  --success: #34d399;
  --danger: #f87171;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #172b49 0, var(--bg) 48%);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.topbar {
  max-width: 1000px; margin: auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(154,170,194,.13);
}
.brand { display:flex; align-items:center; gap:10px; font-size:19px; font-weight:800; }
.brand-icon { color:var(--accent); font-size:24px; }
.top-note, .hint { color:var(--muted); font-size:12px; }
.container { width:min(760px, calc(100% - 32px)); margin:46px auto 70px; }
.hero { text-align:center; margin-bottom:30px; }
.eyebrow { color:var(--accent); letter-spacing:3px; font-size:11px; font-weight:700; }
h1 { font-size:clamp(28px, 5vw, 42px); margin:9px 0; }
.hero p { color:var(--muted); line-height:2; margin:0 auto; max-width:590px; }
.tabs { display:flex; gap:8px; padding:6px; background:var(--surface); border:1px solid var(--border); border-radius:14px; margin-bottom:14px; }
.tab { flex:1; padding:12px 8px; border:0; border-radius:10px; background:transparent; color:var(--muted); font:inherit; cursor:pointer; }
.tab.active { color:white; background:#243957; }
.panel { padding:24px; background:rgba(18,29,48,.94); border:1px solid var(--border); border-radius:18px; box-shadow:0 20px 60px #0003; }
label { display:block; font-size:13px; font-weight:600; margin:0 0 8px; }
textarea, input, select {
  display:block; width:100%; margin:0 0 18px; padding:13px 14px;
  background:#0b1526; color:var(--text); border:1px solid var(--border);
  border-radius:10px; outline:none; font:inherit; font-size:14px;
}
textarea { resize:vertical; line-height:1.9; }
textarea:focus, input:focus, select:focus { border-color:var(--accent); box-shadow:0 0 0 3px #60a5fa20; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.btn { border:0; border-radius:10px; padding:12px 18px; color:white; font:inherit; font-weight:600; cursor:pointer; }
.btn:disabled { opacity:.55; cursor:wait; }
.primary { background:linear-gradient(135deg, #3b82f6, #1d4ed8); }
.secondary { background:#263852; border:1px solid #38506f; }
.full { width:100%; }
.share-options { margin-top:18px; max-width:260px; }
.result { margin-top:22px; padding-top:20px; border-top:1px solid var(--border); }
.result textarea, .result input { margin-bottom:10px; }
.hint { line-height:1.9; margin-bottom:0; }
.hidden { display:none !important; }
.notice { padding:13px; margin-bottom:18px; background:#1b2b43; border:1px solid var(--border); border-radius:10px; color:var(--muted); line-height:1.8; }
.status { min-height:26px; padding:10px 4px; color:var(--success); font-size:13px; }
.status.error { color:var(--danger); }
.security { margin-top:20px; padding:18px 22px; background:#101a2a; border:1px solid var(--border); border-radius:14px; color:var(--muted); font-size:13px; line-height:2; }
.security strong { color:var(--text); }
.security ul { padding-right:20px; margin-bottom:0; }
footer { text-align:center; padding:24px; color:#71819a; font-size:12px; }
@media(max-width:600px) {
  .topbar { padding:16px; }
  .top-note { max-width:130px; text-align:left; }
  .container { margin-top:30px; }
  .panel { padding:17px; }
  .field-grid { grid-template-columns:1fr; gap:0; }
  .tabs { gap:3px; }
  .tab { font-size:12px; padding:10px 4px; }
  .actions .btn { flex:1 1 100%; }
}