:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #fbfcff;
  --ink: #1d2430;
  --ink-soft: #3f4a5e;
  --ink-muted: #52627e;
  --line: #d9e0ec;
  --link: #1f4dbf;
  --surface-soft: #f7f9fd;
  --surface-subtle: #f8fbff;
  --surface-elevated: #f3f7ff;
  --control-bg: #ffffff;
  --control-border: #9cb4de;
  --control-ink: #244a95;
  --chip-active-bg: #dbe9ff;
  --chip-active-border: #8fb0e8;
  --chip-active-ink: #173a76;
  --section-shadow: 0 6px 18px rgba(17, 29, 51, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Bahnschrift", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.wrap {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  position: relative;
}

.top-actions {
  position: fixed;
  top: 0.55rem;
  right: 0.75rem;
  z-index: 50;
}

.theme-toggle-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--control-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.84rem;
}

.theme-toggle-btn:hover {
  color: var(--chip-active-ink);
  border-color: var(--chip-active-border);
  background: var(--chip-active-bg);
}

.hero {
  text-align: center;
  margin-bottom: 1.8rem;
}

h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1b2f4d;
}

.services {
  display: grid;
  gap: 0.65rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--section-shadow);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.service-card:hover {
  border-color: var(--control-border);
  box-shadow: 0 8px 24px rgba(17, 29, 51, 0.13);
}

.service-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.service-icon {
  font-size: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-name {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}

.service-desc {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.service-arrow {
  font-size: 1rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.service-card:hover .service-arrow {
  color: var(--link);
}

body[data-theme="dark"] {
  --bg: #0d1422;
  --panel: #12161d;
  --panel-2: #1a2029;
  --ink: #e7edf8;
  --ink-soft: #c9d4e8;
  --ink-muted: #9daecb;
  --line: #333f53;
  --link: #9ac0ff;
  --surface-soft: #171c25;
  --surface-subtle: #141922;
  --surface-elevated: #1f2632;
  --control-bg: #222d3d;
  --control-border: #425b7c;
  --control-ink: #e1ebfb;
  --chip-active-bg: #324866;
  --chip-active-border: #52729d;
  --chip-active-ink: #eef4ff;
  --section-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

body[data-theme="dark"] h1 {
  color: #dce8ff;
}

body[data-theme="dark"] .service-card {
  border-color: #2d3d59;
}

body[data-theme="dark"] .service-card:hover {
  border-color: #425b7c;
}

body[data-theme="dark"] .theme-toggle-btn {
  box-shadow: 0 6px 16px rgba(3, 8, 20, 0.4);
}

@media (max-width: 520px) {
  .wrap { padding: 0 0.65rem; }
  .service-card { padding: 0.75rem 0.8rem; }
}
