/* ─── صفحة أسعار الذهب العامة ─── */

.gold-prices-body {
    background:
        radial-gradient(circle at 8% 8%, rgba(23, 139, 116, .08), transparent 26%),
        radial-gradient(circle at 92% 18%, rgba(226, 177, 95, .13), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f6f8fb 44%, #ffffff 100%);
}

.gp-page {
    padding-top: 0;
}

.gp-page .section {
    padding-block: 70px;
}

/* Hero */
.gp-hero {
    position: relative;
    min-height: 720px;
    padding-top: 96px;
    overflow: hidden;
    background: #071a34;
    isolation: isolate;
}

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

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

.gp-hero__media {
    z-index: 0;
}

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

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

.gp-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr);
    gap: 42px;
    align-items: center;
    min-height: 600px;
    padding-top: 42px;
    padding-bottom: 82px;
}

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

.gp-kicker svg,
.gp-status svg,
.gp-btn-light svg,
.gp-live-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

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

.gp-hero__copy {
    max-width: 660px;
}

.gp-hero__copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.1rem, 5vw, 4.8rem);
    line-height: 1.16;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0;
}

.gp-hero__copy h1 span {
    display: block;
    color: #ffd68f;
}

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

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

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

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

.gp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .84);
    font-size: .86rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 9px 13px;
    margin-top: 18px;
    backdrop-filter: blur(12px);
}

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

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

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

.gp-ounce-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gp-ounce-label {
    color: #ffe0a3;
    font-weight: 900;
    font-size: .92rem;
}

.gp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    color: #b6f2df;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(52, 211, 153, .26);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 900;
}

.gp-ounce-value {
    display: block;
    font-size: clamp(2.1rem, 3.7vw, 3.35rem);
    font-weight: 900;
    line-height: 1.14;
    direction: ltr;
    text-align: right;
}

.gp-ounce-value small,
.gp-hero__quick small {
    font-size: .55em;
    font-weight: 800;
}

.gp-ounce-usd {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    margin-top: 6px;
}

.gp-ounce-sell {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    margin-top: 4px;
}

.gp-hero__quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.gp-hero__quick div {
    min-width: 0;
    padding: 13px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .11);
}

.gp-hero__quick span {
    display: block;
    color: rgba(255, 255, 255, .66);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.gp-hero__quick strong {
    display: block;
    color: #fff;
    font-size: .98rem;
    font-weight: 900;
    direction: ltr;
    text-align: right;
}

/* Price table */
.gp-karats {
    position: relative;
    z-index: 3;
    padding-top: 0 !important;
    margin-top: -64px;
}

.gp-table-panel {
    background: var(--paper);
    border: 1px solid rgba(201, 137, 47, .16);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(7, 26, 52, .09);
    overflow: hidden;
}

.gp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 760px;
}

.gp-price-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 900;
    padding: 14px 18px;
    text-align: right;
    white-space: nowrap;
}

.gp-price-table thead th small {
    font-family: "Riyal", "Cairo", system-ui, sans-serif;
    color: #ffd68f;
    font-weight: 800;
}

.gp-price-table tbody th,
.gp-price-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(16, 33, 58, .08);
    text-align: right;
    white-space: nowrap;
}

.gp-price-table tbody tr:last-child th,
.gp-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.gp-price-table tbody tr:nth-child(even) {
    background: rgba(16, 33, 58, .025);
}

.gp-price-table tbody th {
    color: var(--navy);
    font-weight: 800;
}

.gp-price-table tbody td .gp-money {
    font-weight: 900;
    color: var(--ink);
}

.gp-price-table__ounce th,
.gp-price-table__ounce td {
    background: rgba(201, 137, 47, .06);
}

.gp-price-table__ounce .gp-money {
    color: #a96816 !important;
}

.gp-compare-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 900;
    direction: ltr;
    text-align: left;
}

.gp-compare-value svg {
    width: 14px;
    height: 14px;
}

.gp-compare--up {
    color: #0f9f6e;
}

.gp-compare--down {
    color: #dc2626;
}

