
.home-page {
    overflow: hidden;
}

.ticker-wrap {
    padding: 10px 0 2px;
}

.ticker-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.ticker-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label change"
        "value value";
    align-items: start;
    gap: 6px 10px;
    min-width: 0;
    background: var(--surface-grad);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 14px;
    min-height: 72px;
    box-shadow: var(--shadow);
}

.ticker-label {
    grid-area: label;
    min-width: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
}

.ticker-value {
    grid-area: value;
    min-width: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.ticker-change {
    grid-area: change;
    justify-self: end;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-section {
    padding: 14px 0 18px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.98fr);
    gap: 16px;
    align-items: start;
}

.hero-copy-card,
.market-summary-box,
.quick-link-card,
.insight-panel,
.spotlight-card,
.news-card,
.tool-card {
    background: var(--surface-grad);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy-card {
    min-width: 0;
    padding: 24px;
    min-height: 100%;
}

.hero-badge,
.card-kicker,
.quick-link-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(232,190,97,0.10);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
}
html[data-theme="light"] .hero-badge,
html[data-theme="light"] .card-kicker,
html[data-theme="light"] .quick-link-kicker {
    background: rgba(184,132,31,0.10);
}

.hero-copy-card h1 {
    margin: 14px 0 10px;
    font-size: 24px;
    line-height: 1.42;
    letter-spacing: -0.3px;
}

.hero-copy-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.95;
    max-width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(180deg, #d9b15c, #b88a30);
    color: #091115;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    background: rgba(255,255,255,0.03);
}
html[data-theme="light"] .btn-secondary {
    border-color: rgba(15,23,42,0.09);
    background: rgba(15,23,42,0.02);
}

.hero-features {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-feature {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 11px;
}
html[data-theme="light"] .hero-feature {
    background: rgba(15,23,42,0.02);
    border-color: rgba(15,23,42,0.06);
}

.hero-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.hero-feature span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.hero-side {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-side {
    max-width: 100%;
}


.hero-card {
    min-width: 0;
    padding: 16px;
}

.hero-card-top,
.currency-card-top,
.insight-title-row,
.market-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.42;
}

.hero-card-value {
    font-size: clamp(16px, 1.2vw, 21px);
    font-weight: 800;
    margin: 10px 0 6px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hero-card-change {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hero-card-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 800;
    font-size: 12px;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
html[data-theme="light"] .mini-chip {
    background: rgba(15,23,42,0.05);
}

.market-summary-box {
    padding: 16px;
}

.market-summary-head h2 {
    margin: 0;
    font-size: 17px;
}

.market-summary-head span {
    color: var(--muted);
    font-size: 11px;
}

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

.market-summary-stat {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="light"] .market-summary-stat {
    background: rgba(15,23,42,0.02);
    border-color: rgba(15,23,42,0.06);
}

.market-summary-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.market-summary-stat strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
}

.quick-section { padding-top: 2px; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quick-link-card {
    padding: 14px;
    display: grid;
    gap: 7px;
}

.quick-link-card strong {
    font-size: 15px;
    line-height: 1.55;
}

.quick-link-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.section-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.compact-head {
    margin-bottom: 12px;
}

.mini-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}
html[data-theme="light"] .mini-bar {
    background: rgba(15,23,42,0.05);
}

.mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--green));
}

.dual-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.currency-stack .stat-card {
    min-height: 138px;
}

.insight-panel {
    padding: 15px;
    display: grid;
    gap: 11px;
}

.insight-item {
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="light"] .insight-item {
    border-color: rgba(15,23,42,0.06);
}

.insight-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.insight-item h3 {
    margin: 0;
    font-size: 15px;
}

.insight-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.banks-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 16px;
    align-items: start;
}

.banks-side {
    display: grid;
    gap: 12px;
}

.spotlight-card {
    padding: 16px;
}

.spotlight-card h3 {
    margin: 12px 0 8px;
    font-size: 17px;
}

.spotlight-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.spotlight-card a,
.tool-card a,
.news-card a {
    color: var(--gold);
    font-weight: 800;
    font-size: 12px;
}

.news-card {
    overflow: hidden;
}

.news-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(232,190,97,0.22), rgba(53,199,129,0.16));
}

.news-body {
    padding: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.news-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.6;
}

.news-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.tools-grid .tool-card {
    min-height: 164px;
}

.tool-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}


.hero-features-compact .hero-feature {
    min-height: 0;
}

.hero-features-compact .hero-feature span {
    display: block;
}

.hero-card-value.is-time {
    font-size: 24px;
}

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

@media (max-width: 1200px) {
    .ticker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ticker-value {
        font-size: 17px;
    }
}

