/* Modern Data Table Styles (Dark Theme) */
:root {
    --table-bg: #0e1116;
    --table-panel: #12161d;
    --table-panel-2: #151a22;
    --table-border: #212734;
    --table-text: #e9eef6;
    --table-muted: #aab3c2;
    --table-gold: #d6b36a;
    --table-green: #36c691;
    --table-red: #ff6b6b;
    --table-chip: #1b222e;
    --table-shadow: 0 6px 20px rgba(0,0,0,.35);
    --table-radius: 14px;
    --table-accent: #e1c487;
    
    /* Page.html uyumlu CSS değişkenleri */
    --bg: #0e1116;
    --elev-1: #11161d;      /* kart */
    --elev-2: #141b23;      /* chip/thead */
    --text: #e9eef5;
    --muted: #98a6b8;
    --stroke-weak: rgba(120,150,180,.22);
    --stroke-strong: rgba(120,150,180,.34);
    --accent: #f5b84e;      /* kısa aralık çizgi rengi (sarı) */
    --up: #17be85;
    --down: #ef5350;
    --radius-lg: 18px;
    --shadow-lg: 0 14px 44px rgba(0,0,0,.45);
    --shadow-md: 0 6px 20px rgba(0,0,0,.35);
}

/* Page.html uyumlu card ve pad sınıfları */
.card {
    background: var(--elev-1);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
}

.pad {
    padding: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.borsa-container {
    max-width: 1200px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Page.html uyumlu table-scroll sınıfı */
.table-scroll {
    overflow: auto;
    border-radius: var(--radius-lg);
}

.table-scroll table {
    width: 100%;
    border-spacing: 0;
    background: var(--elev-1);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
}

.table-scroll thead th {
    background: var(--elev-2);
    color: var(--muted);
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--stroke-strong);
}

.table-scroll thead th:not(:first-child) {
    text-align: right;
}

.table-scroll tbody td {
    padding: 12px;
    border-top: 1px solid var(--stroke-weak);
    border-left: none;
    border-right: none;
    color: var(--text);
    font-size: 14px;
    text-align: left;
}

.table-scroll tbody td:not(:first-child) {
    text-align: right;
}

.table-scroll thead th {
    border-left: none;
    border-right: none;
}

.table-scroll tbody tr:hover td {
    background: rgba(255,255,255,.02);
}

/* Page.html uyumlu pill sınıfları */
.pill, .pill-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke-weak);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.02);
}

.pill-mini {
    padding: 3px 8px;
}

.pill.up, .pill-mini.up {
    color: var(--up);
    border-color: rgba(23, 190, 133, .3);
    background: rgba(23, 190, 133, .08);
}

.pill.down, .pill-mini.down {
    color: var(--down);
    border-color: rgba(239, 83, 80, .3);
    background: rgba(239, 83, 80, .08);
}

/* Price Change Animations */
@keyframes priceUp {
    0% { background-color: transparent; }
    30% { background-color: rgba(54, 198, 145, 0.15); }
    100% { background-color: transparent; }
}

@keyframes priceDown {
    0% { background-color: transparent; }
    30% { background-color: rgba(255, 107, 107, 0.15); }
    100% { background-color: transparent; }
}

.price-up {
    animation: priceUp 2s ease;
}

.price-down {
    animation: priceDown 2s ease;
}

.borsa-header {
    text-align: center;
    margin: -18px -18px 18px -18px;
    padding: 18px;
    border-bottom: 1px solid var(--table-border);
}

.borsa-header h2 {
    color: var(--table-text);
    font-size: clamp(22px, 3.5vw, 32px);
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.borsa-header p {
    color: var(--table-muted);
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

/* Eski borsa-table sınıfları - table-scroll ile uyumlu hale getirildi */
.borsa-table-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.borsa-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.borsa-table-wrapper::-webkit-scrollbar-track {
    background: var(--table-chip);
    border-radius: 4px;
}

.borsa-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--table-border);
    border-radius: 4px;
}