.gp-compare--flat,
.gp-compare--none {
    color: var(--muted);
}

.gp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 42px 0;
}

.gp-empty svg,
.gp-chart-empty svg {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    color: var(--gold);
}

/* Units (bars, pounds, retail) */
.gp-units-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    align-items: start;
}

.gp-units-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gp-table-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 15px 18px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    border-bottom: 1px solid rgba(16, 33, 58, .08);
}

.gp-table-title svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.gp-price-table--compact {
    min-width: 0;
    font-size: .9rem;
}

.gp-price-table--compact thead th {
    padding: 11px 16px;
    background: rgba(7, 26, 52, .04);
    color: var(--navy);
}

.gp-price-table--compact thead th small {
    color: #a96816;
}

.gp-price-table--compact tbody th,
.gp-price-table--compact tbody td {
    padding: 11px 16px;
}

/* History table */
.gp-history-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.gp-history-tools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Chart */
.gp-chart {
    background:
        linear-gradient(180deg, rgba(247, 249, 252, 0), #eef3f8 45%, rgba(247, 249, 252, 0));
}

.gp-chart-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.gp-chart-header h2,
.gp-section-title h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-weight: 900;
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    line-height: 1.45;
}

.gp-chart-header p,
.gp-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    max-width: 76ch;
    line-height: 1.9;
}

.gp-chart-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gp-filter-group {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
    box-shadow: 0 10px 26px rgba(7, 26, 52, .05);
}

.gp-filter-group button {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 900;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.gp-filter-group button:hover {
    color: var(--navy);
}

.gp-filter-group button.active {
    background: var(--navy);
    color: #fff;
}

.gp-date-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gp-date-filter label {
    color: var(--navy);
    font-size: .78rem;
    font-weight: 900;
}

.gp-date-filter__control {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gp-date-filter input {
    min-height: 42px;
    width: 154px;
    color: var(--ink);
    font-family: inherit;
    font-weight: 800;
    background: #fff;
    border: 1px solid rgba(16, 33, 58, .12);
    border-radius: 8px;
    padding: 8px 10px;
    outline: 0;
}

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

.gp-date-filter button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(135deg, #b97416, #dda34b);
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
}

.gp-date-filter button svg {
    width: 16px;
    height: 16px;
}

.gp-date-filter .gp-date-filter__clear {
    width: 42px;
    padding: 0;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(16, 33, 58, .12);
}

.gp-date-filter .gp-date-filter__clear[hidden] {
    display: none;
}

.gp-history-empty {
    padding: 22px 18px !important;
    color: var(--muted);
    text-align: center !important;
    font-weight: 900;
}

.gp-chart-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(16, 33, 58, .09);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 20px 54px rgba(7, 26, 52, .08);
}

.gp-chart-canvas {
    position: relative;
    height: 390px;
}

.gp-chart-panel.is-loading .gp-chart-canvas {
    opacity: .45;
}

.gp-chart-empty {
    text-align: center;
    color: var(--muted);
    padding: 62px 0;
}

.gp-section-title {
    margin-bottom: 18px;
}

.gp-section-title h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-section-title h2 svg {
    width: 23px;
    height: 23px;
    color: var(--gold);
}

/* FAQ */
.gp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 860px;
}

.gp-faq-item {
    background: var(--paper);
    border: 1px solid rgba(16, 33, 58, .1);
    border-radius: 8px;
    overflow: hidden;
}

.gp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    font-weight: 800;
    color: var(--navy);
    list-style: none;
}

.gp-faq-item summary::-webkit-details-marker {
    display: none;
}

.gp-faq-item summary svg {
    width: 17px;
    height: 17px;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.gp-faq-item[open] summary svg {
    transform: rotate(180deg);
}

.gp-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--muted);
    line-height: 1.9;
    font-size: .93rem;
}

/* Promo */
.gp-promo {
    position: relative;
    overflow: hidden;
}

.gp-promo__grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 46px;
    align-items: center;
}

