:root {
    --bg-page: #F8FAFC;
    --bg-hero-start: #F0FDFA;
    --bg-hero-end: #F1F5F9;
    --bg-card: #FFFFFF;
    --primary-accent: #0D9488;
    --primary-accent-light: #CCFBF1;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --warning-bg: #FFFBEB;
    --warning-text: #B45309;
    --success-bg: #ECFDF5;
    --success-text: #065F46;
    --assets-color: #10B981;
    --liabilities-color: #EF4444;
    --net-worth-positive: #10B981;
    --net-worth-negative: #EF4444;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 600;
  }
  
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  h2.section-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1.25rem;
  }
  
  h3.subsection-title {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 0.75rem;
  }
  
  /* Navigation */
  .navbar {
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
  }
  
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-logo {
    height: 32px;
    width: auto;
  }
  
  .brand-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
  }
  
  /* Navigation Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 1002;
  }
  
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  /* Navigation Slider */
  .nav-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }
  
  .nav-slider.active {
    right: 0;
  }
  
  .slider-content {
    padding: 1.5rem;
    height: 100%;
  }
  
  .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .slider-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
  }
  
  .slider-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .slider-link {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
  }
  
  .slider-link:hover, .slider-link.active {
    background-color: var(--primary-accent-light);
    color: var(--primary-accent);
  }
  
  /* Overlay when slider is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-medium);
  }
  
  /* Cards */
  .card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .main-card {
    margin-top: 2rem !important;
    position: relative;
    z-index: 10;
  }
  
  /* Centered Form Container */
  .centered-form-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Form Elements */
  .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-group label {
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .input-group input, .input-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
  }
  
  .input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  }
  
  .input-help {
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  /* Calculator Grid */
  .calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }
  
  @media (min-width: 768px) {
    .calculator-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .assets-section, .liabilities-section {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
  }
  
  .assets-section {
    border-left: 4px solid var(--assets-color);
  }
  
  .liabilities-section {
    border-left: 4px solid var(--liabilities-color);
  }
  
  .assets-section .subsection-title {
    color: var(--assets-color);
  }
  
  .liabilities-section .subsection-title {
    color: var(--liabilities-color);
  }
  
  /* Input with Icon */
  .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
  }
  
  .input-with-icon input {
    padding-left: 2rem;
    width: 100%;
  }
  
  /* Custom Items Section */
  .custom-items-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }
  
  .custom-items-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
  }
  
  .custom-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
  }
  
  .custom-item input {
    flex: 1;
  }
  
  .custom-item .delete-btn {
    background: var(--error-bg);
    color: var(--error-text);
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .custom-item .delete-btn:hover {
    background: var(--error-text);
    color: white;
  }
  
  /* Buttons */
  .calculate-button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    margin: 2rem 0 !important;
  }
  
  .calculate-button:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--primary-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }
  
  .cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
  }
  
  .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    text-align: center;
  }
  
  .action-button:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
  }
  
  .action-button.secondary {
    background-color: var(--bg-page);
  }
  
  .quick-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  /* Results Section */
  .results-section {
    background-color: var(--bg-page);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem !important;
  }
  
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .result-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
  }
  
  .result-card.net-worth {
    background: linear-gradient(135deg, var(--primary-accent-light) 0%, #E0F2FE 100%);
  }
  
  .result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
  }
  
  .result-icon.assets {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--assets-color);
  }
  
  .result-icon.liabilities {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--liabilities-color);
  }
  
  .result-icon.net-worth {
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-accent);
  }
  
  .result-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .result-value {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .result-card.assets .result-value {
    color: var(--assets-color);
  }
  
  .result-card.liabilities .result-value {
    color: var(--liabilities-color);
  }
  
  .result-card.net-worth .result-value {
    color: var(--primary-accent);
  }
  
  /* Health Indicator */
  .health-indicator {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
  }
  
  .health-indicator h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
  }
  
  .health-status {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
  }
  
  .health-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .health-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--liabilities-color), var(--assets-color));
    border-radius: 4px;
    transition: width 0.5s ease;
  }
  
  /* Privacy Notice */
  .privacy-notice {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    background-color: var(--success-bg);
    border-left: 4px solid var(--success-text);
  }
  
  .privacy-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
  }
  
  .privacy-text {
    font-size: 0.875rem;
    color: var(--text-medium);
  }
  
  /* Message Boxes */
  .message-box {
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .message-box i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
  }
  
  .message-content {
    flex: 1;
  }
  
  .message-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }
  
  .error-box {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-left: 4px solid var(--error-text);
  }
  
  .success-box {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-left: 4px solid var(--success-text);
  }
  
  /* Animations */
  .animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Content Sections */
  .content-section {
    padding: 3rem 1rem;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  /* FAQ Section */
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .faq-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .faq-item {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  .faq-item h3 {
    color: var(--primary-accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .faq-item p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer {
    background-color: var(--bg-card);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
  }
  
  .footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: var(--primary-accent);
  }
  
  .disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .calculator-grid {
      grid-template-columns: 1fr;
    }
    
    .results-grid {
      grid-template-columns: 1fr;
    }
    
    .quick-action-buttons {
      grid-template-columns: 1fr;
    }
    
    .footer-links {
      flex-direction: column;
      gap: 0.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .assets-section, .liabilities-section {
      padding: 1rem;
    }
    
    .result-card {
      padding: 1rem;
    }
    
    .health-indicator {
      padding: 1rem;
    }
  }
  /* Common Scenarios Section */
.quick-calc-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-page);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
  }
  
  .quick-calc-section h3.subsection-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .quick-calc-section h3.subsection-title::before {
    content: "⚡";
    font-size: 1.2rem;
  }
  
  .quick-calc-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  @media (max-width: 480px) {
    .quick-calc-buttons {
      grid-template-columns: 1fr;
    }
  }
  
  .quick-calc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .quick-calc-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
  }
  
  .quick-calc-button:hover::before {
    left: 100%;
  }
  
  .quick-calc-button:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
  }
  
  .quick-calc-button i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
  }
  
  .quick-calc-button:hover i {
    transform: scale(1.1);
  }
  
  /* Calculation History Section */
  .history-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-page);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
  }
  
  .history-section h3.subsection-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .history-section h3.subsection-title::before {
    content: "📊";
    font-size: 1.2rem;
  }
  
  .history-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) var(--border-color);
  }
  
  .history-container::-webkit-scrollbar {
    width: 6px;
  }
  
  .history-container::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
  }
  
  .history-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-accent);
    border-radius: 3px;
  }
  
  .history-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
  }
  
  .history-item:hover {
    background-color: var(--primary-accent-light);
  }
  
  .history-item:last-child {
    border-bottom: none;
  }
  
  .history-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
  }
  
  .history-calculation {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
  }
  
  .history-result {
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .history-timestamp {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    margin-left: 1rem;
  }
  
  .no-history {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .no-history::before {
    content: "📝";
    font-size: 2rem;
    opacity: 0.5;
  }
  
  #clear-history {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    width: 100%;
  }
  
  #clear-history:hover {
    border-color: var(--error-text);
    color: var(--error-text);
    background-color: var(--error-bg);
  }
  
  #clear-history i {
    transition: transform 0.2s ease;
  }
  
  #clear-history:hover i {
    transform: scale(1.1);
  }
  
  /* How to Use Section */
  .how-to-section {
    padding: 4rem 1rem;
    background-color: var(--bg-page);
    position: relative;
  }
  
  .how-to-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  }
  
  .how-to-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .how-to-section .section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .how-to-section .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .how-to-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .how-to-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .how-to-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .how-to-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  
  .how-to-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), #0f766e);
  }
  
  .how-to-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .how-to-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
  }
  
  .how-to-card:hover .how-to-icon {
    transform: scale(1.1) rotate(5deg);
  }
  
  .how-to-icon i {
    font-size: 1.5rem;
    color: var(--primary-accent);
  }
  
  .how-to-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .how-to-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
  }
  
  .how-to-card p:last-of-type {
    margin-bottom: 0;
  }
  
  /* Animation for cards when they come into view */
  .how-to-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .how-to-card.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive adjustments */
  @media (max-width: 767px) {
    .quick-calc-buttons {
      grid-template-columns: 1fr;
    }
    
    .history-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .history-timestamp {
      margin-left: 0;
      align-self: flex-end;
    }
    
    .how-to-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .quick-calc-section,
    .history-section {
      padding: 1rem;
    }
    
    .how-to-section {
      padding: 3rem 1rem;
    }
    
    .how-to-card {
      padding: 1.5rem;
    }
  }
  
  /* Print styles */
  @media print {
    .quick-calc-section,
    .history-section,
    .how-to-section {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    .quick-calc-button:hover,
    .how-to-card:hover {
      transform: none;
      box-shadow: none;
    }
  }

  
  /* Additional utility classes for the new sections */
.quick-tip {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.quick-tip strong {
    color: #b45309;
}

.troubleshooting {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.troubleshooting h4 {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.troubleshooting ul {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.troubleshooting li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.troubleshooting strong {
    color: var(--text-dark);
}

/* Animation classes for scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}
/* Calculation Results Section */
.results-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #a7f3d0;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1);
}

.required-score {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #10b981;
}

.required-score h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.score-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-accent);
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(13, 148, 136, 0.2);
}

.result-description {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

.grade-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.grade-breakdown h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-medium);
    font-weight: 500;
}

.breakdown-value {
    color: var(--primary-accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Grade Visualization */
.grade-visualization {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.grade-visualization h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.grade-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grade-bar-container {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.grade-bar-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.grade-bar {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.grade-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
    position: relative;
}

.grade-bar-container:nth-child(1) .grade-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.grade-bar-container:nth-child(2) .grade-bar-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.grade-bar-container:nth-child(3) .grade-bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.grade-percent {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Overview Section */
.overview-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-accent), #0f766e);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.overview-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.overview-card:hover .overview-icon {
    transform: scale(1.1) rotate(5deg);
}

.overview-icon i {
    font-size: 1.8rem;
    color: var(--primary-accent);
}

.overview-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.overview-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* Use Cases Section */
.use-cases-section {
    padding: 4rem 1rem;
    background-color: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case-card {
    background: var(--bg-page);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.use-case-card h3 {
    color: var(--primary-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .problem-solution {
        grid-template-columns: 1fr 1fr;
    }
}

.problem, .solution {
    padding: 1rem;
    border-radius: 0.5rem;
}

.problem {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.solution {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.problem h4, .solution h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem h4 {
    color: #dc2626;
}

.solution h4 {
    color: #065f46;
}

.problem p, .solution p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.pro-tip {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pro-tip strong {
    color: #b45309;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tips Section */
.tips-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tip-number {
    position: absolute;
    top: -1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(13, 148, 136, 0.3);
}

.tip-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tip-example {
    background: var(--primary-accent-light);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-accent);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tip-example strong {
    color: var(--primary-accent);
}

/* Advantages Section */
.advantages-section {
    padding: 4rem 1rem;
    background-color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.advantage-card {
    background: var(--bg-page);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-icon i {
    font-size: 2rem;
    color: var(--primary-accent);
}

.advantage-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.advantage-metric {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.advantage-metric .metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 0.25rem;
}

.advantage-metric .metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Success Stories Section */
.success-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .success-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.success-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.success-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1.25rem;
    color: var(--primary-accent);
}

.user-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.user-info span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.before, .after {
    padding: 1rem;
    border-radius: 0.5rem;
}

.before {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.after {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.before h5, .after h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.before h5 {
    color: #dc2626;
}

.after h5 {
    color: #065f46;
}

.before p, .after p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.success-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.success-metric {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-page);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.success-metric .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.25rem;
}

.success-metric .label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Technical Section */
.technical-section {
    padding: 4rem 1rem;
    background-color: white;
}

.technical-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .technical-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.technical-card {
    background: var(--bg-page);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.technical-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.technical-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technical-card h3 i {
    color: var(--primary-accent);
}

.technical-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.technical-card ul {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.technical-card li {
    margin-bottom: 0.5rem;
}

.technical-card strong {
    color: var(--text-dark);
}

/* Grade Inputs Specific Styling */
.grade-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .grade-inputs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grade-inputs .input-group {
    margin-bottom: 0;
}