.borsa-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--table-muted);
}

/* table-scroll içindeki tablolar için ek stiller */
.table-scroll::-webkit-scrollbar {
    width: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--elev-2);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--stroke-strong);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.borsa-table {
    width: 100%;
    border-spacing: 0;
    background: transparent;
    border: 1px solid var(--table-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.borsa-table thead {
    background: #111722;
    color: #aeb7c6;
}

.borsa-table th {
    padding: 11px 12px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: #aeb7c6;
    border-bottom: 1px solid var(--table-border);
}

.borsa-table th:first-child {
    text-align: left;
}

.borsa-table th:not(:first-child) {
    text-align: right;
}

.borsa-table tbody tr {
    transition: all 0.3s ease;
    background: transparent;
}

.borsa-table tbody tr:hover {
    background-color: #0f141b;
}

.borsa-table td {
    padding: 12px;
    font-size: 14px;
    color: var(--table-text);
    border-bottom: 1px solid var(--table-border);
    text-align: right;
}

.borsa-table td:first-child {
    text-align: left;
}

.borsa-table tbody tr:last-child td {
    border-bottom: none;
}

.sembol {
    font-weight: 600;
    color: var(--table-text);
}

.kod {
    font-size: 11px;
    color: var(--table-muted);
    font-weight: normal;
    margin-left: 5px;
    display: inline-block;
    opacity: 0.8;
}

/* Currency Indicators (Pills) */
.gold { 
    background: var(--table-gold); 
    color: #1b1b1b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 4px;
}
.usd { 
    background: var(--table-green); 
    color: #1b1b1b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 4px;
}
.eur { 
    background: #3498db; 
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 4px;
}
.gbp { 
    background: var(--table-red); 
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 4px;
}
.try { 
    background: #e67e22; 
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 4px;
}

.fiyat {
    font-weight: 800;
    font-size: 16px;
    color: var(--table-accent);
}

.degisim {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--table-border);
    background: #0f141b;
    justify-content: center;
}

.degisim.pozitif {
    border-color: rgba(54, 198, 145, .3);
    background: rgba(54, 198, 145, .08);
    color: var(--table-green);
}

.degisim.negatif {
    border-color: rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .08);
    color: var(--table-red);
}

/* Theme Toggle Shortcode Styles */
.harem-theme-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.harem-theme-toggle-container.position-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Button Style */
.harem-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--table-accent);
    border: 1px solid #b8934b;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    color: #1b1b1b;
}

.harem-theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 196, 135, 0.4);
}

.harem-theme-btn:active {
    transform: translateY(0);
}

/* Button Sizes */
.size-small .harem-theme-btn {
    padding: 6px 10px;
    font-size: 12px;
}

.size-medium .harem-theme-btn {
    padding: 8px 12px;
    font-size: 14px;
}

.size-large .harem-theme-btn {
    padding: 12px 16px;
    font-size: 16px;
}

