/**
 * V2 — Altındost iskeleti + font sistemi,
 * Gündüz: #0B1D2B ailesi · Gece V2: Ramazan gece paleti (#58a6ff vurgulu GitHub tarzı koyu).
 *
 * Kaynak tasarım: altindost/dashboard.css
 */

:root {
    --brand: #0b1d2b;
    --brand-mid: #2b4f6b;
    --brand-deep: #051018;
}

/*
 * V2 sadece dashboard_v2.css yüklüyor; dashboard.css'deki Ramazan gizleme kuralları çalışmıyor.
 * Bu yüzden ezanda / kapalı ekranda ramazan görselleri varsayılan olarak görünebiliyordu.
 */
body.theme-v2 .header-ramazan-logo,
body.theme-v2 .ezan-box,
body.theme-v2 .closed-ramazan-logo,
body.theme-v2 .ezan-hilal {
    display: none !important;
}

/* === Altındost dashboard.css (aynen) === */
/**
 * Altındost Kuyumculuk — modern fiyat panosu
 * Orantı: 8px grid · Manrope (arayüz) + Outfit (fiyat rakamları)
 */

:root {
    --u: 8px;
    --s-1: calc(var(--u) * 0.5);
    --s-2: var(--u);
    --s-3: calc(var(--u) * 1.5);
    --s-4: calc(var(--u) * 2);
    --s-5: calc(var(--u) * 3);
    --s-6: calc(var(--u) * 4);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 9999px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font: "Manrope", system-ui, sans-serif;
    --font-price: "Outfit", "Manrope", system-ui, sans-serif;
}

body.theme-light {
    --canvas: #f4f2ef;
    --canvas-2: #ebe8e4;
    --elev-1: rgba(255, 255, 255, 0.72);
    --elev-2: #ffffff;
    --ink: #121110;
    --ink-2: #45403c;
    --ink-3: #78716c;
    --line: rgba(18, 17, 16, 0.08);
    --line-strong: rgba(18, 17, 16, 0.12);
    --shadow-1: 0 1px 2px rgba(18, 17, 16, 0.04);
    --shadow-2: 0 12px 40px rgba(18, 17, 16, 0.08);
    --header-bg: rgba(255, 255, 255, 0.78);
    --product: #78716c;
    --live: #047857;
    --live-ring: rgba(4, 120, 87, 0.25);
    --err: #dc2626;
    --flash-up: rgba(16, 185, 129, 0.45);
    --flash-down: rgba(248, 113, 113, 0.45);
    --flash-up-fill: rgba(16, 185, 129, 0.14);
    --flash-up-fill-mid: rgba(16, 185, 129, 0.08);
    --flash-up-outer: rgba(16, 185, 129, 0.22);
    --flash-down-fill: rgba(248, 113, 113, 0.14);
    --flash-down-fill-mid: rgba(248, 113, 113, 0.08);
    --flash-down-outer: rgba(248, 113, 113, 0.22);
    --flash-up-text: #047857;
    --flash-down-text: #b91c1c;
    --flash-peak-up: #15803d;
    --flash-peak-down: #dc2626;
    --glass-edge: rgba(255, 255, 255, 0.6);
    --ambient-a: rgba(11, 29, 43, 0.09);
    --ambient-b: rgba(13, 148, 136, 0.07);
    --ambient-c: rgba(99, 102, 241, 0.05);
    background: var(--canvas);
}

/**
 * Gece teması — Ramazan (dashboard.css) gece paleti ile aynı eksen:
 * zemin #0a0e14…#161b22, yüzey #21262d, çerçeve #30363d, vurgu #58a6ff, canlı #3fb950.
 */
