﻿.site-identity {
  min-width: 0;
  flex-shrink: 1;
}

.auth-status-pending .header-ad,
.auth-status-pending .footer-ad,
.auth-status-pending .sidebar-data-section,
.auth-status-pending #navSupporter,
.auth-status-pending #headerAuthArea,
.auth-status-pending #headerStatusArea,
.auth-status-pending #headerUsageArea {
  visibility: hidden;
}

.header-ad {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 728px;
  max-width: min(728px, calc(100% - 620px));
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  z-index: 1;
}

.footer-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto 14px;
  overflow: hidden;
}

.header-ad .adsbygoogle,
.header-ad .admax-ad-slot,
.header-ad ins,
.header-ad iframe,
.footer-ad .adsbygoogle,
.footer-ad .admax-ad-slot,
.footer-ad ins,
.footer-ad iframe {
  display: inline-block !important;
  width: 728px !important;
  max-width: 100% !important;
  height: 90px !important;
  margin: 0 !important;
}

.header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.header-actions-top {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.header-actions-bottom {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
}

.header-actions-top > *,
.header-actions-bottom > * {
  min-height: 40px;
}

.header-actions .button-link,
.header-actions .lang-btn,
.header-actions .auth-btn,
.header-status-area,
.header-usage-area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-actions .auth-btn,
.header-actions .tutorial-launch-btn {
  min-width: 148px;
}

.header-auth-area {
  min-width: 148px;
}

.header-actions .lang-btn {
  min-width: 68px;
}

.header-usage-area {
  min-width: 118px;
}

.header-status-area {
  min-width: 150px;
}

.header-actions .logout-btn {
  min-width: 92px;
}

.admin-auth-status {
  margin-right: 4px;
  color: var(--gold-light);
}

.admin-signout-btn {
  cursor: pointer;
}

.tutorial-launch-btn {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding: 11px 18px;
  border-color: rgba(45, 181, 163, 0.28);
  color: var(--teal-light);
}

.tutorial-launch-btn:hover {
  border-color: rgba(110, 231, 216, 0.56);
  color: #d8fffb;
}

.header-actions .lang-btn {
  width: auto;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.tutorial-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(11, 23, 37, 0.14), rgba(3, 8, 14, 0.52)),
    rgba(3, 8, 14, 0.3);
  backdrop-filter: blur(2px);
}

.tutorial-card {
  position: fixed;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(110, 231, 216, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(135deg, rgba(45, 181, 163, 0.08), rgba(43, 134, 217, 0.08)),
    rgba(8, 17, 27, 0.96);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.tutorial-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tutorial-step-meta {
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tutorial-close-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin-top: 0;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

.tutorial-close-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.tutorial-card h3 {
  margin: 0 0 8px;
  color: #f4fbff;
  font-size: 20px;
  line-height: 1.2;
}

.tutorial-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.tutorial-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
}

.tutorial-status[data-complete="true"] {
  color: var(--teal-light);
}

.tutorial-status[data-complete="false"] {
  color: var(--gold-light);
}

.tutorial-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  pointer-events: auto;
}

.tutorial-nav-btn,
.tutorial-next-btn {
  flex: 1 1 0;
  width: auto;
  margin-top: 0;
}

.tutorial-next-btn {
  border: 1px solid rgba(110, 231, 216, 0.18);
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.92), rgba(43, 134, 217, 0.92));
  color: #f7fffe;
  box-shadow: 0 12px 24px rgba(45, 181, 163, 0.18);
}

.tutorial-next-btn:hover {
  box-shadow: 0 18px 30px rgba(45, 181, 163, 0.24);
}

