﻿* {
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--na-font-sans);
  font-size: var(--na-text-lg);
  line-height: var(--na-leading);
  background: var(--bg) var(--na-bg-image, url("/assets/bg.jpg")) center center / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
  radial-gradient(1200px 600px at 15% 0%, rgba(var(--bg-rgb), 0.12), rgba(var(--bg-rgb), 0) 70%),
  linear-gradient(180deg, rgba(var(--bg-rgb), 0.18) 0%, rgba(var(--bg-rgb), 0.24) 55%, rgba(var(--bg-rgb), 0.32) 100%);
}

[v-cloak] {
  display: none !important;
}

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

a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--na-container-lg);
  margin: 0 auto;
  padding: 0 var(--na-gutter);
}

.main {
  flex: 1 0 auto;
  padding: 28px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(var(--bg-rgb), 0.86);
  border-bottom: 1px solid var(--na-border);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--na-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: var(--na-text-xl);
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: var(--na-text-xs);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav a,
.topnav .linkish {
  padding: 7px 12px;
  border: 0;
  border-radius: var(--na-radius-pill);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: var(--na-text-md);
  cursor: pointer;
  transition: color var(--na-duration-fast) var(--na-ease), background var(--na-duration-fast) var(--na-ease);
}
.topnav a:hover,
.topnav .linkish:hover {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.topnav a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
}

.notify-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.notify-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--na-radius-pill);
  background: var(--primary);
  color: var(--surface);
  font-size: var(--na-text-2xs);
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.45);
}

.notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 320px;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--na-border);
  border-radius: var(--na-radius-lg);
  box-shadow: 0 20px 44px -22px rgba(70, 40, 25, 0.5);
}

.notify-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: var(--surface-soft);
  border-left: 1px solid var(--na-border);
  border-top: 1px solid var(--na-border);
  transform: rotate(45deg);
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--na-border);
  font-size: var(--na-text-sm);
}

.notify-all {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: var(--na-text-xs);
  cursor: pointer;
}

.notify-all:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.notify-list {
  max-height: 280px;
  overflow-y: auto;
}

.notify-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notify-item:hover {
  background: var(--primary-soft);
}

.notify-item-title {
  overflow: hidden;
  color: var(--text-soft);
  font-size: var(--na-text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notify-item.unread .notify-item-title {
  color: var(--text);
  font-weight: 600;
}

.notify-item.unread .notify-item-title::before {
  content: "•";
  margin-right: 5px;
  color: var(--primary);
  font-size: var(--na-text-2xs);
  vertical-align: 1px;
}

.notify-item-time {
  color: var(--muted);
  font-size: var(--na-text-2xs);
}

.notify-empty {
  padding: 22px 12px;
  color: var(--muted);
  font-size: var(--na-text-xs);
  text-align: center;
}

.notify-foot {
  display: block;
  padding: 10px;
  border-top: 1px solid var(--na-border);
  color: var(--primary);
  font-size: var(--na-text-xs);
  text-align: center;
}

.maintenance-main {
  display: grid;
  place-items: center;
  min-height: 58vh;
}

.maintenance-card {
  max-width: 480px;
  padding: 36px 28px;
  text-align: center;
}

.maintenance-icon {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: var(--na-text-4xl);
}

.maintenance-card h1 {
  margin-bottom: 10px;
  font-size: var(--na-text-3xl);
}

.maintenance-card p {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: var(--na-text-md);
  white-space: pre-wrap;
  word-break: break-word;
}

.card {
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--na-border);
  border-radius: var(--na-radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

.card + .card {
  margin-top: 18px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title h2 {
  margin-top: 2px;
  font-size: var(--na-text-xl);
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: var(--na-text-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--na-text-xs);
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--na-text-xs);
  font-weight: 400;
}

.hint-line {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: var(--na-text-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--na-radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--na-text-xs);
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(185, 138, 58, 0.32);
}

.badge-ok {
  background: var(--success-soft);
  color: var(--success);
}

.badge-muted {
  background: rgba(var(--line-rgb), 0.1);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--na-radius-md);
  font: inherit;
  font-size: var(--na-text-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  background: rgba(var(--surface-rgb), 0.62);
  border-color: var(--border);
  cursor: pointer;
  transition: background var(--na-duration-fast) var(--na-ease), color var(--na-duration-fast) var(--na-ease), border-color var(--na-duration-fast) var(--na-ease), transform var(--na-duration-fast) var(--na-ease),
  box-shadow var(--na-duration-fast) var(--na-ease);
  user-select: none;
}

.btn:hover {
  background: var(--surface);
  border-color: rgba(var(--primary-rgb), 0.34);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 60%, var(--primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 10px 22px -14px rgba(var(--primary-rgb), 0.9);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-dark) 100%);
  border-color: transparent;
}

.btn-danger {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.btn-danger:hover {
  background: rgba(var(--primary-rgb), 0.12);
}

.btn-ghost {
  color: var(--text-soft);
  background: rgba(var(--surface-rgb), 0.55);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--surface);
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--na-text-sm);
  border-radius: var(--na-radius-md);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form {
  display: block;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field:last-of-type {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: var(--na-text-sm);
  font-weight: 600;
}

.field-label em.hint {
  display: inline;
  margin: 0;
  font-style: normal;
  font-weight: 400;
}

.input {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--na-border);
  border-radius: var(--na-radius-md);
  background: rgba(var(--surface-rgb), 0.86);
  color: var(--text);
  font: inherit;
  font-size: var(--na-text-md);
  transition: border-color var(--na-duration-fast) var(--na-ease), box-shadow var(--na-duration-fast) var(--na-ease), background var(--na-duration-fast) var(--na-ease);
}

.input::placeholder {
  color: rgba(var(--muted-rgb), 0.75);
}

.input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.input:disabled {
  color: var(--muted);
  background: rgba(var(--line-rgb), 0.06);
  cursor: not-allowed;
}

.input-sm {
  padding: 7px 10px;
  font-size: var(--na-text-md);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.empty {
  padding: 30px 16px;
  color: var(--muted);
  font-size: var(--na-text-md);
  text-align: center;
}

.auth-wrap {
  max-width: 460px;
  margin: 26px auto 0;
}

.auth-card {
  padding: 30px 28px 24px;
}

.auth-head .eyebrow {
  margin-bottom: 8px;
}

.auth-head h1 {
  margin-bottom: 6px;
  font-size: var(--na-text-3xl);
  letter-spacing: 0.01em;
}

.auth-head p {
  margin-bottom: 22px;
  font-size: var(--na-text-sm);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: var(--na-text-sm);
  color: var(--text-soft);
}