body.theme-dark {
    --brand: #58a6ff;
    --brand-mid: #79b8ff;
    --brand-deep: #1f6feb;
    --brand-stripe: #58a6ff;
    --canvas: #0a0e14;
    --canvas-2: #0d1117;
    --elev-1: #161b22;
    --elev-2: #161b22;
    --ink: #e6edf3;
    --ink-2: #c9d1d9;
    --ink-3: #8b949e;
    --line: #30363d;
    --line-strong: #484f58;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    --shadow-2: 0 4px 20px rgba(0, 0, 0, 0.5);
    --header-bg: #161b22;
    --product: #8b949e;
    --live: #3fb950;
    --live-ring: rgba(35, 134, 54, 0.35);
    --err: #ff7b72;
    --flash-up: rgba(63, 185, 80, 0.4);
    --flash-down: rgba(248, 81, 73, 0.4);
    --flash-up-fill: rgba(63, 185, 80, 0.12);
    --flash-up-fill-mid: rgba(63, 185, 80, 0.06);
    --flash-up-outer: rgba(63, 185, 80, 0.2);
    --flash-down-fill: rgba(248, 81, 73, 0.12);
    --flash-down-fill-mid: rgba(248, 81, 73, 0.06);
    --flash-down-outer: rgba(248, 81, 73, 0.18);
    --flash-up-text: #56d364;
    --flash-down-text: #ff9b94;
    --flash-peak-up: #3fb950;
    --flash-peak-down: #f85149;
    --glass-edge: rgba(255, 255, 255, 0.07);
    --ambient-a: rgba(88, 166, 255, 0.2);
    --ambient-b: rgba(88, 166, 255, 0.09);
    --ambient-c: rgba(56, 139, 253, 0.07);
    background: linear-gradient(165deg, #0a0e14 0%, #0d1117 35%, #161b22 70%, #0a0e14 100%);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 0.35vw + 13px, 16px);
}

body {
    font-family: var(--font);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    line-height: 1.4;
}

/* ——— Yerleşim kabuğu ——— */
.container.layout {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    max-width: min(1680px, 100%);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    padding-inline: clamp(var(--s-2), 2vw, var(--s-5));
    padding-bottom: var(--s-4);
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient::before,
.ambient::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.85;
}

.ambient::before {
    width: min(90vw, 720px);
    height: min(90vw, 720px);
    top: -18%;
    right: -12%;
    background: radial-gradient(circle at 30% 30%, var(--ambient-a), transparent 70%);
}

.ambient::after {
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    bottom: -8%;
    left: -8%;
    background: radial-gradient(circle at 50% 50%, var(--ambient-b), var(--ambient-c), transparent 65%);
}

.header,
.main-content,
.footer {
    position: relative;
    z-index: 1;
}

/* ——— Üst bar ——— */
.header {
    flex-shrink: 0;
    margin-top: var(--s-3);
    margin-bottom: var(--s-2);
    padding: var(--s-3) var(--s-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    flex-wrap: wrap;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1), var(--shadow-2);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 var(--glass-edge);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-width: 0;
    flex-wrap: wrap;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.header-branch-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-pill);
    font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
    font-weight: 800;
    text-decoration: none;
    color: var(--ink-2);
    background: var(--elev-2);
    border: 1px solid var(--line);
    white-space: nowrap;
    transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.header-branch-badge i {
    color: var(--brand);
    font-size: 0.95em;
}

.header-branch-badge--link,
.header-branch-badge--link:hover,
.header-branch-badge--link:focus,
.header-branch-badge--link:active {
    text-decoration: none !important;
}

.header-branch-badge:hover {
    border-color: rgba(11, 29, 43, 0.35);
    transform: translateY(-1px);
    color: var(--ink);
}

body.theme-dark .header-branch-badge:hover,
body.theme-dark .header-phone-badge:hover {
    border-color: rgba(88, 166, 255, 0.45);
}

.logo {
    height: clamp(2.5rem, 1.5rem + 2.5vw, 3.25rem);
    width: auto;
    object-fit: contain;
    border-radius: var(--r-sm);
    box-shadow: none;
}

body.theme-dark .logo {
    filter: invert(1);
}

.brand-info {
    min-width: 0;
}

.brand-name {
    font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-dark .brand-name {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #e6edf3;
}

.brand-subtitle {
    margin-top: var(--s-1);
    font-size: clamp(0.65rem, 0.55rem + 0.35vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-mid);
}

body.theme-dark .brand-subtitle {
    color: #8b949e;
}

.header-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-pill);
    font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
    font-weight: 700;
    text-decoration: none;
    color: var(--ink-2);
    background: var(--elev-2);
    border: 1px solid var(--line);
    white-space: nowrap;
    transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.header-phone-badge:hover {
    border-color: rgba(11, 29, 43, 0.35);
    transform: translateY(-1px);
}

.header-phone-badge i {
    color: var(--brand);
    font-size: 0.9em;
}

.header-connection-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-pill);
    font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.header-connection-badge--live {
    color: var(--live);
    background: var(--elev-2);
    border: 1px solid var(--live-ring);
}

