/* Asterion Account Center — glass panels + toggle switches */
:root {
  --acc-bg: #050a12;
  --acc-cyan: #5ec8ff;
  --acc-amber: #f2bc4a;
  --acc-text: #e8f0fa;
  --acc-muted: #8aa0b8;
  --acc-line: rgba(255, 255, 255, 0.1);
  --acc-glass: rgba(12, 20, 34, 0.55);
  --acc-font: 'Rajdhani', 'Segoe UI', sans-serif;
  --acc-display: 'Orbitron', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--acc-font);
  font-weight: 600;
  color: var(--acc-text);
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(40, 100, 180, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(242, 188, 74, 0.06), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0a1422 45%, #050a12 100%);
}

body.acc-page {
  min-height: 100vh;
  padding: 24px 16px 40px;
}

.acc-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.acc-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.acc-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(94, 200, 255, 0.25));
}
.acc-brand-fallback {
  font-family: var(--acc-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--acc-cyan);
  text-transform: uppercase;
}

.acc-bar,
.acc-body {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%),
    var(--acc-glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.acc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.acc-bar-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--acc-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc-cyan);
}
.acc-bar-l i { font-size: 14px; }
.acc-uname {
  color: var(--acc-amber);
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--acc-font);
  font-size: 14px;
  font-weight: 700;
}
.acc-bar-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--acc-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--acc-muted);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.acc-link:hover {
  color: #fff;
  border-color: rgba(94, 200, 255, 0.4);
  background: rgba(94, 200, 255, 0.08);
}
.acc-logout { color: #ff8a96; border-color: rgba(255, 120, 130, 0.35); }
.acc-logout:hover {
  color: #ffc0c6;
  border-color: rgba(255, 120, 130, 0.55);
  background: rgba(255, 80, 90, 0.1);
}

.acc-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
}

.acc-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--acc-line);
  background: rgba(0, 0, 0, 0.2);
}
.acc-mi {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--acc-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.acc-mi i { width: 16px; text-align: center; opacity: 0.85; }
.acc-mi:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.acc-mi.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(40, 120, 200, 0.45), rgba(20, 60, 110, 0.55));
  box-shadow: inset 0 0 0 1px rgba(94, 200, 255, 0.35);
}

.acc-content {
  padding: 20px 22px 24px;
  overflow: auto;
}
.acc-sec { display: none; }
.acc-sec.active { display: block; }
.acc-sec h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--acc-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-cyan);
}
.acc-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--acc-muted);
  line-height: 1.45;
  font-weight: 500;
}

.acc-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.acc-form label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-muted);
}
.acc-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--acc-line);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.acc-input:focus {
  outline: none;
  border-color: rgba(94, 200, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(60, 160, 255, 0.2);
}
.acc-input[readonly] { opacity: 0.75; }
.acc-hint {
  margin: 2px 0 6px;
  font-size: 12px;
  color: var(--acc-muted);
  font-weight: 500;
}
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #4eb8f0, #1a6aaa);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 100, 180, 0.35);
}
.acc-btn:hover { filter: brightness(1.08); }
.acc-btn:disabled { opacity: 0.55; cursor: wait; }

.acc-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.acc-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--acc-line);
  font-size: 12px;
  color: var(--acc-muted);
}
.acc-step.active {
  color: #fff;
  border-color: rgba(94, 200, 255, 0.45);
  background: rgba(94, 200, 255, 0.12);
}
.acc-step b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.acc-step.active b { background: var(--acc-cyan); color: #061018; }

.acc-msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: #ff8a96;
}
#accGateMsg {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 80, 100, 0.12);
  border: 1px solid rgba(255, 120, 140, 0.35);
}
.acc-msg.ok { color: #7dffb0; }

/* ——— Toggle switch (newsletter + reusable) ——— */
.acc-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  color: var(--acc-text);
  margin: 4px 0 8px;
}
.acc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.acc-slider {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.acc-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4f7fb, #c8d4e4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.acc-switch input:checked + .acc-slider {
  background: linear-gradient(135deg, #3a9fd8, #1e6aaa);
  border-color: rgba(94, 200, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 12px rgba(60, 160, 255, 0.25);
}
.acc-switch input:checked + .acc-slider::after {
  transform: translateX(22px);
}
.acc-switch input:focus-visible + .acc-slider {
  outline: 2px solid rgba(94, 200, 255, 0.55);
  outline-offset: 2px;
}

/* ——— Language dropdown ——— */
.acc-langdd {
  position: relative;
  max-width: 320px;
}
.acc-langdd-cur {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(94, 200, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.acc-langdd-cur:hover {
  border-color: rgba(94, 200, 255, 0.6);
  background: rgba(20, 40, 70, 0.45);
}
.acc-langdd-flag { font-size: 18px; line-height: 1; }
.acc-langdd-code {
  font-family: var(--acc-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--acc-cyan);
  min-width: 22px;
}
.acc-langdd-name { flex: 1; }
.acc-langdd-caret { color: var(--acc-muted); font-size: 12px; }
.acc-langdd-menu {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 28, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.acc-langdd.open .acc-langdd-menu { display: block; }
.acc-langdd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--acc-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.acc-langdd-opt:hover { background: rgba(94, 200, 255, 0.1); }
.acc-langdd-opt.active {
  background: rgba(94, 200, 255, 0.18);
  color: #fff;
}

@media (max-width: 720px) {
  .acc-body {
    grid-template-columns: 1fr;
  }
  .acc-menu {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--acc-line);
  }
  .acc-mi { width: auto; flex: 1 1 auto; }
}
