:root {
  --bg: #0b1220;
  --bg2: #11192b;
  --card: rgba(19, 28, 46, 0.92);
  --card-hover: rgba(26, 38, 64, 0.96);
  --text: #eef4ff;
  --muted: #a7b4cf;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #78a9ff;
  --accent-soft: rgba(120, 169, 255, 0.18);
  --accent-box: rgba(120, 169, 255, 0.14);
  --tag: #23324f;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --topbar: rgba(8, 12, 22, 0.45);
}

body[data-theme="blue"] {
  --bg: #08111f;
  --bg2: #0f1b31;
  --card: rgba(17, 31, 54, 0.92);
  --card-hover: rgba(22, 40, 70, 0.98);
  --border: rgba(120, 169, 255, 0.18);
  --accent: #78a9ff;
  --accent-soft: rgba(120, 169, 255, 0.18);
  --accent-box: rgba(120, 169, 255, 0.14);
  --tag: #203452;
  --topbar: rgba(8, 15, 29, 0.55);
}

body[data-theme="cyan"] {
  --bg: #07161a;
  --bg2: #0d252b;
  --card: rgba(15, 41, 47, 0.92);
  --card-hover: rgba(20, 53, 60, 0.98);
  --border: rgba(92, 217, 230, 0.18);
  --accent: #5cd9e6;
  --accent-soft: rgba(92, 217, 230, 0.18);
  --accent-box: rgba(92, 217, 230, 0.14);
  --tag: #1d4650;
  --topbar: rgba(7, 18, 22, 0.55);
}

body[data-theme="green"] {
  --bg: #081810;
  --bg2: #0f2419;
  --card: rgba(16, 40, 28, 0.92);
  --card-hover: rgba(21, 52, 36, 0.98);
  --border: rgba(95, 211, 154, 0.18);
  --accent: #5fd39a;
  --accent-soft: rgba(95, 211, 154, 0.18);
  --accent-box: rgba(95, 211, 154, 0.14);
  --tag: #1d4334;
  --topbar: rgba(8, 21, 15, 0.55);
}

body[data-theme="lime"] {
  --bg: #141909;
  --bg2: #20280d;
  --card: rgba(42, 51, 18, 0.92);
  --card-hover: rgba(54, 66, 23, 0.98);
  --border: rgba(178, 220, 85, 0.18);
  --accent: #b2dc55;
  --accent-soft: rgba(178, 220, 85, 0.18);
  --accent-box: rgba(178, 220, 85, 0.14);
  --tag: #495523;
  --topbar: rgba(20, 24, 8, 0.55);
}

body[data-theme="purple"] {
  --bg: #12091d;
  --bg2: #1b112b;
  --card: rgba(37, 24, 55, 0.92);
  --card-hover: rgba(49, 31, 72, 0.98);
  --border: rgba(179, 140, 255, 0.18);
  --accent: #b38cff;
  --accent-soft: rgba(179, 140, 255, 0.18);
  --accent-box: rgba(179, 140, 255, 0.14);
  --tag: #3b2a57;
  --topbar: rgba(20, 10, 31, 0.55);
}

body[data-theme="pink"] {
  --bg: #1a0a14;
  --bg2: #2a1020;
  --card: rgba(54, 20, 41, 0.92);
  --card-hover: rgba(70, 26, 53, 0.98);
  --border: rgba(255, 120, 190, 0.18);
  --accent: #ff78be;
  --accent-soft: rgba(255, 120, 190, 0.18);
  --accent-box: rgba(255, 120, 190, 0.14);
  --tag: #572743;
  --topbar: rgba(28, 10, 21, 0.55);
}

body[data-theme="orange"] {
  --bg: #1b1008;
  --bg2: #2a190d;
  --card: rgba(58, 34, 18, 0.92);
  --card-hover: rgba(72, 42, 22, 0.98);
  --border: rgba(255, 179, 87, 0.18);
  --accent: #ffb357;
  --accent-soft: rgba(255, 179, 87, 0.18);
  --accent-box: rgba(255, 179, 87, 0.14);
  --tag: #57371f;
  --topbar: rgba(30, 17, 8, 0.55);
}

body[data-theme="red"] {
  --bg: #19090b;
  --bg2: #281114;
  --card: rgba(52, 20, 24, 0.92);
  --card-hover: rgba(68, 26, 31, 0.98);
  --border: rgba(255, 109, 109, 0.18);
  --accent: #ff6d6d;
  --accent-soft: rgba(255, 109, 109, 0.18);
  --accent-box: rgba(255, 109, 109, 0.14);
  --tag: #54252a;
  --topbar: rgba(28, 10, 12, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 28%),
    radial-gradient(circle at bottom left, var(--accent-soft), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--topbar);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 20px;
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.2px;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 100px;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}

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

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-box);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.content {
  flex: 1;
}

.content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  background: var(--tag);
  border: 1px solid var(--border);
  color: #eef4ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.theme-switcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1000;
}

.theme-current {
  width: 25px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.theme-current:hover {
  transform: scale(1.05);
}

.theme-panel {
  position: absolute;
  left: 0;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: rgba(15, 21, 35, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-switcher.open .theme-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-btn {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.theme-btn:hover {
  transform: scale(1.12);
}

.theme-btn.blue {
  background: #78a9ff;
}

.theme-btn.cyan {
  background: #5cd9e6;
}

.theme-btn.green {
  background: #5fd39a;
}

.theme-btn.lime {
  background: #b2dc55;
}

.theme-btn.purple {
  background: #b38cff;
}

.theme-btn.pink {
  background: #ff78be;
}

.theme-btn.orange {
  background: #ffb357;
}

.theme-btn.red {
  background: #ff6d6d;
}

@media (max-width: 640px) {
  .topbar-inner,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    align-items: flex-start;
  }

  .theme-switcher {
    left: 12px;
    bottom: 12px;
  }

  .theme-current {
    width: 22px;
    height: 22px;
  }

  .theme-panel {
    bottom: 44px;
  }
}
