/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    --primary: #1B6B45;
    --primary-light: #2D9E6B;
    --primary-dark: #0D3D26;
    --accent: #C9A84C;
    --accent-light: #F0D078;
    --accent-2: #8B1A1A;
    --bg-dark: #0F1F17;
    --bg-light: #F4FAF7;
    --bg-white: #FFFFFF;
    --text-dark: #1A2E1F;
    --text-gray: #5A7267;
    --border: #D4E8DD;
    --success: #27AE60;
    --card-bg: #FFFFFF;
    --card-border: #E0F0E8;

    --shadow-sm: 0 2px 8px rgba(27, 107, 69, 0.08);
    --shadow-md: 0 8px 30px rgba(27, 107, 69, 0.12);
    --shadow-lg: 0 20px 60px rgba(27, 107, 69, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-light: #0D1F14;
    --bg-white: #162B1D;
    --text-dark: #E8F5EE;
    --text-gray: #8DB5A0;
    --border: #2A4A35;
    --card-bg: #162B1D;
    --card-border: #2A4A35;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
     ANIMATIONS
     ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes coinRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-80px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes crescentPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.8));
    }
}

@keyframes coinFlip {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(27, 107, 69, 0.4),
            0 8px 30px rgba(27, 107, 69, 0.3);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(27, 107, 69, 0),
            0 8px 30px rgba(27, 107, 69, 0.3);
    }
}