/* Icon Only Style */
.harem-theme-btn.icon-only {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.size-small .harem-theme-btn.icon-only {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.size-large .harem-theme-btn.icon-only {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* Switch Style */
.harem-theme-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.harem-theme-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.harem-theme-slider {
    position: relative;
    display: block;
    width: 60px;
    height: 30px;
    background: var(--table-chip);
    border: 1px solid var(--table-border);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.size-small .harem-theme-slider {
    width: 48px;
    height: 24px;
    border-radius: 12px;
}

.size-large .harem-theme-slider {
    width: 72px;
    height: 36px;
    border-radius: 18px;
}

.harem-theme-slider::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 2px;
    top: 1px;
    background: var(--table-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.size-small .harem-theme-slider::before {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 1px;
}

.size-large .harem-theme-slider::before {
    width: 32px;
    height: 32px;
    left: 2px;
    top: 1px;
}

.harem-theme-input:checked + .harem-theme-slider::before {
    transform: translateX(30px);
}

.size-small .harem-theme-input:checked + .harem-theme-slider::before {
    transform: translateX(24px);
}

.size-large .harem-theme-input:checked + .harem-theme-slider::before {
    transform: translateX(36px);
}

.slider-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.slider-icon.light-icon {
    right: 6px;
    opacity: 0;
}

.slider-icon.dark-icon {
    left: 6px;
    opacity: 1;
}

.harem-theme-input:checked + .harem-theme-slider .light-icon {
    opacity: 1;
}

.harem-theme-input:checked + .harem-theme-slider .dark-icon {
    opacity: 0;
}

.theme-label {
    font-size: 14px;
    color: var(--table-text);
    font-weight: 500;
}

.size-small .theme-label {
    font-size: 12px;
}

.size-large .theme-label {
    font-size: 16px;
}

/* Global Theme Classes for Dynamic Switching */
[data-harem-theme="light"] .borsa-container:not(.dark),
[data-harem-theme="light"] .harem-modern-chart:not(.dark),
[data-harem-theme="light"] .altin-grafik:not(.dark),
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) {
    background: linear-gradient(180deg, #ffffff, #f8f9fa) !important;
    border-color: #e1e8ed !important;
    color: #2c3e50 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Global theme override for converter specific elements */
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-header {
    border-bottom-color: #e1e8ed !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-header h3 {
    color: #2c3e50 !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-input label,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-secim label,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-kategori label {
    color: #7f8c8d !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-input input,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-input input[type="number"],
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-secim select,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-kategori select {
    background: #fff !important;
    border-color: #e1e8ed !important;
    color: #2c3e50 !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-input input:focus,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-input input[type="number"]:focus,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-secim select:focus,
[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-kategori select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-sonuc {
    background: linear-gradient(180deg, #f8f9fa, #ffffff) !important;
    border-color: #e1e8ed !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .sonuc-item:not(:last-child) {
    border-bottom-color: #e1e8ed !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .sonuc-label {
    color: #7f8c8d !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .sonuc-deger {
    color: #b8934b !important;
}

[data-harem-theme="light"] .altin-cevirici-container:not(.dark) .cevirici-bilgi {
    color: #7f8c8d !important;
    border-top-color: #e1e8ed !important;
}

/* Global pozitif/negatif colors - artık pill içinde hallediyor */

.degisim-oku {
    font-size: 11px;
}

.yuzde {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--table-border);
    background: #0f141b;
    font-weight: 600;
}

.yuzde.pozitif {
    border-color: rgba(54, 198, 145, .3);
    background: rgba(54, 198, 145, .08);
    color: var(--table-green);
}

.yuzde.negatif {
    border-color: rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .08);
    color: var(--table-red);
}

/* Pills (index.html style) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--table-border);
    background: #0f141b;
    font-weight: 600;
}

.pill.up {
    border-color: rgba(54, 198, 145, .3);
    background: rgba(54, 198, 145, .08);
    color: var(--table-green);
}

.pill.down {
    border-color: rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .08);
    color: var(--table-red);
}

/* Light Theme Overrides for Data Table */
.borsa-container.light,
.card.light {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-color: #e1e8ed;
    color: #2c3e50;
}

.borsa-container.light .section-title {
    color: #2c3e50;
}

.borsa-container.light .muted {
    color: #7f8c8d;
}

.borsa-container.light .table-scroll table {
    background: #ffffff;
    border-color: #e1e8ed;
}

.borsa-container.light .table-scroll thead th {
    background: #f8f9fa;
    color: #7f8c8d;
    border-bottom-color: #e1e8ed;
}

.borsa-container.light .table-scroll tbody td {
    color: #2c3e50;
    border-top-color: #f1f2f6;
}

.borsa-container.light .table-scroll tbody tr:hover td {
    background: #f8f9fa;
}

.borsa-container.light .pill {
    border-color: #e1e8ed;
    background: #ffffff;
    color: #2c3e50;
}

.borsa-container.light .pill.up {
    border-color: rgba(39, 174, 96, .3);
    background: rgba(39, 174, 96, .08);
    color: #27ae60;
}

.borsa-container.light .pill.down {
    border-color: rgba(231, 76, 60, .3);
    background: rgba(231, 76, 60, .08);
    color: #e74c3c;
}

.borsa-container.light .borsa-header {
    border-bottom-color: #e1e8ed;
}

.borsa-container.light .borsa-header h2 {
    color: #2c3e50;
}

.borsa-container.light .borsa-header p {
    color: #7f8c8d;
}

.borsa-container.light .borsa-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.borsa-container.light .borsa-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

.borsa-container.light .borsa-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.borsa-container.light .borsa-table {
    border-color: #e1e8ed;
}

.borsa-container.light .borsa-table thead {
    background: #f8f9fa;
    color: #7f8c8d;
}

.borsa-container.light .borsa-table th {
    color: #7f8c8d;
    border-bottom-color: #e1e8ed;
}

.borsa-container.light .borsa-table tbody tr {
    background: transparent;
}

.borsa-container.light .borsa-table tbody tr:hover {
    background-color: #f8f9fa;
}

.borsa-container.light .borsa-table td {
    color: #2c3e50;
    border-bottom-color: #f1f2f6;
}

.borsa-container.light .sembol {
    color: #2c3e50;
}

.borsa-container.light .kod {
    color: #95a5a6;
}

.borsa-container.light .fiyat {
    color: #b8934b;
}

.borsa-container.light .degisim {
    border-color: #e1e8ed;
    background: #ffffff;
}

.borsa-container.light .degisim.pozitif {
    border-color: rgba(39, 174, 96, .3);
    background: rgba(39, 174, 96, .08);
    color: #27ae60;
}

.borsa-container.light .degisim.negatif {
    border-color: rgba(231, 76, 60, .3);
    background: rgba(231, 76, 60, .08);
    color: #e74c3c;
}

.borsa-container.light .yuzde {
    border-color: #e1e8ed;
    background: #ffffff;
}

.borsa-container.light .yuzde.pozitif {
    border-color: rgba(39, 174, 96, .3);
    background: rgba(39, 174, 96, .08);
    color: #27ae60;
}

.borsa-container.light .yuzde.negatif {
    border-color: rgba(231, 76, 60, .3);
    background: rgba(231, 76, 60, .08);
    color: #e74c3c;
}

.borsa-container.light .pill {
    border-color: #e1e8ed;
    background: #ffffff;
    color: #2c3e50;
}

.borsa-container.light .pill.up {
    border-color: rgba(39, 174, 96, .3);
    background: rgba(39, 174, 96, .08);
    color: #27ae60;
}

.borsa-container.light .pill.down {
    border-color: rgba(231, 76, 60, .3);
    background: rgba(231, 76, 60, .08);
    color: #e74c3c;
}

.borsa-container.light .guncelleme-zamani {
    color: #7f8c8d;
    border-top-color: #e1e8ed;
}

.borsa-container.light .loading {
    color: #b8934b;
}

.guncelleme-zamani {
    text-align: center;
    margin: 18px -18px -18px -18px;
    padding: 15px 18px;
    color: var(--table-muted);
    font-size: 13px;
    border-top: 1px solid var(--table-border);
    background: none;
}

.loading {
    text-align: center;
    color: var(--table-accent);
    font-style: normal;
    font-weight: 600;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .borsa-container {
        border-radius: 12px;
    }

    .borsa-header {
        padding: 15px;
    }

    .borsa-header h2 {
        font-size: 20px;
    }

    .borsa-table {
        font-size: 12px;
    }

    .borsa-table th,
    .borsa-table td {
        padding: 10px 8px;
    }

    .fiyat {
        font-size: 14px;
    }

    .kod {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .guncelleme-zamani {
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .borsa-table th:nth-child(4),
    .borsa-table td:nth-child(4) {
        display: none;
    }
    
    .borsa-table th,
    .borsa-table td {
        padding: 8px 6px;
    }
    
    .fiyat {
        font-size: 13px;
    }
    
    .yuzde {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* --- Ticker Strip Styles --- */
.borsa-serit-container {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
.borsa-serit-wrapper { display:flex; animation:kaydir 60s linear infinite; white-space:nowrap; }
.borsa-serit-wrapper:hover{ animation-play-state:paused; }
@keyframes kaydir{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
.borsa-serit-container.hizli .borsa-serit-wrapper{animation-duration:30s}
.borsa-serit-container.yavas .borsa-serit-wrapper{animation-duration:90s}
.borsa-item{display:inline-flex;align-items:center;margin-right:40px;padding:8px 16px;background:rgba(255,255,255,.1);border-radius:25px;min-width:200px;justify-content:space-between;color:#fff;font-size:14px}
.borsa-item .degisim{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600}
.borsa-item .pozitif{color:#2ecc71}.borsa-item .negatif{color:#e74c3c}
.borsa-item:hover{background:rgba(255,255,255,.2);transform:scale(1.05)}
.borsa-serit-container.dark{background:linear-gradient(135deg,#2c3e50 0%,#34495e 100%)}
.borsa-serit-container.light{background:linear-gradient(135deg,#ecf0f1 0%,#bdc3c7 100%);color:#2c3e50}
.borsa-serit-container.light .borsa-item{background:rgba(52,73,94,.1)} 
.borsa-table td, th {border:none !important}

/* --- Gold Converter Styles (Modern Dark Theme) --- */
:root {
    --converter-bg: #0e1116;
    --converter-panel: #12161d;
    --converter-panel-2: #151a22;
    --converter-border: #212734;
    --converter-text: #e9eef6;
    --converter-muted: #aab3c2;
    --converter-gold: #d6b36a;
    --converter-green: #36c691;
    --converter-red: #ff6b6b;
    --converter-shadow: 0 6px 20px rgba(0,0,0,.35);
    --converter-radius: 14px;
    --converter-accent: #e1c487;
}

.altin-cevirici-container {
    margin: 20px auto;
    background: linear-gradient(180deg, var(--converter-panel), var(--converter-panel-2));
    border: 1px solid var(--converter-border);
    border-radius: var(--converter-radius);
    box-shadow: var(--converter-shadow);
    padding: 25px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--converter-text);
}

/* Kare Format (Dikey) */
.altin-cevirici-container.kare {
    max-width: 500px;
}

/* Yatay Format */
.altin-cevirici-container.yatay {
    max-width: 100%;
}

/* Light theme override */
.altin-cevirici-container.light {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-color: #e1e8ed;
    color: #2c3e50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cevirici-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--converter-border);
    padding-bottom: 15px;
}

.cevirici-header h3 {
    color: var(--converter-text);
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.altin-cevirici-container.light .cevirici-header h3 {
    color: #2c3e50;
}

.altin-cevirici-container.light .cevirici-header {
    border-bottom-color: #e1e8ed;
}

.cevirici-content {
    display: grid;
    gap: 20px;
}

/* Yatay format layout */
.altin-cevirici-container.yatay .cevirici-content {
    grid-template-columns: 1fr auto;
    grid-template-areas: 
        "inputs result"
        "info info";
    align-items: stretch;
    gap: 30px;
}

.altin-cevirici-container.yatay .cevirici-inputs {
    grid-area: inputs;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.altin-cevirici-container.yatay .cevirici-sonuc {
    grid-area: result;
    min-width: 250px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.altin-cevirici-container.yatay .cevirici-bilgi {
    grid-area: info;
    text-align: center;
    margin-top: 20px;
}

/* Responsive design for horizontal format */
@media (max-width: 768px) {
    .altin-cevirici-container.yatay .cevirici-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "inputs"
            "result"
            "info";
        gap: 20px;
    }
    
    .altin-cevirici-container.yatay {
        max-width: 500px;
    }
}

.cevirici-input, .cevirici-secim, .cevirici-kategori {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cevirici-input label, .cevirici-secim label, .cevirici-kategori label {
    font-weight: 600;
    color: var(--converter-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.altin-cevirici-container.light .cevirici-input label,
.altin-cevirici-container.light .cevirici-secim label,
.altin-cevirici-container.light .cevirici-kategori label {
    color: #7f8c8d;
}

.cevirici-input input, 
.cevirici-input input[type="number"],
.cevirici-secim select, 
.cevirici-kategori select {
    width: 100%;
    background: #0f141b;
    border: 1px solid var(--converter-border);
    color: var(--converter-text);
    border-radius: 10px;
    padding: 12px 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Number input spinner'ları gizle */
.cevirici-input input[type="number"]::-webkit-outer-spin-button,
.cevirici-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cevirici-input input:focus, 
.cevirici-input input[type="number"]:focus,
.cevirici-secim select:focus, 
.cevirici-kategori select:focus {
    outline: none;
    border-color: var(--converter-accent);
    box-shadow: 0 0 0 3px rgba(225, 196, 135, 0.15);
}

.altin-cevirici-container.light .cevirici-input input,
.altin-cevirici-container.light .cevirici-input input[type="number"],
.altin-cevirici-container.light .cevirici-secim select,
.altin-cevirici-container.light .cevirici-kategori select {
    background: #fff;
    border-color: #e1e8ed;
    color: #2c3e50;
}

.altin-cevirici-container.light .cevirici-input input:focus,
.altin-cevirici-container.light .cevirici-input input[type="number"]:focus,
.altin-cevirici-container.light .cevirici-secim select:focus,
.altin-cevirici-container.light .cevirici-kategori select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cevirici-sonuc {
    background: linear-gradient(180deg, #1b222e, #151a22);
    border: 1px solid var(--converter-border);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--converter-shadow);
}

.sonuc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.sonuc-item:not(:last-child) {
    border-bottom: 1px solid var(--converter-border);
}

.sonuc-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--converter-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sonuc-deger {
    font-weight: 800;
    font-size: 22px;
    color: var(--converter-accent);
}

.altin-cevirici-container.light .cevirici-sonuc {
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
    border-color: #e1e8ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.altin-cevirici-container.light .sonuc-item:not(:last-child) {
    border-bottom-color: #e1e8ed;
}

.altin-cevirici-container.light .sonuc-label {
    color: #7f8c8d;
}

.altin-cevirici-container.light .sonuc-deger {
    color: #b8934b;
}

.cevirici-bilgi {
    text-align: center;
    color: var(--converter-muted);
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid var(--converter-border);
    margin-top: 15px;
}

.altin-cevirici-container.light .cevirici-bilgi {
    color: #7f8c8d;
    border-top-color: #e1e8ed;
}

/* Responsive */
@media (max-width: 768px) {
    .altin-cevirici-container {
        margin: 10px;
        padding: 20px;
    }
    
    .cevirici-header h3 {
        font-size: 20px;
    }
    
    .sonuc-label, .sonuc-deger {
        font-size: 14px;
    }
    
    /* Page.html uyumlu responsive */
    .card {
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .table-scroll table {
        font-size: 13px;
    }
    
    .table-scroll thead th,
    .table-scroll tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .pill {
        font-size: 11px;
        padding: 3px 7px;
    }
}

@media (max-width: 480px) {
    .table-scroll thead th:nth-child(4),
    .table-scroll tbody td:nth-child(4) {
        display: none;
    }
    
    .table-scroll thead th,
    .table-scroll tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .pill {
        font-size: 10px;
        padding: 2px 5px;
    }
}