.tutorial-target {
  position: relative;
  z-index: 55;
  box-shadow:
    0 0 0 2px rgba(110, 231, 216, 0.86),
    0 0 0 10px rgba(45, 181, 163, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.tutorial-target.card {
  transform: none;
}

.guide-page header h1 {
  font-size: clamp(30px, 3vw, 44px);
}

.guide-main {
  align-items: stretch;
}

.guide-hero {
  grid-column: 1 / -1;
  border-color: rgba(45, 181, 163, 0.24);
}

.guide-kicker {
  margin-bottom: 10px;
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-hero h2,
.guide-step-card h2,
.guide-tips h2,
.guide-return-card h2 {
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.guide-hero p,
.guide-step-card p,
.guide-return-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.guide-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.guide-step-card {
  grid-column: span 6;
  min-height: 100%;
}

.guide-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid rgba(110, 231, 216, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.18), rgba(43, 134, 217, 0.16));
  color: #d7fffb;
  font-size: 18px;
  font-weight: 700;
}

.guide-note {
  margin-top: 12px !important;
  color: var(--gold-light) !important;
  font-size: 13px !important;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.guide-primary {
  border: 1px solid rgba(110, 231, 216, 0.18);
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.92), rgba(43, 134, 217, 0.92));
  color: #f7fffe;
  box-shadow: 0 12px 24px rgba(45, 181, 163, 0.18);
}

.guide-primary:hover {
  box-shadow: 0 18px 30px rgba(45, 181, 163, 0.24);
}

.guide-tips {
  grid-column: 1 / -1;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.guide-return-card {
  grid-column: 1 / -1;
  border-color: rgba(123, 198, 255, 0.22);
}

.guide-interactive-main {
  display: block;
  width: min(1280px, calc(100vw - 48px));
}

.guide-experience {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(105, 146, 185, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    linear-gradient(135deg, rgba(45, 181, 163, 0.08), rgba(43, 134, 217, 0.05) 36%, rgba(210, 168, 78, 0.05)),
    rgba(8, 17, 27, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.guide-experience .guide-kicker {
  letter-spacing: 0;
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.guide-progress-step {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(105, 146, 185, 0.16);
  border-radius: 12px;
  background: rgba(8, 17, 27, 0.58);
  color: var(--text-muted);
}

.guide-progress-step span {
  display: block;
  margin-bottom: 3px;
  color: currentColor;
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
}

.guide-progress-step strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-progress-step.is-done {
  border-color: rgba(110, 231, 216, 0.24);
  color: var(--teal-light);
}

.guide-progress-step.is-active {
  border-color: rgba(242, 207, 122, 0.46);
  background: rgba(48, 38, 18, 0.56);
  color: var(--gold-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.guide-stage {
  min-height: 520px;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.guide-stage.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
}

.guide-stage.is-entering {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(2px);
}

.guide-stage-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.42fr);
  gap: 24px;
  align-items: stretch;
}

.guide-copy-panel {
  min-height: 430px;
  padding: 12px 4px 12px 2px;
}

.guide-copy-panel h2 {
  max-width: 480px;
  margin: 0 0 14px;
  color: #f5fbff;
  font-size: clamp(22px, 2.45vw, 32px);
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
}

.guide-copy-panel p {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.guide-workspace {
  position: relative;
  min-width: 0;
  min-height: 430px;
}

.guide-loading {
  margin: 0;
  color: var(--text-secondary);
}

.guide-sample-board,
.guide-result-board,
.guide-form-window {
  position: relative;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(105, 146, 185, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 20%),
    rgba(6, 14, 23, 0.86);
}

.guide-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.guide-timeline-head span {
  display: block;
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-timeline-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 15px;
  letter-spacing: 0;
}

.guide-mini-tabs,
.guide-result-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-mini-tabs span,
.guide-result-controls span,
.guide-result-controls strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(105, 146, 185, 0.18);
  border-radius: 999px;
  background: rgba(12, 26, 42, 0.72);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.guide-mini-tabs .is-active,
.guide-result-controls .is-active {
  border-color: rgba(123, 198, 255, 0.32);
  background: rgba(43, 134, 217, 0.22);
  color: #dff2ff;
}

.guide-result-controls {
  margin-bottom: 12px;
}

.guide-result-controls strong {
  color: var(--gold-light);
}

.guide-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(105, 146, 185, 0.18);
  border-radius: 999px;
  background: rgba(12, 26, 42, 0.72);
}

.guide-zoom-controls button {
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.guide-zoom-controls strong {
  min-width: 54px;
  padding: 0 6px;
  color: var(--gold-light);
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  text-align: center;
}

.guide-timeline-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px;
  border: 1px solid rgba(105, 146, 185, 0.18);
  border-radius: 16px;
  background: rgba(4, 10, 17, 0.72);
  cursor: grab;
}

.guide-timeline-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.guide-demo-timeline {
  position: relative;
  width: 860px;
  height: 340px;
}

.guide-time-tick {
  position: absolute;
  top: 8px;
  color: var(--text-muted);
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
}

.guide-time-tick::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 1px;
  height: 282px;
  background: rgba(105, 146, 185, 0.14);
}

.guide-time-tick.is-major {
  color: var(--text-secondary);
  font-size: 10px;
}

.guide-time-tick.is-five {
  color: #6f879d;
  font-size: 9px;
}

.guide-time-tick.is-major::before {
  background: rgba(123, 198, 255, 0.2);
}

.guide-lane-label {
  position: absolute;
  left: 6px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(123, 198, 255, 0.22);
  border-radius: 999px;
  background: rgba(18, 43, 72, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.guide-lane-a {
  top: 42px;
  color: #7dd3fc;
}

.guide-lane-b {
  top: 180px;
  color: #fdba74;
}

.guide-sub-lane-label {
  position: absolute;
  left: 8px;
  z-index: 2;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.guide-sub-lane-a-ability {
  top: 74px;
}

.guide-sub-lane-a-gcd {
  top: 132px;
}

.guide-sub-lane-b-ability {
  top: 212px;
}

.guide-sub-lane-b-gcd {
  top: 270px;
}

.guide-lane-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px dashed rgba(105, 146, 185, 0.25);
}

.guide-lane-line-a-ability {
  top: 87px;
}

.guide-lane-line-a-gcd {
  top: 145px;
}

.guide-lane-line-b-ability {
  top: 225px;
}

.guide-lane-line-b-gcd {
  top: 283px;
}

.guide-player-divider {
  position: absolute;
  top: 172px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 198, 255, 0.34), rgba(105, 146, 185, 0.16), transparent);
}

.guide-burst-window {
  position: absolute;
  top: 54px;
  width: 150px;
  height: 260px;
  border: 1px solid rgba(110, 231, 216, 0.18);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(45, 181, 163, 0.12), rgba(43, 134, 217, 0.08));
}

.guide-burst-window-label {
  position: absolute;
  top: 58px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 17, 27, 0.76);
  color: var(--teal-light);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

button.guide-skill {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  width: 46px;
  min-width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(123, 198, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 26, 39, 0.98), rgba(8, 15, 24, 0.98));
  color: #f4fbff;
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

button.guide-skill img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

button.guide-skill span {
  display: none;
  padding: 0 3px;
  line-height: 1.1;
  text-align: center;
}

button.guide-skill.is-missing-icon img {
  display: none;
}

button.guide-skill.is-missing-icon span {
  display: inline-flex;
}

button.guide-skill:hover,
button.guide-skill.is-active {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(242, 207, 122, 0.66);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32), 0 0 0 5px rgba(210, 168, 78, 0.12);
}

.guide-skill-gold {
  color: var(--gold-light);
}

.guide-skill-blue {
  color: var(--blue-light);
}

.guide-skill-teal {
  color: var(--teal-light);
}

.guide-skill-purple {
  color: #c4b5fd;
}

.guide-sample-notice {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(105, 146, 185, 0.14);
  color: var(--gold-light);
  font-size: 12px;
  line-height: 1.6;
}

.guide-form-window {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.guide-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.guide-field input,
.guide-field select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  cursor: pointer;
}

.guide-field input[readonly] {
  color: var(--text-primary);
}

button.guide-demo-button {
  width: fit-content;
  min-width: 190px;
  margin-top: 2px;
}

button.guide-demo-button:disabled,
.guide-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.guide-status {
  min-height: 24px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.guide-status.is-success {
  color: var(--teal-light);
}

.guide-status.is-error {
  color: #fca5a5;
}

.guide-status.is-warning {
  color: var(--gold-light);
}

.guide-pointer {
  position: absolute;
  z-index: 6;
  width: 118px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
  transform-origin: right center;
  animation: guide-pointer-slide 1.15s ease-in-out infinite;
  pointer-events: none;
}

.guide-pointer::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--gold-light);
}

.guide-pointer--url-a,
.guide-pointer--fight-b,
.guide-pointer--player-a {
  top: 158px;
  left: -74px;
}

.guide-pointer--url-b,
.guide-pointer--player-b {
  top: 158px;
  right: calc(50% - 20px);
}

.guide-pointer--url-button,
.guide-pointer--fight-button,
.guide-pointer--player-button {
  top: 242px;
  left: -72px;
}

.guide-footer-actions {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.guide-nav-button {
  width: auto;
  min-width: 120px;
  margin: 0;
}

.guide-nav-primary {
  border: 1px solid rgba(110, 231, 216, 0.18);
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.92), rgba(43, 134, 217, 0.92));
  color: #f7fffe;
  box-shadow: 0 12px 24px rgba(45, 181, 163, 0.18);
}

.guide-nav-secondary {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.guide-step-state {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(242, 207, 122, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(210, 168, 78, 0.12), rgba(43, 134, 217, 0.06)),
    rgba(8, 17, 27, 0.74);
  color: #ffe6a8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@keyframes guide-pointer-slide {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-10px);
  }

  50% {
    opacity: 1;
    transform: translateX(6px);
  }
}

.analytics-main {
  align-items: stretch;
}

.analytics-hero {
  grid-column: 1 / -1;
  border-color: rgba(123, 198, 255, 0.24);
}

.analytics-summary-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.analytics-category-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(105, 146, 185, 0.16);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.72);
}