@media (max-width: 1100px) {
    .hero-layout,
    .dual-section-grid,
    .banks-layout {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ticker-wrap {
        padding: 8px 0 2px;
    }

    .ticker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }

    .ticker-item {
        min-height: 82px;
        padding: 11px 12px;
        gap: 5px 8px;
    }

    .quick-grid,
    .two-cols,
    .hero-features,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .market-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-layout {
        gap: 12px;
    }

    .hero-copy-card {
        order: 1;
        padding: 15px;
    }

    .hero-side {
        order: 2;
        gap: 10px;
    }

    .hero-copy-card h1 {
        font-size: 22px;
        line-height: 1.3;
        margin: 10px 0 8px;
    }

    .hero-copy-card p {
        font-size: 12px;
        max-width: 100%;
        line-height: 1.8;
    }

    .hero-actions {
        margin-top: 12px;
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 39px;
        font-size: 13px;
        width: 100%;
    }

    .hero-features-compact {
        margin-top: 12px;
        gap: 8px;
    }

    .hero-feature {
        padding: 9px 10px;
        border-radius: 14px;
    }

    .hero-feature strong {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .hero-feature span {
        font-size: 11px;
        line-height: 1.55;
    }

    .hero-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-card,
    .market-summary-box,
    .spotlight-card,
    .insight-panel,
    .news-body,
    .quick-link-card {
        padding: 12px;
    }

    .hero-card h2,
    .market-summary-head h2,
    .spotlight-card h3 {
        font-size: 12px;
    }

    .hero-card-top {
        align-items: flex-start;
    }

    .mini-chip {
        min-height: 24px;
        padding: 0 7px;
        font-size: 10px;
    }

    .hero-card-value {
        font-size: 15px;
        margin: 6px 0 4px;
    }

    .hero-card-change,
    .hero-card-link,
    .news-card p,
    .tool-card p,
    .spotlight-card p,
    .insight-item p,
    .section-subtitle,
    .market-summary-head span {
        font-size: 10px;
    }

    .hero-card-link {
        margin-top: 7px;
        font-size: 11px;
    }

    .market-summary-stat {
        padding: 10px;
    }

    .market-summary-stat strong {
        font-size: 12.5px;
    }

    .news-card h3,
    .quick-link-card strong,
    .insight-item h3,
    .tool-card h3 {
        font-size: 13px;
    }

    .insight-value {
        font-size: 14px;
        margin-top: 8px;
    }

    .content-section {
        padding: 16px 0;
    }

    .ticker-label,
    .ticker-change,
    .news-meta,
    .market-summary-label {
        font-size: 10px;
    }

    .ticker-value {
        font-size: 15px;
    }
}

/* polish overrides */
.insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}
html[data-theme="light"] .insight-card {
    border-color: rgba(15,23,42,0.06);
    background: rgba(15,23,42,0.02);
}

.insight-card,
.insight-card:last-child {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="light"] .insight-card,
html[data-theme="light"] .insight-card:last-child {
    border-bottom-color: rgba(15,23,42,0.06);
}

.insight-card .insight-value {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.45;
}

.market-summary-stat.up strong,
.ticker-change.up,
.hero-card-change.up,
.insight-card .mini-chip.up {
    color: var(--green);
}

.market-summary-stat.down strong,
.ticker-change.down,
.hero-card-change.down,
.insight-card .mini-chip.down {
    color: #ef7676;
}



.hero-card,
.hero-copy-card,
.market-summary-box,
.ticker-item,
.quick-link-card {
    overflow: hidden;
}

.hero-card-change,
.hero-card-value,
.market-summary-stat strong,
.ticker-value {
    word-break: break-word;
}


@media (min-width: 1101px) {
    .hero-copy-card {
        min-height: 100%;
    }

    .hero-card {
        padding: 13px;
    }

    .hero-card h2 {
        font-size: 15px;
    }

    .hero-card-link {
        font-size: 12.5px;
    }
}

.ticker-item,
.hero-card,
.market-summary-stat {
    min-width: 0;
}

.ticker-label,
.ticker-value,
.ticker-change,
.hero-card h2,
.hero-card-value,
.hero-card-change {
    overflow-wrap: anywhere;
}


/* desktop visual balance patch */
.hero-copy-card h1,
.hero-card h2,
.market-summary-head h2,
.quick-link-card strong,
.insight-item h3,
.news-card h3 {
    color: #0f172a;
}

.hero-copy-card p,
.section-subtitle,
.quick-link-meta,
.insight-item p,
.news-card p,
.tool-card p {
    color: #6b7280;
}

.hero-card-link,
.spotlight-card a,
.tool-card a,
.news-card a {
    color: #b8841f;
}

.ticker-item {
    border-radius: 16px;
    min-height: 68px;
}

.ticker-label {
    font-size: 10px;
}

.ticker-value {
    font-size: 19px;
}

