
:root {
  --void: #02030a;
  --blue: #2593ff;
  --purple: #8048f4;
  --violet: #6a8bd8;
  --silver: #f4f2ff;
  --muted: #8a93c2;
  --card: rgba(37, 147, 255, 0.05);
  --border: rgba(140, 165, 235, 0.14);

  /* Design tokens — 1 accent, surfaces nettes, halos discrets */
  --accent: #2f8bff;
  --accent-2: #5f7bff;
  --accent-ink: #06132b;
  --accent-glow: rgba(47, 139, 255, 0.28);
  --line: rgba(140, 165, 235, 0.14);
  --line-strong: rgba(140, 165, 235, 0.3);
  --surface-1: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(12, 17, 34, 0.72);
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 13px;
  --r-xl: 18px;
  --shadow-1: 0 6px 20px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 16px 44px rgba(0, 0, 0, 0.42);
  --ring: 0 0 0 3px rgba(47, 139, 255, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  background: var(--void);
  color: var(--silver);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }


.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula::before, .nebula::after { content: ""; position: absolute; inset: 0; }
.nebula::before {
  background:
    radial-gradient(60% 55% at 22% 62%, rgba(37, 147, 255, 0.22), transparent 70%),
    radial-gradient(55% 50% at 80% 38%, rgba(128, 72, 244, 0.20), transparent 72%),
    radial-gradient(70% 60% at 50% 96%, rgba(106, 139, 216, 0.14), transparent 70%);
  filter: blur(8px);
}
.nebula::after { background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(2, 3, 10, 0.5) 80%, var(--void) 100%); }
#stars { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.page { position: relative; z-index: 3; display: flex; flex-direction: column; overflow-x: hidden; }