.analytics-category-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.analytics-category-btn.is-active {
  border-color: rgba(222, 193, 122, 0.35);
  background: rgba(222, 193, 122, 0.14);
  color: var(--gold-light);
}

.analytics-metric-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.analytics-metric-card {
  grid-column: span 3;
  min-height: 150px;
}

.analytics-secondary-grid .analytics-secondary-card {
  grid-column: span 3;
  min-height: 128px;
}

.analytics-metric-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analytics-metric-value {
  margin-top: 18px;
  color: var(--gold-light);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.analytics-secondary-value {
  color: var(--blue-light);
  font-size: clamp(26px, 3vw, 38px);
}

.analytics-chart-card,
.analytics-table-card {
  grid-column: 1 / -1;
}

.analytics-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-section-head h2 {
  margin-bottom: 0;
}

.analytics-range-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.analytics-control-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.analytics-range-btn {
  border: 1px solid rgba(105, 146, 185, 0.2);
  background: rgba(7, 16, 28, 0.7);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.analytics-range-btn.is-active {
  border-color: rgba(222, 193, 122, 0.38);
  background: linear-gradient(135deg, rgba(222, 193, 122, 0.2), rgba(132, 96, 30, 0.34));
  color: var(--gold-light);
}

.analytics-bar-chart {
  display: grid;
  gap: 10px;
}

.analytics-line-chart-wrap {
  display: grid;
  gap: 12px;
}

.analytics-line-chart {
  width: 100%;
  min-height: 260px;
  overflow: visible;
}

.analytics-line-grid {
  stroke: rgba(105, 146, 185, 0.18);
  stroke-width: 1;
}

.analytics-line-axis {
  fill: var(--text-secondary);
  font-size: 12px;
}

.analytics-line-path {
  fill: none;
  stroke: var(--series-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.analytics-line-point {
  fill: var(--series-color);
  stroke: rgba(5, 10, 16, 0.95);
  stroke-width: 2;
}

.analytics-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.analytics-line-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-line-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.analytics-bar-label {
  color: var(--text-secondary);
  font-size: 12px;
  text-align: right;
}

.analytics-bar-stack {
  display: grid;
  gap: 6px;
}

.analytics-bar {
  position: relative;
  min-width: 22px;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #f8fbff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-bar.page {
  background: linear-gradient(135deg, rgba(43, 134, 217, 0.92), rgba(21, 68, 136, 0.92));
}

.analytics-bar.compare {
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.92), rgba(14, 105, 95, 0.92));
}

.analytics-bar.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(127, 29, 29, 0.9));
}

