* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #14f1a4;
    --primary-dark: #20e9a6;
    --secondary: #0f26f3c7;
    --white: #ffffff;
    --text: #1d1d1d;
    --muted: #f4f6f7;
    --border: #8d214a;
    --soft: #1abcfc;
    --warning: #b26a00;
    --success: #21ec91;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  
  body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
  }
  
  .container {
    width: 92%;
    max-width: 1150px;
    margin: 0 auto;
  }
  
  .hero {
    background: linear-gradient(135deg, rgba(22, 238, 162, 0.95), rgba(20, 143, 98, 0.95));
    color: var(--white);
    padding: 70px 0;
  }
  
  .hero-content {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.08rem;
    opacity: 0.95;
    margin-bottom: 25px;
  }
  
  .hero-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s ease;
  }
  
  .hero-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
  }
  
  .section-title p {
    color: var(--muted);
  }
  
  .card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 25px;
    border: 1px solid var(--border);
  }
  
  .info-card p {
    margin-bottom: 14px;
  }
  
  .note {
    background: #fff8e8;
    border-left: 4px solid var(--warning);
    padding: 12px;
    border-radius: 8px;
  }
  
  .calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 25px;
  }
  
  .card-title {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.35rem;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
  }
  
  input,
  select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8d3;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    outline: none;
  }
  
  input:focus,
  select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 107, 74, 0.12);
  }
  
  .helper-box {
    background: var(--soft);
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 10px;
    margin-top: 10px;
  }
  
  .button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .btn {
    border: none;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
    flex: 1;
    min-width: 150px;
  }
  
  .primary-btn {
    background: var(--primary);
    color: var(--white);
  }
  
  .primary-btn:hover {
    background: var(--primary-dark);
  }
  
  .secondary-btn {
    background: #dfe9e4;
    color: var(--text);
  }
  
  .secondary-btn:hover {
    background: #ced9d4;
  }
  
  .result-card {
    display: block;
  }
  
  .result-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 22px;
  }
  
  .result-item {
    background: #f7fbf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  
  .result-item span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
  }
  
  .result-item strong {
    font-size: 1.1rem;
    color: var(--primary);
  }
  
  .highlight-item {
    background: #eaf7f1;
    border: 1px solid #b9dfcc;
  }
  
  .breakdown {
    margin-bottom: 20px;
  }
  
  .breakdown h4 {
    margin-bottom: 12px;
    color: var(--primary);
  }
  
  .breakdown ul {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }
  
  .breakdown li:last-child {
    border-bottom: none;
  }
  
  .nisab-box {
    background: var(--soft);
    border-left: 4px solid var(--success);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  
  .nisab-box p {
    margin-bottom: 8px;
  }
  
  .nisab-box p:last-child {
    margin-bottom: 0;
  }
  
  .message-box {
    padding: 15px;
    border-radius: 10px;
    background: #f8faf9;
    border: 1px solid var(--border);
  }
  
  .tips-list {
    padding-left: 18px;
  }
  
  .tips-list li {
    margin-bottom: 10px;
  }
  
  .footer {
    background: #083a28;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
  }
  
  @media (max-width: 950px) {
    .calculator-grid {
      grid-template-columns: 1fr;
    }
  
    .result-summary {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .hero {
      padding: 55px 0;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  
    .section-title h2 {
      font-size: 1.6rem;
    }
  
    .card {
      padding: 18px;
    }
  
    .result-summary {
      grid-template-columns: 1fr;
    }
  
    .breakdown li {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .btn {
      width: 100%;
    }
  }
  .history-card {
    margin-top: 25px;
  }
  
  .history-list {
    margin-top: 20px;
  }
  
  .history-item {
    background: #f7fbf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .history-item p {
    margin-bottom: 6px;
  }
  
  .history-date {
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  .danger-btn {
    background: #b42318;
    color: white;
    margin-top: 10px;
  }
  
  .danger-btn:hover {
    background: #8f1d14;
  }
  .history-card {
    margin-top: 25px;
  }
  
  .history-list {
    margin-top: 20px;
  }
  
  .history-item {
    background: #f7fbf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .history-item p {
    margin-bottom: 6px;
  }
  
  .history-date {
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  .delete-btn {
    background: #b42318;
    color: #fff;
    margin-top: 10px;
  }
  
  .delete-btn:hover {
    background: #8f1d14;
  }