.header-connection-badge--live .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.2);
    animation: live-pulse 2s ease-in-out infinite;
}

body.theme-dark .header-connection-badge--live .badge-dot {
    box-shadow: 0 0 0 3px rgba(35, 134, 54, 0.28);
}

body.theme-dark .header-branch-badge,
body.theme-dark .header-phone-badge {
    background: #21262d;
}

body.theme-dark .header-connection-badge--live {
    background: rgba(35, 134, 54, 0.25);
    border-color: #238636;
    color: #3fb950;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

.header-connection-badge--error {
    color: var(--err);
    background: var(--elev-2);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.header-connection-badge--error .badge-dot {
    display: none;
}

.header-connection-badge .badge-icon {
    display: none;
}

.header-connection-badge--error .badge-icon {
    display: inline-flex;
}

.header-connection-badge--error .badge-icon svg {
    width: 14px;
    height: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-shrink: 0;
}

.btn {
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(0.65rem, 0.6rem + 0.22vw, 0.78rem);
    border: 1px solid var(--line);
    background: var(--elev-2);
    color: var(--ink-2);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: border-color 0.2s var(--ease-out), color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body.theme-dark .btn:not(.btn-toggle-list) {
    background: #21262d;
    color: #e6edf3;
}

body.theme-dark .btn:not(.btn-toggle-list):hover {
    background: #30363d;
    border-color: #484f58;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-toggle-list {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(11, 29, 43, 0.38);
}

.btn-toggle-list:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

body.theme-dark .btn-toggle-list {
    background: linear-gradient(135deg, #388bfd 0%, #1f6feb 100%);
    border: none;
    box-shadow: 0 4px 18px rgba(56, 139, 253, 0.38);
}

body.theme-dark .btn-toggle-list:hover {
    background: linear-gradient(135deg, #388bfd 0%, #1f6feb 100%);
    border: none;
    color: #fff !important;
    filter: brightness(1.08);
}

body.theme-dark .btn-fullscreen svg {
    stroke: #8b949e;
}

body.theme-dark .btn-fullscreen:hover svg {
    stroke: #e6edf3;
}
    color: #8b949e;
}

body.theme-dark .btn-user:hover i {
    color: #e6edf3;
}

.btn-fullscreen,
.btn-user {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--r-sm);
}

.btn-fullscreen svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink-2);
}

.btn-fullscreen:hover svg {
    stroke: var(--brand);
}

.btn-user i {
    color: var(--ink-2);
}

/* ——— Ana grid ——— */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    min-height: 0;
    padding-bottom: var(--s-3);
    overflow: hidden;
}

.price-list-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(var(--s-3), 1.5vw, var(--s-5));
    align-items: start;
    align-content: start;
    flex: 0 0 auto;
    width: 100%;
}

.price-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    align-self: start;
    background: var(--elev-1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1), var(--shadow-2);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1), 0 20px 50px rgba(0, 0, 0, 0.1);
}

body.theme-dark .price-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.theme-dark .price-card:hover {
    border-color: #484f58;
    box-shadow: var(--shadow-1), 0 6px 24px rgba(0, 0, 0, 0.55);
}

.price-card-header {
    flex-shrink: 0;
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 29, 43, 0.04);
}

body.theme-dark .price-card-header {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border-bottom-color: #30363d;
    border-left: 4px solid #58a6ff;
    margin-left: 0;
}

.price-card-title {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-size: clamp(0.82rem, 0.72rem + 0.45vw, 1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.price-card-icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--brand);
    flex-shrink: 0;
}

.price-table-wrapper,
.currency-table-wrapper {
    flex: 0 0 auto;
    padding: var(--s-2) var(--s-3) var(--s-3);
    overflow: visible;
    max-height: none;
}

.price-table,
.currency-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--s-1);
    font-variant-numeric: tabular-nums;
}