.analytics-split-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.analytics-split-grid .analytics-table-card {
  grid-column: span 6;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(105, 146, 185, 0.14);
  text-align: left;
  font-size: 13px;
}

.analytics-table th {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-users-toolbar {
  align-items: flex-start;
}

.analytics-users-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.analytics-users-search select,
.analytics-users-search input {
  min-height: 40px;
  border: 1px solid rgba(105, 146, 185, 0.24);
  border-radius: 10px;
  background: rgba(5, 12, 22, 0.76);
  color: var(--text-primary);
  padding: 0 12px;
}

.analytics-users-search input {
  min-width: 240px;
}

.analytics-users-search button {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 16px;
}

.analytics-users-table td strong,
.analytics-users-table td small {
  display: block;
}

.analytics-users-table td small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  word-break: break-all;
}

.analytics-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.analytics-role-guest {
  background: rgba(127, 182, 221, 0.16);
  color: #9fd0f2;
}

.analytics-role-free {
  background: rgba(45, 181, 163, 0.16);
  color: #68e0cf;
}

.analytics-role-supporter {
  background: rgba(217, 184, 104, 0.18);
  color: var(--gold-light);
}

.analytics-event-list {
  display: grid;
  gap: 10px;
}

.analytics-event-item {
  padding: 12px 14px;
  border: 1px solid rgba(105, 146, 185, 0.16);
  border-radius: 14px;
  background: rgba(5, 11, 19, 0.72);
}

