/* ═══ Halal gold trading landing page ═══
   Extracted from the template so browsers can cache it instead of
   re-downloading 30KB of CSS with every page view. Page-local classes
   only; the light frame comes from oasis-light.css + light-frame.css. */

    /* Override dark theme with light theme for this page */
    body {
        background: #FFFFFF !important;
        color: #1E293B !important;
    }

    body::before {
        background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%) !important;
    }

    :root {
        --light-bg-primary: #FFFFFF;
        --light-bg-secondary: #F8F9FA;
        --light-bg-card: #FEFEFE;
        --light-text-primary: #1E293B;
        --light-text-secondary: #64748B;
        --light-text-muted: #94A3B8;
        --light-border: #E2E8F0;
        --gold-primary: #FBBF24;
        --gold-secondary: #F59E0B;
        --success-green: #22C55E;
        --error-red: #EF4444;
        --info-blue: #3B82F6;
    }

    /* Typography for Arabic Text */
    .arabic-text {
        font-family: 'Amiri', 'Scheherazade New', serif;
        font-size: 24px;
        line-height: 1.8;
        color: #0F172A;
        direction: rtl;
        text-align: right;
        border-right: 3px solid var(--gold-primary);
        padding: 20px 25px 20px 20px;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
        border-radius: 8px;
        margin: 20px 0;
    }

    .arabic-small {
        font-size: 18px;
        line-height: 1.7;
    }

    .translation-text {
        font-style: italic;
        color: var(--light-text-secondary);
        font-size: 16px;
        line-height: 1.6;
        margin-top: 10px;
    }

    .reference-text {
        font-size: 14px;
        color: var(--light-text-muted);
        font-weight: 600;
        margin-top: 8px;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 0 80px;
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        position: relative;
        overflow: hidden;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .hero-title {
        font-size: 52px;
        font-weight: 800;
        color: #0F172A;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 24px;
        color: var(--light-text-secondary);
        font-weight: 500;
        margin-bottom: 30px;
    }

    .trust-badge {
        display: inline-block;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
        border: 2px solid var(--success-green);
        border-radius: 50px;
        padding: 8px 20px;
        margin: 5px;
        font-weight: 600;
        color: #059669;
        font-size: 14px;
    }

    .trust-badge i {
        color: var(--success-green);
        margin-right: 8px;
    }

    /* Buttons */
    .btn-halal-primary {
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
        color: #0F172A;
        font-weight: 700;
        padding: 16px 40px;
        border-radius: 12px;
        border: none;
        font-size: 18px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
        text-decoration: none;
        display: inline-block;
    }

    .btn-halal-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
        color: #0F172A;
    }

    .btn-halal-secondary {
        background: transparent;
        color: var(--gold-primary);
        font-weight: 600;
        padding: 14px 35px;
        border-radius: 12px;
        border: 2px solid var(--gold-primary);
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
    }

    .btn-halal-secondary:hover {
        background: rgba(251, 191, 36, 0.1);
        color: var(--gold-secondary);
        border-color: var(--gold-secondary);
    }

    /* Section Styling */
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 42px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60%;
        height: 4px;
        background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
        border-radius: 2px;
    }

    .section-subtitle {
        font-size: 18px;
        color: var(--light-text-secondary);
        margin-bottom: 50px;
        max-width: 800px;
    }

    /* Comparison Grid */
    .comparison-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .comparison-card {
        background: var(--light-bg-card);
        border: 2px solid var(--light-border);
        border-radius: 16px;
        padding: 35px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .comparison-card.haram {
        border-color: rgba(239, 68, 68, 0.3);
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, #FFFFFF 100%);
    }

    .comparison-card.halal {
        border-color: rgba(34, 197, 94, 0.3);
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.03) 0%, #FFFFFF 100%);
    }

    .comparison-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .comparison-card h3 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 25px;
    }

    .comparison-card.haram h3 {
        color: var(--error-red);
    }

    .comparison-card.halal h3 {
        color: var(--success-green);
    }

    .comparison-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.6;
    }

    .comparison-item i {
        font-size: 20px;
        margin-right: 12px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .comparison-item.haram-item i {
        color: var(--error-red);
    }

    .comparison-item.halal-item i {
        color: var(--success-green);
    }

    /* Comparison Table */
    .comparison-table-wrapper {
        overflow-x: auto;
        margin: 40px 0;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
    }

    .comparison-table thead {
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        color: white;
    }

    .comparison-table th {
        padding: 20px;
        text-align: left;
        font-weight: 700;
        font-size: 16px;
        border-bottom: 3px solid var(--gold-primary);
    }

    .comparison-table td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--light-border);
        font-size: 15px;
        color: var(--light-text-primary);
    }

    .comparison-table tr:hover {
        background: rgba(251, 191, 36, 0.05);
    }

    .table-check {
        color: var(--success-green);
        font-size: 20px;
    }

    .table-cross {
        color: var(--error-red);
        font-size: 20px;
    }

    /* Feature Cards */
    .feature-card {
        background: white;
        border: 2px solid var(--light-border);
        border-radius: 16px;
        padding: 35px 25px;
        text-align: center;
        transition: all 0.3s ease;
        height: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(251, 191, 36, 0.2);
        border-color: var(--gold-primary);
    }

    .feature-icon {
        font-size: 48px;
        margin-bottom: 20px;
        color: var(--gold-primary);
    }

    .feature-card h3 {
        font-size: 22px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 15px;
    }

    .feature-card p {
        font-size: 15px;
        color: var(--light-text-secondary);
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .feature-card ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        text-align: left;
    }

    .feature-card ul li {
        padding: 8px 0;
        color: var(--light-text-secondary);
        font-size: 14px;
    }

    .feature-card ul li i {
        color: var(--success-green);
        margin-right: 10px;
    }

    /* Budget Cards */
    .budget-card {
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        border: 2px solid var(--light-border);
        border-radius: 20px;
        padding: 40px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        height: 100%;
    }

    .budget-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(251, 191, 36, 0.25);
        border-color: var(--gold-primary);
    }

    .budget-icon {
        font-size: 56px;
        margin-bottom: 25px;
    }

    .budget-card h3 {
        font-size: 26px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 15px;
    }

    .budget-card .description {
        font-size: 16px;
        color: var(--light-text-secondary);
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .budget-benefits {
        background: rgba(251, 191, 36, 0.05);
        border-radius: 12px;
        padding: 20px;
        margin: 25px 0;
    }

    .budget-benefits h4 {
        font-size: 16px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 15px;
    }

    .budget-benefits ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .budget-benefits li {
        padding: 8px 0;
        color: var(--light-text-secondary);
        font-size: 15px;
    }

    .budget-benefits li i {
        color: var(--success-green);
        margin-right: 10px;
    }

    /* Calculator Widget */
    .calculator-widget {
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        border-radius: 20px;
        padding: 40px;
        color: white;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        margin: 40px 0;
    }

    .calculator-widget h3 {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 25px;
        color: white;
    }

    .calculator-input-group {
        margin-bottom: 20px;
    }

    .calculator-input-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #E2E8F0;
    }

    .calculator-input-group input {
        width: 100%;
        padding: 15px 20px;
        border-radius: 10px;
        border: 2px solid rgba(251, 191, 36, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 18px;
        font-weight: 600;
    }

    .calculator-input-group input:focus {
        border-color: var(--gold-primary);
        outline: none;
        background: rgba(255, 255, 255, 0.15);
    }

    .calculator-result {
        background: rgba(251, 191, 36, 0.15);
        border: 2px solid var(--gold-primary);
        border-radius: 12px;
        padding: 20px;
        margin-top: 20px;
    }

    .calculator-result-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .calculator-result-item:last-child {
        border-bottom: none;
    }

    .calculator-result-label {
        font-size: 15px;
        color: #E2E8F0;
    }

    .calculator-result-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--gold-primary);
    }

    .live-price-ticker {
        background: rgba(34, 197, 94, 0.15);
        border: 2px solid var(--success-green);
        border-radius: 10px;
        padding: 12px 20px;
        margin-top: 20px;
        text-align: center;
    }

    .live-price-ticker span {
        font-size: 14px;
        color: #CBD5E1;
        margin-right: 10px;
    }

    .live-price-ticker strong {
        font-size: 20px;
        color: var(--success-green);
        font-weight: 700;
    }

    /* Islamic Principle Cards */
    .principle-card {
        background: white;
        border: 2px solid var(--light-border);
        border-radius: 16px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .principle-card:hover {
        border-color: var(--gold-primary);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
    }

    .principle-title {
        font-size: 22px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .principle-title i {
        color: var(--gold-primary);
        margin-right: 12px;
        font-size: 24px;
    }

    .implementation-box {
        background: rgba(34, 197, 94, 0.05);
        border-left: 4px solid var(--success-green);
        padding: 15px 20px;
        margin-top: 15px;
        border-radius: 8px;
    }

    .implementation-box strong {
        color: var(--success-green);
        font-weight: 700;
    }

    .implementation-box p {
        margin: 5px 0 0 0;
        color: var(--light-text-secondary);
        font-size: 15px;
    }

    /* Scholar Quote Card */
    .scholar-quote {
        background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
        border: 2px solid var(--light-border);
        border-left: 5px solid var(--gold-primary);
        border-radius: 12px;
        padding: 30px;
        margin: 25px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .scholar-name {
        font-size: 18px;
        font-weight: 700;
        color: #0F172A;
        margin-bottom: 5px;
    }

    .scholar-credentials {
        font-size: 14px;
        color: var(--light-text-muted);
        font-style: italic;
        margin-bottom: 15px;
    }

    .scholar-quote-text {
        font-size: 16px;
        color: var(--light-text-secondary);
        font-style: italic;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .scholar-source {
        font-size: 13px;
        color: var(--light-text-muted);
        font-weight: 600;
    }

    /* Warning/Alert Boxes */
    .alert-box {
        border-radius: 12px;
        padding: 25px 30px;
        margin: 30px 0;
        border-left: 5px solid;
    }

    .alert-warning {
        background: rgba(251, 191, 36, 0.1);
        border-color: var(--gold-primary);
    }

    .alert-danger {
        background: rgba(239, 68, 68, 0.1);
        border-color: var(--error-red);
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.1);
        border-color: var(--info-blue);
    }

    .alert-box h4 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .alert-box h4 i {
        font-size: 24px;
        margin-right: 12px;
    }

    .alert-warning h4 {
        color: #D97706;
    }

    .alert-warning h4 i {
        color: var(--gold-primary);
    }

    .alert-danger h4 {
        color: #DC2626;
    }

    .alert-danger h4 i {
        color: var(--error-red);
    }

    .alert-info h4 {
        color: #2563EB;
    }

    .alert-info h4 i {
        color: var(--info-blue);
    }

    /* FAQ Accordion */
    .faq-item {
        background: white;
        border: 2px solid var(--light-border);
        border-radius: 12px;
        margin-bottom: 15px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .faq-item:hover {
        border-color: var(--gold-primary);
    }

    .faq-question {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        padding: 20px 25px;
        font-size: 18px;
        font-weight: 600;
        color: #0F172A;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .faq-question:hover {
        color: var(--gold-primary);
    }

    .faq-question i {
        font-size: 20px;
        color: var(--gold-primary);
        transition: transform 0.3s ease;
    }

    .faq-question.active i {
        transform: rotate(180deg);
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(251, 191, 36, 0.02);
    }

    .faq-answer.active {
        max-height: 500px;
    }

    .faq-answer-content {
        padding: 0 25px 20px 25px;
        color: var(--light-text-secondary);
        font-size: 15px;
        line-height: 1.7;
    }

    /* Badge/Logo Styling */
    .compliance-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin: 40px 0;
    }

    .compliance-badge {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
        border: 2px solid var(--success-green);
        border-radius: 12px;
        padding: 15px 30px;
        font-weight: 700;
        color: var(--success-green);
        font-size: 14px;
        display: flex;
        align-items: center;
    }

    .compliance-badge i {
        font-size: 24px;
        margin-right: 10px;
    }

    /* Profit Comparison Example */
    .profit-example {
        background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
        border: 2px solid var(--light-border);
        border-radius: 16px;
        padding: 30px;
        margin: 25px 0;
    }

    .profit-comparison-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .profit-box {
        padding: 20px;
        border-radius: 12px;
        text-align: center;
    }

    .profit-box.conventional {
        background: rgba(239, 68, 68, 0.1);
        border: 2px solid rgba(239, 68, 68, 0.3);
    }

    .profit-box.halal {
        background: rgba(34, 197, 94, 0.1);
        border: 2px solid rgba(34, 197, 94, 0.3);
    }

    .profit-box h5 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .profit-box.conventional h5 {
        color: var(--error-red);
    }

    .profit-box.halal h5 {
        color: var(--success-green);
    }

    .profit-amount {
        font-size: 32px;
        font-weight: 800;
        margin: 10px 0;
    }

    .profit-box.conventional .profit-amount {
        color: var(--error-red);
    }

    .profit-box.halal .profit-amount {
        color: var(--success-green);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 36px;
        }

        .hero-subtitle {
            font-size: 18px;
        }

        .section-title {
            font-size: 32px;
        }

        .comparison-grid {
            grid-template-columns: 1fr;
        }

        .profit-comparison-row {
            grid-template-columns: 1fr;
        }

        .btn-halal-primary {
            width: 100%;
            text-align: center;
        }

        .btn-halal-secondary {
            width: 100%;
            text-align: center;
            margin-top: 10px;
        }

        .arabic-text {
            font-size: 20px;
        }
    }

/* ═══ Sections added in the 2026-09 rewrite ══════════════
   Namespaced .ht-* / .htx-* (animations) so nothing here collides with the
   original page classes above. */

.ht-link { color: #B45309; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── direct answer block ────────────────────────────── */
.ht-answer-section { padding-top: 46px; padding-bottom: 10px; }
.ht-answer {
    padding: 30px 32px; border-radius: 20px;
    background: linear-gradient(150deg, #FFF8E7 0%, #FFFFFF 100%);
    border: 1px solid #E9E2D0; box-shadow: 0 10px 34px rgba(120, 80, 0, .08);
}
.ht-answer h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; color: #1E293B; letter-spacing: -.5px; }
.ht-answer-lead { font-size: 17px; line-height: 1.75; color: #57534E; margin: 0 0 22px; }
.ht-answer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.ht-answer-yes, .ht-answer-no { padding: 18px 20px; border-radius: 14px; border: 1px solid; }
.ht-answer-yes { background: rgba(21, 128, 61, .07); border-color: rgba(21, 128, 61, .28); }
.ht-answer-no { background: rgba(185, 28, 28, .06); border-color: rgba(185, 28, 28, .26); }
.ht-answer-yes > span, .ht-answer-no > span {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
    font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px;
}
.ht-answer-yes > span { color: #15803D; } .ht-answer-no > span { color: #B91C1C; }
.ht-answer-yes ul, .ht-answer-no ul { margin: 0; padding-left: 20px; }
.ht-answer-yes li, .ht-answer-no li { font-size: 15px; line-height: 1.6; color: #57534E; margin-bottom: 6px; }

/* ── condition / step cards ─────────────────────────── */
.ht-cond {
    padding: 16px 18px; margin-bottom: 12px; border-radius: 14px;
    background: #FFFDF7; border: 1px solid #E9E2D0;
}
.ht-cond h4 {
    display: flex; align-items: center; gap: 11px; margin: 0 0 6px;
    font-size: 17px; font-weight: 750; color: #1E293B;
}
.ht-cond h4 span {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #7C3E06;
    font-size: 14px; font-weight: 800; flex: 0 0 28px;
}
.ht-cond p { margin: 0; font-size: 15px; line-height: 1.65; color: #57534E; }

/* ── evidence blocks ────────────────────────────────── */
.ht-dalil {
    padding: 22px 24px; margin-bottom: 18px; border-radius: 16px;
    background: linear-gradient(150deg, #FFF8E7 0%, #FFFFFF 100%);
    border: 1px solid #E9E2D0; border-left: 4px solid #0F766E;
}
.ht-dalil-tag {
    font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
    color: #0F766E; margin-bottom: 12px;
}
.ht-arabic {
    font-family: 'Amiri', 'Scheherazade New', serif; font-size: 26px; line-height: 2;
    color: #1E293B; margin: 0 0 12px; text-align: right;
}
.ht-dalil-text { font-size: 17px; line-height: 1.75; color: #1E293B; margin: 0 0 10px; }
.ht-dalil-note { font-size: 14.5px; line-height: 1.7; color: #78716C; margin: 0; }
.ht-sub-heading {
    margin: 34px 0 18px; font-size: 22px; font-weight: 800; color: #1E293B; letter-spacing: -.3px;
}

.ht-note-box {
    display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px;
    background: rgba(245, 158, 11, .09); border: 1px solid rgba(180, 83, 9, .24);
    color: #7C3E06; font-size: 15px; line-height: 1.65; margin: 22px 0;
}
.ht-note-box i { font-size: 17px; margin-top: 2px; }

/* ── structural facts ───────────────────────────────── */
.ht-fact {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; margin-bottom: 14px; border-radius: 15px;
    background: #FFFDF7; border: 1px solid #E9E2D0;
}
.ht-fact-num {
    font-size: 30px; font-weight: 850; line-height: 1; color: #B45309; flex: 0 0 auto; min-width: 62px;
}
.ht-fact strong { display: block; font-size: 17px; color: #1E293B; margin-bottom: 5px; }
.ht-fact p { margin: 0; font-size: 15px; line-height: 1.65; color: #57534E; }

/* ── worked example ─────────────────────────────────── */
.ht-example { border-radius: 16px; border: 1px solid #E9E2D0; overflow: hidden; background: #FFFDF7; }
.ht-example-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 13px 18px; border-bottom: 1px solid #F2EADA; font-size: 15px;
}
.ht-example-row:last-child { border-bottom: 0; }
.ht-example-row span { color: #78716C; }
.ht-example-row strong { color: #1E293B; text-align: right; font-weight: 700; }
.ht-example-row .ht-zero { color: #15803D; }
.ht-small { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: #78716C; }

/* ── comparison table ───────────────────────────────── */
.ht-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #E9E2D0; }
.ht-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #FFFDF7; min-width: 720px; }
.ht-table th {
    background: #FFF8E7; color: #B45309; text-align: left; padding: 14px 16px;
    font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}
.ht-table td { padding: 14px 16px; border-top: 1px solid #F2EADA; color: #57534E; vertical-align: top; }
.ht-table tbody tr:nth-child(even) td { background: #FFFFFF; }
.ht-table .ht-ok { color: #15803D; font-weight: 750; }
.ht-table .ht-no { color: #B91C1C; font-weight: 750; }
.ht-table .ht-maybe { color: #B45309; font-weight: 700; }

/* ── zakat panel ────────────────────────────────────── */
.ht-zakat {
    display: flex; gap: 22px; padding: 28px 30px; border-radius: 20px;
    background: linear-gradient(150deg, rgba(13, 148, 136, .07) 0%, #FFFFFF 100%);
    border: 1px solid rgba(15, 118, 110, .26);
}
.ht-zakat-icon {
    flex: 0 0 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: rgba(15, 118, 110, .12); color: #0F766E; font-size: 22px;
}
.ht-zakat p { font-size: 16px; line-height: 1.75; color: #57534E; margin: 0 0 14px; }

/* ── learn grid ─────────────────────────────────────── */
.ht-learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.ht-learn {
    display: block; padding: 20px; border-radius: 16px; text-decoration: none;
    background: linear-gradient(150deg, #FFF8E7 0%, #FFFFFF 100%);
    border: 1px solid #E9E2D0; transition: transform .18s, box-shadow .18s;
}
.ht-learn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(120, 80, 0, .1); }
.ht-learn i { font-size: 19px; color: #B45309; }
.ht-learn strong { display: block; margin: 10px 0 5px; font-size: 16px; color: #1E293B; }
.ht-learn span { font-size: 14px; line-height: 1.6; color: #78716C; }

/* ── inline SVG labels ──────────────────────────────── */
.ht-svg-label { font: 800 12px Inter, sans-serif; fill: #78716C; letter-spacing: .6px; }
.ht-svg-in { font: 800 22px Inter, sans-serif; fill: #FFFFFF; }
.ht-svg-no { font: 800 12px Inter, sans-serif; fill: #B91C1C; }
.ht-svg-cap { font: 400 13px Inter, sans-serif; fill: #78716C; }
.ht-svg-t { font: 800 14px Inter, sans-serif; fill: #1E293B; }
.ht-svg-s { font: 400 12.5px Inter, sans-serif; fill: #78716C; }
.ht-svg-core { font: 800 17px Inter, sans-serif; fill: #7C3E06; }
.ht-svg-core-sub { font: 700 11px Inter, sans-serif; fill: #7C3E06; }

/* ── animations ─────────────────────────────────────── */
.htx-flow { animation: htx-slide 3.4s ease-in-out infinite; }
@keyframes htx-slide { 0%, 100% { opacity: .55; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(6px); } }
.htx-none { animation: htx-fade 3.4s ease-in-out infinite; }
@keyframes htx-fade { 0%, 40% { opacity: .35; } 60%, 100% { opacity: 1; } }
.htx-core { animation: htx-pulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes htx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.htx-node { animation: htx-in .7s ease both; }
.htx-n2 { animation-delay: .2s; } .htx-n3 { animation-delay: .4s; } .htx-n4 { animation-delay: .6s; }
@keyframes htx-in { from { opacity: 0; } to { opacity: 1; } }
.htx-ray { stroke-dasharray: 6 7; animation: htx-dash 2.6s linear infinite; }
@keyframes htx-dash { to { stroke-dashoffset: -26; } }
.htx-grow { animation: htx-wide 1s cubic-bezier(.2,.8,.3,1) both; transform-box: fill-box; transform-origin: left center; }
.htx-g2 { animation-delay: .3s; }
@keyframes htx-wide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.htx-fee { animation: htx-late 4s ease infinite; }
@keyframes htx-late { 0%, 45% { opacity: 0; } 60%, 100% { opacity: 1; } }
.htx-price { stroke-dasharray: 700; stroke-dashoffset: 700; animation: htx-draw 4.5s ease forwards infinite; }
@keyframes htx-draw { 0% { stroke-dashoffset: 700; } 70%, 100% { stroke-dashoffset: 0; } }
.htx-buy { animation: htx-in .6s ease .3s both; }
.htx-sell { animation: htx-in .6s ease 2.6s both; }
.htx-own { animation: htx-fade 4.5s ease-in-out infinite; }

@media (max-width: 767.98px) {
    .ht-answer { padding: 22px 18px; }
    .ht-answer h2 { font-size: 23px; }
    .ht-zakat { flex-direction: column; gap: 14px; }
    .ht-fact { flex-direction: column; gap: 6px; }
    .ht-arabic { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .htx-flow, .htx-none, .htx-core, .htx-node, .htx-ray, .htx-grow,
    .htx-fee, .htx-buy, .htx-sell, .htx-own { animation: none !important; opacity: 1; transform: none; }
    .htx-price { animation: none !important; stroke-dashoffset: 0; }
}

/* ── the comparison table becomes cards on a phone ──────
   A five-column table cannot be read on a 360px screen, and sideways
   scrolling hides the verdict column — the one people came for. Each row
   restacks into a card, with every cell labelled from its data-label. */
@media (max-width: 767.98px) {
    .ht-table-wrap { overflow: visible; border: 0; border-radius: 0; }
    .ht-table { min-width: 0; background: none; font-size: 14.5px; }
    .ht-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ht-table tbody, .ht-table tr, .ht-table td { display: block; width: 100%; }
    .ht-table tr {
        margin-bottom: 14px; padding: 6px 0 2px; border-radius: 15px;
        background: #FFFDF7; border: 1px solid #E9E2D0;
        border-left: 3px solid #D97706; overflow: hidden;
    }
    .ht-table tbody tr:nth-child(even) td { background: transparent; }
    .ht-table td {
        display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
        padding: 9px 15px; border-top: 0; text-align: right;
    }
    .ht-table td + td { border-top: 1px solid #F2EADA; }
    .ht-table td::before {
        content: attr(data-label);
        flex: 0 0 auto; text-align: left; color: #78716C;
        font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    }
    /* the product name heads the card rather than sitting in a labelled row */
    .ht-table td:first-child {
        background: #FFF8E7; padding: 12px 15px; font-size: 15.5px; text-align: left;
    }
    .ht-table td:first-child::before { content: none; }
}

/* the worked example reads better stacked once the screen is narrow */
@media (max-width: 479.98px) {
    .ht-example-row { flex-direction: column; gap: 3px; }
    .ht-example-row strong { text-align: left; }
}
