﻿.creatine-page,
.creatine-page *,
.creatine-page *::before,
.creatine-page *::after {
  box-sizing: border-box;
}

.creatine-page {
  width: auto;
  max-width: calc(100vw - var(--sidebar-width));
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(109, 128, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(72, 219, 201, 0.14), transparent 24%),
    var(--bg-primary);
  min-height: 100vh;
}

.creatine-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 110px;
}

.creatine-hero {
  padding: 0 20px;
  margin: 0 0 26px;
}

.creatine-hero h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #f6fbff;
  max-width: 14ch;
}

.creatine-hero p {
  margin: 12px 0 0;
  max-width: 840px;
  color: #92a7bc;
  font-size: 21px;
  line-height: 1.55;
}

.creatine-layout,
.creatine-main-grid,
.creatine-left-stack,
.creatine-side-stack,
.input-card,
.result-card,
.protocol-card,
.insight-card,
.advice-card {
  min-width: 0;
}

.creatine-card,
.field-row,
.top-toggle-grid,
.segment-grid,
.quick-rules,
.protocol-list,
.insight-list,
.tips-list,
.result-status,
.form-actions {
  min-width: 0;
}

.creatine-layout {
  display: grid;
  gap: 24px;
}

.creatine-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.creatine-left-stack,
.creatine-side-stack {
  display: grid;
  gap: 24px;
}

