#tf-tools-home .tf-age-title-section {
  padding-bottom: 42px;
}

#tf-tools-home .tf-age-title-badge {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 12px;
  border: 1px solid rgba(112,91,237,.16);
  border-radius: 999px;
  color: #6557e8;
  background: rgba(239,236,255,.78);
  font-size: 10px;
  font-weight: 700;
}

#tf-tools-home .tf-age-page-container {
  padding-bottom: 90px;
}

#tf-tools-home .tf-age-calculator {
  position: relative;
  padding: clamp(22px,4vw,45px);
  border: 1px solid rgba(225,226,242,.96);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 25px 70px rgba(49,47,93,.11);
  overflow: hidden;
}

#tf-tools-home .tf-age-calculator::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -115px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(116,84,239,.13),transparent 69%);
  pointer-events: none;
}

#tf-tools-home .tf-age-tool-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eceef6;
}

#tf-tools-home .tf-age-tool-icon {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg,#566af5,#7d4cf1);
  box-shadow: 0 13px 30px rgba(99,80,229,.27);
}

#tf-tools-home .tf-age-tool-icon svg,
#tf-tools-home .tf-age-input-wrap svg,
#tf-tools-home .tf-age-calculate svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#tf-tools-home .tf-age-tool-icon svg { width: 27px; height: 27px; }
#tf-tools-home .tf-age-tool-heading > div:last-child > span {
  color: #6d60e8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
#tf-tools-home .tf-age-tool-heading h2 {
  margin-top: 2px;
  color: #17203a;
  font-size: clamp(22px,3vw,30px);
  line-height: 1.2;
}
#tf-tools-home .tf-age-tool-heading p {
  margin-top: 4px;
  color: #798398;
  font-size: 11px;
}

#tf-tools-home .tf-age-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin: 28px 0;
  padding: 6px;
  border: 1px solid #ecebf8;
  border-radius: 14px;
  background: #f7f6ff;
}

#tf-tools-home .tf-age-tabs button {
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: #6f768b;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  transition: .2s ease;
}

#tf-tools-home .tf-age-tabs button:hover { color: #5d50de; }
#tf-tools-home .tf-age-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg,#586af3,#7a51ef);
  box-shadow: 0 10px 24px rgba(96,83,225,.2);
}

#tf-tools-home .tf-age-form,
#tf-tools-home .tf-age-panel,
#tf-tools-home .tf-age-results {
  position: relative;
}

#tf-tools-home .tf-age-panel[hidden],
#tf-tools-home .tf-age-results[hidden] { display: none !important; }

#tf-tools-home .tf-age-field-wide { max-width: 650px; margin-inline: auto; }
#tf-tools-home .tf-age-fields-two {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

#tf-tools-home .tf-age-field label,
#tf-tools-home .tf-age-number-fields legend,
#tf-tools-home .tf-age-number-fields label > span {
  display: block;
  margin-bottom: 8px;
  color: #303a52;
  font-size: 11px;
  font-weight: 600;
}

#tf-tools-home .tf-age-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#tf-tools-home .tf-age-input-wrap svg {
  position: absolute;
  z-index: 2;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #7465ed;
  pointer-events: none;
}

#tf-tools-home .tf-age-input-wrap input,
#tf-tools-home .tf-age-number-fields input {
  width: 100%;
  min-height: 56px;
  margin: 0;
  border: 1px solid #e2e5ef;
  border-radius: 12px;
  outline: 0;
  color: #222b42;
  background: #fff;
  box-shadow: 0 8px 25px rgba(38,43,70,.045);
  font-size: 13px;
  transition: border-color .2s ease,box-shadow .2s ease;
}

#tf-tools-home .tf-age-input-wrap input { padding: 0 16px 0 46px; }
#tf-tools-home .tf-age-number-fields input { padding: 0 15px; text-align: center; }
#tf-tools-home .tf-age-input-wrap input:focus,
#tf-tools-home .tf-age-number-fields input:focus {
  border-color: #9689f5;
  box-shadow: 0 0 0 4px rgba(116,101,237,.09);
}

