/* Public gold sell calculator */

.gold-calculator-body {
    background:
        radial-gradient(circle at 8% 8%, rgba(16, 185, 129, .07), transparent 28%),
        radial-gradient(circle at 92% 16%, rgba(226, 177, 95, .14), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f6f8fb 48%, #ffffff 100%);
}

.gc-page .section {
    padding-block: 68px;
}

.gc-hero {
    position: relative;
    min-height: 690px;
    padding-top: 96px;
    overflow: hidden;
    background: #071a34;
    isolation: isolate;
}

.gc-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    z-index: 1;
    height: 110px;
    background: linear-gradient(180deg, transparent, #f6f8fb);
    pointer-events: none;
}

.gc-hero__media,
.gc-hero__media picture,
.gc-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gc-hero__media img {
    object-fit: cover;
    object-position: center;
    opacity: .9;
    transform: scaleX(-1);
}

.gc-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(7, 26, 52, .96) 0%, rgba(7, 26, 52, .86) 38%, rgba(7, 26, 52, .42) 72%, rgba(7, 26, 52, .18) 100%),
        linear-gradient(0deg, rgba(7, 26, 52, .78) 0%, transparent 42%);
}

.gc-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .64fr);
    gap: 42px;
    align-items: center;
    min-height: 570px;
    padding-top: 36px;
    padding-bottom: 86px;
}

.gc-kicker,
.gc-status,
.gc-btn-light,
.gc-rate-card__head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gc-kicker {
    min-height: 34px;
    color: #ffe2a9;
    font-size: .85rem;
    font-weight: 900;
    padding: 6px 14px;
    border: 1px solid rgba(226, 177, 95, .36);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.gc-kicker svg,
.gc-status svg,
.gc-btn-light svg,
.gc-section-title svg,
.gc-add svg,
.gc-remove svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.gc-hero__copy {
    max-width: 650px;
}

.gc-hero__copy h1 {
    max-width: 12ch;
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: 0;
}

.gc-hero__copy p {
    max-width: 54ch;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.9;
}

.gc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.gc-btn-light {
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.gc-btn-light:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 177, 95, .6);
    background: rgba(255, 255, 255, .14);
}

.gc-status {
    margin-top: 18px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, .84);
    font-size: .86rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.gc-status--warn {
    color: #fff7ed;
    border-color: rgba(251, 191, 36, .46);
    background: rgba(180, 83, 9, .58);
}

.gc-rate-card,
.gc-calculator-panel,
.gc-zakat-panel,
.gc-empty,
.gc-note-panel {
    border: 1px solid rgba(16, 33, 58, .09);
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(7, 26, 52, .08);
}

.gc-rate-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    color: #fff;
    border-color: rgba(226, 177, 95, .32);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055)),
        rgba(9, 28, 55, .66);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

.gc-rate-card::before {
    content: "";
    position: absolute;
    inset-inline: 26px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #f5c675, transparent);
}

.gc-rate-card__head {
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
    color: #ffe0a3;
    font-weight: 900;
}

.gc-rate-list {
    display: grid;
    gap: 10px;
}

.gc-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.gc-rate-row span {
    color: rgba(255, 255, 255, .76);
    font-size: .9rem;
    font-weight: 800;
}

.gc-rate-row strong {
    color: #fff;
    font-size: 1.06rem;
}

.gc-money {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.gc-money small {
    font-family: "Riyal", "Cairo", system-ui, sans-serif;
}

.gc-section-title {
    max-width: 780px;
    margin-bottom: 20px;
}

.gc-section-title h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0;
}

.gc-section-title h2 svg {
    color: var(--gold);
}

.gc-section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.gc-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    color: #92400e;
    background: #fff7ed;
    border-color: rgba(251, 191, 36, .4);
}

.gc-empty svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.gc-empty p {
    margin: 0;
    font-weight: 800;
}

.gc-calculator-panel {
    padding: 22px;
    background: rgba(255, 255, 255, .94);
}

.gc-calculator-panel.is-disabled {
    opacity: .64;
    pointer-events: none;
}

.gc-items {
    display: grid;
    gap: 12px;
}

.gc-item {
    display: grid;
    grid-template-columns: minmax(170px, 1.2fr) minmax(120px, .78fr) minmax(130px, .72fr) minmax(120px, .7fr) minmax(140px, .8fr) 42px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(16, 33, 58, .08);
    border-radius: 8px;
    background: #fff;
}