.creatine-card {
  background: linear-gradient(180deg, rgba(28, 41, 52, 0.98), rgba(22, 33, 42, 0.98));
  border: 1px solid rgba(92, 170, 226, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.input-card,
.result-card,
.protocol-card,
.insight-card {
  padding: 28px;
}

.field-stack {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  gap: 10px;
}

.field-row.fit-field {
  gap: 5px;
  padding: 10px 0;
}

.top-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.top-toggle-grid.fit-grid-2 {
  gap: 10px;
}

.toggle-row.fit-segmented {
  min-width: 0;
}

.toggle-chip {
  min-width: 0;
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #8ea2b7;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.25s ease;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 18px;
  background: rgba(17, 28, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell.fit-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.input-shell:focus-within {
  border-color: rgba(99, 183, 232, 0.6);
  box-shadow: 0 0 0 1px rgba(99, 183, 232, 0.12);
}

.input-shell input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f6fbff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.input-unit {
  position: static !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  color: #7d92a8;
  font-size: 14px;
  font-weight: 800;
  text-transform: lowercase;
}

.input-help {
  margin: 0;
  color: #7f93a8;
  font-size: 13px;
  line-height: 1.55;
}

.segment-grid {
  display: grid;
  gap: 12px;
}

.phase-option,
.type-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(18, 29, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.phase-option:hover,
.type-option:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.phase-option.active,
.type-option.active {
  background: linear-gradient(135deg, rgba(46, 86, 123, 0.46), rgba(30, 56, 90, 0.24));
  border-color: rgba(97, 183, 233, 0.6);
  box-shadow: 0 0 0 1px rgba(97, 183, 233, 0.12) inset;
}

.option-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #eef7ff;
}

.option-copy span {
  display: block;
  margin-top: 6px;
  color: #879cb1;
  font-size: 15px;
  line-height: 1.5;
}

.option-chip {
  align-self: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dcecff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.field-feedback {
  min-height: 18px;
  color: #ff835d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.quick-rules {
  display: grid;
  gap: 12px;
}

.quick-rule {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(18, 29, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #a6b9cc;
  font-size: 14px;
  line-height: 1.6;
}

.quick-rule i {
  color: #69bef2;
  margin-top: 2px;
}

.quick-rule strong {
  color: #eef8ff;
}

.primary-action,
.secondary-action {
  min-height: 58px;
  padding: 0 22px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-action {
  background: linear-gradient(135deg, #63b7e8, #4f94f2);
  color: #07131d;
  box-shadow: 0 18px 36px rgba(79, 148, 242, 0.22);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8edf9;
}

.secondary-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.result-card {
  background: linear-gradient(145deg, rgba(18, 28, 55, 0.98), rgba(30, 51, 83, 0.95));
  box-shadow: 0 28px 54px rgba(8, 18, 42, 0.35), 0 0 0 1px rgba(60, 128, 212, 0.12) inset;
}

.result-empty-state[hidden],
.result-shell[hidden] {
  display: none !important;
}

.result-empty-state {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 22px 0 6px;
}

.empty-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(99, 183, 232, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #69bef2;
  font-size: 30px;
}

.result-empty-state h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #f4fbff;
  letter-spacing: -0.03em;
}

.result-empty-state p {
  margin: 0;
  max-width: 440px;
  color: #a6b9cc;
  font-size: 16px;
  line-height: 1.65;
}

.result-shell {
  display: grid;
  gap: 18px;
}

.result-eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #77bdef;
  text-align: center;
}

.result-value-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.result-dose {
  font-size: clamp(68px, 8vw, 120px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #fff9f3;
}

.result-unit {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  color: #68bdf2;
  line-height: 1.1;
}

.result-phase {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #f6fbff;
}

.result-summary {
  margin: 12px auto 0;
  max-width: 520px;
  text-align: center;
  color: #c5d4e6;
  font-size: 18px;
  line-height: 1.65;
}

.result-status {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-pill span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #89a0b8;
}

.mini-pill strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #f6fbff;
}

.protocol-card,
.insight-card {
  display: grid;
  gap: 18px;
}

.section-copy p {
  margin: 8px 0 0;
  color: #90a6bb;
  font-size: 16px;
  line-height: 1.6;
}

.protocol-list,
.insight-list,
.tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.protocol-item,
.insight-list li,
.tips-list li {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(18, 29, 41, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.protocol-item {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.protocol-dot {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8ea5ba;
  font-size: 22px;
  font-weight: 900;
}

.protocol-content strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #f5fbff;
}

.protocol-content span,
.insight-list li,
.tips-list li {
  color: #879cb1;
  font-size: 15px;
  line-height: 1.55;
}

.advice-card {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.insight-body {
  margin: 0;
  color: #879cb1;
  font-size: 16px;
  line-height: 1.72;
}

.advice-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(99, 183, 232, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #69bef2;
  font-size: 28px;
}

.advice-copy h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  color: #f4fbff;
}

.advice-copy p {
  margin: 0;
  color: #a6b9cc;
  font-size: 18px;
  line-height: 1.7;
}

.disclaimer-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 184, 107, 0.08);
  border: 1px solid rgba(255, 184, 107, 0.18);
  color: #c5d4e6;
  font-size: 14px;
  line-height: 1.7;
}

.disclaimer-box i {
  margin-top: 3px;
  color: #ffb86b;
}

html[data-theme='light'] .creatine-hero h2 {
  color: #152132;
}

html[data-theme='light'] .creatine-hero p,
html[data-theme='light'] .field-label,
html[data-theme='light'] .input-help,
html[data-theme='light'] .field-feedback,
html[data-theme='light'] .section-copy p,
html[data-theme='light'] .result-empty-state p,
html[data-theme='light'] .result-summary,
html[data-theme='light'] .protocol-content span,
html[data-theme='light'] .insight-list li,
html[data-theme='light'] .tips-list li,
html[data-theme='light'] .advice-copy p,
html[data-theme='light'] .disclaimer-box {
  color: #5c6f85;
}

html[data-theme='light'] .creatine-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.98));
  border-color: rgba(92, 170, 226, 0.16);
  box-shadow: 0 24px 54px rgba(42, 60, 92, 0.12);
}

html[data-theme='light'] .toggle-row,
html[data-theme='light'] .input-shell,
html[data-theme='light'] .phase-option,
html[data-theme='light'] .type-option,
html[data-theme='light'] .quick-rule,
html[data-theme='light'] .protocol-item,
html[data-theme='light'] .insight-list li,
html[data-theme='light'] .tips-list li,
html[data-theme='light'] .mini-pill {
  background: rgba(237, 243, 251, 0.9);
  border-color: rgba(111, 131, 166, 0.12);
}

html[data-theme='light'] .card-title,
html[data-theme='light'] .option-copy strong,
html[data-theme='light'] .result-phase,
html[data-theme='light'] .result-empty-state h3,
html[data-theme='light'] .protocol-content strong,
html[data-theme='light'] .advice-copy h3,
html[data-theme='light'] .mini-pill strong {
  color: #17304a;
}

html[data-theme='light'] .input-shell input {
  color: #17304a;
}

html[data-theme='light'] .toggle-chip {
  color: #6f8398;
}

html[data-theme='light'] .result-card {
  background: linear-gradient(145deg, rgba(234, 243, 255, 0.98), rgba(223, 236, 255, 0.95));
  box-shadow: 0 28px 54px rgba(72, 104, 156, 0.18), 0 0 0 1px rgba(60, 128, 212, 0.08) inset;
}

html[data-theme='light'] .result-dose {
  color: #13304d;
}

html[data-theme='light'] .result-unit,
html[data-theme='light'] .result-eyebrow,
html[data-theme='light'] .advice-icon,
html[data-theme='light'] .empty-icon,
html[data-theme='light'] .quick-rule i {
  color: #2d8cd6;
}

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

  .advice-card {
    grid-template-columns: 72px 1fr;
  }
}

@media (max-width: 1023px) {
  .creatine-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .creatine-shell {
    padding: 0 16px 96px;
  }

  .creatine-hero {
    padding: 0;
    margin-bottom: 20px;
  }

  .creatine-hero h2 {
    font-size: 36px;
  }

  .creatine-hero p {
    font-size: 17px;
  }

  .creatine-main-grid {
    display: flex;
    flex-direction: column;
  }

  .creatine-left-stack,
  .creatine-side-stack {
    display: contents;
  }

  .mobile-order-input {
    order: 1;
  }

  .mobile-order-result {
    order: 2;
  }

  .mobile-order-protocol {
    order: 3;
  }

  .mobile-order-insight {
    order: 4;
  }

  .mobile-order-advice {
    order: 5;
  }

  .top-toggle-grid {
    grid-template-columns: 1fr;
  }

  .input-card,
  .result-card,
  .protocol-card,
  .insight-card {
    padding: 22px;
  }

  .advice-card {
    padding: 22px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .advice-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  .result-status {
    grid-template-columns: 1fr;
  }

  .protocol-item {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }

  .protocol-dot {
    width: 54px;
    height: 54px;
  }

  .input-shell input {
    font-size: 30px;
  }
}

@media (max-width: 420px) {
  .creatine-shell {
    padding: 0 12px 92px;
  }

  .creatine-hero h2 {
    font-size: 31px;
  }

  .creatine-hero p,
  .option-copy span,
  .result-empty-state p,
  .result-summary,
  .protocol-content span,
  .insight-body,
  .advice-copy p {
    font-size: 16px;
  }

  .result-value-row {
    justify-content: flex-start;
  }

  .result-eyebrow,
  .result-phase,
  .result-summary {
    text-align: left;
  }

  .input-shell {
    min-height: 62px;
    padding: 0 14px;
  }

  .input-unit {
    font-size: 16px;
  }

  .option-chip {
    min-width: 60px;
    padding-inline: 10px;
  }
}

@media (max-width: 1179px) {
  .premium-standard .creatine-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }



  .premium-standard .creatine-page .creatine-shell {
    padding: 0 16px 96px;
  }

  .premium-standard .creatine-page .creatine-hero {
    padding: 0;
    margin-bottom: 20px;
  }

  .premium-standard .creatine-page .creatine-hero h2 {
    font-size: 36px;
  }

  .premium-standard .creatine-page .creatine-hero p {
    font-size: 17px;
  }

  .premium-standard .creatine-page .creatine-main-grid {
    display: flex;
    flex-direction: column;
  }

  .premium-standard .creatine-page .creatine-left-stack,
  .premium-standard .creatine-page .creatine-side-stack {
    display: contents;
  }

  .premium-standard .creatine-page .mobile-order-input {
    order: 1;
  }

  .premium-standard .creatine-page .mobile-order-result {
    order: 2;
  }

  .premium-standard .creatine-page .mobile-order-protocol {
    order: 3;
  }

  .premium-standard .creatine-page .mobile-order-insight {
    order: 4;
  }

  .premium-standard .creatine-page .mobile-order-advice {
    order: 5;
  }

  .premium-standard .creatine-page .top-toggle-grid {
    grid-template-columns: 1fr;
  }

  .premium-standard .creatine-page .input-card,
  .premium-standard .creatine-page .result-card,
  .premium-standard .creatine-page .protocol-card,
  .premium-standard .creatine-page .insight-card {
    padding: 22px;
  }

  .premium-standard .creatine-page .advice-card {
    padding: 22px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .premium-standard .creatine-page .advice-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .premium-standard .creatine-page .form-actions {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  .premium-standard .creatine-page .primary-action,
  .premium-standard .creatine-page .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .premium-standard .creatine-page .result-status {
    grid-template-columns: 1fr;
  }

  .premium-standard .creatine-page .protocol-item {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }

  .premium-standard .creatine-page .protocol-dot {
    width: 54px;
    height: 54px;
  }

  .premium-standard .creatine-page .toggle-chip {
    font-size: 16px;
    min-height: 52px;
  }

  .premium-standard .creatine-page .input-shell input {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .premium-standard .creatine-page .creatine-shell {
    padding: 0 14px 92px;
  }


  .premium-standard .creatine-page .creatine-hero h2 {
    font-size: 32px;
  }

  .premium-standard .creatine-page .creatine-hero p,
  .premium-standard .creatine-page .option-copy span,
  .premium-standard .creatine-page .result-empty-state p,
  .premium-standard .creatine-page .result-summary,
  .premium-standard .creatine-page .protocol-content span,
  .premium-standard .creatine-page .insight-body,
  .premium-standard .creatine-page .advice-copy p {
    font-size: 16px;
  }

  .premium-standard .creatine-page .result-value-row {
    justify-content: flex-start;
  }

  .premium-standard .creatine-page .result-eyebrow,
  .premium-standard .creatine-page .result-phase,
  .premium-standard .creatine-page .result-summary {
    text-align: left;
  }

  .premium-standard .creatine-page .input-shell {
    min-height: 62px;
    padding: 0 14px;
  }

  .premium-standard .creatine-page .input-shell input {
    font-size: 26px;
  }

  .premium-standard .creatine-page .input-unit {
    font-size: 16px;
  }

  .premium-standard .creatine-page .option-chip {
    min-width: 60px;
    padding-inline: 10px;
  }

  .premium-standard .creatine-page .result-dose {
    font-size: clamp(62px, 18vw, 94px);
  }

  .premium-standard .creatine-page .result-unit {
    font-size: clamp(22px, 7vw, 30px);
  }
}

@media (max-width: 420px) {
  .premium-standard .creatine-page .creatine-shell {
    padding: 0 12px 88px;
  }


  .premium-standard .creatine-page .creatine-hero h2 {
    font-size: 29px;
  }

  .premium-standard .creatine-page .creatine-hero p {
    font-size: 15px;
  }
}