/* SSARP — üks font = väiksem laadimine */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #0a0a0a;
  --bg-panel: #111111;
  --bg-card: rgba(22, 22, 22, 0.92);
  --border: rgba(255, 200, 0, 0.12);
  --text: #f5f5f5;
  --muted: #a0a0a8;
  --accent: #e8b400;
  --accent-bright: #ffcc33;
  --accent-dim: #b8860b;
  --accent-ring: rgba(232, 184, 0, 0.45);
  --steam: #1b2838;
  --steam-hi: #2a475e;
  --glow: rgba(232, 184, 0, 0.18);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --radius: 10px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(232, 180, 0, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 95% 10%, rgba(255, 200, 50, 0.04), transparent 45%),
    linear-gradient(180deg, #000 0%, var(--bg-deep) 45%, #050505 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--nav-h);
  background: transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links > a:not(.btn) {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.nav-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-user span {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #ffcc33 0%, var(--accent) 45%, var(--accent-dim) 100%);
  color: #141109;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(232, 184, 0, 0.28);
  color: #0a0a0a;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-steam {
  background: linear-gradient(180deg, var(--steam-hi), var(--steam));
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-steam:hover {
  color: #fff;
  box-shadow: 0 8px 32px rgba(27, 40, 56, 0.5);
}

.hero {
  padding: clamp(3rem, 10vw, 6rem) 1.5rem 4rem;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(232, 184, 0, 0.45);
  background: rgba(232, 184, 0, 0.08);
  margin-bottom: 1.25rem;
}

.hero-logo {
  width: min(160px, 38vw);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-pill {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  text-align: left;
}

.stat-pill .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-pill .value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-pill .sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.section {
  padding: 3rem 1.5rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(232, 184, 0, 0.3);
  transform: translateY(-3px);
}

.feature-card i {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Login */
.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.login-card img {
  width: 100px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.login-card .lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  text-align: left;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-actions a {
  width: 100%;
}

.login-back {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.login-back a {
  color: var(--muted);
  font-weight: 600;
}

.login-back a:hover {
  color: var(--accent);
}

/* UCP — külgriba + sisu (kuldne SSA bränd) */
.page-dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

.dash-body {
  flex: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

.ucp-sidebar {
  width: 268px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem 0.9rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #101010 0%, #0b0b0b 100%);
}

.ucp-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.45rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.ucp-brand:hover {
  color: var(--text);
}

.ucp-brand img {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ucp-brand-text {
  letter-spacing: 0.06em;
  background: linear-gradient(95deg, #fff 0%, var(--accent-bright) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ucp-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 0.35rem;
}

.ucp-nav-group-label {
  display: block;
  padding: 0.35rem 0.55rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 160, 168, 0.85);
}

.ucp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ucp-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c4c4cc;
  border: 1px solid transparent;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.ucp-nav-link i {
  width: 1.35rem;
  text-align: center;
  color: rgba(160, 160, 168, 0.95);
  font-size: 0.98rem;
}

.ucp-nav-link:hover {
  color: #f2f2f5;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.ucp-nav-link:hover i {
  color: var(--accent);
}

.ucp-nav-link.is-active {
  color: #fff;
  background: rgba(232, 184, 0, 0.09);
  border-color: rgba(232, 184, 0, 0.35);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 0 0 1px rgba(232, 184, 0, 0.06);
}

.ucp-nav-link.is-active i {
  color: var(--accent);
}

.ucp-sidebar-spacer {
  flex: 1;
  min-height: 0.75rem;
}

.ucp-sidebar-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ucp-footer-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
}

.ucp-footer-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.ucp-profile-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.ucp-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 184, 0, 0.4);
}

.ucp-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ucp-profile-name {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ucp-profile-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ucp-logout {
  margin-top: 0.15rem;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 4vw, 2.5rem) 3rem;
  background: linear-gradient(180deg, #0c0c0c 0%, var(--bg-deep) 55%, #080808 100%);
  overflow-y: auto;
}

.dashboard-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-content-inner--wide {
  max-width: min(1024px, 100%);
  margin: 0 auto;
}

.ucp-home {
  padding-bottom: 2rem;
}

.ucp-greeting {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.ucp-greeting-name {
  color: var(--accent);
}

.ucp-sub {
  margin: 0 0 1.65rem !important;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 56ch;
}

.ucp-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ucp-card {
  padding: 1.3rem 1.35rem;
}

.ucp-card--wide {
  grid-column: 1 / -1;
}

.ucp-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.ucp-card-title i {
  color: var(--accent);
}

.ucp-card-stat {
  margin: 0 0 0.3rem;
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.ucp-stat-sep {
  margin: 0 0.12rem;
  color: var(--muted);
  font-weight: 600;
}

.ucp-card-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.ucp-card-meta {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.ucp-card-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
}

.ucp-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.ucp-page-head-text {
  flex: 1;
  min-width: 200px;
}

.ucp-page-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 50ch;
}

.page-title--gold {
  color: var(--accent);
}

.char-page {
  padding-bottom: 2rem;
}

.char-panel {
  padding: 1.35rem 1.4rem 1.5rem;
}

.char-count-line {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.char-toolbar-add {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--glow);
}

@media (max-width: 560px) {
  .char-toolbar-add .char-add-label {
    display: none;
  }

  .char-toolbar-add {
    padding: 0.65rem 0.85rem;
  }
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

.btn-pill {
  border-radius: 999px;
}

.page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

/* Karakterid — tühjus + kaardid */
.char-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(232, 184, 0, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.char-empty-ico {
  font-size: 2.25rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.char-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.char-empty-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.char-empty-text code {
  font-size: 0.85em;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
}

.char-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2rem);
  width: min(520px, 100%);
}

.char-dialog::backdrop {
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(6px);
}

.char-dialog-panel {
  padding: 0;
  overflow: hidden;
}

.char-dialog-panel.glass-card {
  border-radius: 14px;
  border-color: rgba(232, 184, 0, 0.2);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.char-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, #181818 0%, #0e0e0e 100%);
}

.char-dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.char-dialog-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s, color 0.15s;
}

.char-dialog-x:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.char-dialog .char-form {
  padding: 1.35rem 1.35rem 1.5rem;
}

.char-dialog .char-form--stacked .char-field {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c6c6ce;
  gap: 0.4rem;
}

.char-dialog .char-form--stacked .char-field > span:first-child {
  display: block;
  margin-bottom: 0.05rem;
}

.char-dialog .char-field input,
.char-dialog .char-field select {
  border-radius: 11px;
  padding: 0.62rem 0.85rem;
  background: rgba(6, 6, 8, 0.95);
  border-color: rgba(255, 200, 0, 0.12);
}

.char-dialog .char-form-actions {
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 0.5rem;
}

.char-dialog .char-form-actions .btn {
  width: 100%;
}

.char-toolbar-add:disabled,
.char-toolbar-add[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.dash-page-head {
  margin-bottom: 1.5rem;
}

.dashboard-title--left {
  text-align: left;
  margin-bottom: 0.35rem;
}

.dash-page-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 62ch;
}

.dash-page-desc code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
}

.dash-welcome {
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: left;
}

.dash-welcome-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dash-welcome-text {
  flex: 1;
  min-width: 200px;
}

.dash-welcome-lead {
  margin: 0 0 0.5rem;
  color: #b8c5d6;
  font-size: 0.98rem;
  line-height: 1.55;
}

.dash-note {
  margin-top: 0.75rem !important;
  font-size: 0.88rem !important;
}

.dash-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.dash-welcome .dashboard-title {
  text-align: left;
  margin-bottom: 0.35rem;
}

.dash-welcome .dashboard-avatar {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Karakterid — teavitused */
.char-toast {
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: char-toast-in 0.28s ease;
}

.char-toast[hidden] {
  display: none !important;
}

@keyframes char-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.char-toast--ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
}

.char-toast--err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.char-toast--info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.32);
  color: #bfdbfe;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.char-tile {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.char-tile:hover {
  border-color: rgba(232, 184, 0, 0.28);
}

.char-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.char-tile-names h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.char-tile-slot {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.char-tile-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.char-tile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.82rem;
}

.char-tile-meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.char-tile-meta dd {
  margin: 0.15rem 0 0;
  color: #e2e8f0;
}

.char-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem 1rem;
}

.char-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.char-field-span {
  grid-column: 1 / -1;
}

.char-field input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.95);
  color: var(--text);
}

.char-field input:focus,
.char-field select:focus {
  outline: none;
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px rgba(232, 184, 0, 0.12);
}

.char-field select {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
  color: var(--text);
  cursor: pointer;
}

.char-form--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.char-field-full {
  width: 100%;
}

.char-field-hint {
  font-weight: 500;
  opacity: 0.75;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}

.char-field-slot input {
  max-width: 120px;
}

.char-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

@media (max-width: 900px) {
  .dash-body {
    flex-direction: column;
  }

  .ucp-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1rem;
    padding: 1rem 1rem 0.85rem;
  }

  .ucp-brand {
    width: 100%;
    margin-bottom: 0.35rem;
    padding-bottom: 0.75rem;
  }

  .ucp-nav {
    flex: 1 1 100%;
    width: 100%;
  }

  .ucp-sidebar-spacer {
    display: none;
  }

  .ucp-sidebar-footer {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

  .ucp-profile-card {
    flex: 1 1 200px;
  }

  .ucp-logout {
    flex: 1 1 120px;
  }

  .ucp-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .char-toolbar-add {
    width: 100%;
    justify-content: center;
  }
}

.glass-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.dashboard-card {
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.dashboard-card-wide {
  max-width: 560px;
  text-align: left;
}

.dashboard-card-wide .dashboard-title {
  text-align: left;
}

.dashboard-avatar {
  border-radius: 50%;
  border: 3px solid rgba(232, 184, 0, 0.45);
  margin-bottom: 1.25rem;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Avaleht — lihtne, kiire (vähem blur/grid/filtrit) */
body.page-home::before {
  background: #0c0c0c;
}

body.page-home::after {
  display: none;
}

body.page-home .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #0c0c0c;
}

.home-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.home-hero {
  padding: 2.5rem 0 2rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.home-hero .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.home-kicker {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-hero .hero-logo {
  width: 96px;
  height: auto;
  margin-bottom: 1.35rem;
  filter: none;
  border-radius: 12px;
}

.home-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}

.home-title-accent {
  color: var(--accent);
}

.home-lead {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin: 0 auto 1.65rem !important;
  max-width: 28rem;
}

.home-actions {
  margin-bottom: 1.85rem !important;
  gap: 0.6rem;
}

.page-home .stat-pill,
.page-home .feature-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #141414;
}

.page-home .feature-card {
  transition: border-color 0.15s ease;
}

.page-home .feature-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
}

.page-home .btn-primary {
  box-shadow: none;
}

.page-home .btn-primary:hover {
  box-shadow: 0 2px 14px rgba(232, 184, 0, 0.18);
}

.home-stats {
  max-width: 32rem;
}

.home-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1.25rem;
}

.home-features {
  padding: 2rem 0 3rem;
}

.home-features .features-grid {
  gap: 1rem;
}

.home-features .feature-card {
  padding: 1.25rem 1.2rem;
}

.home-features .feature-card i {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  opacity: 0.95;
}

.home-features .feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active {
    transform: none;
  }

  .page-home .feature-card {
    transition: none;
  }
}
