:root {
  /* KegelMaster brand */
  --red: #E63B1E;
  --orange: #FF5A1F;
  --orange-hi: #FF6A21;
  --gradient: linear-gradient(135deg, #E63B1E 0%, #FF5A1F 55%, #FF6A21 100%);
  --gradient-90: linear-gradient(90deg, #E63B1E 0%, #FF5A1F 60%, #FF6A21 100%);
  --gradient-soft: linear-gradient(135deg, rgba(230,59,30,0.18), rgba(255,106,33,0.10));

  /* Dark surfaces */
  --bg: #18191D;            /* deeper than charcoal for contrast */
  --bg-elev: #1E1F23;       /* charcoal */
  --surface: #25272C;       /* card */
  --surface-2: #2B2D31;     /* graphite (elevated) */
  --surface-3: #34363C;     /* hover/inputs */
  --border: rgba(255,255,255,0.06);
  --divider: rgba(255,255,255,0.07);

  /* Text */
  --ink: #F4F5F7;
  --title: #FFFFFF;
  --body: #B8BBC2;
  --muted: #7E828B;

  /* Semantic */
  --primary: #FF5A1F;
  --primary-soft: rgba(255,90,31,0.14);
  --primary-soft-2: rgba(255,90,31,0.22);
  --accent: #E63B1E;
  --danger: #FF4D4D;
  --success: #4ADE80;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-cta: 0 8px 22px rgba(255,90,31,0.45);

  --content-max: 720px;
  --tab-height: 76px;

  --font-display: 'Montserrat', 'Poppins', system-ui, sans-serif;
  --font-sans: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 0; }

/* Logo KegelMaster */
.km-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}
.km-logo .kegel { color: var(--ink); }
.km-logo .master {
  background: var(--gradient-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-right: 2px;
}
.km-logo .master::before,
.km-logo .master::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-90);
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255,90,31,0.5));
}
.km-logo .master::before { top: 38%; transform: rotate(-7deg); }
.km-logo .master::after  { bottom: 22%; transform: rotate(7deg); }

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
}
.brand-header .km-logo { font-size: 22px; }
.brand-header .actions {
  display: flex; gap: 8px;
}
.brand-header .icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--body);
  font-size: 18px;
  border: 1px solid var(--border);
}
