:root {
    --gold: #d4af37;
    --black: #111111;
    --white: #ffffff;
    --primary-teal: #0c4b5f;
    --accent-coral: #f26a4e;
    --muted: #6c757d;
    --bg-soft: #f7f7f7;
  }
  
  /* Cocon Next Arabic placeholders */
  @font-face {
    font-family: "CoconNextArabic";
    src: url("../fonts/CoconNextArabic-Regular.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: "CoconNextArabic";
    src: url("../fonts/CoconNextArabic-Bold.ttf") format("ttf");
    font-weight: 700;
    font-style: normal;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "CoconNextArabic", sans-serif;
    background-color: var(--white);
    color: #222;
    padding-top: 72px; /* fixed navbar */
  }
  
  .fixed-top{
    background: wheat;
  }
  /* Islamic subtle pattern */
  .islamic-pattern {
    background-image:
      radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.16) 1px, transparent 0);
    background-size: 24px 24px;
  }
  
  /* Navbar */
  
  .navbar-custom {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .logo-square {

    border-radius: 10px;

    position: relative;
    overflow: hidden;
  }
  
  .logo-square::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    border: 2px solid var(--gold);
  }
  
  .navbar-brand span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  /* Hero */
  
  .hero-section {
    min-height: 80vh;
    background: radial-gradient(circle at top left, #157a9b 0, var(--primary-teal) 35%, #02040a 80%);
    color: var(--white);
  }
  
  .hero-section .hero-card {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
  
  .hero-section .hero-card h2 {
    color: #222;
  }
  
  .hero-section .hero-card .btn-primary {
    background-color: var(--accent-coral);
    border-color: var(--accent-coral);
  }
  
  .hero-section .hero-card .btn-outline-light {
    color: #111;
  }
  
  /* Generic sections */
  
  .section-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
  }
  
  /* Cards */
  
  .card-soft {
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  }
  
  .card-soft-small {
    background-color: var(--white);
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  }
  
  /* Choose section cards */
  
  .zakat-section-card {
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .zakat-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  }
  
  .zakat-section-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background-color: #f4f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
  }
  
  .zakat-section-card-icon img {
    max-width: 32px;
  }
  
  /* Zakat outputs grid */
  
  .zakat-outputs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  @media (max-width: 992px) {
    .zakat-outputs-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 576px) {
    .zakat-outputs-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Buttons */
  
  .btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #111;
  }
  
  .btn-gold:hover {
    background-color: #caa52f;
    border-color: #caa52f;
    color: #111;
  }
  
  /* Tabs - pills */
  
  .nav-pills.zakat-pills .nav-link {
    border-radius: 999px;
    padding: 0.45rem 1.6rem;
    margin: 0 0.25rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .nav-pills.zakat-pills .nav-link img {
    width: 20px;
    height: 20px;
  }
  
  .nav-pills.zakat-pills .nav-link.active {
    background: linear-gradient(135deg, var(--gold), var(--accent-coral));
    color: #111;
    border-color: transparent;
  }
  
  /* Profile layout */
  
  .profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }
  
  @media (max-width: 992px) {
    .profile-layout {
      grid-template-columns: 1fr;
    }
  }
  
  .profile-sidebar {
    background-color: var(--white);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  }
  
  .profile-sidebar .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    color: #333;
  }
  
  .profile-sidebar .nav-link.active {
    background-color: var(--black);
    color: var(--gold);
  }
  

  /* Floating donate button */
  
  .floating-donate-btn {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 1050;
    background: linear-gradient(135deg, var(--gold), var(--accent-coral));
    color: #111;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
  .floating-donate-btn:hover {
    color: #111;
    transform: translateY(-1px);
  }
  
  /* Footer */
  
  .footer {
    background-color: #f1f3f6;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.875rem;
  }
  
  /* RTL helper */
  
  .rtl {
    direction: rtl;
    text-align: right;
  }
  .rtl .nav {
    justify-content: flex-end;
  }
  