.btn,
.iconbtn,
.navitem,
.tab,
.menuit,
.admin-nav {
  transition: transform var(--fast), border-color var(--fast), background var(--fast), color var(--fast), box-shadow var(--fast), opacity var(--fast);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 231, 255, 0.28);
  border-radius: var(--radius);
  color: #061016;
  background: linear-gradient(135deg, var(--brand), #dffbff);
  box-shadow: 0 14px 40px rgba(91, 231, 255, 0.16);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover,
.iconbtn:hover,
.navitem:hover,
.tab:hover,
.menuit:hover,
.admin-nav:hover {
  transform: translateY(-1px);
}

.btn.ghost,
.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.btn--primary {
  color: #061016;
  background: linear-gradient(135deg, var(--brand), #f4fbff);
  border-color: rgba(91, 231, 255, 0.44);
}

.btn--sm,
.btn.mini,
.mini {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 12px;
}

.btn--lg {
  min-height: 50px;
  padding: 13px 18px;
}

.btn.danger,
.menuit.danger,
.navitem.danger {
  color: #fff;
  border-color: rgba(255, 77, 100, 0.34);
  background: rgba(255, 77, 100, 0.12);
}

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

.iconbtn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filepill,
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  line-height: 1;
}

.pill.selectpill {
  padding: 0 8px;
}

.badge,
.garage-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(91, 231, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.dot,
.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 17, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.menu[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menuit {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.menuit:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.menusep {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.menuit input[type="file"] {
  display: none;
}

.nav-zone-label {
  margin: 14px 10px 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.navsep {
  height: 1px;
  margin: 12px 6px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.navitem {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.navitem:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.navitem.active {
  color: var(--ink);
  border-color: rgba(91, 231, 255, 0.34);
  background: linear-gradient(90deg, rgba(91, 231, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  color: var(--brand);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.card,
.hero,
.hero-card,
.system-panel,
.intelligence-shell,
.overlay-card,
.modalbox,
.admin-topbar,
.admin-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(145%);
}

.card {
  margin: 0 0 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.card::before,
.hero::before,
.system-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.13), transparent 28%, transparent 70%, rgba(91, 231, 255, 0.08));
  opacity: 0.35;
}

.card > *,
.hero > *,
.system-panel > * {
  position: relative;
}

.card.inner {
  margin: 0;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.kpi,
.item,
.plan-card,
.metric-card,
.budget-card,
.doc-card,
.trip-card,
.garage-card,
.gos-card,
.lr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.item {
  display: grid;
  gap: 5px;
}

.kpi .label,
.item .label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.kpi .value,
.item .value {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.cardhead h2,
.cardhead h3,
.hero h2,
.card h2,
.card h3,
.h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
}

.hero {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(91, 231, 255, 0.12), rgba(255, 255, 255, 0.055) 42%, rgba(255, 61, 85, 0.1)),
    rgba(9, 15, 23, 0.74);
}

.hero-left,
.hero-right {
  min-width: 0;
}

.h-title {
  max-width: 900px;
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.h-sub {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.h-row,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.gap {
  gap: 10px;
}

.wrap {
  flex-wrap: wrap;
}

.between {
  justify-content: space-between;
}

.align {
  align-items: center;
}

.stack {
  display: grid;
  gap: 12px;
}

.hero-card {
  min-width: 210px;
  padding: 18px;
  align-self: stretch;
  display: grid;
  align-content: center;
  background: rgba(255, 255, 255, 0.07);
}

.big {
  margin: 6px 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}

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

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form,
.fxForm,
.admin-form {
  display: grid;
  gap: 13px;
}

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

.fxSpan2 {
  grid-column: 1 / -1;
}

.field,
.fxField,
label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.input,
.textarea,
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(4, 8, 13, 0.58);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

textarea,
.textarea {
  min-height: 108px;
  resize: vertical;
}

select {
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 247, 251, 0.36);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.tab {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.tab.active,
.tab[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(91, 231, 255, 0.3);
  background: rgba(91, 231, 255, 0.13);
}

.panel,
.maint-panel,
.tabpane {
  display: none;
}

.panel.active,
.maint-panel.active,
.tabpane.active {
  display: block;
}

.tabpane[hidden] {
  display: none !important;
}

.tablewrap,
.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.table {
  width: 100%;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}

td {
  color: var(--ink-2);
  font-size: 13px;
}

.aiout,
.aidetails {
  min-height: 64px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  background: rgba(0, 0, 0, 0.16);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.aiout.loading {
  color: var(--brand);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.loading-card,
.toast-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 19, 0.92);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.spinner,
.gos-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.signal-rail {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.signal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(91, 231, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(91, 231, 255, 0.08);
}

.signal-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--brand);
  background: rgba(91, 231, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.signal-title {
  font-weight: 900;
}

.signal-desc {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 2px;
}

.signal-action,
.signal-dismiss {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.modal,
.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal[aria-hidden="true"],
.overlay[aria-hidden="true"] {
  display: none;
}

.modalback {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.modalbox,
.overlay-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: rgba(8, 13, 19, 0.94);
}

.modalhead,
.modalfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modalfoot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modalbody,
.overlay-card {
  padding: 16px;
}

.overlay-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.overlay-sub {
  color: var(--ink-3);
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(8, 13, 19, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  transform: translateY(8px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.garage-cms-admin-wrap {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 95;
}

.garage-cms-admin-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(8, 13, 19, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 900;
}

.gos-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 96;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: #061016;
  background: linear-gradient(135deg, var(--brand), #f4fbff);
  box-shadow: var(--glow-cyan);
  cursor: pointer;
}

.gos-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 97;
  width: min(440px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 19, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.gos-chat-panel[aria-hidden="true"] {
  display: none;
}

.gos-chat-head,
.gos-chat-compose,
.gos-chat-attachments,
.gos-chat-suggestions {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.gos-chat-compose {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.gos-chat-messages {
  overflow: auto;
  padding: 12px;
}

.gos-chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}
