﻿:root {
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #12212b;
  --muted: #5f6f7a;
  --line: #d8e0e5;
  --brand: #0b7662;
  --brand-dark: #085949;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #d6ece7 0%, var(--bg) 48%);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 14px 40px;
  display: grid;
  gap: 14px;
}

.hero {
  padding: 22px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1a2d3d 0%, #155548 100%);
}

.hero h1 { margin: 0 0 8px; }
.hero p { margin: 0; opacity: .95; }

.global-card,
.subscription-card,
.tab-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.global-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.global-card label { flex: 1 1 320px; }

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar {
  display: flex;
  align-items: center;
}

.subscription-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #b8d7cd;
  background: linear-gradient(135deg, #ffffff 0%, #eaf7f1 100%);
}

.subscription-card h2 {
  margin-bottom: 6px;
}

.subscription-card p {
  margin: 0;
}

.subscription-card--active {
  border-color: #9ad0b5;
  background: linear-gradient(135deg, #ffffff 0%, #e5f8ee 100%);
}

.subscription-card--warn {
  border-color: #dfc372;
  background: linear-gradient(135deg, #ffffff 0%, #fff4d8 100%);
}

.subscription-card--blocked {
  border-color: #e2aaa8;
  background: linear-gradient(135deg, #ffffff 0%, #fdebea 100%);
}

.subscription-card--empty {
  border-color: var(--line);
  background: #fff;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tab-btn {
  border: 1px solid #9db1bd;
  background: #fff;
  color: #234;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: #21445d;
  border-color: #21445d;
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

h2 { margin: 0 0 12px; }

form { display: grid; gap: 10px; }

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

label {
  display: block;
  font-size: 14px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #c7d2d9;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  margin-top: 6px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
}

button:hover { background: var(--brand-dark); }

#check-btn { background: #2d3f51; margin-left: 8px; }
.secondary-btn { background: #5e6f7b; }
.secondary-btn:hover { background: #4c5d68; }

.table-wrap { overflow-x: auto; margin-top: 10px; }

.salons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.salons-table th,
.salons-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 9px 7px;
}

.salons-table th { color: var(--muted); }

.action-btn {
  padding: 6px 10px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.action-edit { background: #355168; }
.action-disable { background: #8a3030; }

.muted { color: var(--muted); }
.req { color: #bf2f2f; font-weight: 700; }
.muted a { color: #14598b; font-weight: 700; }
.launch-link { margin-top: 12px; font-weight: 700; }
.launch-link a { color: #0b5c8c; }
.launch-help {
  margin-top: 14px;
  border: 1px solid #d4dfe7;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f7fbfd;
}
.launch-help h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.launch-help ol {
  margin: 0;
  padding-left: 18px;
}
.launch-help li {
  margin-bottom: 4px;
}

.status-msg {
  background: #eaf3f8;
  color: #173446;
  border-radius: 12px;
  border: 1px solid #c8dbe6;
  padding: 10px 12px;
  min-height: 0;
  white-space: pre-wrap;
}

.status-msg.success { background: #e6f7ef; border-color: #b7dec9; color: #154d37; }
.status-msg.error { background: #fdecec; border-color: #f1bcbc; color: #7e2323; }
.status-msg.warn { background: #fff6df; border-color: #ead391; color: #674f08; }
