﻿*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #11110f;
  --bg2: #171715;
  --bg3: #1d1d1a;
  --bg4: #252520;
  --primary: #f1065d;
  --primary2: #c9054d;
  --green: #22c55e;
  --text: #e5e7eb;
  --text2: #9ca3af;
  --white: #ffffff;
  --border: rgba(255, 255, 255, .105);
  --radius: 4px;
  --radius-sm: 4px;
}

@font-face {
  font-family: 'LocalFont';
  src: url('../fonts/font.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'LocalFont', 'Inter', system-ui, sans-serif;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 1px, transparent 1px 6px),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  opacity: 0;
  transition: opacity .25s ease-in-out;
}

body.page-loaded {
  opacity: 1;
}

body.page-exiting {
  opacity: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

#pageProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #f1065d, #ff3b81, #f1065d);
  box-shadow: 0 0 8px rgba(241, 6, 93, 0.8);
  z-index: 10000;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 18, 16, .96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}

.hdr-in {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 44px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-txt {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--white);
}

.brand-dot {
  color: var(--primary);
}

.tabs {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  max-width: min(860px, 60vw);
  overflow-x: auto;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--text2);
  transition: all .2s ease;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--white);
  background: transparent;
  border: 0;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.hdr-btns {
  display: flex;
  gap: 10px;
}

.hdr-btn {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  transition: all .2s ease;
}

.hdr-btn:hover {
  color: var(--white);
  border-color: rgba(14, 165, 233, .45);
  background: rgba(14, 165, 233, .1);
}

.hdr-btn.active,
.hdr-btn--accent {
  background: var(--white);
  border-color: var(--white);
  color: #0a0d12;
}

.hdr-btn--accent:hover {
  box-shadow: 0 6px 22px rgba(255, 255, 255, .12);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .25s ease;
}

.mob-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: rgba(7, 8, 12, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.mob-menu.open {
  display: flex;
}

.mob-tab {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: all .2s ease;
}

.mob-tab:hover {
  color: var(--white);
  background: rgba(14, 165, 233, .08);
}

main {
  padding-top: 48px;
  min-height: calc(100vh - 48px);
}

.accent {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition: all .2s ease;
  border: 1px solid transparent;
}

.btn--fill {
  background: #e7e7df;
  color: #11110f;
  box-shadow: none;
  border-color: rgba(255, 255, 255, .16);
}

.btn--fill:hover {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}

.btn--outline:hover {
  border-color: rgba(14, 165, 233, .45);
  background: rgba(14, 165, 233, .08);
}

.btn--big {
  padding: 14px 30px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
}

.ftr {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.ftr-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}

.ftr-links {
  display: flex;
  gap: 18px;
}

.ftr-links a {
  color: var(--text2);
  transition: color .2s ease;
}

.ftr-links a:hover {
  color: var(--primary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .tabs,
  .hdr-btns {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }
  .ftr-in {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.user-name-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.profile-sub {
  display: inline-flex;
  margin: 0 auto 10px;
  padding: 6px 10px;
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: 999px;
  background: rgba(14, 165, 233, .07);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.profile-logout-btn {
  margin-top: 14px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  transition: transform .18s ease;
}

.logout-btn {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
}

.logout-btn:hover {
  color: var(--white);
  border-color: rgba(14, 165, 233, .4);
}

.user-open {
  border-radius: 50%;
}

.user-avatar.big {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  font-size: 30px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(12px);
  animation: fadeIn .15s ease both;
}

.profile-panel {
  width: min(400px, 100%);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
  text-align: center;
  position: relative;
  animation: modalUp .2s ease both;
}

.profile-panel h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.profile-panel p {
  color: var(--text2);
  font-size: 14px;
  word-break: break-all;
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text2);
  background: rgba(255, 255, 255, .05);
}

.profile-close:hover {
  color: var(--white);
}

#passMsg,
#supportMsg {
  min-height: 18px;
  font-size: 13px;
  margin-top: 10px;
}

#passMsg.ok,
#supportMsg.ok {
  color: var(--green);
}

#passMsg.bad,
#supportMsg.bad {
  color: #ef4444;
}

.policy {
  color: var(--text);
}

.policy h2 {
  color: var(--white);
  margin: 16px 0 6px;
}

.policy p {
  color: var(--text2);
  margin-bottom: 10px;
}

.profile-key {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}

.profile-key p {
  margin: 0;
}

.profile-key-empty {
  color: var(--text2);
  font-size: 13px;
}

.loader-dl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.loader-dl-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 13px;
}

.loader-version-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 165, 233, .08);
  border: 1px solid rgba(14, 165, 233, .15);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.g-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.g-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.g-g--1 {
  width: 600px; height: 600px;
  top: -12%; right: -4%;
  background: #0ea5e9;
  opacity: .3;
}
.g-g--2 {
  width: 500px; height: 500px;
  bottom: -16%; left: -6%;
  background: #10b981;
  opacity: .25;
}
.g-g--3 {
  width: 400px; height: 400px;
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  background: #8b5cf6;
  opacity: .12;
}
}

