/* Zajednički stil platforme (landing, panel, super-admin) */
:root {
  --bg: #0a0908;
  --bg2: #12100e;
  --bg3: #1a1714;
  --fg: #f3eee8;
  --muted: #9d958c;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .035);
  --gold: #d9b38c;
  --rose: #c9806f;
  --plum: #6d3b57;
  --ok: #7fcf9b;
  --err: #ff8a7a;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
em { font-style: italic; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--gold); margin: 0 0 14px; font-weight: 600; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.logo-mark { display: inline-flex; align-items: center; gap: 10px; font: 500 20px var(--display); text-decoration: none; letter-spacing: -.01em; }
.logo-mark i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, var(--gold), var(--rose), var(--plum), var(--gold)); display: grid; place-items: center; animation: spin 12s linear infinite; }
.logo-mark i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--gold); background: var(--gold); color: #17120d; font: 600 14px var(--body); text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, opacity .2s; white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px var(--gold); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(255, 138, 122, .35); }
.btn-danger:hover { box-shadow: none; border-color: var(--err); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255,255,255,.03); color: var(--fg); font: 15px var(--body); transition: border-color .2s, background .2s;
}
select option { background: var(--bg2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.05); }
input[type="checkbox"] { width: 18px; height: 18px; display: inline-block; margin: 0; accent-color: var(--gold); }
input[type="color"] { padding: 2px; height: 42px; cursor: pointer; }
.switch { display: flex; align-items: center; gap: 12px; color: var(--fg); font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; cursor: pointer; transition: background .25s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .4; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 300; padding: 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 500; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  animation: toastIn .4s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.err { background: var(--err); color: #200; }
@media (max-width: 860px) { .toast { bottom: 96px; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }

.aurora-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.aurora-bg i:nth-child(1) { width: 50vmax; height: 50vmax; left: -10vmax; top: -20vmax; background: var(--gold); opacity: .25; animation: drift1 20s ease-in-out infinite alternate; }
.aurora-bg i:nth-child(2) { width: 40vmax; height: 40vmax; right: -15vmax; top: 20vh; background: var(--plum); animation: drift2 24s ease-in-out infinite alternate; }
.aurora-bg i:nth-child(3) { width: 30vmax; height: 30vmax; left: 30vw; bottom: -15vmax; background: var(--rose); opacity: .25; animation: drift1 28s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(15vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 15vh) scale(.85); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