.price-table thead th,
.currency-table thead th {
    padding: var(--s-2) var(--s-3);
    font-size: clamp(0.58rem, 0.52rem + 0.2vw, 0.68rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    border: none;
    vertical-align: middle;
}

.price-table thead th:first-child,
.currency-table thead th:first-child {
    text-align: left;
    width: 34%;
}

.th-alis,
.th-satis {
    text-align: right !important;
    color: var(--ink-3) !important;
    background: transparent !important;
}

body.theme-dark .price-table-wrapper,
body.theme-dark .currency-table-wrapper {
    background: #0d1117 !important;
}

body.theme-dark .price-table tbody tr:nth-child(odd) td,
body.theme-dark .currency-table tbody tr:nth-child(odd) td {
    background: #161b22 !important;
}

body.theme-dark .price-table tbody tr:nth-child(even) td,
body.theme-dark .currency-table tbody tr:nth-child(even) td {
    background: #0d1117 !important;
}

body.theme-dark .price-table tbody tr:hover td,
body.theme-dark .currency-table tbody tr:hover td {
    background: #21262d !important;
}

.price-table tbody tr,
.currency-table tbody tr {
    background: var(--elev-2);
    border-radius: var(--r-md);
    box-shadow: 0 1px 0 var(--glass-edge) inset;
    outline: 1px solid var(--line);
    outline-offset: -1px;
}

.price-table tbody td,
.currency-table tbody td {
    padding: var(--s-3) var(--s-3);
    vertical-align: middle;
    border: none;
}

.price-table tbody tr td:first-child,
.currency-table tbody tr td:first-child {
    border-radius: var(--r-md) 0 0 var(--r-md);
    padding-left: calc(var(--s-3) + 2px);
    border-left: 3px solid var(--brand);
    box-shadow: inset 0 0 0 1px rgba(11, 29, 43, 0.1);
}

body.theme-dark .price-table tbody tr td:first-child,
body.theme-dark .currency-table tbody tr td:first-child {
    border-left-width: 4px;
    border-left-color: #58a6ff;
    box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.18);
}

.price-table tbody tr td:last-child,
.currency-table tbody tr td:last-child {
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding-right: var(--s-4);
}

.cell-product {
    font-family: var(--font);
    font-size: clamp(0.92rem, 0.76rem + 0.6vw, 1.18rem) !important;
    font-weight: 950 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    line-height: 1.22 !important;
    max-width: 46%;
}

