:root {
  --primary: #ff4b2b;
  --primary-soft: rgba(255, 75, 43, 0.14);
  --primary-hover: #ff6a3c;
  --bg-main: #050508;
  --bg-elevated: #0f1016;
  --bg-card: rgba(18, 18, 24, 0.96);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent-glow: 0 0 30px rgba(255, 75, 43, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #151623 0, #050508 45%, #020308 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */

header {
  padding: 28px 20px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(5, 5, 10, 0.92),
      rgba(5, 5, 10, 0.85),
      transparent
    )
    border-box;
}

header h1 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

header h1 span {
  color: var(--primary);
  text-shadow: var(--accent-glow);
}

header p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== Tabs Bar ===== */

.nav-wrapper {
  max-width: 900px;
  margin: 10px auto 16px;
  padding: 0 16px;
  display: flex;
  gap: 10px;
}

.nav-btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 9, 15, 0.95);
  color: var(--text-muted);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease-out;
}

.nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
}

.nav-btn.active {
  background: radial-gradient(circle at top left, #ff7b3d 0, #ff4b2b 35%, #f97316 90%);
  border-color: transparent;
  color: #050608;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--accent-glow);
  transform: translateY(-1px);
}

/* ===== Layout ===== */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 26px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Cards / Panels ===== */

.tool-card,
.seo-article,
.side-card {
  background: radial-gradient(circle at top left, var(--primary-soft), transparent 55%)
    border-box;
  background-color: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.85);
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
}
.guide-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.guide-links h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.guide-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-links li {
  margin-bottom: 6px;
}

.guide-links a {
  font-size: 0.88rem;
  color: #f97316;
  text-decoration: none;
}

.guide-links a:hover {
  text-decoration: underline;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 75, 43, 0.08),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Headings ===== */

h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.seo-article h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.seo-article p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Form fields ===== */

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
  color: #9ca3af;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top left, #111827 0, #020617 50%);
  color: var(--text-main);
  padding: 11px 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

select:focus,
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

/* ===== Buttons ===== */

.generate-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 12px 16px;
  margin-top: 4px;
  background: linear-gradient(135deg, #ff4b2b, #ff7b3d);
  color: #050608;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.1s ease;
}

.generate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
}

.generate-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

/* ===== Loader ===== */

.loader {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 3px solid rgba(75, 85, 99, 0.6);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Result & Summary ===== */

.ai-summary {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.result-box {
  display: none;
  margin-top: 16px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 15px;
  font-size: 0.9rem;
  color: #e5e7eb;
  max-height: 460px;
  overflow-y: auto;
}

/* AI output list formatting */
.ai-output ul {
  padding-left: 18px;
  margin: 0 0 6px;
}

.ai-output li {
  margin-bottom: 6px;
}

.ai-output strong {
  color: #f97316;
}

/* ===== 1RM display ===== */

.rm-box {
  margin-top: 18px;
}

.rm-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rm-number {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 4px;
  color: #f97316;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.45);
}

.rm-extra {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Simple inline affiliate link (inside 1RM) ===== */

.affiliate-highlight {
  display: inline-flex;
  margin-top: 6px;
  align-items: center;
  gap: 0.24rem;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.6);
}

.affiliate-highlight:hover {
  color: #fed7aa;
  border-bottom-style: solid;
}

/* ===== Sidebar / SEO ===== */

.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-article {
  padding: 20px 18px 18px;
}

.seo-article strong {
  color: #e5e7eb;
}

/* ===== Affiliate Cards (sidebar & AI reco) ===== */

.aff-card,
.aff-reco-card {
  margin-top: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 12px 12px 12px;
  font-size: 0.88rem;
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.aff-card-header,
.aff-reco-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.aff-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #ffedd5, #fed7aa);
  font-size: 1rem;
}

.aff-card-title,
.aff-reco-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.aff-card-tag,
.aff-reco-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.aff-card-text,
.aff-reco-text {
  margin: 4px 0 8px;
  font-size: 0.85rem;
  color: #d1d5db;
}

.aff-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.aff-card-cta:hover {
  color: #fed7aa;
}

/* container for AI reco */
.aff-reco-wrapper {
  margin-top: 14px;
}

/* ===== Tabs content ===== */

.tab-content {
  display: none;
  animation: fadeUp 0.25s ease-out;
}

.tab-content.active-tab {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */

footer {
  margin-top: 24px;
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(to top, #020617, transparent);
}

/* ===== Scrollbar styling (Desktop) ===== */

@media (min-width: 768px) {
  .result-box::-webkit-scrollbar {
    width: 6px;
  }
  .result-box::-webkit-scrollbar-track {
    background: transparent;
  }
  .result-box::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
  }
 }/* ===== Cards / Panels ===== */

.tool-card,
.seo-article,
.side-card {
  background: radial-gradient(circle at top left, var(--primary-soft), transparent 55%)
    border-box;
  background-color: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.85);
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 75, 43, 0.08),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Headings ===== */

h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.seo-article h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.seo-article p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Form fields ===== */

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
  color: #9ca3af;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top left, #111827 0, #020617 50%);
  color: var(--text-main);
  padding: 11px 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

select:focus,
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

/* ===== Buttons ===== */

.generate-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 12px 16px;
  margin-top: 4px;
  background: linear-gradient(135deg, #ff4b2b, #ff7b3d);
  color: #050608;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.1s ease;
}

.generate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
}

.generate-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

/* ===== Loader ===== */

.loader {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 3px solid rgba(75, 85, 99, 0.6);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Result & Summary ===== */

.ai-summary {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.result-box {
  display: none;
  margin-top: 16px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 15px;
  font-size: 0.9rem;
  color: #e5e7eb;
  max-height: 460px;
  overflow-y: auto;
}

/* AI output list formatting */
.ai-output ul {
  padding-left: 18px;
  margin: 0 0 6px;
}

.ai-output li {
  margin-bottom: 6px;
}

.ai-output strong {
  color: #f97316;
}

/* ===== 1RM display ===== */

.rm-box {
  margin-top: 18px;
}

.rm-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rm-number {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 4px;
  color: #f97316;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.45);
}

.rm-extra {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Affiliate link ===== */

.affiliate-highlight {
  display: inline-flex;
  margin-top: 6px;
  align-items: center;
  gap: 0.24rem;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.6);
}

.affiliate-highlight:hover {
  color: #fed7aa;
  border-bottom-style: solid;
}

/* ===== Sidebar / SEO ===== */

.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-article {
  padding: 20px 18px 18px;
}

.seo-article strong {
  color: #e5e7eb;
}

/* ===== Affiliate card list ===== */

.supp-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 10px;
}

.supp-list li {
  margin-bottom: 10px;
}

.supp-list a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.supp-list a strong {
  font-weight: 600;
}

.supp-list a .tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.supp-list a:hover strong {
  color: #f97316;
}

.disclaimer {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ===== Tabs content ===== */

.tab-content {
  display: none;
  animation: fadeUp 0.25s ease-out;
}

.tab-content.active-tab {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */

footer {
  margin-top: 24px;
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(to top, #020617, transparent);
}

/* ===== Scrollbar styling (Desktop) ===== */

@media (min-width: 768px) {
  .result-box::-webkit-scrollbar {
    width: 6px;
  }
  .result-box::-webkit-scrollbar-track {
    background: transparent;
  }
  .result-box::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
  }
}