#tf-tools-home .tf-age-field > small {
  display: block;
  margin: 8px 3px 0;
  color: #9299aa;
  font-size: 9px;
}

#tf-tools-home .tf-age-number-fields {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
  max-width: 650px;
  margin: 21px auto 0;
  padding: 0;
  border: 0;
}
#tf-tools-home .tf-age-number-fields legend { grid-column: 1/-1; margin-bottom: 0; }

#tf-tools-home .tf-age-form-error {
  min-height: 22px;
  margin: 15px 0 0;
  color: #dc3855;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

#tf-tools-home .tf-age-form-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#tf-tools-home .tf-age-calculate,
#tf-tools-home .tf-age-reset {
  min-height: 52px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

#tf-tools-home .tf-age-calculate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 205px;
  padding: 0 25px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg,#566af5,#7b4ff0);
  box-shadow: 0 13px 30px rgba(92,75,218,.24);
  transition: .2s ease;
}
#tf-tools-home .tf-age-calculate:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(92,75,218,.31); }
#tf-tools-home .tf-age-calculate svg { width: 18px; height: 18px; }
#tf-tools-home .tf-age-reset {
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid #e1e4ee;
  color: #626b80;
  background: #fff;
}

#tf-tools-home .tf-age-results {
  margin-top: 35px;
  padding-top: 33px;
  border-top: 1px solid #eceef6;
  animation: tfAgeReveal .36s ease both;
}
@keyframes tfAgeReveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

#tf-tools-home .tf-age-results-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
#tf-tools-home .tf-age-result-kicker {
  color: #6b5fe7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
#tf-tools-home .tf-age-results-top h3 { margin-top: 3px; color: #202940; font-size: 20px; }
#tf-tools-home .tf-age-result-actions { display: flex; gap: 7px; }
#tf-tools-home .tf-age-result-actions button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #e1e4ef;
  border-radius: 8px;
  color: #656e82;
  background: #fff;
  font-size: 9px;
  font-weight: 600;
}
#tf-tools-home .tf-age-result-actions button:hover { color: #6255e5; border-color: #c9c2ff; }

#tf-tools-home .tf-age-primary-result {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(115deg,#5269f5,#7656ef 60%,#814af0);
  box-shadow: 0 20px 45px rgba(99,79,221,.22);
}
#tf-tools-home .tf-age-primary-result > div {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#tf-tools-home .tf-age-primary-result > div + div { border-left: 1px solid rgba(255,255,255,.17); }
#tf-tools-home .tf-age-primary-result strong { font-size: clamp(38px,6vw,64px); line-height: 1; letter-spacing: -2px; }
#tf-tools-home .tf-age-primary-result span { margin-top: 8px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 600; }

#tf-tools-home .tf-age-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 17px;
}
#tf-tools-home .tf-age-metrics > div {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 18px;
  border: 1px solid #e8eaf3;
  border-radius: 12px;
  background: #fff;
}
#tf-tools-home .tf-age-metrics span { color: #8990a2; font-size: 9px; }
#tf-tools-home .tf-age-metrics strong { color: #28324a; font-size: 15px; text-align: right; word-break: break-word; }

#tf-tools-home .tf-age-insights {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 12px;
}
#tf-tools-home .tf-age-insights > div {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e8eaf3;
  border-radius: 12px;
  background: linear-gradient(135deg,#fff,#faf9ff);
}
#tf-tools-home .tf-age-insight-icon {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f0edff;
  font-size: 17px;
}
#tf-tools-home .tf-age-insights p { margin: 0; min-width: 0; }
#tf-tools-home .tf-age-insights small { display: block; color: #959bad; font-size: 8px; }
#tf-tools-home .tf-age-insights strong { display: block; margin-top: 3px; color: #313a51; font-size: 11px; line-height: 1.35; }

#tf-tools-home .tf-age-birthday-progress {
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid #e8eaf3;
  border-radius: 12px;
  background: #fff;
}
#tf-tools-home .tf-age-birthday-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #71798c;
  font-size: 9px;
}
#tf-tools-home .tf-age-birthday-progress strong { color: #6255e6; }
#tf-tools-home .tf-age-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeedf7;
}
#tf-tools-home .tf-age-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#566af5,#8550ef);
  transition: width .5s ease;
}