body.theme-light .cell-product {
    color: #0b1220 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.theme-dark .cell-product {
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body.theme-light .cell-product .currency-name > span:not(.currency-code) {
    color: inherit;
}

.cell-product .currency-name {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.cell-product .currency-name > span:not(.currency-code) {
    font-size: inherit;
    letter-spacing: 0.08em;
}

.currency-flag {
    width: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    height: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.currency-code {
    font-family: var(--font);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(11, 29, 43, 0.12);
    color: var(--brand);
    letter-spacing: 0.04em;
}

body.theme-dark .currency-code {
    background: #21262d;
    border: 1px solid #30363d;
    color: #8b949e;
}

.price-value,
.currency-value {
    font-family: var(--font-price);
    font-size: clamp(1.1rem, 0.8rem + 1.4vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-align: right;
    font-variant-numeric: tabular-nums lining-nums;
}

.price-value.alis,
.currency-value.alis,
.price-value.satis,
.currency-value.satis {
    color: var(--ink);
    background: transparent;
    border-left: 1px solid var(--line);
    box-shadow: none;
    transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fiyat değişimi: yalnızca rakam rengi (yükseliş yeşil, düşüş kırmızı) */
.price-value.updated.up,
.currency-value.updated.up {
    animation: price-flash-up 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.price-value.updated.down,
.currency-value.updated.down {
    animation: price-flash-down 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes price-flash-up {
    0% { color: var(--ink); }
    10%, 42% { color: var(--flash-peak-up); }
    100% { color: var(--ink); }
}

@keyframes price-flash-down {
    0% { color: var(--ink); }
    10%, 42% { color: var(--flash-peak-down); }
    100% { color: var(--ink); }
}

.currency-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: min(860px, 100%);
    margin-inline: auto;
}

/* Döviz kartı: gereksiz boşlukları biraz sıkılaştır */
.currency-card .currency-table-wrapper {
    padding: var(--s-2) var(--s-3) var(--s-3);
}

/* ——— Footer ——— */
.footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: var(--s-3) var(--s-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

body.theme-dark .footer {
    background: linear-gradient(0deg, #0a0e14 0%, #0d1117 50%, #161b22 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: clamp(0.62rem, 0.58rem + 0.18vw, 0.72rem);
    font-weight: 600;
    color: var(--ink-3);
}

.footer-disclaimer-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--brand);
}

.last-update {
    font-family: var(--font);
    font-size: clamp(0.62rem, 0.58rem + 0.18vw, 0.72rem);
    font-weight: 600;
    color: var(--ink-2);
}

.footer.footer--error .footer-disclaimer,
.footer.footer--error .last-update {
    color: var(--err);
}

/* ——— Kapalı görünüm ——— */
.price-list-closed-view {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: var(--s-6) var(--s-4);
}

.price-list-closed-view .closed-view-box {
    position: relative;
    max-width: 440px;
    width: 100%;
    padding: var(--s-6) var(--s-5);
    text-align: center;
    background: var(--elev-1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
}

.price-list-closed-view .closed-view-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(11, 29, 43, 0.18), transparent 52%);
    pointer-events: none;
}

.price-list-closed-view .closed-logo {
    position: relative;
    width: min(168px, 42vw);
    height: auto;
    margin-bottom: var(--s-4);
}

.price-list-closed-view .closed-view-divider {
    position: relative;
    width: 48px;
    height: 2px;
    margin: 0 auto var(--s-4);
    border: none;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.7;
}

.price-list-closed-view .closed-message {
    position: relative;
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--ink-2);
}

body.theme-dark .price-list-closed-view {
    background: radial-gradient(ellipse at center, #0a0e14 0%, #010409 100%);
}

body.theme-dark .price-list-closed-view .closed-view-box::before {
    background: linear-gradient(160deg, rgba(88, 166, 255, 0.12), transparent 55%);
}

body.theme-dark .price-list-closed-view .closed-view-box {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border: 2px solid #30363d;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.theme-dark .price-list-closed-view .closed-view-divider {
    background: linear-gradient(90deg, transparent, #58a6ff, transparent);
    opacity: 0.88;
}

body.theme-dark .price-list-closed-view .closed-message {
    color: #e6edf3;
}

body.price-list-hidden .price-list-content,
body.price-list-hidden .footer {
    display: none !important;
}

body.price-list-hidden .price-list-closed-view {
    display: flex !important;
}

body.price-list-hidden .main-content {
    flex: 1;
}

body.price-list-hidden .header {
    margin-bottom: 0;
}

/* ——— Büyük ekran / TV ——— */
@media (min-width: 1200px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .container.layout {
        height: 100vh;
        max-height: 100vh;
    }

    .main-content {
        overflow: hidden;
    }

    .price-table-wrapper,
    .currency-table-wrapper {
        overflow: visible;
    }

    /* Büyük ekran/TV: fiyatlar bir tık daha sakin */
    .price-value,
    .currency-value {
        font-size: clamp(1.25rem, 0.75rem + 1.2vw, 2.05rem);
    }
}

@media (max-width: 900px) {
    .price-grid {
        grid-template-columns: 1fr;
    }

    .header {
        margin-top: var(--s-2);
        padding: var(--s-3);
    }

    .cell-product {
        max-width: 44%;
    }
}

/* TV/uzak ekran: ürün adı biraz daha büyük olsun */
@media (min-width: 1366px) {
    .cell-product {
        font-size: clamp(1.02rem, 0.9rem + 0.55vw, 1.28rem) !important;
        letter-spacing: 0.035em !important;
    }
}

@media (max-width: 600px) {
    .brand-subtitle {
        display: none;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .price-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-card,
    .header-phone-badge,
    .btn {
        transition: none;
    }

    .price-card:hover {
        transform: none;
    }

    .header-connection-badge--live .badge-dot {
        animation: none;
    }

    .price-value.updated,
    .currency-value.updated {
        animation: none !important;
    }
}

/* ——— V2: hafif farklılaştırma (iskelet korunur) ——— */
:root {
    --r-lg: 22px;
    --r-md: 15px;
}

body.theme-light {
    --canvas: #f1f5f9;
}

.price-card-icon {
    padding: 6px;
    border-radius: var(--r-sm);
    background: rgba(11, 29, 43, 0.07);
    box-sizing: content-box;
}

body.theme-dark .price-card-icon {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.25);
}

.header {
    box-shadow:
        var(--shadow-1),
        var(--shadow-2),
        inset 0 1px 0 rgba(11, 29, 43, 0.06),
        inset 0 -2px 0 rgba(11, 29, 43, 0.05);
}

body.theme-dark .header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1c2128 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.price-table tbody tr,
.currency-table tbody tr {
    outline-color: rgba(11, 29, 43, 0.1);
}

body.theme-dark .price-table tbody tr,
body.theme-dark .currency-table tbody tr {
    outline-color: #30363d;
}

