:root {
  --bg: #0a0d14;
  --bg-alt: #10141d;
  --card: #151a25;
  --card-border: #232939;
  --text: #e7ebf3;
  --text-muted: #8a94a8;
  --text-dim: #5c6577;
  --accent: #2b7cff;
  --accent-2: #7c5cff;
  --accent-glow: rgba(43, 124, 255, 0.35);
  --success: #18a957;
  --danger: #e5484d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* Sticky footer: page-main grows to fill any leftover space below a short
   page's content, so the footer always sits at the bottom of the viewport
   instead of riding up right under the content on short pages. */
.page-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand__logo { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav a:not(.btn) { color: var(--text-muted); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; transition: color .15s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px var(--accent-glow); }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--card-border); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--danger { background: rgba(229,72,77,0.12); color: #ff8589; border-color: rgba(229,72,77,0.35); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; text-align: center; }
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; background: rgba(43,124,255,0.12); border: 1px solid rgba(43,124,255,0.3);
  color: #9cbdff; font-size: 13px; font-weight: 700; margin-bottom: 26px;
}
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; position: relative; }
.hero h1 span { background: linear-gradient(135deg, #9cbdff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto 36px; position: relative; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero__logo { width: 120px; height: 120px; margin: 0 auto 30px; border-radius: 28px; box-shadow: var(--shadow); position: relative; }

/* ---------- Pricing ---------- */
.pricing-hero { position: relative; padding: 90px 0 26px; text-align: center; overflow: hidden; }
.pricing-hero::before {
  content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none; opacity: .7;
}
.pricing-hero__kicker {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 999px; background: rgba(24,169,87,0.12); border: 1px solid rgba(24,169,87,0.3);
  color: #59e08e; font-size: 13px; font-weight: 800; margin-bottom: 22px;
}
.pricing-hero h1 { position: relative; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.pricing-hero p { position: relative; font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.pricing-wrap { padding: 56px 0 60px; }
.pricing-container { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 26px;
  align-items: stretch;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 40%), var(--card);
  border: 1px solid var(--card-border); border-radius: 18px;
  padding: 36px 28px 32px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(43,124,255,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.price-card--featured {
  border: 1px solid rgba(43,124,255,0.6);
  background: linear-gradient(180deg, rgba(43,124,255,0.14), var(--card) 55%);
  box-shadow: 0 24px 60px rgba(43,124,255,0.22);
  transform: translateY(-10px);
}
.price-card--featured:hover { transform: translateY(-14px); box-shadow: 0 28px 70px rgba(43,124,255,0.28); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px var(--accent-glow); white-space: nowrap;
}
.price-card__icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: linear-gradient(135deg, rgba(43,124,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid rgba(43,124,255,0.25);
}
.price-card__duration { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.price-card__tagline { font-size: 12.5px; color: var(--text-dim); margin-bottom: 20px; min-height: 16px; }
.price-card__price-row { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-card__price { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-card__price sup { font-size: 17px; font-weight: 700; margin-right: 1px; top: -1em; }
.price-card__ref { font-size: 14px; color: var(--text-dim); text-decoration: line-through; }
.price-card__perday { font-size: 12.5px; color: var(--text-dim); margin: 9px 0 0; }
.price-card__save {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 14px;
  background: rgba(24,169,87,0.14); color: #59e08e; font-size: 12px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px;
}
.price-card__spacer { flex: 1; min-height: 22px; }
.price-card .btn { width: 100%; margin-top: 22px; }

.pricing-included {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  margin: 52px 0 8px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
}
.pricing-included__item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.pricing-included__item span:first-child { font-size: 16px; }

.pricing-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 26px; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--featured { grid-column: span 2; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .price-card--featured { grid-column: auto; max-width: none; }
  .price-card--featured, .price-card--featured:hover { transform: none; }
  .pricing-hero h1 { font-size: 30px; }
  .pricing-included { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--card-border); padding: 34px 0; margin-top: 40px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer__copy { color: var(--text-dim); font-size: 13px; margin: 0; }
.brand--footer { font-size: 14px; }
.brand--footer .brand__logo { width: 22px; height: 22px; }

/* ---------- Auth pages ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
}
.auth-card__logo { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 18px; }
.auth-card h1 { text-align: center; font-size: 22px; margin: 0 0 6px; }
.auth-card__sub { text-align: center; color: var(--text-muted); font-size: 14px; margin: 0 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--card-border);
  background: var(--bg-alt); color: var(--text); font-size: 14.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a94a8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 38px; cursor: pointer;
}
.field select option { background: var(--bg-alt); color: var(--text); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.auth-card__footer { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.auth-card__footer a { color: var(--accent); font-weight: 700; }
.form-alert {
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; display: none;
}
.form-alert--error { background: rgba(229,72,77,0.12); color: #ff8589; border: 1px solid rgba(229,72,77,0.3); }
.form-alert--success { background: rgba(24,169,87,0.12); color: #59e08e; border: 1px solid rgba(24,169,87,0.3); }
.form-alert.is-visible { display: block; }

/* ---------- Dashboard ---------- */
.dash-wrap { max-width: 960px; margin: 0 auto; padding: 46px 24px 80px; width: 100%; }

.dash-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(43,124,255,0.14), rgba(124,92,255,0.10));
  border: 1px solid rgba(43,124,255,0.25); border-radius: var(--radius);
  padding: 34px 32px; margin-bottom: 26px;
}
.dash-hero__glow {
  position: absolute; top: -140px; right: -100px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none;
}
.dash-hero__text { position: relative; }
.dash-hero__eyebrow { display: block; color: #9cbdff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.dash-hero h1 { margin: 0 0 6px; font-size: 27px; }
.dash-hero p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.dash-hero .btn { position: relative; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 18px 20px;
}
.stat-tile__icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: rgba(43,124,255,0.12);
}
.stat-tile--ok .stat-tile__icon { background: rgba(24,169,87,0.14); }
.stat-tile--warn .stat-tile__icon { background: rgba(229,72,77,0.14); }
.stat-tile__value { font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat-tile__label { color: var(--text-muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.panel { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; font-size: 17px; }

.license-list { display: grid; gap: 14px; }
.license-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 18px 20px;
  transition: border-color .15s;
}
.license-card:hover { border-color: rgba(43,124,255,0.35); }
.license-card__left { display: flex; align-items: center; gap: 14px; }
.license-card__icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: linear-gradient(135deg, rgba(43,124,255,0.18), rgba(124,92,255,0.18));
}
.license-card__right { display: flex; align-items: center; gap: 10px; }
.license-card__key { font-family: 'Consolas', monospace; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; }
.license-card__meta { color: var(--text-muted); font-size: 13px; margin-top: 5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill--ok { background: rgba(24,169,87,0.14); color: #59e08e; }
.pill--warn { background: rgba(229,72,77,0.14); color: #ff8589; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state__badge {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, rgba(43,124,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid rgba(43,124,255,0.3);
}
.empty-state h3 { color: var(--text); margin: 0 0 8px; font-size: 17px; }
.empty-state p { margin: 0 0 22px; font-size: 14px; max-width: 380px; margin-left: auto; margin-right: auto; }

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

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5,7,12,0.72); display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p.modal__sub { margin: 0 0 20px; color: var(--text-muted); font-size: 13.5px; }
.modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.modal__actions .btn { flex: 1; }
.modal__close { position: absolute; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 252px; flex-shrink: 0; background: var(--bg-alt); border-right: 1px solid var(--card-border);
  padding: 30px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { margin-bottom: 36px; padding: 0 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  color: var(--text-muted); font-weight: 700; font-size: 14px; transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-nav a.is-active { background: rgba(43,124,255,0.14); color: #9cbdff; }
.admin-nav__divider { height: 1px; background: var(--card-border); margin: 14px 6px; }
.admin-nav__logout {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 10px;
  color: var(--text-muted); font-weight: 700; font-size: 14px; background: none; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; transition: background .15s, color .15s;
}
.admin-nav__logout:hover { background: rgba(229,72,77,0.1); color: #ff8589; }

.admin-main { flex: 1; min-width: 0; padding: 46px 48px 70px; max-width: 1320px; }
.admin-topbar { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--card-border); }
.admin-topbar h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.admin-topbar p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 18px; align-items: end; }
.form-grid .field { margin: 0; }

.admin-input {
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.admin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th { text-align: left; color: var(--text-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 13px 16px; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
table.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tbody tr { transition: background .12s; }
table.data-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.code-chip { font-family: 'Consolas', monospace; background: var(--bg-alt); border: 1px solid var(--card-border); padding: 4px 9px; border-radius: 7px; font-size: 12.5px; }

.btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }
.table-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- Usage guide ---------- */
.guide-hero { position: relative; padding: 80px 0 30px; text-align: center; overflow: hidden; }
.guide-hero::before {
  content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none; opacity: .7;
}
.guide-hero h1 { position: relative; font-size: 42px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.guide-hero p { position: relative; font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.guide-wrap { max-width: 900px; margin: 0 auto; padding: 30px 24px 100px; }

.guide-section-title { display: flex; align-items: center; gap: 12px; margin: 56px 0 26px; }
.guide-section-title .num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; font-size: 15px; color: #fff; flex-shrink: 0; }
.guide-section-title h2 { margin: 0; font-size: 22px; }

.step-card {
  position: relative; display: flex; gap: 20px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px;
}
.step-card__badge {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: linear-gradient(135deg, rgba(43,124,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid rgba(43,124,255,0.3);
}
.step-card__body { flex: 1; min-width: 0; }
.step-card__eyebrow { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.step-card__title { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.step-card__desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 14px; }
.step-card__desc strong { color: var(--text); }
.step-card .btn { margin-top: 4px; }
.step-connector { width: 2px; height: 20px; background: linear-gradient(var(--card-border), transparent); margin: -8px auto 0; }

.guide-callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; margin: 16px 0;
}
.guide-callout--warn { background: rgba(229,178,72,0.1); border: 1px solid rgba(229,178,72,0.3); color: #e9c374; }
.guide-callout--info { background: rgba(43,124,255,0.1); border: 1px solid rgba(43,124,255,0.3); color: #9cbdff; }
.guide-callout__icon { font-size: 18px; flex-shrink: 0; }
.guide-callout strong { color: inherit; }

.feature-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px;
}
.feature-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feature-card__icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: linear-gradient(135deg, rgba(43,124,255,0.18), rgba(124,92,255,0.18)); border: 1px solid rgba(43,124,255,0.3); flex-shrink: 0; }
.feature-card__head h3 { margin: 0; font-size: 17px; }
.feature-card__head span { display: block; color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.feature-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.feature-card ul li strong { color: var(--text); }
.feature-card ul li code { background: var(--bg-alt); border: 1px solid var(--card-border); border-radius: 5px; padding: 1px 7px; font-size: 12.5px; font-family: 'Consolas', monospace; color: #9cbdff; }

/* ---------- Support tickets ---------- */
.ticket-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.ticket-meta select.admin-input { padding: 7px 10px; font-size: 13px; }

.ticket-thread { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.ticket-msg { max-width: 78%; }
/* "mine"/"theirs" are relative to whoever is VIEWING the thread - the admin
   view maps admin->mine, customer->theirs; the customer view maps the
   opposite, so each side sees their own messages on the right. */
.ticket-msg--mine, .ticket-msg--note { align-self: flex-end; }
.ticket-msg--theirs { align-self: flex-start; }
.ticket-msg__bubble {
  border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
  background: var(--bg-alt); border: 1px solid var(--card-border); word-wrap: break-word;
}
.ticket-msg--mine .ticket-msg__bubble { background: linear-gradient(135deg, rgba(43,124,255,0.16), rgba(124,92,255,0.12)); border-color: rgba(43,124,255,0.3); }
.ticket-msg--note .ticket-msg__bubble { background: rgba(229, 178, 72, 0.12); border-color: rgba(229, 178, 72, 0.35); }
.ticket-msg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); }
.ticket-msg--mine .ticket-msg__head, .ticket-msg--note .ticket-msg__head { justify-content: flex-end; }
.ticket-msg__author { font-weight: 800; color: var(--text-muted); }
.ticket-msg__note-tag { background: rgba(229,178,72,0.18); color: #e9c374; font-weight: 800; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.ticket-msg__body { white-space: pre-wrap; }
.ticket-msg__body--deleted { color: var(--text-dim); font-style: italic; }
.ticket-msg__actions { display: flex; gap: 10px; margin-top: 8px; justify-content: flex-end; }
.ticket-msg__actions button { background: none; border: 0; color: var(--text-dim); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.ticket-msg__actions button:hover { color: var(--text); text-decoration: underline; }
.ticket-msg__edit-form { display: flex; flex-direction: column; gap: 8px; }
.ticket-msg__edit-form textarea { min-height: 70px; }

.ticket-reply-box { margin-top: 24px; }
.ticket-reply-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ticket-reply-tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--card-border);
}
.ticket-reply-tab.is-active { background: rgba(43,124,255,0.16); color: #9cbdff; border-color: rgba(43,124,255,0.4); }
.ticket-reply-tab[data-mode="note"].is-active { background: rgba(229,178,72,0.16); color: #e9c374; border-color: rgba(229,178,72,0.4); }
textarea.admin-input, textarea.field-textarea {
  width: 100%; min-height: 110px; resize: vertical; font-family: inherit; line-height: 1.5;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
textarea.admin-input:focus, textarea.field-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.dept-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--card-border); flex-direction: column; align-items: stretch; padding: 12px 20px; display: none; }
  .site-nav.is-open { display: flex; }
  .hero h1 { font-size: 30px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: auto; position: static; height: auto; }
  .admin-main { padding: 30px 20px 50px; }
}
