:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --panel: #111c30;
  --panel-2: #16243c;
  --line: #243349;
  --text: #e7edf5;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-deep: #0e7490;
  --gold: #fbbf24;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(56,189,248,0.10), transparent 60%),
    radial-gradient(900px 400px at 0% 0%, rgba(14,116,144,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
}

.aris-app { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.aris-header { position: sticky; top: 0; z-index: 40; background: rgba(9,16,28,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.aris-header-inner { max-width: 720px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.aris-logo-badge { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--gold)); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(56,189,248,0.35); }
.aris-title { font-size: 21px; font-weight: 900; letter-spacing: -0.5px; margin: 0; }
.aris-subtitle { font-size: 11px; font-weight: 300; color: var(--muted); margin: 2px 0 0; }
.aris-accent-strip { height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold), #ef4444); opacity: 0.8; }

.aris-admin-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #0f172a; background: linear-gradient(135deg, var(--gold), #f59e0b); padding: 6px 11px; border-radius: 999px; }
.aris-newbtn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; font-weight: 600; color: #0b1220; background: var(--brand); border: none; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(56,189,248,0.3); }
.aris-newbtn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(56,189,248,0.45); }
.aris-guest-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.aris-login-link { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--brand); background: transparent; border: 1px solid var(--brand); padding: 7px 13px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.aris-login-link:hover { background: rgba(56,189,248,0.1); }

/* Main */
.aris-main { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 20px 18px 40px; }

/* Urgent banner */
.aris-urgent-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, rgba(239,68,68,0.18), rgba(239,68,68,0.06)); border: 1px solid rgba(239,68,68,0.5); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; }
.aris-urgent-pulse { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.7); animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.aris-urgent-tag { font-size: 11px; font-weight: 800; color: #fca5a5; background: rgba(239,68,68,0.2); padding: 3px 9px; border-radius: 6px; flex-shrink: 0; }
.aris-urgent-text { font-size: 14px; font-weight: 600; color: #fecaca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Filter bar */
.aris-filterbar { margin-bottom: 12px; }
.aris-search-wrap { position: relative; margin-bottom: 12px; }
.aris-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.aris-search-input { width: 100%; font-family: inherit; font-size: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 38px 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.aris-search-input::placeholder { color: var(--muted); }
.aris-search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.aris-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.aris-chip { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.aris-chip:hover { color: var(--text); border-color: var(--brand); }
.aris-chip-active { color: #0b1220; background: var(--brand); border-color: var(--brand); }

/* Legend */
.aris-legend-inline { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 18px; flex-wrap: wrap; gap: 8px; }
.aris-legend { display: flex; gap: 14px; }
.aris-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.aris-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.aris-about-btn { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 12px; color: var(--muted); background: transparent; border: none; cursor: pointer; }
.aris-about-btn:hover { color: var(--brand); }

/* Feed & Cards */
.aris-feed { display: flex; flex-direction: column; gap: 14px; }
.aris-card { background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-right-width: 4px; border-radius: 14px; padding: 16px 18px; opacity: 0; transform: translateY(10px); animation: rise .45s ease forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.aris-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.aris-sev-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.aris-sev-dot { width: 7px; height: 7px; border-radius: 50%; }
.aris-cat-chip { font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(148,163,184,0.1); padding: 4px 10px; border-radius: 999px; }
.aris-card-actions { display: flex; gap: 4px; }
.aris-icon-btn { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: all .15s; }
.aris-icon-btn:hover { color: var(--text); background: rgba(148,163,184,0.1); }
.aris-icon-btn.aris-danger:hover { color: #fca5a5; background: rgba(239,68,68,0.12); }
.aris-card-title { font-size: 17px; font-weight: 800; margin: 0 0 8px; line-height: 1.5; }
.aris-card-body { font-size: 14px; font-weight: 300; color: #cbd5e1; line-height: 1.9; margin: 0 0 14px; white-space: pre-wrap; }
.aris-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.aris-meta-time { font-size: 12px; color: var(--muted); }
.aris-meta-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.aris-share-btn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--brand); background: transparent; border: none; cursor: pointer; }
.aris-share-btn:hover { text-decoration: underline; }

/* Empty */
.aris-empty { text-align: center; padding: 60px 20px; }
.aris-empty-glyph { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; }
.aris-empty-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.aris-empty-sub { font-size: 13px; font-weight: 300; color: var(--muted); margin: 0; }

/* Loading skeleton */
.aris-loading { display: flex; flex-direction: column; gap: 14px; }
.aris-skel { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Modal */
.aris-modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4,8,16,0.75); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.aris-modal { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); animation: rise .3s ease; margin-top: 20px; }
.aris-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.aris-modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.aris-modal-body { padding: 20px; }
.aris-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.aris-modal-body .aris-label:first-child { margin-top: 0; }
.aris-input { width: 100%; font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.aris-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.aris-textarea { resize: vertical; line-height: 1.8; }
select.aris-input { cursor: pointer; }
.aris-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aris-seg { display: flex; gap: 6px; }
.aris-seg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; cursor: pointer; transition: all .15s; }
.aris-seg-active { font-weight: 700; }
.aris-error { margin-top: 14px; font-size: 13px; color: #fca5a5; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); border-radius: 10px; padding: 9px 12px; }
.aris-modal-foot { display: flex; justify-content: flex-start; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.aris-btn-ghost { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 10px 20px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.aris-btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.aris-btn-primary { font-family: inherit; font-size: 14px; font-weight: 700; color: #0b1220; background: var(--brand); border: none; padding: 10px 24px; border-radius: 10px; cursor: pointer; transition: all .15s; box-shadow: 0 4px 14px rgba(56,189,248,0.3); }
.aris-btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.aris-btn-primary:disabled { opacity: 0.6; cursor: default; }

/* About */
.aris-about p { font-size: 14px; font-weight: 300; line-height: 1.9; color: #cbd5e1; margin: 0 0 12px; }
.aris-legend-box { margin-top: 8px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.aris-legend-box .aris-label { margin-top: 0; }

/* Toast */
.aris-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--panel-2); color: var(--text); border: 1px solid var(--brand); font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); animation: rise .3s ease; }

/* Footer */
.aris-footer { border-top: 1px solid var(--line); background: rgba(9,16,28,0.6); padding: 22px 18px; text-align: center; }
.aris-footer p { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.aris-footer-sub { font-size: 11px !important; font-weight: 300; opacity: 0.8; }
.aris-remix { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--brand); text-decoration: none; }
.aris-remix:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
  .aris-row2 { grid-template-columns: 1fr; }
  .aris-title { font-size: 18px; }
  .aris-legend { gap: 10px; }
  .aris-card-title { font-size: 16px; }
}
</parameter>