.g-glass {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: rgba(7,8,12,.12);
}


/* forum-like simple theme overrides */
.g-bg, .g-glass { display: none !important; }
.hdr-btns { margin-left: auto; }
.hdr-btn { border-radius: 3px; background: transparent; }
.hdr-btn--accent { background: var(--primary); border-color: var(--primary); color: var(--white); }
.hdr-btn:hover { border-color: rgba(241, 6, 93, .45); background: rgba(241, 6, 93, .08); }
.mob-menu { top: 48px; background: rgba(18,18,16,.98); }

.profile-menu {
  width: min(350px, calc(100vw - 18px));
  padding: 0;
  text-align: left;
  border-radius: 3px;
  overflow: hidden;
}
.profile-menu .profile-close { top: 8px; right: 8px; }
.profile-menu-tabs { display:flex; gap:24px; height:30px; padding:0 14px; align-items:center; border-bottom:1px solid var(--border); color:var(--text2); font-size:12px; }
.profile-menu-tabs span { height:30px; display:inline-flex; align-items:center; }
.profile-menu-tabs .active { color:var(--white); border-bottom:2px solid var(--primary); }
.profile-menu-head { display:flex; gap:12px; padding:14px; border-bottom:1px solid var(--border); }
.profile-menu-head .user-avatar.big { width:92px; height:92px; font-size:36px; flex:0 0 auto; }
.profile-menu-user h2 { margin:0 0 2px; color:var(--primary); font-size:15px; }
.profile-menu-user p { display:flex; justify-content:space-between; gap:40px; margin:3px 0; color:#8c7db4; font-size:12px; word-break:normal; }
.profile-menu-user b { color:#8c7db4; font-weight:500; }
.profile-menu .profile-sub { margin:0 0 4px; padding:0; border:0; background:transparent; color:var(--white); font-size:12px; font-weight:500; }
.profile-menu-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:7px 14px; border-bottom:1px solid var(--border); }
.profile-menu-grid a, .profile-menu-grid span { padding:4px 0; color:var(--text2); font-size:12px; }
.profile-menu-grid a:hover { color:var(--white); }
.profile-menu #profileLoaderBox, .profile-menu #profileTicketsBox { display:none; }
.profile-menu .profile-key[hidden] { display:none; }
.profile-menu .profile-key { margin:8px 14px; padding:10px; max-height:160px; overflow:auto; }
.profile-menu .profile-logout-btn { display:block; width:calc(100% - 28px); margin:8px 14px; text-align:left; border:0; background:transparent; color:var(--text2); }
.profile-status-input { width:calc(100% - 28px); height:36px; margin:0 14px 12px; padding:0 10px; border:1px solid var(--border); border-radius:3px; background:var(--bg2); color:var(--text2); outline:none; }
.site-toast { position:fixed; right:18px; bottom:18px; z-index:20000; max-width:min(360px, calc(100vw - 36px)); padding:12px 14px; border:1px solid var(--border); border-left:3px solid var(--primary); border-radius:3px; background:rgba(23,23,21,.96); color:var(--white); font-size:13px; opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .18s ease, transform .18s ease; }
.site-toast.show { opacity:1; transform:translateY(0); }
.site-toast.ok { border-left-color:var(--green); }
.site-toast.bad { border-left-color:#ef4444; }
.profile-menu-grid button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.profile-menu-grid button:hover { color: var(--white); }
.profile-account-details {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.profile-account-details[hidden] { display: none; }
.profile-account-details p { margin: 4px 0; font-size: 12px; color: var(--text2); }

.profile-key-card {
  border: 1px solid rgba(241, 6, 93, .24);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(241,6,93,.055), rgba(255,255,255,.018));
  padding: 10px;
}
.profile-key-top,
.profile-key-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.profile-key-title {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}
.profile-key-badge {
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(239,68,68,.12);
  color: #ff8d8d;
  font-size: 10px;
  font-weight: 800;
}
.profile-key-badge.ok { background: rgba(34,197,94,.12); color: var(--green); }
.profile-key-badge.warn { background: rgba(245,158,11,.12); color: #f59e0b; }
.profile-key-code {
  display: block;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(0,0,0,.22);
  color: var(--primary);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-key-meta span {
  color: var(--text2);
  font-size: 11px;
}
.profile-key-meta b {
  color: var(--white);
  font-weight: 800;
}
.profile-key-note {
  margin-top: 8px;
  color: #f59e0b;
  font-size: 11px;
}

.profile-menu .profile-close {
  top: -2px;
  right: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text2);
  line-height: 26px;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.profile-menu .profile-close:hover {
  background: transparent;
  color: var(--primary);
}
