:root {
  --bg-top: #07111c;
  --bg-bottom: #081423;
  --card-bg: rgba(13, 27, 42, 0.95);
  --card-border: rgba(183, 202, 227, 0.16);
  --text-main: #f7f1e8;
  --text-soft: #d6dfea;
  --text-muted: rgba(214, 223, 234, 0.7);
  --accent: #b7cae3;
  --input-bg: rgba(255, 255, 255, 0.03);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --mirror-bg: radial-gradient(circle at top, rgba(207, 224, 245, 0.09), rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.01) 100%);
  --radius-card: 26px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 30px 16px;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.tool-shell {
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(88, 123, 165, 0.08);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
}

.intro {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 28px;
}

.mirror-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.mirror-frame {
  width: 100%;
  max-width: 440px;
  height: 560px;
  padding: 14px;
  border-radius: 220px 220px 34px 34px;
  background:
    linear-gradient(145deg, rgba(214, 228, 246, 0.2), rgba(99, 126, 157, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 202, 227, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 30px rgba(183, 202, 227, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.mirror-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 210px 210px 24px 24px;
  background: var(--mirror-bg);
  border: 1px solid rgba(183, 202, 227, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px 34px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.mirror-shine {
  position: absolute;
  top: -10%;
  left: 8%;
  width: 30%;
  height: 120%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transform: rotate(12deg);
  filter: blur(2px);
  pointer-events: none;
}

.mirror-label {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.affirmation-wrap {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affirmation-text {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  line-height: 1.5;
  color: var(--text-main);
  max-width: 280px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.affirmation-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.mirror-controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.accordion-group {
  display: grid;
  gap: 16px;
}

.accordion-item {
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.accordion-item:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(183, 202, 227, 0.08);
}

.accordion-item.open {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 24px rgba(183, 202, 227, 0.1);
}

.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-toggle .icon {
  font-size: 1.5rem;
  color: var(--text-soft);
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-toggle .icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
}

.accordion-item.open .accordion-content {
  padding: 0 22px 18px;
}

.affirmation-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.affirmation-list li {
  margin-bottom: 6px;
}

.btn {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: Georgia, "Times New Roman", serif;
}

.btn-primary {
  background: var(--accent);
  color: #102033;
  box-shadow: 0 0 20px rgba(183, 202, 227, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .tool-card {
    padding: 20px;
  }

  .mirror-frame {
    height: 500px;
    max-width: 100%;
  }

  .mirror-surface {
    padding: 32px 22px;
  }

  .affirmation-text {
    max-width: 100%;
    font-size: 1.45rem;
  }

  .accordion-toggle {
    padding: 18px;
  }

  .accordion-item.open .accordion-content {
    padding: 0 18px 18px;
  }

  .mirror-controls {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}