/* assets/styles.css — обновлённый стиль */
:root{
  --bg1:#0f1724; --bg2:#072033;
  --accent:#7be3ff; --accent-2:#4bcfff;
  --muted:#9aa6b2; --text:#e6eef6;
  --panel-bg:rgba(13,20,30,0.62);
  --panel-border:rgba(255,255,255,0.04);
  --panel-shadow:0 14px 40px rgba(2,6,23,0.6);
  --radius:12px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background:linear-gradient(180deg,var(--bg1),var(--bg2) 60%); color:var(--text);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  padding:28px;
}
.card{
  width:min(1080px,96%); max-width:1080px; padding:48px; border-radius:18px; background:var(--panel-bg);
  box-shadow:var(--panel-shadow); display:flex; gap:40px; align-items:flex-start; justify-content:space-between; margin:12px auto;
}
.hero{ flex:1 1 60% }
h1{ margin:0 0 12px 0; font-size:38px; font-weight:800 }
.lead{ margin:0 0 18px 0; color:var(--muted) }

/* links/buttons */
a.tg{ display:inline-flex; gap:10px; align-items:center; padding:10px 14px; border-radius:10px; color:var(--accent); text-decoration:none; background: rgba(123,227,255,0.06); border:1px solid rgba(123,227,255,0.04); }
.btn-primary{ display:inline-flex; align-items:center; gap:10px; padding:10px 16px; border-radius:12px; border:none; cursor:pointer; background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:#012024; font-weight:800; box-shadow:0 10px 30px rgba(11,28,40,0.25); }

/* meta */
.meta{ width:320px; display:flex; flex-direction:column; gap:18px; align-items:flex-end; }
.meta .when{ padding:18px 16px; border-radius:12px; background: var(--panel-bg); color:var(--muted); font-size:14px; border: 1px solid var(--panel-border); box-shadow: 0 8px 22px rgba(2,6,23,0.35); width:100%; }

/* forms */
input,textarea,select{ font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial; }
input[type="email"],input[type="text"],input[type="password"],textarea{ border-radius:10px;padding:12px;border:1px solid rgba(255,255,255,0.04); background:rgba(255,255,255,0.02); color:var(--text); width:100%; box-sizing:border-box; }
textarea{ min-height:120px; resize:vertical; }

.small-muted{ color:#8fa0aa; font-size:13px }

/* modal */
.modal-backdrop{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:linear-gradient(180deg, rgba(3,6,10,0.45), rgba(3,6,10,0.55)); z-index:300; }
.modal{ background: linear-gradient(180deg,#fff,#f7fbff); border-radius:12px; padding:22px; width:min(520px,92%); text-align:center; color:#081425; border:1px solid rgba(6,10,24,0.06); }
.modal .close{ padding:8px 12px; border-radius:8px; background:#0b2740; color:#fff; border:none; cursor:pointer }

/* fullscreen auth */
.auth-shell{ min-height:100vh; display:flex; align-items:stretch; justify-content:stretch; }
.auth-left{ width:50%; padding:64px 56px; display:flex; flex-direction:column; justify-content:center; gap:20px; background:linear-gradient(135deg, rgba(123,227,255,0.06), rgba(75,207,255,0.03)); }
.auth-left .logo{ width:84px;height:84px;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#071323; font-weight:900; font-size:28px; display:flex; align-items:center; justify-content:center; }
.auth-left h2{ margin:0; font-size:34px; font-weight:900; }
.auth-left p{ margin:0; color:var(--muted); max-width:520px; }

.auth-right{ width:50%; display:flex; align-items:center; justify-content:center; padding:48px; background:linear-gradient(180deg, rgba(6,12,20,0.6), rgba(6,12,20,0.55)); }
.auth-card{ width:100%; max-width:520px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:16px; padding:28px; box-shadow:0 30px 80px rgba(2,6,23,0.55); border:1px solid rgba(255,255,255,0.03); }
.auth-card h3{ margin:0 0 8px 0; font-size:22px; font-weight:800; }
.hint{ color:var(--muted); margin-bottom:14px; }
.form-row{ display:flex; gap:10px; margin-bottom:12px; }
.form-row.column{ flex-direction:column; }

.flash{ padding:10px 12px; border-radius:10px; margin-bottom:12px; font-weight:700; }
.flash.success{ background:#e6ffef; color:#04603f; }
.flash.error{ background:#fff4f4; color:#5a1a1a; }

.link-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px; font-size:14px; color:var(--muted); }

.dashboard-shell{ min-height:100vh; display:grid; grid-template-columns:260px 1fr; gap:28px; padding:28px; box-sizing:border-box; }
@media(max-width:1000px){ .dashboard-shell{ grid-template-columns:1fr; padding:16px; } }
.dashboard-sidebar{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:16px; padding:18px; box-shadow:0 20px 50px rgba(2,6,23,0.5); border:1px solid rgba(255,255,255,0.03); color:var(--text); display:flex; flex-direction:column; gap:14px; }
.user-card{ display:flex; gap:12px; align-items:center; }
.avatar{ width:56px; height:56px; border-radius:12px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#071323; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; }
.menu{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.menu a{ color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:8px; display:block; }
.menu a.active, .menu a:hover{ background:rgba(123,227,255,0.04); color:var(--accent); font-weight:700; }

.dashboard-main{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:16px; padding:22px; box-shadow:0 20px 50px rgba(2,6,23,0.5); border:1px solid rgba(255,255,255,0.03); color:var(--text); min-height:60vh; }

.profile-grid{ display:grid; grid-template-columns:1fr 320px; gap:18px; }
@media(max-width:1000px){ .profile-grid{ grid-template-columns:1fr; } }

.feature{ background: var(--panel-bg); padding:14px; border-radius:12px; border:1px solid var(--panel-border); box-shadow: 0 10px 30px rgba(2,6,23,0.35); margin-bottom:12px; }

.footer-note{ font-size:13px; color:var(--muted); text-align:center; margin-top:10px; }

@media (max-width:760px){
  body{ padding:12px; }
  .card{ flex-direction:column; padding:18px; gap:16px; }
  .auth-left{ display:none; }
  .auth-right{ width:100%; padding:22px; }
  .auth-card{ padding:18px; }
  .modal-backdrop{ align-items:flex-start; padding-top:60px; }
  .modal{ width:94%; max-width:420px; }
}