/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --card-bg: #161b22;
  --border: #30363d;
}
.price-table { border-collapse: collapse; width: 100%; }
.price-table th {
  color: #8b949e; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 8px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.price-table td {
  padding: 4px 8px; text-align: center;
  border-bottom: 1px solid rgba(48, 54, 61, .4);
}
.price-table input {
  width: 80px; padding: 4px 6px; text-align: center;
  background: #0d1117; color: #e1e4e8;
  border: 1px solid #30363d; border-radius: 4px;
  font-size: 0.9rem;
}
.currency-switcher {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 18px;
}
.currency-switcher.header-currency {
  margin-bottom: 0;
}
.currency-switcher.header-currency .currency-btn {
  min-width: 34px;
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
}
.currency-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 6px 12px;
  border: 1px solid #30363d; border-radius: 8px;
  background: var(--card-bg); color: #8b949e;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: all .15s ease;
}
.currency-btn:hover {
  border-color: #58a6ff; color: #58a6ff; text-decoration: none;
}
.currency-btn.is-active {
  border-color: #2ea043; color: #3fb950;
  background: rgba(46, 160, 67, .12);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e1e4e8;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #1c1f2b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #f0c674;
}

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Lang Selector (sidebar) ── */
.lang-selector {
  display: flex; gap: 4px; align-items: center;
  padding: 8px 16px;
}
.lang-selector select {
  padding: 4px 8px; border-radius: 4px; border: 1px solid #ccc;
  background: #fff; cursor: pointer; font-size: 13px;
}
.sidebar .lang-selector { border-top: 1px solid #444; margin-top: auto; }
.sidebar .lang-selector select { background: #333; color: #eee; border-color: #555; width: 100%; }

/* ── Public Layout (login, register, claim) ── */
.public-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}
.public-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px 20px;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
}
.public-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0;
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.public-nav-link {
  padding: 6px 14px;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s;
}
.public-nav-link:hover {
  border-color: #58a6ff;
  color: #58a6ff;
  text-decoration: none;
}
.public-nav-link.nav-sep {
  margin-left: 14px;
  border-left: 1px solid #30363d;
  border-radius: 0 6px 6px 0;
}
.public-nav-link.nav-sep:hover {
  border-left-color: #58a6ff;
}
.public-nav-link.nav-download {
  background: linear-gradient(135deg, #2ea043, #238636);
  border-color: #3fb950;
  color: #fff;
  font-weight: 600;
}
.public-nav-link.nav-download:hover {
  background: linear-gradient(135deg, #3fb950, #2ea043);
  border-color: #56d364;
  color: #fff;
}
.lang-buttons {
  display: flex;
  gap: 4px;
}
.lang-btn {
  padding: 4px 12px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #0d1117;
  color: #8b949e;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}
.lang-btn.active {
  background: #1c2a3d;
  border-color: #58a6ff;
  color: #58a6ff;
}
.public-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.panel-root {
  align-self: flex-start;
  width: 100%;
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  background: #161b22;
  border-right: 1px solid #21262d;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #21262d;
}
.sidebar-header h2 {
  font-size: 1.1rem;
  color: #f0f6fc;
  font-weight: 600;
}
.nav {
  list-style: none;
  padding: 12px 0;
}
.nav li { margin: 0; }
.nav-link {
  display: block;
  padding: 10px 20px;
  color: #8b949e;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: #1c2128;
  color: #f0f6fc;
  text-decoration: none;
  border-left: 3px solid #58a6ff;
}
.nav-link.logout { color: #f85149; }
.nav-link.logout:hover { background: #2d1b1b; border-left-color: #f85149; }

/* ── Main ── */
.main {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
}

/* ── Auth Pages ── */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.auth-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #f0f6fc;
}
.subtitle, .auth-subtitle {
  color: #8b949e;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8b949e;
}
.auth-links p {
  margin-top: 8px;
}

/* ── Setup ── */
.setup-options { display: flex; flex-direction: column; gap: 0; }
.setup-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 24px;
}
.setup-card h2 { font-size: 1.1rem; margin-bottom: 8px; color: #f0f6fc; }
.setup-card p { font-size: 0.85rem; color: #8b949e; margin-bottom: 16px; }
.divider {
  text-align: center;
  padding: 16px 0;
  color: #484f58;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #21262d;
}
.hint { display: block; margin-top: 12px; color: #484f58; font-size: 0.8rem; }
.trial-card { border-style: dashed; }
.cred-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.cred-box code {
  font-size: 0.95rem;
  background: #1c1f2b;
  padding: 3px 8px;
  border-radius: 4px;
  word-break: break-all;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; color: #f0f6fc; }

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-success .stat-value { color: #3fb950; }
.stat-danger .stat-value { color: #f85149; }
.stat-warning .stat-value { color: #d29922; }
.stat-info .stat-value { color: #58a6ff; }

/* ── Quick Links ── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.quick-link-card {
  display: block;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}
.quick-link-card:hover {
  border-color: #58a6ff;
  text-decoration: none;
}
.quick-link-card h3 { color: #f0f6fc; margin-bottom: 8px; font-size: 1rem; }
.quick-link-card p { color: #8b949e; font-size: 0.85rem; }

/* ── Card ── */
.card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
}

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th {
  background: #0d1117;
  color: #8b949e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #21262d;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid #21262d;
  color: #e1e4e8;
}
tr:hover td { background: #1c2128; }
.key-cell { font-size: 0.8rem; max-width: 150px; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.hwid-cell { font-size: 0.75rem; color: #8b949e; max-width: 160px; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.empty { text-align: center; color: #484f58; padding: 32px !important; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #1b3a1f; color: #3fb950; }
.badge-primary { background: #1c2a3d; color: #58a6ff; }
.badge-danger { background: #3d1c1c; color: #f85149; }
.badge-warning { background: #3d2e1c; color: #d29922; }
.badge-info { background: #14312e; color: #39c5c5; }
.badge-gray { background: #2d2d2d; color: #8b949e; }
.badge-admin { background: #3a2f12; color: #e3b341; }

/* Admin rows in license table: highlighted and always first */
.admin-row { background: #2a2413 !important; }
.admin-row td { border-top-color: #3a2f12; }

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #8b949e;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e1e4e8;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus {
  border-color: #58a6ff;
}
.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Global dark form controls (also covers admin forms) ── */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="url"],
input[type="search"], select, textarea {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e1e4e8;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="date"]:focus, input[type="url"]:focus,
input[type="search"]:focus, select:focus, textarea:focus {
  border-color: #58a6ff;
}
input::placeholder, textarea::placeholder { color: #6e7681; }
input[type="file"] {
  color: #8b949e;
  font-size: 0.85rem;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e1e4e8;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
input[type="file"]::file-selector-button:hover {
  background: #30363d;
  border-color: #58a6ff;
}
/* Keep compact admin price cells compact (declared above, equal specificity) */
.price-table input[type="text"] {
  width: 80px; padding: 4px 6px; text-align: center;
}
/* Keep .form-group inputs full-width with their original padding */
.form-group input[type="text"], .form-group input[type="email"],
.form-group input[type="password"], .form-group input[type="date"],
.form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: #238636;
  color: #fff;
  border-color: #238636;
}
.btn-success {
  background: #2ea043;
  color: #fff;
  border-color: #2ea043;
}
.btn-success:hover {
  background: #3fb950;
  text-decoration: none;
}
.btn-primary:hover {
  background: #2ea043;
  text-decoration: none;
}
.btn-secondary {
  background: #21262d;
  color: #c9d1d9;
  border-color: #30363d;
}
.btn-secondary:hover {
  background: #30363d;
}
.btn-danger {
  background: #da3633;
  color: #fff;
  border-color: #da3633;
}
.btn-danger:hover {
  background: #f85149;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}
.btn-full, .btn-block {
  width: 100%;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.alert-error { background: #3d1c1c; border: 1px solid #571f1f; color: #f85149; }
.alert-success { background: #1b3a1f; border: 1px solid #238636; color: #3fb950; }
.alert-info { background: #1c2a3d; border: 1px solid #1f3a5f; color: #58a6ff; }

/* ── Modal ── */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-body {
  position: relative;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  z-index: 1;
}
.modal-body h2 { margin-bottom: 20px; color: #f0f6fc; font-size: 1.2rem; }

/* ── Landing Page ── */
.landing {
  text-align: center;
  padding: 2rem;
}
.landing-hero {
  max-width: 480px;
}
.landing-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f0f6fc;
  margin-bottom: 0.5rem;
}
.landing-subtitle {
  font-size: 1.1rem;
  color: #8b949e;
  margin-bottom: 2rem;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.landing-btn {
  width: 280px;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 8px;
}
.landing-download-btn {
  width: 320px;
  padding: 16px 24px;
  font-size: 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #2ea043, #238636);
  color: #fff;
  border: 1px solid #3fb950;
  box-shadow: 0 4px 24px rgba(46, 160, 67, 0.45);
  transition: all 0.15s;
  margin-bottom: 6px;
}
.landing-download-btn:hover {
  background: linear-gradient(135deg, #3fb950, #2ea043);
  border-color: #56d364;
  box-shadow: 0 6px 32px rgba(46, 160, 67, 0.6);
  transform: translateY(-1px);
  text-decoration: none;
}
.landing-footer {
  margin-top: 3rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  color: #484f58;
  font-size: 0.85rem;
}
.landing-footer a {
  color: #8b949e;
  text-decoration: none;
}
.landing-footer a:hover {
  color: #58a6ff;
  text-decoration: underline;
}

/* ── Download Page ── */
.download {
  width: 100%;
  max-width: 760px;
}
.download-head {
  text-align: center;
  margin-bottom: 28px;
}
.download-head h1 {
  font-size: 2rem;
  color: #f0f6fc;
  margin-bottom: 4px;
}
.download-subtitle {
  color: #8b949e;
  font-size: 1rem;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.download-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-gpu,
.dl-cpu {
  border-color: #238636;
}
.download-icon {
  font-size: 2.2rem;
}
.download-card h2 {
  font-size: 1.3rem;
  color: #f0f6fc;
  margin: 0;
}
.download-desc {
  color: #8b949e;
  font-size: 0.9rem;
  min-height: 2.6em;
}
.dl-reqs {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  text-align: left;
  font-size: 0.85rem;
  color: #c9d1d9;
}
.dl-reqs li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.dl-reqs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3fb950;
  font-weight: 700;
}
.btn-download {
  margin-top: auto;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #2ea043, #238636);
  color: #fff;
  border: 1px solid #3fb950;
  box-shadow: 0 3px 16px rgba(46, 160, 67, 0.35);
}
.btn-download:hover {
  background: linear-gradient(135deg, #3fb950, #2ea043);
  box-shadow: 0 4px 20px rgba(46, 160, 67, 0.5);
  text-decoration: none;
  color: #fff;
}
.download-note {
  margin-top: 24px;
  background: #161b22;
  border: 1px dashed #30363d;
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: #8b949e;
}
.download-note h3 {
  color: #f0f6fc;
  font-size: 1rem;
  margin: 0 0 8px;
}
.download-note p {
  margin: 6px 0;
}

/* ── Help Page ── */
.help-page {
  width: 100%;
  max-width: 720px;
}
.pricing-page {
  width: 100%;
  max-width: 600px;
}
.pricing-download-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
  transition: border-color .15s ease;
}
.price-card:hover {
  border-color: #3b434d;
}
.price-card-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-card-value {
  margin: 6px 0 2px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #58a6ff;
  line-height: 1.2;
}
.price-card-note {
  margin: 0;
  color: #8b949e;
  font-size: 0.78rem;
}
.price-card-best {
  border: 1px solid #2ea043;
  background: linear-gradient(180deg, rgba(46, 160, 67, .10), rgba(46, 160, 67, .04) 55%);
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}
.price-card-best .price-card-value {
  color: #3fb950;
}
.price-card-best-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 10px;
  border-radius: 10px;
  background: #2ea043;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.program-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.program-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 260px;
  transition: border-color .15s ease;
}
.program-card:hover {
  border-color: #3b434d;
}
.program-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.program-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f0f6fc;
}
.program-card-desc {
  color: #8b949e;
  font-size: 0.82rem;
  line-height: 1.45;
}
.program-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: nowrap;
}
.program-card-actions .btn-sm {
  flex: 1 1 0;
  padding: 3px 5px;
  font-size: 0.72rem;
  white-space: nowrap;
  line-height: 1.3;
}
.panel-card {
  max-width: 900px;
  margin: 0 auto;
}
.panel-table {
  width: 100%;
  font-size: 0.8rem;
}
.panel-table th,
.panel-table td {
  padding: 8px 12px;
}
.panel-table th {
  font-size: 0.7rem;
  padding: 8px 12px;
}
.panel-table .key-cell,
.panel-table .hwid-cell {
  max-width: 110px;
  font-size: 0.72rem;
}
.panel-table .panel-actions {
  white-space: nowrap;
}
.panel-table .panel-actions .btn-sm {
  padding: 3px 8px;
  font-size: 0.72rem;
  margin-right: 4px;
}
.help-title {
  font-size: 1.8rem;
  color: #f0f6fc;
  margin: 40px 0 20px;
  text-align: center;
}
.help-social {
  background: linear-gradient(135deg, #161b22, #1c2128);
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
  margin-bottom: 8px;
}
.help-social h2 {
  color: #f0f6fc;
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.help-social-sub {
  color: #8b949e;
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 20px;
  color: #c9d1d9;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}
.social-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.social-btn:hover {
  border-color: #58a6ff;
  color: #58a6ff;
  background: #161b22;
  text-decoration: none;
}
.help-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 26px;
  font-size: 0.9rem;
  color: #e1e4e8;
}
.help-card h3 {
  color: #f0f6fc;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.help-card p {
  margin: 12px 0;
}
.help-card ul, .help-card ol {
  margin: 12px 0 14px 24px;
  padding: 0;
}
.help-card li {
  margin: 9px 0;
}
.help-muted {
  color: #8b949e;
  font-size: 0.82rem;
}
.help-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.help-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 6px;
  justify-content: center;
}
.help-tab-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 20px;
  color: #8b949e;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.help-tab-btn:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}
.help-tab-btn.is-active {
  background: linear-gradient(135deg, #1f6feb, #388bfd);
  border-color: #58a6ff;
  color: #fff;
  box-shadow: 0 2px 6px rgba(31, 111, 235, 0.35);
}
.help-tab-panel {
  display: none;
}
.help-tab-panel.is-active {
  display: block;
}
.help-prod-tabs {
  display: flex;
  gap: 12px;
  margin: 26px 0 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.help-prod-btn {
  position: relative;
  padding: 14px 26px;
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: 12px;
  color: #c9d1d9;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.help-prod-btn:hover {
  border-color: #58a6ff;
  color: #58a6ff;
  transform: translateY(-1px);
}
.help-prod-btn.is-active {
  background: linear-gradient(135deg, #2ea043, #238636);
  border-color: #3fb950;
  color: #fff;
}
.help-prod-btn.is-active::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: #3fb950;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d1117;
  border: 2px solid #0d1117;
}
.help-prod-panel {
  display: none;
}
.help-prod-panel.is-active {
  display: block;
}
.help-social-sub {
  color: #8b949e;
  font-size: 0.85rem;
  text-align: center;
  margin: 6px 0 16px;
}
.social-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 6px;
}

/* ── Responsive ── */

/* Small tablets */
@media (max-width: 768px) {
  .public-header { padding: 24px 16px 16px; gap: 10px; }
  .public-title { font-size: 1.2rem; }
  .landing-title { font-size: 2rem; }
  .landing-subtitle { font-size: 1rem; }
  .landing { padding: 1.5rem; }
  .sidebar { width: 180px; }
  .main { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: 1fr; }
}

/* Mobile phones */
@media (max-width: 640px) {
  .public-header { padding: 20px 12px 12px; gap: 8px; }
  .public-title { font-size: 1.1rem; }
  .public-nav { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .public-nav-link { padding: 5px 10px; font-size: 0.8rem; }

  .landing-title { font-size: 1.6rem; }
  .landing-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .landing-btn { width: 100%; max-width: 260px; padding: 12px 20px; font-size: 0.95rem; }
  .landing-footer { flex-direction: column; gap: 8px; align-items: center; }

  .auth-card { padding: 24px 16px; }
  .auth-card h1 { font-size: 1.3rem; }

  .sidebar { width: 44px; }
  .sidebar-header { padding: 10px 8px; }
  .sidebar-header h2 { display: none; }
  .nav-link { padding: 8px 12px; font-size: 0; }
  .nav-link::before { font-size: 1rem; }
  .nav-link[href*="licenses"]::before { content: "📋"; }
  .nav-link[href*="blocked"]::before { content: "🚫"; }
  .nav-link.logout::before { content: "🚪"; }
  .sidebar .lang-selector select { font-size: 0; }
  .sidebar .lang-selector { padding: 4px; }

  .main { padding: 12px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-header h1 { font-size: 1.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.6rem; }
  .quick-links { grid-template-columns: 1fr; }

  .modal-body { margin: 10px; padding: 24px 16px; max-width: none; }
  .table-wrap { overflow-x: auto; }
  th, td { padding: 8px 10px; font-size: 0.75rem; }
  .key-cell { max-width: 120px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .landing-footer { margin-top: 2rem; }
}

/* Very small screens */
@media (max-width: 400px) {
  .public-title { font-size: 1rem; }
  .public-nav-link { padding: 4px 8px; font-size: 0.75rem; }
  .lang-btn { padding: 3px 8px; font-size: 0.7rem; }
  .landing-title { font-size: 1.3rem; }
  .sidebar { width: 36px; }
  .nav-link { padding: 6px 8px; }
  .main { padding: 8px; }
  .stats-grid { grid-template-columns: 1fr; gap: 6px; }
}
