.nisab-card {
    background: linear-gradient(145deg, #FDF8ED, #FAF0D0);
    border: 1.5px solid var(--border-gold);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.nisab-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.nisab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .nisab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nisab-item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px solid var(--border-gold);
}

.nisab-item.highlight {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-dark);
    box-shadow: 0 3px 10px rgba(184,134,11,0.3);
}

.nisab-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.nisab-item.highlight .nisab-label {
    color: rgba(255,255,255,0.85);
}

.nisab-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    direction: ltr;
    unicode-bidi: isolate;
}

.nisab-item.highlight .nisab-value {
    color: #fff;
    font-size: 15px;
}

.nisab-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.nisab-item.highlight .nisab-sub {
    color: rgba(255,255,255,0.75);
}

.zakat-calc-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.zakat-section-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zakat-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zakat-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: var(--bg2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.zakat-input-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.zakat-karat-badge {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 36px;
    text-align: center;
}

.zakat-karat-badge.silver {
    background: linear-gradient(135deg, #C0C8D0, #8A9AAA);
}

.zakat-input-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zakat-input-field .calc-input {
    width: 130px;
    text-align: center;
}

.input-unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.hawl-check {
    margin-top: 20px;
    padding: 16px;
    background: #F0F8FF;
    border: 1.5px solid #B0C8E0;
    border-radius: 12px;
}

.hawl-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
}

.hawl-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.hawl-note {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 8px;
    margin-right: 28px;
}

.zakat-result-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.zakat-result-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    padding: 16px 24px;
}

.breakdown-grid {
    padding: 16px 24px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg3);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.total {
    font-weight: 900;
    font-size: 15px;
    color: var(--gold-dark);
    border-top: 2px solid var(--border-gold);
    margin-top: 4px;
    padding-top: 12px;
}

.breakdown-row span:last-child,
.zakat-amount-value {
    direction: ltr;
    unicode-bidi: isolate;
}

.nisab-status {
    margin: 0 24px 12px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.nisab-status.above {
    background: var(--green-bg);
    color: var(--green);
}

.nisab-status.below {
    background: var(--red-bg);
    color: var(--red);
}

.nisab-status.hawl {
    background: #FFF8E7;
    color: var(--gold-dark);
    margin-top: 6px;
}

.zakat-final {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.zakat-amount-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.zakat-amount-value {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: var(--green);
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1;
}

.zakat-amount-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

.zakat-not-due {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 0;
}

.zakat-disclaimer {
    background: #FFF8E7;
    border-top: 1px solid var(--border-gold);
    padding: 12px 24px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.7;
}

.zakat-actions {
    padding: 0 24px 24px;
    display: flex;
    justify-content: center;
}

.download-report-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #b88a10);
    color: #fff;
    padding: 14px 28px;
    font-family: 'Cairo',sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(184, 138, 16, 0.24);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.download-report-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(184, 138, 16, 0.28);
}

.download-report-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.price-mode-toggle {
    display: flex;
    gap: 8px;
}

.mode-btn {
    flex: 1;
    font-family: 'Cairo',sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg2);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(184,134,11,0.25);
}

.spot-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFF8E7;
    border: 1.5px solid var(--border-gold);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-top: 14px;
    line-height: 1.7;
}

.use-custom-btn,
.use-spot-btn {
    background: none;
    border: none;
    color: var(--gold-dark);
    font-family: 'Cairo',sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-right: 6px;
}