header {
  padding: clamp(18px, 3vw, 30px) clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brandmark {
  width: clamp(40px, 6vw, 52px); height: auto; display: block; flex: none;
  filter: drop-shadow(0 0 14px rgba(37, 147, 255, 0.45));
}
.wordmark {
  font-family: "Sora", sans-serif; font-weight: 700;
  font-size: clamp(15px, 2.1vw, 20px); letter-spacing: 0.42em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: 0.42em;
}


.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: #c4d0e8; text-decoration: none; font-family: "Sora", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0.03em; transition: color 0.15s ease; }
.topnav a:hover, .topnav a.active { color: #fff; }
.nav-support { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 107, 74, 0.6); color: #ff7b5c; font-family: "Sora", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.nav-support:hover { background: rgba(255, 107, 74, 0.12); color: #ff9b80; }
@media (max-width: 880px) { .topnav, .nav-support { display: none; } }

.auth { display: flex; align-items: center; gap: 10px; min-height: 42px; position: relative; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 208px;
  background: rgba(9, 13, 30, 0.97); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 7px;
  box-shadow: var(--shadow-2); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 2px;
}
.pm-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: #cfe0ff; transition: background 0.12s ease, color 0.12s ease; }
.pm-item iconify-icon { font-size: 17px; }
.pm-item:hover { background: var(--accent-glow); color: #fff; }
.pm-danger:hover { background: rgba(255, 92, 92, 0.1); color: #ff8a8a; }
.login-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  font-family: "Sora", sans-serif; font-weight: 500; font-size: 14px; color: #fff;
  background: linear-gradient(100deg, #5865f2, #7b6cf2); border: none;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(88, 101, 242, 0.5); }
.profile {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); backdrop-filter: blur(6px);
}
.profile img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.15); }
.profile .pname { font-family: "Sora", sans-serif; font-size: 13px; font-weight: 500; color: #dfe7ff; }
.profile .logout { color: var(--muted); font-size: 15px; display: flex; }
.profile .logout:hover { color: #ff8a8a; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  header { padding: 16px 18px; }
  .brand { gap: 10px; }
  .wordmark { font-size: 16px; letter-spacing: 0.24em; padding-left: 0.24em; }
  .login-btn { padding: 9px 13px; font-size: 13px; }
  .login-btn iconify-icon { font-size: 16px; }
  .profile .pname { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


.section-title {
  font-family: "Sora", sans-serif; font-weight: 600; text-align: center;
  font-size: clamp(24px, 4vw, 38px); letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff, #bcd0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: clamp(13px, 1.6vw, 15px); }


footer { position: relative; z-index: 3; padding: clamp(40px, 6vh, 70px) 20px clamp(28px, 4vh, 46px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(63, 207, 142, 0.3); background: rgba(63, 207, 142, 0.07); color: #3fcf8e;
  font-size: 13px; letter-spacing: 0.06em; backdrop-filter: blur(6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fcf8e; box-shadow: 0 0 0 0 rgba(63, 207, 142, 0.6); animation: ping 2.4s ease-out infinite; }
.domain { font-family: "Sora", sans-serif; font-weight: 500; letter-spacing: 0.12em; font-size: clamp(12px, 1.5vw, 15px); color: #c7d2ff; text-transform: lowercase; }
.domain b { color: var(--blue); font-weight: 600; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 207, 142, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(63, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 207, 142, 0); } }


input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input, textarea, select, button { transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }


.csel { position: relative; display: block; width: 100%; }
.csel-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.csel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: var(--r-md); cursor: pointer; font: inherit; text-align: left;
  color: #eaf0ff; background: var(--surface-2); border: 1px solid var(--line);
}
.csel-btn:hover { border-color: var(--line-strong); }
.csel-btn:focus { outline: none; }
.csel.open .csel-btn { border-color: var(--accent); box-shadow: var(--ring); }
.csel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-arrow { font-size: 18px; color: #8ea2cf; flex: none; transition: transform 0.2s ease, color 0.2s ease; }
.csel.open .csel-arrow { transform: rotate(180deg); color: #bcd9ff; }

.csel-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  background: rgba(9, 13, 30, 0.97); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 6px; backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  max-height: 280px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top center;
  pointer-events: none; transition: opacity 0.16s ease, transform 0.16s ease;
}
.csel.open .csel-pop { opacity: 1; transform: none; pointer-events: auto; }
.csel-pop::-webkit-scrollbar { width: 8px; }
.csel-pop::-webkit-scrollbar-thumb { background: rgba(123, 150, 230, 0.3); border-radius: 8px; }
.csel-opt {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: #c3d2ee; cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
}
.csel-opt:hover, .csel-opt.active { background: var(--accent-glow); color: #fff; }
.csel-opt.sel { color: #fff; }
.csel-opt-label { flex: 1; min-width: 0; }
.csel-check { font-size: 16px; color: var(--accent); opacity: 0; flex: none; }
.csel-opt.sel .csel-check { opacity: 1; }
.csel-new {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 9px; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px; flex: none; color: #04130c;
  background: linear-gradient(100deg, #3fcf8e, #5fd0ff); box-shadow: 0 0 10px rgba(63, 207, 142, 0.45);
}


.amodal-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 3, 10, 0.62); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.18s ease; }
.amodal-ov.show { opacity: 1; }
.amodal { width: 100%; max-width: 410px; background: rgba(9, 13, 30, 0.98); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-2); transform: translateY(10px) scale(0.97); transition: transform 0.18s ease; }
.amodal-ov.show .amodal { transform: none; }
.amodal-title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 9px; }
.amodal-msg { color: #b9c6e6; font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.amodal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.amodal-btn { padding: 10px 18px; border-radius: var(--r-md); font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-1); color: #cfe0ff; transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.amodal-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.amodal-btn.primary { background: var(--accent); border: 1px solid transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px var(--accent-glow); }
.amodal-btn.danger { background: linear-gradient(100deg, #ff5c5c, #ff7b4a); border: none; color: #fff; }
.amodal-btn.primary:hover, .amodal-btn.danger:hover { filter: brightness(1.1); }
.atoast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 210; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.atoast { background: rgba(9, 13, 30, 0.98); border: 1px solid var(--line-strong); color: #eaf0ff; padding: 11px 18px; border-radius: var(--r-md); font-size: 14px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; }
.atoast.show { opacity: 1; transform: none; }
.atoast.danger { border-color: rgba(255, 92, 92, 0.5); color: #ff9b9b; }


.i18n-fab { position: fixed; left: 18px; bottom: 18px; z-index: 150; }
.i18n-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(123, 150, 230, 0.3); background: rgba(9, 13, 30, 0.92); color: #cfe0ff; font-family: "Sora", sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: border-color 0.15s ease, transform 0.15s ease; }
.i18n-btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.i18n-btn iconify-icon { font-size: 17px; }
.i18n-menu { position: absolute; left: 0; bottom: calc(100% + 8px); display: none; flex-direction: column; gap: 2px; padding: 6px; min-width: 150px; border-radius: 12px; border: 1px solid rgba(123, 150, 230, 0.3); background: rgba(9, 13, 30, 0.98); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.i18n-fab.open .i18n-menu { display: flex; }
.i18n-menu button { text-align: left; padding: 9px 12px; border-radius: 9px; border: none; background: none; color: #cfe0ff; font: inherit; font-size: 14px; cursor: pointer; }
.i18n-menu button:hover { background: rgba(37, 147, 255, 0.12); color: #fff; }
.i18n-menu button.on { background: rgba(128, 72, 244, 0.16); color: #fff; }
@media (max-width: 600px) { .i18n-fab { left: 12px; bottom: 12px; } }


.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
