:root {
    --accent: #c29a32;
    --accent-soft: #fff7df;
    --ink: #18212b;
    --ink-soft: #334252;
    --muted: #6d7885;
    --canvas: #f6f8fa;
    --surface: #ffffff;
    --surface-soft: #f0f4f7;
    --line: #dce3ea;
    --line-soft: #edf1f4;
    --green: #18754f;
    --green-soft: #eaf7f0;
    --red: #b0443d;
    --red-soft: #fff0ef;
    --blue: #2d5b82;
    --blue-soft: #eaf2f8;
    --shadow: 0 18px 44px rgba(24, 33, 43, 0.08);
    --shadow-soft: 0 8px 24px rgba(24, 33, 43, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.75;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
summary,
.lead,
.main-nav a,
.price-badge,
.price-change,
.share-price-button {
    overflow-wrap: normal;
    word-break: normal;
}

h1,
h2,
h3,
.lead {
    text-wrap: balance;
}

p,
summary,
.info-item span,
.value-card p,
.statement-card li,
.support-card p,
.policy-content p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button {
    touch-action: manipulation;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(246, 248, 250, 0.94);
    border-bottom: 1px solid rgba(220, 227, 234, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.brand {
    min-width: 196px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--ink);
    color: var(--accent);
    border: 1px solid rgba(194, 154, 50, 0.45);
    font-weight: 900;
    line-height: 1;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-name {
    color: var(--ink);
    font-weight: 900;
    font-size: 1.06rem;
    line-height: 1.25;
}

.brand-domain {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
    direction: ltr;
    text-align: start;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    min-height: 42px;
    padding: 9px 14px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.menu-toggle:hover {
    background: var(--ink);
    color: var(--surface);
}

.menu-icon {
    width: 20px;
    display: grid;
    gap: 5px;
}

.menu-icon span {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.main-nav {
    margin-inline-start: auto;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.drawer-head {
    display: none;
    min-height: 44px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer-head strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.drawer-head button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.main-nav a {
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--ink);
    color: var(--surface);
}

.main-nav a.whatsapp-link {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(24, 117, 79, 0.16);
}

.main-nav a.whatsapp-link:hover {
    background: var(--green);
    color: var(--surface);
}

.drawer-language {
    display: none;
    margin-top: 12px;
    padding-top: 16px;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.drawer-language > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.drawer-language .lang-toggle {
    width: 100%;
    min-width: 0;
    box-shadow: none;
}

.drawer-language .lang-toggle button {
    min-height: 44px;
}

.menu-overlay {
    display: none;
}

.lang-toggle {
    min-width: 156px;
    padding: 4px;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.lang-toggle button {
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.25;
}

.lang-toggle button.active {
    background: var(--accent);
    color: var(--ink);
}

.header-language {
    flex: 0 0 auto;
}

main {
    min-height: calc(100vh - 174px);
}

.dashboard-shell,
.content-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.dashboard-shell {
    padding: 34px 0 28px;
}

.terminal-intro {
    max-width: 940px;
    margin: 0 auto 24px;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.page-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.page-hero .content-inner {
    padding: 46px 0 38px;
    display: grid;
    gap: 10px;
}

.eyebrow {
    width: fit-content;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #725716;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.3;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 0;
    margin-inline: auto;
    color: var(--ink);
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.22;
}

h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.35;
}

.lead {
    max-width: 790px;
    margin-inline: auto;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.market-panel {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.market-panel::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--accent);
}

.prices-panel {
    display: grid;
}

.price-board-head {
    padding: 24px 24px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.price-board-head > div {
    display: grid;
    gap: 8px;
}

.price-board-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.market-topline {
    padding: 24px 24px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
}

.panel-kicker {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.35;
}

.status-bar {
    min-height: 38px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(24, 117, 79, 0.18);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
}

.status-bar.is-error {
    background: var(--red-soft);
    color: var(--red);
    border-color: rgba(176, 68, 61, 0.2);
}

#last-updated {
    min-height: 38px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.price-card-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    background: #fbfcfd;
}

.gold-price-card {
    min-height: 210px;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: space-between;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.price-card-title {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
}

.gold-price-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.price-badge {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
}

.price-change {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
}

.price-change.up {
    background: var(--green-soft);
    color: var(--green);
}

.price-change.down {
    background: var(--red-soft);
    color: var(--red);
}

.price-card-main {
    padding: 14px;
    display: grid;
    gap: 5px;
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.price-card-main span,
.price-card-details span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.35;
}

.price-card-main strong {
    color: var(--ink);
    direction: ltr;
    font-size: 1.62rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.price-card-details {
    display: grid;
    gap: 10px;
}

.price-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-price-button {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.share-price-button:hover {
    background: var(--ink);
    color: var(--surface);
}

.share-status {
    min-height: 22px;
    margin: -4px 18px 14px;
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 900;
    text-align: center;
}

.price-card-details div {
    display: grid;
    gap: 3px;
}

.price-card-details strong {
    color: var(--ink-soft);
    direction: ltr;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.45;
}

.price-card-details div:last-child strong {
    direction: inherit;
    color: var(--muted);
    font-size: 0.86rem;
}

.price-card-k21 {
    border-color: rgba(194, 154, 50, 0.48);
    box-shadow: 0 14px 34px rgba(194, 154, 50, 0.13);
}

.price-error {
    margin: 0 18px 18px;
    padding: 12px 14px;
    border: 1px solid rgba(176, 68, 61, 0.2);
    border-radius: var(--radius);
    background: var(--red-soft);
    color: var(--red);
    font-weight: 900;
}

.skeleton-card {
    min-height: 210px;
    align-content: start;
    gap: 16px;
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card small {
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f5, #f8fafb, #eef2f5);
    background-size: 220% 100%;
    animation: skeletonPulse 1.25s ease-in-out infinite;
}

.skeleton-card span {
    width: 48%;
    height: 20px;
}

.skeleton-card strong {
    width: 78%;
    height: 54px;
    border-radius: var(--radius);
}

.skeleton-card small {
    width: 64%;
    height: 18px;
}

.price-message-card {
    min-height: 120px;
    align-content: center;
    justify-items: center;
    color: var(--red);
    background: var(--red-soft);
    border-color: rgba(176, 68, 61, 0.2);
    font-weight: 900;
    text-align: center;
}

@keyframes skeletonPulse {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.quick-calculator {
    margin-top: 18px;
    padding: 20px;
    display: grid;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.chart-panel {
    margin-top: 18px;
    padding: 20px;
    display: grid;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.chart-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

#chart-range {
    min-height: 38px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.35;
}

.chart-wrap {
    min-height: 260px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
}

#gold-chart {
    width: 100%;
    height: 260px;
    display: block;
}

.quick-calc-head {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.quick-calc-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.calc-form {
    display: grid;
    gap: 10px;
}

.calc-form label {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 900;
}

.calc-form input,
.calc-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
    color: var(--ink);
    outline: 0;
}

.calc-form input:focus,
.calc-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(194, 154, 50, 0.16);
}

.calc-results {
    display: grid;
    gap: 10px;
}

.calc-results div {
    min-height: 82px;
    padding: 14px;
    display: grid;
    gap: 4px;
    align-content: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.calc-results span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.calc-results strong {
    color: var(--ink);
    direction: ltr;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.metric-grid {
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.metric-card {
    min-height: 96px;
    padding: 18px 0;
    display: grid;
    align-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
}

.metric-card:last-child {
    border-bottom: 0;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
}

.metric-card strong {
    color: var(--ink);
    font-size: 1.34rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 17px 16px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}

th {
    background: #f9fafb;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

th small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

th.sell-col {
    background: var(--green-soft);
    color: var(--green);
}

th.buy-col {
    background: var(--red-soft);
    color: var(--red);
}

tbody tr {
    transition: background-color 160ms ease;
}

tbody tr:hover {
    background: #fbfcfd;
}

.karat-name {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.price-sell,
.price-buy {
    direction: ltr;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.price-sell {
    color: var(--green);
}

.price-buy {
    color: var(--red);
}

.price-stack {
    display: inline-grid;
    gap: 4px;
    justify-items: center;
}

.masnaeya-info {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.loading-cell {
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.disclaimer-block {
    margin: 0;
    padding: 18px 24px 22px;
    background: #fbfcfd;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
}

.disclaimer-block strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 900;
}

.disclaimer-block p {
    margin: 0 0 8px;
}

.disclaimer-block p:last-child {
    margin-bottom: 0;
}

.content-band,
.faq-band {
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.content-band {
    background: var(--surface);
}

.content-band.muted,
.faq-band {
    background: var(--canvas);
}

.two-column,
.contact-layout {
    display: grid;
    gap: 24px;
}

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

.info-item {
    padding: 16px 18px;
    display: grid;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--accent);
    border-radius: var(--radius);
}

.info-item strong,
.value-card strong,
.statement-card strong,
.support-card span {
    color: var(--ink);
    font-weight: 900;
}

.info-item span,
.value-card p,
.statement-card li,
.support-card p,
.policy-content p {
    color: var(--muted);
}

.faq-grid,
.value-grid {
    display: grid;
    gap: 12px;
}

.copy-prices-wrap {
    margin-top: 18px;
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.copy-prices-button {
    width: min(100%, 320px);
}

details {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

summary {
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
}

.narrow {
    max-width: 880px;
}

.statement-card,
.contact-card,
.support-card,
.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.statement-card,
.contact-card,
.support-card {
    padding: 24px;
}

.statement-card ul {
    margin: 12px 0 0;
    padding-inline-start: 20px;
}

.statement-card li {
    margin-bottom: 8px;
}

.value-card {
    padding: 18px;
}

.value-card p {
    margin: 8px 0 0;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    color: var(--ink);
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfd;
    color: var(--ink);
    outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(194, 154, 50, 0.16);
}

.primary-action {
    min-height: 46px;
    padding: 11px 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--surface);
    cursor: pointer;
    font-weight: 900;
}

.primary-action:hover {
    background: #263342;
}

.form-notice {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.support-card {
    display: grid;
    gap: 12px;
    align-content: start;
    border-top: 4px solid var(--accent);
}

.support-card a,
.policy-content a {
    color: var(--blue);
    direction: ltr;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.policy-content {
    display: grid;
    gap: 14px;
}

.policy-content article {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.policy-content h2 {
    margin-bottom: 8px;
}

.policy-content p {
    margin-bottom: 0;
}

.site-footer {
    background: #111820;
    color: #d7dee5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 96px;
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--surface);
    font-weight: 800;
}

[dir="ltr"] .brand-domain,
[dir="ltr"] .price-sell,
[dir="ltr"] .price-buy,
[dir="ltr"] .support-card a,
[dir="ltr"] .policy-content a {
    direction: ltr;
    text-align: left;
}

@media (min-width: 640px) {
    h1 {
        font-size: 2.6rem;
    }

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

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

    .calc-form {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

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

    .metric-card {
        padding: 20px 18px;
        border-bottom: 0;
    }

    .metric-card:nth-child(odd) {
        border-inline-end: 1px solid var(--line-soft);
    }

    .value-grid,
    .faq-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .dashboard-shell {
        padding-top: 42px;
    }

    .two-column {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: start;
    }

    .contact-layout {
        grid-template-columns: 1.18fr 0.82fr;
        align-items: start;
    }

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

    .price-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric-card,
    .metric-card:nth-child(odd) {
        border-inline-end: 1px solid var(--line-soft);
    }

    .metric-card:last-child {
        border-inline-end: 0;
    }
}

@media (max-width: 720px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        backdrop-filter: none;
    }

    .header-inner {
        min-height: 70px;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .brand {
        min-width: 0;
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-flex;
        background: var(--surface);
        flex: 0 0 auto;
    }

    .header-language {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 140;
        width: min(84vw, 330px);
        max-height: none;
        margin-inline-start: 0;
        padding: 18px;
        display: grid;
        align-content: start;
        gap: 12px;
        flex-wrap: nowrap;
        border-radius: 0;
        background: var(--surface);
        box-shadow: 0 20px 60px rgba(24, 33, 43, 0.22);
        transition: transform 220ms ease;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
    }

    [dir="rtl"] .main-nav {
        right: 0;
        left: auto;
        transform: translateX(105%);
        border-left: 1px solid var(--line);
    }

    [dir="ltr"] .main-nav {
        left: 0;
        right: auto;
        transform: translateX(-105%);
        border-right: 1px solid var(--line);
    }

    body.menu-open .main-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .drawer-head {
        display: flex;
        min-height: 48px;
        margin-bottom: 4px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line-soft);
        text-align: start;
    }

    .main-nav a {
        width: 100%;
        min-height: 50px;
        padding: 11px 14px;
        justify-content: center;
        font-size: 1rem;
        text-align: center;
        background: #fbfcfd;
        border: 1px solid var(--line-soft);
    }

    .drawer-language {
        display: grid;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 130;
        display: block;
        background: rgba(17, 24, 32, 0.5);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    body.menu-open .menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-shell {
        padding-top: 26px;
    }

    .market-topline {
        padding: 20px 18px 16px;
        align-items: stretch;
        flex-direction: column;
    }

    .price-board-head {
        padding: 20px 18px 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .price-card-grid {
        padding: 12px;
        gap: 12px;
    }

    .quick-calculator {
        margin-top: 14px;
        padding: 16px;
    }

    .chart-panel {
        margin-top: 14px;
        padding: 16px;
    }

    .chart-head {
        display: grid;
        gap: 10px;
        justify-items: center;
        text-align: center;
    }

    .chart-wrap {
        min-height: 220px;
        padding: 10px;
    }

    #gold-chart {
        height: 220px;
    }

    .gold-price-card {
        min-height: 0;
        gap: 12px;
        padding: 14px;
        justify-items: center;
        text-align: center;
    }

    .skeleton-card {
        min-height: 176px;
    }

    .price-card-main strong {
        font-size: 1.48rem;
        text-align: center;
    }

    .price-card-title {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        justify-items: center;
        gap: 8px;
        text-align: center;
    }

    .gold-price-card h3 {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .price-badge {
        max-width: none;
        white-space: nowrap;
        text-align: center;
    }

    .price-change {
        max-width: none;
        white-space: nowrap;
        text-align: center;
    }

    .price-card-main {
        width: 100%;
        padding: 12px;
        justify-items: center;
        text-align: center;
    }

    .price-card-details {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .price-card-actions {
        width: 100%;
        justify-content: center;
    }

    .share-price-button {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .price-card-details span,
    .price-card-main span {
        font-size: 0.74rem;
    }

    .price-card-details div:last-child strong {
        font-size: 0.82rem;
    }

    .price-card-details div {
        justify-items: center;
        text-align: center;
    }

    .price-card-details strong,
    .price-card-details div:last-child strong {
        text-align: center;
    }

    #last-updated {
        justify-content: flex-start;
        white-space: normal;
    }

    .metric-grid {
        padding: 0 18px;
    }

    .disclaimer-block {
        padding: 16px 18px 20px;
    }

    .table-scroll {
        overflow-x: visible;
        padding: 14px 14px 4px;
        background: #fbfcfd;
    }

    table {
        min-width: 0;
        display: block;
        background: transparent;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tr {
        display: grid;
        gap: 0;
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
    }

    td {
        min-height: 58px;
        padding: 13px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        text-align: end;
        border-bottom: 1px solid var(--line-soft);
    }

    td:last-child {
        border-bottom: 0;
    }

    td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 44%;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1.35;
        text-align: start;
    }

    td:first-child {
        min-height: auto;
        padding: 15px 14px;
        background: var(--accent-soft);
        text-align: start;
    }

    td:first-child::before {
        display: none;
    }

    .karat-name {
        width: 100%;
        font-size: 1.02rem;
        text-align: start;
    }

    .price-sell,
    .price-buy {
        font-size: 1.04rem;
        text-align: end;
    }

    .price-stack {
        margin-inline-start: auto;
        justify-items: end;
    }

    .masnaeya-info {
        max-width: 100%;
        font-size: 0.76rem;
        text-align: end;
    }

    .loading-cell {
        display: block;
        text-align: center;
    }

    .loading-cell::before {
        display: none;
    }

    h1 {
        font-size: 1.78rem;
        line-height: 1.28;
    }

    h2 {
        font-size: 1.18rem;
        line-height: 1.38;
    }

    .lead {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .calc-results strong {
        font-size: 1.16rem;
    }

    .value-card {
        padding: 15px;
    }

    .info-item {
        padding: 14px 15px;
    }

    .faq-grid,
    .value-grid {
        gap: 10px;
    }

    .price-board-head h2,
    .chart-head h2,
    .quick-calc-head h2 {
        font-size: 1.12rem;
    }

    .panel-kicker {
        font-size: 0.78rem;
    }
}
