* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: #ffffff;
      min-height: 100vh;
      color: #333;
      transition: all 0.3s ease;
    }

    .dark-mode {
      background: #1a1a1a;
      color: #f5f5f5;
    }

    .back-link {
      position: fixed;
      top: 20px;
      left: 20px;
      background: rgba(255, 255, 255, 0.9);
      color: #007bff;
      text-decoration: none;
      padding: 12px 20px;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      z-index: 1000;
    }

    .dark-mode .back-link {
      background: rgba(30, 30, 30, 0.9);
      color: #66d9ff;
      border-color: rgba(255, 255, 255, 0.1);
    }

    .back-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    }

    .age-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 20px 40px;
    }

    .age-header {
      text-align: center;
      margin-bottom: 40px;
      color: #2c3e50;
    }

    .dark-mode .age-header {
      color: #f5f5f5;
    }

    .age-header h1 {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 15px;
    }

    .dark-mode .age-header h1 {
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .age-header p {
      font-size: 1.2rem;
      opacity: 0.9;
      max-width: 600px;
      margin: 0 auto;
    }

    .age-content {
      background: white;
      border-radius: 25px;
      padding: 40px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .age-content::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .age-content:hover::before {
      left: 100%;
    }

    .dark-mode .age-content {
      background: #1e1e1e;
      border-color: #333;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .input-section {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 30px;
      margin-bottom: 30px;
      border: 1px solid #e9ecef;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .input-section:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      border-color: #007bff;
    }

    .dark-mode .input-section:hover {
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      border-color: #66d9ff;
    }

    .dark-mode .input-section {
      background: #2d2d2d;
      border-color: #444;
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 25px;
      color: #2c3e50;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .dark-mode .section-title {
      color: #f5f5f5;
    }

    .section-title i {
      color: #007bff;
      font-size: 1.5rem;
    }

    .dark-mode .section-title i {
      color: #66d9ff;
    }

    .input-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
      margin-bottom: 25px;
    }

    .input-group {
      position: relative;
    }

    .input-group label {
      display: block;
      margin-bottom: 8px;
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      background: white;
    }

    .dark-mode .input-group label {
      color: #d1d5db;
    }

    .input-field {
      width: 100%;
      padding: 15px 20px;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      background: white;
    }

    .input-field:hover {
      border-color: #c3d4e8;
      transform: translateY(-1px);
    }

    .dark-mode .input-field {
      background: #1e1e1e;
      border-color: #444;
      color: #f5f5f5;
    }

    .input-field:focus {
      outline: none;
      border-color: #007bff;
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
      transform: translateY(-1px);
    }

    .dark-mode .input-field:focus {
      border-color: #66d9ff;
      box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.1);
    }

    .calculate-btn {
      width: 100%;
      padding: 18px;
      background: linear-gradient(135deg, #007bff, #0056b3);
      color: white;
      border: none;
      border-radius: 15px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
    }

    .calculate-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .calculate-btn:active::before {
      width: 300px;
      height: 300px;
    }

    .dark-mode .calculate-btn {
      background: linear-gradient(135deg, #66d9ff, #007bff);
      color: #1a1a1a;
    }

    .calculate-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    }

    .dark-mode .calculate-btn:hover {
      box-shadow: 0 10px 25px rgba(102, 217, 255, 0.3);
    }

    .calculate-btn:active {
      transform: translateY(0);
    }

    .results-section {
      margin-top: 30px;
      display: none;
    }

    .results-section.show {
      display: block;
      animation: fadeInUp 0.6s ease;
    }

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

    .age-display {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 15px;
      margin-bottom: 30px;
    }

    .age-item {
      background: linear-gradient(135deg, #007bff, #0056b3);
      color: white;
      padding: 20px;
      border-radius: 15px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .dark-mode .age-item {
      background: linear-gradient(135deg, #66d9ff, #007bff);
    }

    .age-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    }

    .dark-mode .age-item:hover {
      box-shadow: 0 10px 25px rgba(102, 217, 255, 0.3);
    }

    .age-value {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 5px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .age-label {
      font-size: 0.9rem;
      opacity: 0.9;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
      margin-top: 30px;
    }

    .info-card {
      background: #f8f9fa;
      border-radius: 15px;
      padding: 25px;
      border: 1px solid #e9ecef;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .info-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #007bff, #66d9ff);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }

    .info-card:hover::before {
      transform: scaleX(1);
    }

    .dark-mode .info-card {
      background: #2d2d2d;
      border-color: #444;
    }

    .info-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .info-card h3 {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      color: #2c3e50;
      font-size: 1.2rem;
    }

    .dark-mode .info-card h3 {
      color: #f5f5f5;
    }

    .info-card i {
      color: #007bff;
      font-size: 1.3rem;
    }

    .dark-mode .info-card i {
      color: #66d9ff;
    }

    .life-stage {
      display: inline-block;
      background: linear-gradient(135deg, #28a745, #20c997);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .milestone-list {
      list-style: none;
      padding: 0;
    }

    .milestone-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid #e9ecef;
    }

    .dark-mode .milestone-item {
      border-bottom-color: #444;
    }

    .milestone-item:last-child {
      border-bottom: none;
    }

    .milestone-icon {
      color: #007bff;
      font-size: 1.1rem;
      width: 20px;
    }

    .dark-mode .milestone-icon {
      color: #66d9ff;
    }

    .zodiac-info {
      text-align: center;
      padding: 20px;
      background: linear-gradient(135deg, #fff3cd, #ffeaa7);
      border-radius: 15px;
      margin-bottom: 15px;
      color: #856404;
    }

    .dark-mode .zodiac-info {
      background: linear-gradient(135deg, #3d3d00, #5a5a00);
      color: #fff3cd;
    }

    .zodiac-symbol {
      font-size: 3rem;
      margin-bottom: 10px;
    }

    .birthstone-info {
      text-align: center;
      padding: 20px;
      background: linear-gradient(135deg, #e1f5fe, #f3e5f5);
      border-radius: 15px;
      color: #4a148c;
    }

    .dark-mode .birthstone-info {
      background: linear-gradient(135deg, #1a237e, #4a148c);
      color: #e1f5fe;
    }

    .input-help {
      font-size: 0.8rem;
      color: #6c757d;
      margin-top: 5px;
      opacity: 0.8;
    }

    .dark-mode .input-help {
      color: #adb5bd;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .health-insights {
      margin-top: 30px;
      padding: 25px;
      background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(102, 217, 255, 0.05));
      border-radius: 15px;
      border: 1px solid rgba(0, 123, 255, 0.1);
      text-align: left;
    }

    .health-insights ul {
      text-align: left !important;
      padding-left: 20px;
    }

    .health-insights li {
      text-align: left !important;
    }

    .health-insights p {
      text-align: left !important;
    }

    .dark-mode .health-insights {
      background: linear-gradient(135deg, rgba(102, 217, 255, 0.1), rgba(0, 123, 255, 0.1));
      border-color: rgba(102, 217, 255, 0.2);
    }

    .health-section {
      margin-bottom: 25px;
      text-align: left !important;
    }

    .health-section ul {
      text-align: left !important;
      padding-left: 20px;
    }

    .health-section li {
      text-align: left !important;
    }

    .health-section p {
      text-align: left !important;
    }

    .health-section h3 {
      color: #007bff;
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .dark-mode .health-section h3 {
      color: #66d9ff;
    }

    .health-insights-content {
      color: #495057;
      line-height: 1.6;
      text-align: left;
    }

    .dark-mode .health-insights-content {
      color: #d1d5db;
    }

    .health-insights-content ul {
      margin: 10px 0;
      padding-left: 20px;
      text-align: left;
    }

    .health-insights-content li {
      margin-bottom: 8px;
      text-align: left;
    }

    .health-card-content {
      color: #495057;
      line-height: 1.6;
      font-size: 0.95rem;
      text-align: left;
    }

    .health-card-content ul {
      text-align: left;
      padding-left: 20px;
    }

    .health-card-content li {
      text-align: left;
    }

    .health-content {
      text-align: left;
    }

    .health-content ul {
      text-align: left;
      padding-left: 20px;
    }

    .health-content li {
      text-align: left;
    }

    .dark-mode .health-content {
      color: #d1d5db;
    }

    .health-tips {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      margin-top: 20px;
      text-align: left !important;
    }

    .health-tips ul {
      text-align: left !important;
      padding-left: 20px;
    }

    .health-tips li {
      text-align: left !important;
    }

    .health-tips p {
      text-align: left !important;
    }

    /* Force left alignment for all dynamically generated content */
    #healthInsightsContent,
    #cognitiveInsights,
    #recommendationsContent {
      text-align: left !important;
    }

    #healthInsightsContent ul,
    #cognitiveInsights ul,
    #recommendationsContent ul {
      text-align: left !important;
      padding-left: 20px;
    }

    #healthInsightsContent li,
    #cognitiveInsights li,
    #recommendationsContent li {
      text-align: left !important;
    }

    #healthInsightsContent p,
    #cognitiveInsights p,
    #recommendationsContent p {
      text-align: left !important;
    }

    .health-tip {
      padding: 15px;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 10px;
      border-left: 4px solid #007bff;
    }

    .dark-mode .health-tip {
      background: rgba(255, 255, 255, 0.05);
      border-left-color: #66d9ff;
    }

    .developmental-info {
      background: #e8f5e8;
      padding: 20px;
      border-radius: 12px;
      margin: 15px 0;
      border-left: 4px solid #28a745;
    }

    .dark-mode .developmental-info {
      background: rgba(40, 167, 69, 0.1);
      border-left-color: #28a745;
    }

    .birthstone-gem {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }

    .error-message {
      color: #dc3545;
      background: #f8d7da;
      border: 1px solid #f5c6cb;
      padding: 12px 16px;
      border-radius: 8px;
      margin-top: 10px;
      font-size: 0.9rem;
    }

    .dark-mode .error-message {
      background: #2d1b1e;
      border-color: #5a2a2a;
      color: #f8d7da;
    }

    @media (max-width: 768px) {
      .age-header h1 {
        font-size: 2.2rem;
      }

      .age-content {
        padding: 25px;
      }

      .input-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .age-display {
        grid-template-columns: repeat(2, 1fr);
      }

      .info-grid {
        grid-template-columns: 1fr;
      }

      .back-link {
        position: static;
        display: block;
        text-align: center;
        margin: 20px auto;
        width: fit-content;
      }
    }

    @media (max-width: 480px) {
      .age-display {
        grid-template-columns: 1fr;
      }

      .age-value {
        font-size: 1.8rem;
      }
    }

/* Additional Info Section */
.additional-info-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px; /* Match .age-container padding */
}

.content-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.dark-mode .content-card {
  background: #2d2d2d;
  border-color: #444;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.info-section {
  text-align: left;
}

.info-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
}

.dark-mode .info-section h2 {
  color: #f5f5f5;
  border-bottom-color: #66d9ff;
}

.info-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #34495e;
  margin-top: 25px;
  margin-bottom: 10px;
}

.dark-mode .info-section h3 {
  color: #e0e0e0;
}

.info-section p,
.info-section li {
  line-height: 1.8;
  color: #555;
}

.dark-mode .info-section p,
.dark-mode .info-section li {
  color: #ccc;
}

.info-section ul {
  padding-left: 20px;
  margin-top: 10px;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dark-mode .faq-item {
  border-bottom-color: #444;
}

.how-to-use {
  background: #e9f5ff;
  border-left: 5px solid #007bff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 0 10px 10px 0;
}

.dark-mode .how-to-use {
  background: rgba(102, 217, 255, 0.1);
  border-left-color: #66d9ff;
}

.how-to-use h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0056b3;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-mode .how-to-use h4 {
  color: #66d9ff;
}

.how-to-use ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.how-to-use li {
  color: #333;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.dark-mode .how-to-use li {
  color: #ccc;
}

.how-to-use li:last-child {
  margin-bottom: 0;
}

/* Recommended Tools Section */
.recommended-tools-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.recommended-tools-container h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

.dark-mode .recommended-tools-container h3 {
  color: #f5f5f5;
}

.tool-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tool-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.dark-mode .tool-card {
  background: #2d2d2d;
  border-color: #444;
  color: #f5f5f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.dark-mode .tool-card:hover {
  box-shadow: 0 15px 40px rgba(102, 217, 255, 0.2);
}

.tool-icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 15px;
}

.dark-mode .tool-icon {
  color: #66d9ff;
}

.tool-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6c757d;
}

.dark-mode .tool-card p {
  color: #adb5bd;
}

/* Ad Placeholders */
.ad-placeholder-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.ad-placeholder {
  background: #f1f1f1;
  border: 1px dashed #ccc;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
}

.dark-mode .ad-placeholder {
  background: #222;
  border-color: #444;
}

.ad-placeholder p {
  color: #999;
  font-weight: 500;
}

.dark-mode .ad-placeholder p {
  color: #777;
}

/* Disclaimer Section */
.disclaimer-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #fffbe6;
  border-left: 5px solid #ffc107;
  border-radius: 0 10px 10px 0;
}

.dark-mode .disclaimer-container {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
}

.disclaimer-container p {
  color: #856404;
  line-height: 1.6;
  font-size: 0.9rem;
}

.dark-mode .disclaimer-container p {
  color: #fffbe6;
}





