/* ---------- GLOBAL RESET & VARIABLES ---------- */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-body: #fef8f0;
      --card-bg: #ffffff;
      --card-secondary: #faf6f0;
      --text-primary: #1e1e2f;
      --text-secondary: #4b4b6c;
      --text-muted: #7a7a9a;
      --accent: #e55c1e;
      --accent-hover: #c9470f;
      --accent-soft: #fef0e6;
      --border-light: #eae2d7;
      --border-medium: #d4cdc0;
      --footer-bg-start: #1a1a2e;
      --footer-bg-end: #0f1123;
      --footer-text: #cdd6f4;
      --result-bg: #fffbf5;
      --shadow-sm: 0 8px 20px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03);
      --shadow-md: 0 20px 30px -12px rgba(0,0,0,0.08);
      --shadow-lg: 0 25px 40px -12px rgba(0,0,0,0.15);
      --transition: all 0.25s ease;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: #979dac;
      color: var(--text-primary);
      line-height: 1.5;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 1.5rem 2rem;
    }

    @media (max-width: 768px) {
      .container {
        padding: 1rem;
      }
    }

    /* ---------- HEADER & LOGO SECTION ---------- */
    .header-section {
      margin-bottom: 1.8rem;
    }
    .logo-center {
      text-align: center;
      margin-bottom: 1rem;
    }
    .dual-logo {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      background: #4f772d;
      padding: 0.5rem 1.8rem;
      border-radius: 80px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-light);
      backdrop-filter: blur(2px);
    }
    .logo-circle {
      background: #c1121f;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      color: white;
      box-shadow: 0 6px 12px rgba(229,92,30,0.25);
    }
    .logo-text-glow {
      font-size: 1.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--text-primary), var(--accent));
      -webkit-background-clip: text;
      background-clip: text;
      color: white;
    }

    /* ---------- CALCULATOR SELECTION STRIP (MINI CARDS) ---------- */
    .hero-calc-strip {
      background: #90a955;
      border-radius: 1.75rem;
      padding: 1rem;
      margin: 0.8rem 0 1.5rem;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-light);
    }
    .calc-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.9rem;
    }
    .calc-mini-card {
      flex: 1;
      min-width: 115px;
      max-width: 140px;
      background: white;
      border-radius: 1.25rem;
      padding: 1rem 0.5rem;
      text-align: center;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    .calc-mini-card:hover {
      transform: translateY(-5px);
      background: #ffe5d9;
      border-color: var(--accent);
      box-shadow: var(--shadow-md);
    }
    .calc-mini-card i {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      display: block;
    }
    .calc-mini-card h4 {
      font-weight: 700;
      font-size: 0.85rem;
    }
    .calc-mini-card.active {
      border-color: var(--accent);
      background: var(--accent-soft);
      box-shadow: 0 10px 20px rgba(229,92,30,0.15);
      transform: scale(0.98);
    }
    @media (max-width: 640px) {
      .calc-mini-card { min-width: 90px; padding: 0.8rem 0.2rem; }
      .calc-mini-card i { font-size: 1.5rem; }
      .calc-mini-card h4 { font-size: 0.7rem; }
    }

    /* ---------- MAIN CALCULATOR PANEL ---------- */
    .calculator-panel {
      background: #90a955;
      border-radius: 1.75rem;
      padding: 2rem;
      margin: 0.5rem 0;
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-md);
      transition: var(--transition);
    }
    .calc-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 1.75rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--border-light);
    }
    .calc-header h2 {
      font-size: 1.6rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .input-group {
      margin-bottom: 1.4rem;
    }
    label {
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: black;
      display: block;
      margin-bottom: 6px;
    }
    input, select {
      width: 100%;
      padding: 0.85rem 1rem;
      border-radius: 1rem;
      border: 1.5px solid var(--border-light);
      background: white;
      color: black;
      font-size: 0.95rem;
      font-weight: 500;
      transition: 0.2s;
    }
    input:focus, select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(229,92,30,0.15);
    }
    /* Hide number input spinners for cleaner look */
    input[type=number]::-webkit-inner-spin-button, 
    input[type=number]::-webkit-outer-spin-button {
      opacity: 0.5;
    }
    .date-triple {
      display: flex;
      gap: 12px;
    }
    .date-field {
      flex: 1;
    }
    .date-field select {
      padding: 0.7rem 0.5rem;
    }
    .btn-primary {
      background: #132a13;
      border: none;
      padding: 0.9rem 2rem;
      border-radius: 60px;
      font-weight: 700;
      color: white;
      font-size: 1rem;
      cursor: pointer;
      transition: 0.2s;
      width: 100%;
      max-width: 260px;
      margin: 1rem 0 0.5rem;
      letter-spacing: 0.3px;
      box-shadow: 0 6px 12px rgba(229,92,30,0.2);
    }
    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 20px rgba(229,92,30,0.3);
    }
    /* ---------- RESULT SECTION ---------- */
    .result-premium {
      margin-top: 2rem;
      background: white;
      border-radius: 1.5rem;
      padding: 1.5rem;
      border: 1px solid var(--border-light);
      transition: all 0.2s;
    }
    .result-main {
      font-size: 1.3rem;
      font-weight: 800;
      color: #023e8a;
      margin-bottom: 1rem;
      padding-left: 1rem;
      border-left: 5px solid var(--accent);
    }
    .result-stats-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin: 1rem 0;
    }
    .stat-chip {
      background: #90a955;
      border-radius: 40px;
      padding: 0.45rem 1.2rem;
      border: 1px solid var(--border-light);
      font-size: 0.85rem;
      font-weight: 500;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-primary);
      box-shadow: var(--shadow-sm);
    }
    /* ---------- EXPORT & COPY BUTTONS ROW ---------- */
    .download-icons-row {
      display: flex;
      justify-content: flex-end;
      gap: 1rem;
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-light);
    }
    .download-icon-btn, .copy-results-btn {
      background: transparent;
      border: none;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      color: #ad2831;
      transition: 0.2s;
      padding: 8px 20px;
      border-radius: 40px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .download-icon-btn:hover, .copy-results-btn:hover {
      background: #90a955;
      transform: translateY(-2px);
    }
    .download-icon-btn.disabled, .copy-results-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }
    /* ---------- PROFESSIONAL FOOTER ---------- */
    .pro-footer {
      background: #132a13;
      border-radius: 1.5rem 1.5rem 0 0;
      margin-top: 2.5rem;
      overflow: hidden;
      box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    }
    .footer-main {
      padding: 2rem 2rem 1rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 2rem;
    }
    .footer-brand-large {
      font-size: 1.3rem;
      font-weight: 800;
      background: white;
      -webkit-background-clip: text;
      background-clip: white;
      color: #ecf39e;
    }
    .footer-desc {
      font-size: 0.7rem;
      color: white;
    }
    .footer-links {
      display: flex;
      gap: 3rem;
      flex-wrap: wrap;
    }
    .footer-links-column h4 {
      font-size: 0.7rem;
      color: #ecf39e;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }
    .footer-links-column a {
      display: block;
      font-size: 0.75rem;
      color: white;
      text-decoration: none;
      transition: 0.2s;
      margin-bottom: 0.3rem;
    }
    .footer-links-column a:hover {
      color: #0077b6;
      transform: translateX(4px);
    }
    .footer-social-icons a {
      background: black;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 4px;
      color: white;
      transition: 0.2s;
    }
    .footer-social-icons a:hover {
      background: #90a955;
      transform: translateY(-3px);
    }
    .footer-bottom {
      text-align: center;
      padding: 1rem;
      font-size: 0.7rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      color: var(--footer-text);
    }
    /* ---------- TOAST NOTIFICATION ---------- */
    .toast-notification {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: black;
      color: white;
      padding: 12px 24px;
      border-radius: 40px;
      font-weight: 600;
      z-index: 2000;
      backdrop-filter: blur(8px);
      box-shadow: var(--shadow-lg);
      animation: fadeSlide 0.3s ease;
    }
    @keyframes fadeSlide {
      from { opacity: 0; transform: translateX(40px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .btn-primary.loading {
      opacity: 0.8;
      pointer-events: none;
    }
    @media (max-width: 560px) {
      .calculator-panel { padding: 1.25rem; }
      .date-triple { flex-direction: column; gap: 6px; }
      .btn-primary { max-width: 100%; }
    }