.gp-promo__copy h2 {
    margin: 14px 0 10px;
    color: var(--navy);
    font-weight: 900;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.45;
}

.gp-promo__copy p {
    color: var(--muted);
    margin: 0 0 22px;
    line-height: 1.95;
    font-size: 1rem;
}

.gp-promo__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gp-btn-ghost {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--navy);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0 22px;
    transition: transform .2s ease, border-color .15s ease, color .15s ease;
}

.gp-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: #a96816;
}

.gp-promo__visual {
    position: relative;
}

.gp-promo__visual::before {
    content: "";
    position: absolute;
    inset: 24px -18px -18px 32px;
    z-index: -1;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(201, 137, 47, .24), rgba(23, 139, 116, .12));
}

.gp-promo__visual picture,
.gp-promo__visual img {
    display: block;
    width: 100%;
}

.gp-promo__visual img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(7, 26, 52, .17);
}

/* Notes */
.gp-notes {
    padding-top: 0 !important;
}

.gp-notes-panel {
    overflow: hidden;
    background: linear-gradient(135deg, #081b34, #102a4d);
    border: 1px solid rgba(226, 177, 95, .18);
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    box-shadow: 0 24px 70px rgba(7, 26, 52, .18);
}

.gp-notes-img,
.gp-notes-img img {
    display: block;
    width: 100%;
}

.gp-notes-img img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.gp-notes-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.gp-notes-list h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.22rem;
    font-weight: 900;
}

.gp-notes-list div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.85;
}

.gp-notes-list svg {
    width: 17px;
    height: 17px;
    color: #f6c777;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 991px) {
    .gp-hero {
        min-height: auto;
    }

    .gp-hero__media img {
        object-position: 43% center;
    }

    .gp-hero__media::after {
        background:
            linear-gradient(180deg, rgba(7, 26, 52, .94) 0%, rgba(7, 26, 52, .76) 54%, rgba(7, 26, 52, .42) 100%),
            linear-gradient(270deg, rgba(7, 26, 52, .9), rgba(7, 26, 52, .32));
    }

    .gp-hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 52px;
        padding-bottom: 92px;
    }

    .gp-hero__copy {
        max-width: none;
    }

    .gp-hero__ounce {
        max-width: 560px;
    }

    .gp-promo__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gp-units-grid {
        grid-template-columns: 1fr;
    }

    .gp-notes-panel {
        grid-template-columns: 1fr;
    }

    .gp-notes-img {
        max-width: 330px;
    }
}

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

    .gp-hero {
        padding-top: 80px;
    }

    .gp-hero__grid {
        width: min(100% - 28px, 1180px);
        padding-top: 36px;
        padding-bottom: 82px;
        gap: 26px;
    }

    .gp-hero__actions,
    .gp-promo__actions {
        align-items: stretch;
    }

    .gp-hero__actions > *,
    .gp-promo__actions > * {
        width: 100%;
    }

    .gp-hero__ounce,
    .gp-chart-panel,
    .gp-notes-panel {
        padding: 18px;
    }

    .gp-hero__quick {
        grid-template-columns: 1fr;
    }

    .gp-karats {
        margin-top: -48px;
    }

    .gp-price-table {
        font-size: .88rem;
    }

    .gp-price-table thead th,
    .gp-price-table tbody th,
    .gp-price-table tbody td {
        padding: 11px 14px;
    }

    .gp-history-header,
    .gp-chart-header {
        align-items: stretch;
    }

    .gp-history-tools,
    .gp-chart-filters,
    .gp-filter-group {
        width: 100%;
    }

    .gp-history-tools {
        justify-content: stretch;
    }

    .gp-filter-group {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .gp-filter-group button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .gp-date-filter,
    .gp-date-filter__control,
    .gp-date-filter input {
        width: 100%;
    }

    .gp-date-filter__control {
        flex-wrap: wrap;
    }

    .gp-date-filter button {
        flex: 1 1 auto;
    }

    .gp-date-filter .gp-date-filter__clear {
        flex: 0 0 42px;
    }

    .gp-chart-canvas {
        height: 292px;
    }

}
