/* zonu Google-like system — shared by /, /cabinet/, /admin/, /docs/, /abuse/ */
:root {
  --blue: #1a73e8; --blue-dark: #1557b0; --blue-soft: #e8f0fe;
  --text: #1f1f1f; --muted: #5f6368; --border: #dadce0;
  --bg: #fff; --bg-soft: #f8f9fa; --green: #188038; --red: #d93025; --amber: #b06000;
  --surface: #fff; --code-bg: #f1f3f4;
  --r: 12px; --shadow: 0 1px 2px rgba(60, 64, 67, .12);
}
[data-theme="dark"] {
  --blue: #8ab4f8; --blue-dark: #aecbfa; --blue-soft: #1f3a5f;
  --text: #e8eaed; --muted: #9aa0a6; --border: #3c4043;
  --bg: #1f1f1f; --bg-soft: #2d2e30; --green: #81c995; --red: #f28b82; --amber: #fdd663;
  --surface: #292a2d; --code-bg: #3c4043;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Roboto, "Google Sans", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; transition: background .2s ease, color .2s ease; }
h1, h2, h3 { font-family: "Google Sans", Roboto, sans-serif; font-weight: 500; }
/* header */
.g-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; transition: background .2s ease, border-color .2s ease; }
.g-header img.logo { height: 32px; }
.g-header .crumb { color: var(--muted); font-size: .9rem; }
.g-nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.g-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 20px; }
.g-nav a:hover { background: var(--bg-soft); color: var(--blue); }
/* buttons */
.btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 20px; padding: 9px 20px; font-weight: 500; font-size: .9rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--bg-soft); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="dark"] .btn.primary { color: #202124; }
[data-theme="dark"] .btn.primary:hover { color: #202124; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 14px; font-size: .82rem; }
/* cards + layout */
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 80px; }
.wrap.narrow { max-width: 720px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.card h3 { margin: 0 0 10px; font-size: 1.05rem; }
/* forms */
input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], select, textarea { border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: .95rem; width: 100%; outline: none; font-family: inherit; color: var(--text); background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
/* tables */
table.grid { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.grid th, table.grid td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid th { color: var(--muted); font-weight: 500; font-size: .8rem; }
/* badges + text */
.badge { display: inline-block; background: var(--blue-soft); color: var(--blue); border-radius: 12px; padding: 2px 12px; font-size: .78rem; font-weight: 500; }
.badge.green { background: #e6f4ea; color: var(--green); }
.badge.red { background: #fce8e6; color: var(--red); }
.badge.amber { background: #fef7e0; color: var(--amber); }
.muted { color: var(--muted); font-size: .87rem; }
.err { color: var(--red); font-size: .87rem; }
.ok { color: var(--green); font-size: .87rem; }
code { background: var(--code-bg); border-radius: 6px; padding: 1px 6px; font-size: .85em; }
pre.code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; font-size: .85rem; }
/* material symbols */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; display: inline-block; max-width: 1.4em; overflow: hidden; line-height: 1; font-display: block; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 50%; padding: 8px; line-height: 0; }
.icon-btn:hover { background: var(--bg-soft); color: var(--blue); }
/* footer */
footer.g-footer { color: var(--muted); font-size: .82rem; text-align: center; padding: 40px 16px 48px; border-top: 1px solid var(--border); margin-top: 40px; }
footer.g-footer nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }
footer.g-footer a { color: var(--muted); text-decoration: none; }
footer.g-footer a:hover { color: var(--blue); }
.hidden { display: none !important; }

/* ---------- dark theme overrides ---------- */
[data-theme="dark"] .hero-bg i:nth-child(1) { background: #1a3a5c; }
[data-theme="dark"] .hero-bg i:nth-child(2) { background: #14403a; }
[data-theme="dark"] .hero-bg i:nth-child(3) { background: #1f3a5f; }
[data-theme="dark"] .badge.green { background: #1e3a29; color: var(--green); }
[data-theme="dark"] .badge.red { background: #3e2323; color: var(--red); }
[data-theme="dark"] .badge.amber { background: #3e3320; color: var(--amber); }
[data-theme="dark"] .toast { background: #e8eaed; color: #202124; }
[data-theme="dark"] .toast.ok { background: var(--green); color: #202124; }
[data-theme="dark"] .toast.err { background: var(--red); color: #202124; }
[data-theme="dark"] .btn.primary { box-shadow: 0 1px 3px rgba(138, 180, 248, .35); }
/* theme + lang controls */
[data-theme="dark"] img[src="/logo.png"] { filter: brightness(0) invert(1); }
.icon-btn.lang-btn { font-size: .78rem; font-weight: 700; padding: 7px 9px; letter-spacing: .3px; }

/* ---------- motion: blobs, reveal, shimmer, toast ---------- */
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,30px) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(30px,50px) rotate(12deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-bg i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -80px; background: #d3e3fd; animation: drift1 14s ease-in-out infinite; }
.hero-bg i:nth-child(2) { width: 360px; height: 360px; right: -100px; top: 20px; background: #c2f0e4; animation: drift2 18s ease-in-out infinite; }
.hero-bg i:nth-child(3) { width: 220px; height: 220px; left: 40%; top: 180px; background: #e8f0fe; animation: drift3 20s ease-in-out infinite; }
.hero-shell { position: relative; }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .6s ease forwards; }
.card { transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease; }
.card.lift:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(60, 64, 67, .16); }
.btn { transition: background .15s ease, transform .1s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 8px; }
.btn.primary { box-shadow: 0 1px 3px rgba(26, 115, 232, .4); }
.btn.primary:hover { box-shadow: 0 2px 8px rgba(26, 115, 232, .45); }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--border) 25%, var(--bg-soft) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; color: transparent !important; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s ease-in-out infinite; margin-right: 6px; }
.pop { animation: pop-in .25s ease; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #202124; color: #fff; border-radius: 24px; padding: 10px 20px; font-size: .88rem; box-shadow: 0 4px 16px rgba(0,0,0,.3); animation: pop-in .25s ease; max-width: 90vw; }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
.stats-strip { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 26px 0 6px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.5rem; font-family: "Google Sans", Roboto, sans-serif; color: var(--text); }
.stat span { color: var(--muted); font-size: .82rem; }
.marquee { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee div { display: inline-block; padding-left: 100%; animation: marq 30s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.marquee code { margin: 0 10px; }
@media (max-width: 640px) {
  .row { flex-direction: column; }
  .wrap { padding: 20px 14px 64px; }
  .g-nav a.hide-m { display: none; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.grid { min-width: 560px; }
}
@media (max-width: 480px) {
  .searchbar { padding: 4px 4px 4px 14px; }
  .searchbar .material-symbols-outlined { display: none; }
  .searchbar input { font-size: .95rem; }
  .searchbar .suffix { font-size: .85rem; }
  .searchbar .btn { padding: 8px 14px; font-size: .85rem; }
  .hero { padding: 44px 14px 10px; }
  .hero h1 { font-size: 1.65rem; }
  .card { padding: 18px 16px; }
  .stats-strip { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
