.yg-zakat-page {
    --zakat-green: #03482b;
    --zakat-deep: #023820;
    --zakat-gold: #e2a515;
    --zakat-cream: #f7f5ee;
    --zakat-ink: #173129;
    --zakat-text: #66756e;
    --zakat-line: #e5e9e6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    color: var(--zakat-ink);
    background: #fff;
}

.yg-zakat-page,
.yg-zakat-page * { box-sizing: border-box; }
.yg-zakat-page a { text-decoration: none; }

.yg-zakat-hero .container,
.yg-zakat-section .container {
    width: min(100% - 40px, 1180px);
    max-width: 1180px;
}

.yg-zakat-hero { padding: 0 0 31px; }
.yg-zakat-hero-content { max-width: 680px; }

.yg-zakat-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 790;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.yg-zakat-hero p {
    max-width: 520px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 14px;
    line-height: 1.6;
}

.yg-zakat-section {
    padding: clamp(68px, 7vw, 98px) 0 clamp(76px, 8vw, 112px);
    background: #fff;
}

.yg-zakat-section-head {
    display: grid;
    max-width: 720px;
    gap: 8px;
    margin-bottom: 38px;
}

.yg-zakat-section-head > span,
.yg-zakat-result-card > header span {
    color: var(--zakat-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.yg-zakat-section-head h2,
.yg-zakat-result-card > header h2 {
    margin: 0;
    font-weight: 790;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.yg-zakat-section-head h2 {
    color: var(--zakat-green);
    font-size: clamp(32px, 4vw, 48px);
}

.yg-zakat-section-head p {
    margin: 2px 0 0;
    color: var(--zakat-text);
    font-size: 14px;
    line-height: 1.65;
}

.yg-zakat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 42px;
    align-items: start;
}

.yg-zakat-form-panel {
    min-width: 0;
    padding: 0;
    background: #fff;
}

.yg-zakat-market {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid var(--zakat-line);
    border-bottom: 1px solid var(--zakat-line);
}

.yg-zakat-market-title {
    color: var(--zakat-green);
    font-size: 11px;
    font-weight: 780;
    white-space: nowrap;
}

.yg-zakat-market div { min-width: 0; }

.yg-zakat-market div span {
    display: block;
    color: #8a9691;
    font-size: 9px;
    font-weight: 680;
    line-height: 1.35;
}

.yg-zakat-market strong {
    display: block;
    margin-top: 4px;
    color: var(--zakat-green);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.yg-zakat-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 30px;
}

.yg-zakat-field-grid label {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin: 0;
}

.yg-zakat-field-grid label > span {
    color: #52645c;
    font-size: 11px;
    font-weight: 690;
    line-height: 1.4;
}

.yg-zakat-full { grid-column: 1 / -1; }

.yg-zakat-input {
    display: flex;
    min-width: 0;
    height: 56px;
    align-items: center;
    background: var(--zakat-cream);
    border: 1px solid transparent;
    border-radius: 11px;
    transition: background-color .18s ease, border-color .18s ease;
}

.yg-zakat-input:focus-within {
    background: #fff;
    border-color: rgba(3, 72, 43, .38);
}

.yg-zakat-input input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 8px 0 15px;
    color: var(--zakat-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 720;
}

.yg-zakat-input em {
    flex: 0 0 auto;
    padding: 0 15px 0 8px;
    color: #8a9691;
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.yg-zakat-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.yg-zakat-reset {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 4px;
    color: var(--zakat-green);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.yg-zakat-reset i { font-size: 15px; }

.yg-zakat-result-card {
    position: sticky;
    top: 126px;
    min-width: 0;
    padding: 28px;
    color: var(--zakat-ink);
    background: var(--zakat-cream);
    border: 0;
    border-radius: 20px;
}

.yg-zakat-result-card > header {
    display: grid;
    gap: 7px;
}

.yg-zakat-result-card > header h2 {
    color: var(--zakat-green);
    font-size: 27px;
}

.yg-zakat-result-main {
    margin-top: 23px;
    padding: 21px 0 23px;
    background: transparent;
    border-top: 1px solid rgba(3, 72, 43, .12);
    border-bottom: 1px solid rgba(3, 72, 43, .12);
}

.yg-zakat-result-main > span {
    display: block;
    color: #77877f;
    font-size: 10px;
    font-weight: 700;
}

.yg-zakat-result-main strong {
    display: block;
    margin-top: 8px;
    color: var(--zakat-green);
    font-size: clamp(32px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}

.yg-zakat-result-main p {
    margin: 12px 0 0;
    color: var(--zakat-text);
    font-size: 11px;
    line-height: 1.5;
}

.yg-zakat-result-list {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.yg-zakat-result-list div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.yg-zakat-result-list span {
    color: #77877f;
    font-size: 10.5px;
    line-height: 1.4;
}

.yg-zakat-result-list strong {
    color: var(--zakat-green);
    font-size: 11.5px;
    font-weight: 740;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
}

.yg-zakat-donate {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    padding: 0 18px;
    color: #fff;
    background: var(--zakat-green);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 780;
    cursor: pointer;
    transition: background-color .18s ease;
}

.yg-zakat-donate i {
    color: #fff;
    font-size: 18px;
}

.yg-zakat-donate:hover {
    color: #fff;
    background: #075d3a;
}

.yg-zakat-donate:disabled {
    cursor: not-allowed;
    opacity: .42;
}

@media (max-width: 991px) {
    .yg-zakat-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .yg-zakat-result-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .yg-zakat-hero .container,
    .yg-zakat-section .container {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .yg-zakat-hero {
        padding-bottom: 24px;
    }

    .yg-zakat-hero h1 { font-size: 34px; }

    .yg-zakat-hero p {
        max-width: 310px;
        font-size: 12px;
    }

    .yg-zakat-section {
        padding: 50px 0 72px;
    }

    .yg-zakat-section-head {
        margin-bottom: 28px;
    }

    .yg-zakat-section-head h2 {
        font-size: 31px;
    }

    .yg-zakat-section-head p {
        max-width: 310px;
        font-size: 12.5px;
    }

    .yg-zakat-layout,
    .yg-zakat-form-panel,
    .yg-zakat-result-card,
    .yg-zakat-market,
    .yg-zakat-field-grid,
    .yg-zakat-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .yg-zakat-market {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 18px;
        padding: 17px 0;
    }

    .yg-zakat-market-title {
        grid-column: 1 / -1;
    }

    .yg-zakat-field-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .yg-zakat-field-grid label {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .yg-zakat-full { grid-column: auto; }
    .yg-zakat-input input { min-width: 0; max-width: 100%; }

    .yg-zakat-actions,
    .yg-zakat-reset { width: 100%; }

    .yg-zakat-result-card {
        padding: 25px 20px;
        border-radius: 17px;
    }

    .yg-zakat-result-main strong { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .yg-zakat-input,
    .yg-zakat-donate { transition: none; }
}