.hero-card-value.is-time {
    font-size: 22px;
}

@media (min-width: 1101px) {
    .hero-copy-card {
        padding: 26px;
    }

    .hero-copy-card h1 {
        font-size: 23px;
        line-height: 1.45;
        max-width: 92%;
    }

    .hero-copy-card p {
        max-width: 95%;
    }

    .hero-card {
        min-height: 168px;
    }

    .hero-card h2 {
        font-size: 17px;
    }

    .hero-card-value {
        font-size: 18px;
    }

    .hero-card-change {
        font-size: 12px;
    }

    .hero-card-link {
        font-size: 12px;
    }
}

/* =========================================
   FINAL TOP TICKER FIX
   4 فوق + 4 تحت + ترتيب واضح + فونت مضبوط
   ========================================= */

@media (min-width: 641px) {
    .ticker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .ticker-item {
        min-height: 84px !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .ticker-label {
        font-size: 11px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    .ticker-value {
        font-size: 17px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        white-space: normal !important;
    }

    .ticker-change {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}


/* =========================================
   TOP TICKER SAFE POLISH V2
   Mobile-first + no broken wrapping
   ========================================= */

.ticker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ticker-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    min-height: 132px;
    padding: 14px 16px;
    border-radius: 22px;
    overflow: hidden;
}

.ticker-item::after {
    content: "";
    position: absolute;
    inset-inline-start: auto;
    inset-inline-end: -22px;
    inset-block-end: -28px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(53, 199, 129, 0.06);
    pointer-events: none;
}

.ticker-label,
.ticker-value,
.ticker-change {
    position: relative;
    z-index: 1;
    min-width: 0;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.ticker-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.ticker-value {
    margin-top: auto;
    font-size: 15px !important;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
}

.ticker-change {
    align-self: flex-start;
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.ticker-change.up {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.ticker-change.down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

html[data-theme="dark"] .ticker-item {
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(15,23,42,.96));
}

html[data-theme="dark"] .ticker-label,
html[data-theme="dark"] .ticker-value {
    color: #f8fafc;
}

html[data-theme="dark"] .ticker-item::after {
    background: rgba(255,255,255,0.04);
}

@media (max-width: 1200px) {
    .ticker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .ticker-item {
        min-height: 122px;
        padding: 13px 14px;
    }

    .ticker-label {
        font-size: 15px !important;
    }

    .ticker-value {
        font-size: 14px !important;
    }
}

@media (max-width: 900px) {
    .ticker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 640px) {
    .ticker-wrap {
        padding: 10px 0 0;
    }

    .ticker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .ticker-item {
        min-height: 114px !important;
        padding: 12px !important;
        border-radius: 18px !important;
        gap: 7px !important;
    }

    .ticker-item::after {
        width: 70px;
        height: 70px;
        inset-inline-end: -18px;
        inset-block-end: -22px;
    }

    .ticker-label {
        font-size: 13px !important;
        line-height: 1.32 !important;
        -webkit-line-clamp: 2;
    }

    .ticker-value {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .ticker-change {
        padding: 5px 8px;
        font-size: 10px !important;
    }
}


/* =========================================
   GOLD BOARD TABLE SECTION
   ========================================= */

.gold-board-section {
    padding-top: 18px;
}

.gold-board-head {
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}

.board-status-line {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.board-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.board-live-indicator.live {
    background: rgba(34, 197, 94, 0.10);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.18);
}

.board-live-indicator.warm {
    background: rgba(245, 158, 11, 0.11);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.board-live-indicator.stale {
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.18);
}

.board-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: flousakPulse 1.8s infinite;
}

.board-updated-text {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.gold-board-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gold-board-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.gold-board-actions > a:first-child {
    color: var(--gold);
}

.board-refresh-link {
    background: rgba(34, 197, 94, 0.10);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.16);
}

.gold-board-wrap {
    background: var(--surface-grad);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gold-price-table {
    width: 100%;
    border-collapse: collapse;
}

.gold-price-table thead th {
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.035);
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.gold-price-table tbody td {
    padding: 18px 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
    font-size: 15px;
}

.gold-price-table tbody tr.is-highlight {
    background: rgba(232, 190, 97, 0.06);
}

.gold-kind-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gold-row-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 190, 97, 0.12);
    color: #b8841f;
    font-size: 18px;
    font-weight: 900;
}

.gold-kind-main strong {
    display: block;
    font-size: 17px;
    line-height: 1.4;
    color: #0f172a;
}

.gold-kind-main span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.sell-price,
.buy-price {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.sell-price {
    color: #dc2626;
}

.buy-price {
    color: #15803d;
}

.gold-change-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    white-space: nowrap;
}

.gold-change-chip.up {
    background: rgba(34, 197, 94, 0.11);
    color: #15803d;
}

.gold-change-chip.down {
    background: rgba(239, 68, 68, 0.11);
    color: #dc2626;
}

.gold-board-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.gold-mobile-list {
    display: none;
}

@keyframes flousakPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(21, 128, 61, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 128, 61, 0);
    }
}

html[data-theme="dark"] .gold-price-table thead th {
    background: rgba(255,255,255,0.03);
    color: #cbd5e1;
}

html[data-theme="dark"] .gold-price-table tbody td,
html[data-theme="dark"] .gold-board-foot {
    border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .gold-price-table tbody tr.is-highlight {
    background: rgba(232, 190, 97, 0.07);
}

html[data-theme="dark"] .gold-kind-main strong {
    color: #f8fafc;
}

html[data-theme="dark"] .gold-kind-main span,
html[data-theme="dark"] .board-updated-text,
html[data-theme="dark"] .gold-board-foot {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .gold-board-head {
        align-items: flex-start;
    }

    .gold-board-actions {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .gold-price-table {
        display: none;
    }

    .gold-mobile-list {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .gold-mobile-card {
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 18px;
        padding: 14px;
        background: rgba(255,255,255,0.55);
    }

    html[data-theme="dark"] .gold-mobile-card {
        border-color: rgba(255,255,255,0.06);
        background: rgba(255,255,255,0.02);
    }

    .gold-mobile-card.is-highlight {
        background: rgba(232, 190, 97, 0.08);
    }

    .gold-mobile-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }

    .gold-mobile-prices {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gold-mobile-price {
        padding: 12px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.035);
    }

    html[data-theme="dark"] .gold-mobile-price {
        background: rgba(255,255,255,0.04);
    }

    .gold-mobile-price span {
        display: block;
        color: #6b7280;
        font-size: 11px;
        margin-bottom: 6px;
    }

    html[data-theme="dark"] .gold-mobile-price span {
        color: #94a3b8;
    }

    .gold-mobile-price strong {
        font-size: 16px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .gold-board-foot {
        padding: 12px 14px 16px;
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .gold-board-section {
        padding-top: 12px;
    }

    .gold-board-head {
        margin-bottom: 10px;
    }

    .board-status-line {
        gap: 8px;
        align-items: flex-start;
    }

    .board-live-indicator {
        min-height: 30px;
        padding: 0 11px;
        font-size: 11px;
    }

    .board-updated-text {
        font-size: 11px;
        line-height: 1.6;
    }

    .gold-board-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gold-board-actions a {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .gold-board-wrap {
        border-radius: 20px;
    }

    .gold-kind-main {
        gap: 10px;
    }

    .gold-row-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 12px;
        font-size: 15px;
    }

    .gold-kind-main strong {
        font-size: 14px;
    }

    .gold-kind-main span {
        font-size: 11px;
        line-height: 1.55;
    }

    .gold-change-chip {
        min-height: 30px;
        padding: 0 10px;
        font-size: 10px;
    }

    .gold-mobile-price strong {
        font-size: 14px;
    }
}


/* =========================================
   GOLD BOARD FINAL CLEANUP
   ========================================= */

.gold-board-head {
    align-items: end;
    gap: 12px;
}

.gold-board-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: fit-content;
}

.gold-board-actions a {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.gold-board-actions a:hover {
    opacity: .88;
}

.gold-price-table thead th {
    padding: 16px 20px;
    font-size: 12px;
}

.gold-price-table tbody td {
    padding: 15px 20px;
    font-size: 14px;
}

.gold-price-table tbody tr.is-highlight {
    background: rgba(232, 190, 97, 0.075);
}

.gold-kind-main {
    gap: 10px;
}

.gold-row-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 15px;
    font-size: 17px;
}

.gold-kind-main strong {
    font-size: 16px;
}

.gold-kind-main span {
    font-size: 11px;
    margin-top: 2px;
}

.sell-price,
.buy-price {
    font-size: 16px;
    font-weight: 900;
}

.gold-change-chip {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
}

.gold-board-foot {
    padding: 13px 20px 16px;
    font-size: 11px;
}

@media (max-width: 900px) {
    .gold-board-head {
        align-items: flex-start;
    }

    .gold-board-actions {
        width: auto;
    }
}

@media (max-width: 640px) {
    .gold-board-actions {
        display: none;
    }

    .gold-mobile-list {
        gap: 9px;
        padding: 10px;
    }

    .gold-mobile-card {
        border-radius: 16px;
        padding: 13px;
    }

    .gold-mobile-prices {
        margin-top: 10px;
        gap: 8px;
    }

    .gold-mobile-price {
        padding: 10px;
    }

    .gold-mobile-price span {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .gold-mobile-price strong {
        font-size: 15px;
    }
}