#tf-tools-home .tf-age-seo-content {
  max-width: 960px;
  margin: 48px auto 0;
  padding: clamp(28px,5vw,58px);
  border: 1px solid #e7e9f2;
  border-radius: 20px;
  color: #5d687d;
  background: rgba(255,255,255,.91);
  box-shadow: 0 18px 55px rgba(40,44,75,.07);
  font-size: 14px;
  line-height: 1.8;
}
#tf-tools-home .tf-age-content-label {
  color: #6a5de8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#tf-tools-home .tf-age-seo-content h2 {
  margin: 6px 0 13px;
  color: #202a42;
  font-size: clamp(25px,3.5vw,36px);
  line-height: 1.25;
  letter-spacing: -1px;
}
#tf-tools-home .tf-age-seo-content h3 { margin: 0 0 12px; color: #273149; font-size: 19px; }
#tf-tools-home .tf-age-seo-content p { margin: 0 0 14px; }
#tf-tools-home .tf-age-content-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  margin: 27px 0 36px;
}
#tf-tools-home .tf-age-content-grid section {
  padding: 24px;
  border: 1px solid #e9eaf3;
  border-radius: 14px;
  background: #faf9ff;
}
#tf-tools-home .tf-age-content-grid ol,
#tf-tools-home .tf-age-content-grid ul { margin: 0; padding-left: 20px; }
#tf-tools-home .tf-age-content-grid li + li { margin-top: 7px; }
#tf-tools-home .tf-age-faqs h2 { margin-bottom: 20px; }
#tf-tools-home .tf-age-faqs details { border-top: 1px solid #e7e9f2; }
#tf-tools-home .tf-age-faqs details:last-child { border-bottom: 1px solid #e7e9f2; }
#tf-tools-home .tf-age-faqs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px;
  color: #303a51;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
#tf-tools-home .tf-age-faqs summary::-webkit-details-marker { display: none; }
#tf-tools-home .tf-age-faqs summary span { color: #685be8; font-size: 19px; }
#tf-tools-home .tf-age-faqs details[open] summary span { transform: rotate(45deg); }
#tf-tools-home .tf-age-faqs details p { padding: 0 32px 17px 2px; }

@media (max-width: 780px) {
  #tf-tools-home .tf-age-tabs { grid-template-columns: repeat(2,1fr); }
  #tf-tools-home .tf-age-metrics { grid-template-columns: repeat(2,1fr); }
  #tf-tools-home .tf-age-insights { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #tf-tools-home .tf-age-page-container { width: min(100% - 20px,1180px); padding-bottom: 65px; }
  #tf-tools-home .tf-age-calculator { padding: 20px 15px; border-radius: 17px; }
  #tf-tools-home .tf-age-tool-heading { align-items: flex-start; }
  #tf-tools-home .tf-age-tool-icon { flex-basis: 48px; width: 48px; height: 48px; }
  #tf-tools-home .tf-age-tool-heading h2 { font-size: 21px; }
  #tf-tools-home .tf-age-fields-two,
  #tf-tools-home .tf-age-content-grid { grid-template-columns: 1fr; }
  #tf-tools-home .tf-age-number-fields { gap: 8px; }
  #tf-tools-home .tf-age-form-actions { flex-direction: column; }
  #tf-tools-home .tf-age-calculate,
  #tf-tools-home .tf-age-reset { width: 100%; }
  #tf-tools-home .tf-age-results-top { align-items: flex-start; flex-direction: column; }
  #tf-tools-home .tf-age-primary-result > div { min-height: 105px; }
  #tf-tools-home .tf-age-primary-result strong { font-size: 34px; }
  #tf-tools-home .tf-age-primary-result span { font-size: 9px; }
  #tf-tools-home .tf-age-metrics { grid-template-columns: 1fr; }
  #tf-tools-home .tf-age-metrics > div { min-height: 62px; }
  #tf-tools-home .tf-age-seo-content { margin-top: 30px; border-radius: 16px; font-size: 13px; }
}
