:root{
  --bg:#050505;
  --fg:#ffffff;
  --muted:rgba(255,255,255,.72);
  --glass:rgba(255,255,255,.10);
  --glass2:rgba(255,255,255,.14);
  --stroke:rgba(255,255,255,.18);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --orange:#ff6a00;
  --orange2:#ff8a3d;
}

*{box-sizing:border-box}
body.tmfl{
  margin:0; min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--fg);
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:-8%;
  background: url('/assets/images/bg-default.jpg') center/cover no-repeat;
  transform: translate3d(0,0,0) scale(1.08);
  will-change: transform;
  z-index:-3;
}

.bg-overlay{
  position:fixed; inset:0;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(255,106,0,.20), transparent 60%),
    radial-gradient(70% 70% at 80% 20%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.70), rgba(0,0,0,.86));
  z-index:-2;
}

.wrap{ max-width:980px; margin:0 auto; padding:22px 16px 36px; }

.glass{
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar{ padding:14px 16px; display:flex; justify-content:space-between; align-items:center; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.brand .dot{ width:10px; height:10px; border-radius:999px; background:var(--orange); box-shadow:0 0 24px rgba(255,106,0,.5); }
.brand span{ color:var(--fg); }
.brand b{ color:var(--orange); }

.btn{
  display:flex; justify-content:center; align-items:center;
  padding:12px 14px; border-radius:14px;
  color:var(--fg); text-decoration:none;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(180deg, var(--orange2), var(--orange));
  border-color: rgba(255,106,0,.55);
  font-weight:800;
}
.btn.sos{
  background: rgba(255,106,0,.14);
  border-color: rgba(255,106,0,.40);
  font-weight:750;
}
.btn.small{ padding:10px 12px; border-radius:12px; }

.h1{ margin:10px 0 6px; font-size:28px; line-height:1.15; }
.p{ color:var(--muted); margin:0; line-height:1.5; }
.hr{ height:1px; background:rgba(255,255,255,.10); margin:14px 0; border:0; }

.grid{ margin-top:14px; display:grid; gap:14px; grid-template-columns: 1fr 1fr; }
.card{ padding:16px; }
.card h2{ margin:0 0 10px; font-size:15px; color:rgba(255,255,255,.92); letter-spacing:.2px; }
.stack{ display:flex; flex-direction:column; gap:10px; }
.kv{ display:grid; gap:10px; }
.kv > div{ display:flex; justify-content:space-between; gap:10px; }
.kv span{ color:var(--muted); font-size:13px; }
.kv b, .kv a{ font-size:13px; color:var(--fg); text-decoration:none; }

.input, .select, .textarea{
  width:100%;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  padding:12px 12px;
  color:var(--fg);
  outline:none;
}
.textarea{ min-height:110px; resize:vertical; }

.label{ font-size:12px; color:var(--muted); margin:8px 0 6px; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.notice{ padding:12px 12px; border-radius:16px; border:1px solid rgba(255,106,0,.35); background: rgba(255,106,0,.10); color:rgba(255,255,255,.90); }
.error{ padding:12px 12px; border-radius:16px; border:1px solid rgba(255,80,80,.35); background: rgba(255,80,80,.10); }

@media (max-width: 820px){
  .grid{ grid-template-columns:1fr; }
  .row{ grid-template-columns:1fr; }
}
