/* AhlasPhone web panels — aligned with src/theme.ts */
:root {
  --bg: #04080A;
  --bg-deep: #020405;
  --surface: #0C1317;
  --surface-raised: #111B20;
  --ink: #F0FAF8;
  --ink-soft: #B8C9C5;
  --muted: #7A918C;
  --line: #1E2A30;
  --line-soft: #162026;
  --brand: #2DD4BF;
  --brand-dark: #0D7377;
  --brand-bright: #5EEAD4;
  --brand-soft: rgba(45, 212, 191, 0.14);
  --hero-from: #0F766E;
  --hero-to: #042F2E;
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --radius: 17px;
  --radius-lg: 28px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 212, 191, 0.08), transparent),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-bright); }

.site-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.6px;
  color: #fff;
}

.site-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 48px;
  display: grid;
  gap: 18px;
}

main.narrow { max-width: 560px; }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2, .card strong:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--brand);
  margin-top: 8px;
  letter-spacing: -0.4px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 6px;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

button, .btn {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #042F2E;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.15s, transform 0.1s;
}

button:hover:not(:disabled) { opacity: 0.92; }
button:active:not(:disabled) { transform: scale(0.98); }

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

button:disabled { opacity: 0.5; cursor: not-allowed; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.muted { color: var(--muted); font-size: 13px; }
.ok { color: var(--ok); }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; }

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

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 600;
}

.license-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.license-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.license-row span:first-child { color: var(--muted); }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--line-soft) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 10px;
  height: 48px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .two-col { grid-template-columns: 1fr !important; }
  .site-header { padding: 16px; }
  main { padding: 18px; }
}

.privacy-body h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.privacy-body ul { padding-left: 1.2rem; }
.privacy-body li { margin: 0.35rem 0; }