.analytics-event-item-error {
  border-color: rgba(239, 68, 68, 0.22);
}

.analytics-event-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 13px;
}

.analytics-event-head span {
  color: var(--text-muted);
  font-size: 12px;
}

.analytics-event-body {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.analytics-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.feedback-page .header-row {
  align-items: flex-start;
}

.feedback-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

#adminProtectedContent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.feedback-form-card,
.admin-auth-card,
.feedback-admin-summary,
.feedback-admin-controls,
#feedbackGeneralSections,
#feedbackTrashSection {
  grid-column: 1 / -1;
}

.admin-auth-card {
  max-width: 520px;
}

.admin-auth-form {
  display: grid;
  gap: 2px;
}

.admin-auth-message {
  margin-bottom: 8px;
}

.feedback-textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}

.feedback-textarea:focus {
  transform: translateY(-1px);
  background: rgba(12, 23, 36, 0.98);
  border-color: rgba(123, 198, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(43, 134, 217, 0.16);
}

.feedback-response-note {
  margin: 4px 0 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.legal-definition-list {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 10px 18px;
  margin: 18px 0;
}

.legal-definition-list dt {
  color: var(--text-secondary);
  font-weight: 700;
}

.legal-definition-list dd {
  margin: 0;
}

.legal-page .feedback-form-card {
  background: rgba(6, 14, 24, 0.92);
  animation: none;
  opacity: 1;
}

.legal-page .feedback-form-card::after {
  content: none;
}

.legal-page .feedback-form-card > * {
  position: relative;
  z-index: 1;
}

.legal-page .feedback-form-card p,
.legal-page .feedback-form-card dd {
  color: #b9c9dc;
}

.legal-page .feedback-form-card h2,
.legal-page .legal-definition-list dt {
  color: #edf6ff;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feedback-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.feedback-form-actions button {
  width: auto;
  margin-top: 0;
}

.feedback-message {
  margin-top: 0;
}

.feedback-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feedback-summary-item {
  padding: 18px;
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  background: rgba(5, 11, 19, 0.72);
}

.feedback-summary-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-summary-item strong {
  display: block;
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 30px;
}

.feedback-admin-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.feedback-admin-controls .tabs {
  flex: 0 0 auto;
}

.feedback-admin-controls .ghost {
  margin-top: 0;
}

.feedback-category-block + .feedback-category-block {
  margin-top: 24px;
}

.feedback-card-list {
  display: grid;
  gap: 12px;
}

.feedback-entry-card {
  padding: 16px;
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  background: rgba(5, 11, 19, 0.72);
}

.feedback-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.feedback-entry-head strong {
  font-size: 15px;
  color: var(--text-primary);
}

.feedback-entry-head span {
  color: var(--blue-light);
  font-size: 12px;
}

.feedback-entry-meta {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.feedback-entry-body {
  margin: 10px 0 0;
  color: var(--text-primary);
  font-size: 14px;
  white-space: pre-wrap;
}

.feedback-reply-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(123, 198, 255, 0.14);
}

.feedback-reply-list {
  display: grid;
  gap: 10px;
}

.feedback-reply-item {
  padding: 12px;
  border: 1px solid rgba(123, 198, 255, 0.16);
  border-radius: 10px;
  background: rgba(22, 42, 64, 0.42);
}

.feedback-reply-item.is-user-reply {
  border-color: rgba(255, 210, 119, 0.2);
  background: rgba(88, 61, 23, 0.28);
}

.feedback-category-tabs {
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.feedback-category-tabs .tab {
  min-width: 112px;
  gap: 6px;
}

.feedback-category-tabs .tab span {
  color: var(--text-secondary);
  font-size: 11px;
}

.feedback-reply-form {
  display: grid;
  gap: 8px;
}

.feedback-reply-form label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.feedback-reply-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 198, 255, 0.22);
  border-radius: 10px;
  background: rgba(2, 7, 13, 0.8);
  color: var(--text-primary);
  resize: vertical;
}

.feedback-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feedback-entry-actions button {
  width: auto;
  margin-top: 0;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  transform: none;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