.custom-price-box {
    background: #F0F8FF;
    border: 1.5px solid #B0C8E0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}

.custom-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb-nav {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a {
    color: var(--gold);
    text-decoration: none;
}

.seo-content {
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.seo-content h2 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.seo-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 14px 0 8px;
}

.seo-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 500;
}

.internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.internal-links a {
    background: var(--bg2);
    border: 1.5px solid var(--border);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.internal-links a:hover {
    background: var(--gold-bg);
    border-color: var(--gold);
}

html[data-theme="night"] .nisab-card {
    background: linear-gradient(145deg, rgba(37, 44, 61, 0.94), rgba(24, 31, 46, 0.98));
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.03);
}

html[data-theme="night"] .nisab-item {
    background: rgba(27, 34, 49, 0.94);
    border-color: rgba(86, 106, 148, 0.42);
}

html[data-theme="night"] .nisab-item.highlight {
    background: linear-gradient(135deg, #d4af37, #b98a15);
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 10px 24px rgba(185, 138, 21, 0.25);
}

html[data-theme="night"] .nisab-label,
html[data-theme="night"] .nisab-sub,
html[data-theme="night"] .zakat-amount-label,
html[data-theme="night"] .zakat-amount-note,
html[data-theme="night"] .hawl-note,
html[data-theme="night"] .zakat-disclaimer,
html[data-theme="night"] .custom-price-header,
html[data-theme="night"] .input-unit,
html[data-theme="night"] .seo-content p,
html[data-theme="night"] .breadcrumb-nav {
    color: #aeb8cc;
}

html[data-theme="night"] .nisab-value,
html[data-theme="night"] .zakat-section-title,
html[data-theme="night"] .zakat-input-label,
html[data-theme="night"] .breakdown-row,
html[data-theme="night"] .seo-content h2,
html[data-theme="night"] .seo-content h3,
html[data-theme="night"] .hawl-label,
html[data-theme="night"] .spot-notice {
    color: #f3f6ff;
}

html[data-theme="night"] .zakat-calc-card,
html[data-theme="night"] .zakat-result-card,
html[data-theme="night"] .seo-content {
    background: linear-gradient(180deg, rgba(25, 31, 45, 0.98), rgba(18, 24, 36, 0.98));
    border-color: rgba(70, 84, 116, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

html[data-theme="night"] .zakat-input-row {
    background: rgba(34, 41, 58, 0.96);
    border-color: rgba(72, 88, 120, 0.5);
}

html[data-theme="night"] .zakat-karat-badge.silver {
    background: linear-gradient(135deg, #8b9ab0, #5c6d87);
}

html[data-theme="night"] .hawl-check,
html[data-theme="night"] .custom-price-box {
    background: rgba(27, 34, 49, 0.96);
    border-color: rgba(74, 98, 140, 0.55);
}

html[data-theme="night"] .spot-notice {
    background: rgba(27, 34, 49, 0.96);
    border-color: rgba(212, 175, 55, 0.42);
}

html[data-theme="night"] .use-custom-btn,
html[data-theme="night"] .use-spot-btn,
html[data-theme="night"] .breadcrumb-nav a,
html[data-theme="night"] .internal-links a {
    color: #f0ca58;
}

html[data-theme="night"] .internal-links a {
    background: rgba(28, 35, 50, 0.95);
    border-color: rgba(72, 88, 120, 0.5);
}

html[data-theme="night"] .internal-links a:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.55);
}

html[data-theme="night"] .breakdown-row {
    border-bottom-color: rgba(72, 88, 120, 0.32);
}

html[data-theme="night"] .breakdown-row.total {
    color: #f0ca58;
    border-top-color: rgba(212, 175, 55, 0.45);
}

html[data-theme="night"] .zakat-final {
    border-top-color: rgba(72, 88, 120, 0.32);
}

html[data-theme="night"] .zakat-disclaimer {
    background: rgba(43, 38, 26, 0.9);
    border-top-color: rgba(212, 175, 55, 0.32);
}

html[data-theme="night"] .download-report-btn {
    background: linear-gradient(135deg, #f0c94f, #c9991f);
    color: #111827;
    box-shadow: 0 16px 34px rgba(201, 160, 71, 0.22);
}

html[data-theme="night"] .nisab-status.hawl {
    background: rgba(78, 61, 19, 0.42);
    color: #f4d36d;
}