@keyframes scaleBalance {

    0%,
    100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes resultReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes goldGlow {

    0%,
    100% {
        color: var(--accent);
    }

    50% {
        color: var(--accent-light);
        text-shadow: 0 0 20px var(--accent);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* ============================================
     GLOBAL STYLES & TYPOGRAPHY
     ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* RTL Global Support */
.RTL {
    direction: rtl;
    text-align: right;
}

/* Container text alignment for RTL */
.RTL .container,
.RTL p,
.RTL h1,
.RTL h2,
.RTL h3,
.RTL h4,
.RTL h5,
.RTL h6,
.RTL .hero-p,
.RTL .disclaimer,
.RTL .hero-sub {
    text-align: right;
}

/* Nav Flex Direction RTL */
.RTL .nav-container,
.RTL .header-container {
    flex-direction: row-reverse;
}

.RTL .nav-links {
    margin-right: auto;
    margin-left: 0;
}

.RTL .desktop-nav {
    flex-direction: row-reverse;
}

.RTL .header-actions {
    margin-right: auto;
    margin-left: 0;
}

.RTL .input-row {
    flex-direction: row-reverse;
}

.RTL .hero-grid {
    direction: rtl;
    /* FLip the hero columns */
}

/* Float card positioning for RTL */
.RTL .floating-card.c1 {
    right: -5%;
    left: auto;
}

.RTL .floating-card.c2 {
    left: -5%;
    right: auto;
}

/* Footer alignment */
.RTL .footer-col h4,
.RTL .footer-col ul li a {
    text-align: right;
    display: block;
}

.RTL .social-links,
.RTL .bottom-flex {
    flex-direction: row-reverse;
}

.RTL .bottom-flex p {
    text-align: inherit;
}

html {
    scroll-behavior: smooth;
}

.rtl-mode {
    direction: rtl;
    font-family: 'Amiri', serif;
}

.rtl-mode.ur-lang {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.rtl-mode h1,
.rtl-mode h2,
.rtl-mode h3,
.rtl-mode h4,
.rtl-mode h5,
.rtl-mode h6 {
    font-family: 'Amiri', serif;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.rtl-mode .btn {
    font-family: 'Amiri', serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary.pulse-btn {
    animation: pulse 2s infinite;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
     HEADER & NAV
     ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(244, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="dark"] .main-header {
    background: rgba(13, 31, 20, 0.9);
    border-bottom: 1px solid var(--border);
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

.site-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.desktop-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.desktop-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions>* {
    flex-shrink: 0;
}

.lang-selector {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.mobile-nav-menu.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
}

/* ============================================
     HERO SECTION
     ============================================ */
.hero-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease forwards;
}

.hero-calligraphy {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    direction: rtl;
}

.hero-badge {
    display: inline-block;
    background: rgba(45, 158, 107, 0.1);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0;
}

.hero-h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

[data-theme="dark"] .hero-h1 {
    color: #fff;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.trust-signals {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-illustration {
    position: relative;
    animation: fadeInRight 0.8s ease forwards;
}

.illustration-svg {
    width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--primary);
    animation: float 4s ease-in-out infinite;
    border: 1px solid var(--border);
}

.floating-card.c1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-card.c2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1s;
}

.floating-card.c3 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

/* ============================================
     LIVE NISAB WIDGET
     ============================================ */
.nisab-live-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -30px auto 50px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.nisab-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nisab-label {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
}

.nisab-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.nisab-note {
    font-size: 12px;
    color: var(--text-gray);
}

.nisab-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

.nisab-info a {
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
}

/* ============================================
     CALCULATOR COMPONENT
     ============================================ */
.calculator-section {
    padding: 60px 0;
}

.calc-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.calc-header {
    background: rgba(27, 107, 69, 0.03);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.nisab-selector {
    margin-top: 25px;
}

.nisab-toggle {
    display: inline-flex;
    background: var(--border);
    border-radius: 30px;
    padding: 4px;
    margin: 10px 0;
}

.nisab-toggle button {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.nisab-toggle button.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.scholar-note {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
}

.currency-row {
    padding: 20px 40px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.currency-row select {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.asset-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-white);
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

.currency-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol-prefix {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    font-weight: 600;
    pointer-events: none;
    font-size: 16px;
}

.currency-wrapper input {
    padding-left: 35px !important;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 107, 69, 0.1);
}

.input-group input.error {
    border-color: var(--accent-2);
    animation: shake 0.4s;
}

.input-note {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 6px;
}

.info-box {
    background: rgba(201, 168, 76, 0.1);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.info-box.success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success);
}

.calculated-value {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calculated-value label {
    font-size: 13px;
    color: var(--text-gray);
}

.calculated-value span#gold-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.live-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    align-self: flex-start;
    margin-top: 5px;
}

.calc-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* ============================================
     RESULTS SECTION
     ============================================ */
.calc-results {
    padding: 40px;
    background: var(--card-bg);
    animation: resultReveal 0.6s ease forwards;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: goldGlow 3s infinite;
}

.nisab-check {
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 600;
}

.nisab-check.above {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.nisab-check.below {
    background: rgba(139, 26, 26, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(139, 26, 26, 0.3);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.results-table th,
.results-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.results-table th {
    background: var(--bg-light);
    color: var(--text-gray);
    font-weight: 600;
}

.total-row td {
    font-weight: 700;
    color: var(--primary);
}

.deductions-row td {
    color: var(--accent-2);
}

.net-row td {
    font-size: 18px;
    font-weight: 800;
    background: var(--bg-light);
}

.zakat-due-box {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.zakat-due-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
}

.zakat-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-light);
    margin: 10px 0;
}

.per-month {
    opacity: 0.8;
    font-size: 15px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-pdf,
.btn-copy,
.btn-share {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-pdf:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.fitr-addon {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.fitr-addon input {
    width: 60px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-align: center;
}

/* ============================================
     ELIGIBILITY QUIZ
     ============================================ */
.eligibility-quiz {
    padding: 60px 0;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
}

.quiz-card {
    background: var(--card-bg);
    color: var(--text-dark);
    max-width: 600px;
    margin: 30px auto 0;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.quiz-step {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

.quiz-step.active {
    display: block;
}

.quiz-step p {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.quiz-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-btn:hover {
    background: rgba(27, 107, 69, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
     STATS BAR
     ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
     CARDS & LISTS
     ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.type-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* ============================================
     RAMADAN WIDGET
     ============================================ */
.ramadan-widget {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.ramadan-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: coinFlip 10s infinite reverse;
}

.ramadan-widget input {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    margin: 10px;
    font-family: inherit;
}

.ramadan-widget button {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.ramadan-widget button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.ramadan-countdown {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--accent-light);
}

/* ============================================
     FOOTER
     ============================================ */
.main-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-divider {
    height: 10px;
    background: repeating-linear-gradient(45deg,
            var(--accent),
            var(--accent) 10px,
            var(--primary-dark) 10px,
            var(--primary-dark) 20px);
    width: 100%;
    margin-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 25px 0;
    font-size: 13px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ============================================
     RESPONSIVE DESIGN (MEDIA QUERIES)
     ============================================ */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trust-signals {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .nisab-live-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nisab-divider {
        width: 100%;
        height: 1px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hidden-mobile {
        display: none;
    }

    .asset-tabs {
        flex-direction: column;
    }

    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .calc-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .bottom-flex {
        justify-content: center;
        text-align: center;
    }

    .trust-signals {
        grid-template-columns: 1fr;
    }
}

/* Typography Scale */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ============================================
   SEO ARTICLE STYLES
   ============================================ */
.seo-section {
    padding: 80px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.seo-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.seo-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 900px) {
    .seo-layout {
        grid-template-columns: 1fr;
    }

    .seo-sidebar {
        display: none;
    }
}

.sticky-toc {
    position: sticky;
    top: 100px;
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    padding-left: 10px;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.toc-nav a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
}

.seo-main h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.seo-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.seo-main p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.quick-answer-box {
    background: linear-gradient(135deg, rgba(27, 107, 69, 0.05), rgba(27, 107, 69, 0.01));
    border-left: 5px solid var(--primary);
    padding: 30px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 20px;
}

.quick-answer-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.quran-quote {
    background: rgba(201, 168, 76, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 30px 0;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.recipient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.recipient-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-size: 0.95rem;
}

.recipient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

.styled-table thead {
    background: var(--primary);
    color: white;
}

.styled-table th,
.styled-table td {
    padding: 15px 20px;
    text-align: left;
}

.styled-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.styled-table tbody tr:hover {
    background: var(--bg-light);
}

.condition-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    background: var(--bg-light);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.styled-list {
    margin: 20px 0 30px;
    padding-left: 20px;
    line-height: 1.8;
}

.styled-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.ruling-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 600px) {
    .ruling-cards {
        grid-template-columns: 1fr;
    }
}

.ruling-card {
    padding: 30px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
}

.ruling-card.hanafi {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
}

.ruling-card.majority {
    background: rgba(27, 107, 69, 0.05);
    border-color: rgba(27, 107, 69, 0.15);
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: normal;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 15px;
}

.author-bio {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
}

.author-links a {
    color: var(--primary);
    font-weight: 600;
    margin-right: 15px;
    text-decoration: none;
}

/* ============================================
   MOBILE RESPONSIVENESS (Phase 4)
   ============================================ */

/* Mobile Nav Menu Base */
.mobile-nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid var(--border);
}

.mobile-nav-menu.open {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1150px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
        padding: 0;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hidden-mobile {
        display: none !important;
    }

    .logo-text-3,
    .logo-tagline {
        display: none;
    }
}

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        font-size: 16px;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100%;
    }

    .header-container {
        padding: 10px 15px;
        gap: 10px;
    }

    .site-logo {
        max-width: 120px;
        height: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-selector {
        padding: 4px 6px;
        font-size: 12px;
    }

    .hero-content {
        padding: 20px 10px;
    }

    .hero-h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 1rem !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-grid,
    .card-grid,
    .trust-signals,
    .features-grid,
    .steps-grid,
    .calculator-grid,
    .input-grid,
    .recipient-grid,
    .condition-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .trust-signals {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        width: 100% !important;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .calculator-container {
        padding: 20px !important;
        margin: 20px 0 !important;
    }

    .tab-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        justify-content: flex-start !important;
    }

    .tab {
        flex: 0 0 auto;
        padding: 12px 20px !important;
    }

    .results-grid {
        grid-template-columns: 1fr !important;
    }

    .btn,
    input,
    select {
        min-height: 48px;
    }

    .faq-item summary {
        font-size: 1rem !important;
        padding: 15px 10px !important;
    }

    .faq-content {
        padding: 0 10px 15px !important;
    }

    h1,
    h2,
    h3,
    h4,
    p,
    a,
    span {
        word-break: break-word;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .nisab-live-bar {
        flex-direction: column;
        padding: 20px 15px;
        text-align: center;
        gap: 15px;
        width: 100%;
    }

    .nisab-item {
        align-items: center;
        width: 100%;
    }

    .nisab-price {
        font-size: 24px;
    }

    .nisab-divider {
        width: 100%;
        height: 1px;
    }

    .quick-answer-box,
    .quran-quote {
        padding: 20px !important;
    }

    .arabic-text {
        font-size: 1.8rem !important;
        word-break: break-word;
    }

    .seo-layout {
        gap: 30px;
    }

    .seo-header {
        margin-bottom: 30px !important;
    }

    .floating-card {
        display: none !important;
    }
}

/* ============================================
   GOOGLE TRANSLATE OVERRIDES (Full Page Sync)
   ============================================ */
iframe.goog-te-banner-frame {
    display: none !important;
}

body,
html {
    top: 0px !important;
    position: static !important;
}

.goog-te-spinner-pos {
    display: none !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}