.gc-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gc-field label,
.gc-item__price span,
.gc-item__total span {
    color: var(--navy);
    font-size: .84rem;
    font-weight: 900;
}

.gc-field label span {
    color: var(--muted);
    font-weight: 700;
}

.gc-field input,
.gc-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    border: 1px solid rgba(16, 33, 58, .13);
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gc-field input:focus,
.gc-field select:focus {
    border-color: rgba(201, 137, 47, .72);
    box-shadow: 0 0 0 4px rgba(201, 137, 47, .11);
}

.gc-item__price,
.gc-item__total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
}

.gc-item__price strong,
.gc-item__total strong {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.gc-item__total strong {
    color: #b97416;
}

.gc-remove {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, .16);
    border-radius: 8px;
    background: #fff5f5;
    cursor: pointer;
}

.gc-remove:disabled {
    color: var(--muted);
    border-color: rgba(16, 33, 58, .08);
    background: #f8fafc;
    cursor: not-allowed;
}

.gc-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.gc-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    color: #10213a;
    font: inherit;
    font-weight: 900;
    border: 1px solid rgba(201, 137, 47, .38);
    border-radius: 8px;
    background: #fff8ea;
    cursor: pointer;
}

.gc-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.gc-summary > div {
    min-height: 94px;
    padding: 16px;
    border: 1px solid rgba(16, 33, 58, .08);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.gc-summary span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.gc-summary strong {
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 900;
}

.gc-summary__total {
    background: linear-gradient(135deg, #fff8ea, #fff) !important;
}

.gc-summary__total strong {
    color: #b97416;
    font-size: clamp(1.42rem, 3vw, 2rem);
}

.gc-zakat {
    padding-top: 18px !important;
}

.gc-zakat-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: rgba(255, 255, 255, .92);
}

.gc-zakat-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(201, 137, 47, .07), transparent 34%),
        radial-gradient(circle at 8% 12%, rgba(16, 185, 129, .08), transparent 26%);
    pointer-events: none;
}

.gc-zakat-form,
.gc-zakat-result,
.gc-zakat-note {
    position: relative;
    z-index: 1;
}

.gc-zakat-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gc-field small {
    color: var(--muted);
    font-size: .75rem;
}

.gc-zakat-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px dashed rgba(201, 137, 47, .44);
    border-radius: 8px;
    background: rgba(255, 251, 235, .75);
}

.gc-zakat-result[hidden] {
    display: none;
}

.gc-zakat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: .92rem;
}

.gc-zakat-row strong {
    color: var(--ink);
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
}

.gc-zakat-row--status span {
    font-weight: 900;
}

.gc-zakat-row--status .is-due {
    color: #0f9f6e;
}

.gc-zakat-row--status .is-exempt {
    color: var(--muted);
}

.gc-zakat-row--total {
    padding-top: 12px;
    border-top: 1px solid rgba(201, 137, 47, .26);
    font-size: 1rem;
}

.gc-zakat-row--total strong {
    color: #b97416;
    font-size: 1.35rem;
}

.gc-zakat-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.8;
}

.gc-zakat-note svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 5px;
}

.gc-note {
    padding-top: 0 !important;
}

.gc-note-panel {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    background: #fff;
}

.gc-note-panel > svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.gc-note-panel h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 1.2rem;
}

.gc-note-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

@media (max-width: 1100px) {
    .gc-hero__grid {
        grid-template-columns: 1fr;
    }

    .gc-hero__copy h1 {
        max-width: 14ch;
    }

    .gc-item {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 42px;
    }

    .gc-field--name {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .gc-page .section {
        padding-block: 48px;
    }

    .gc-hero {
        min-height: auto;
        padding-top: 82px;
    }

    .gc-hero__grid {
        min-height: auto;
        gap: 28px;
        padding-top: 30px;
        padding-bottom: 76px;
    }

    .gc-hero__copy h1 {
        max-width: 100%;
        font-size: 2.34rem;
    }

    .gc-rate-card,
    .gc-calculator-panel,
    .gc-zakat-panel,
    .gc-note-panel {
        padding: 18px;
    }

    .gc-zakat-form {
        grid-template-columns: 1fr;
    }

    .gc-item {
        grid-template-columns: 1fr;
    }

    .gc-field--name {
        grid-column: auto;
    }

    .gc-remove {
        width: 100%;
    }

    .gc-summary {
        grid-template-columns: 1fr;
    }

    .gc-zakat-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
