/* ============================================
   TJK ALTILI GANYAN HESAPLAMA - MOBİL v7.4
   Modern, Responsive, Çift AGF + Eküri Desteği
   ============================================ */

/* ========== GENEL RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tjk-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ========== KONTROL PANELİ ========== */
.tjk-control-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tjk-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.tjk-date {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.tjk-date:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tjk-btn-load {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tjk-btn-load:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.tjk-btn-load:active {
    transform: translateY(0);
}

.tjk-btn-load:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tjk-info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #667eea;
}

/* ========== ŞEHİR TABLARI ========== */
.city-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.city-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.city-tab:hover {
    background: #e9ecef;
    color: #333;
}

.city-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========== ŞEHİR İÇERİK ========== */
.city-content {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.city-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== AGF TABLARI (1. ve 2. ALTILI GANYAN) ========== */
.agf-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 12px;
}

.agf-tab {
    flex: 1;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.agf-tab::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.agf-tab:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #333;
}

.agf-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.agf-tab.active::before {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* ========== AGF İÇERİK ========== */
.agf-content {
    display: none;
}

.agf-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* ========== KOŞU (RACE) TABLARI ========== */
.race-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.race-tab {
    flex: 1;
    min-width: 70px;
    padding: 10px 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.race-tab:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #333;
}

.race-tab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

/* ========== KOŞU İÇERİK ========== */
.race-content {
    display: none;
}

.race-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* ========== EKÜRİ BİLGİSİ ========== */
.coupled-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.tjk-coupled-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* ========== TABLO STİLİ ========== */
.tjk-table,
.horse-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tjk-table thead,
.horse-table thead {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.tjk-table thead th,
.horse-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tjk-table thead th:first-child,
.horse-table thead th:first-child {
    width: 12%;
    text-align: center;
}

.tjk-table thead th:nth-child(2),
.horse-table thead th:nth-child(2) {
    width: 38%;
}

.tjk-table thead th:nth-child(3),
.horse-table thead th:nth-child(3) {
    width: 30%;
}

.tjk-table thead th:nth-child(4),
.horse-table thead th:nth-child(4) {
    width: 20%;
    text-align: right;
    padding-right: 12px;
}

.tjk-table tbody tr,
.horse-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tjk-table tbody tr:hover,
.horse-table tbody tr:hover {
    background: linear-gradient(90deg, #667eea08 0%, #764ba208 100%);
}

.tjk-table tbody tr.selected,
.horse-table tbody tr.selected {
    background: linear-gradient(90deg, #10b98120 0%, #05966920 100%) !important;
    border-left: 4px solid #10b981;
}

.tjk-table tbody tr.selected:hover,
.horse-table tbody tr.selected:hover {
    background: linear-gradient(90deg, #10b98130 0%, #05966930 100%) !important;
}

.tjk-table tbody td,
.horse-table tbody td {
    padding: 14px 8px;
    font-size: 13px;
    color: #333;
}

.tjk-table tbody td:first-child,
.horse-table tbody td:first-child {
    width: 12%;
    text-align: center;
    font-weight: 600;
}

.tjk-table tbody td:nth-child(2),
.horse-table tbody td:nth-child(2) {
    width: 38%;
}

.tjk-table tbody td:nth-child(3),
.horse-table tbody td:nth-child(3) {
    width: 30%;
}

.tjk-table tbody td:nth-child(4),
.horse-table tbody td:nth-child(4) {
    width: 20%;
    text-align: right;
    padding-right: 12px;
    font-weight: 900;
    color: #10b981;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
}

/* ========== AT NUMARASI ========== */
.horse-no {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ========== AT ADI ========== */
.horse-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== JOKEY ========== */
.jokey {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
}

/* ========== AGF ORANI ========== */
.agf {
    font-weight: 900;
    color: #10b981;
    font-size: 18px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
}

/* Mobilde AGF */
@media (max-width: 768px) {
    .agf {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .agf {
        font-size: 14px;
    }
}

/* ========== KOŞMAZ AT SATIRI ========== */
.tjk-scratch-row {
    background: #fee2e2 !important;
    opacity: 0.7;
}

.tjk-scratch-row:hover {
    background: #fecaca !important;
}

.tjk-scratch-row .horse-name {
    text-decoration: line-through;
    color: #991b1b;
}

.tjk-scratch-row .agf {
    color: #dc2626;
}

/* ========== KOŞMAZ BADGE ========== */
.scratch-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* ========== EKÜRİ BADGE ========== */
.coupled-badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.coupled-badge-0 {
    background: #f59e0b;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
}

.coupled-badge-1 {
    background: #8b5cf6;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
}

.coupled-badge-2 {
    background: #ec4899;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.4);
}

.coupled-badge-3 {
    background: #06b6d4;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.4);
}

.coupled-badge-4 {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}

.coupled-badge-5 {
    background: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* ========== CHECKBOX GİZLE ========== */
.tjk-table input[type="checkbox"] {
    display: none;
}

/* Checkbox yerine custom seçim göstergesi */
.tjk-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 0;
    background: #10b981;
    transition: height 0.3s ease;
}

.tjk-table tbody tr.selected::before {
    height: 100%;
}

.tjk-table tbody tr {
    position: relative;
}

/* ========== HESAPLA BUTONU ========== */
.calc-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    position: relative;
    margin-top: 20px;
}

.calc-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.calc-button:active {
    transform: translateY(0);
}

/* ========== SEÇİLEN AT BADGE ========== */
.selection-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    border: 3px solid white;
}

/* ========== SONUÇ MODALI ========== */
.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.result-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.result-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.result-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.result-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.result-race {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.result-race h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Hesaplama Türü Badge */
.calc-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-type-badge.normal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.calc-type-badge.coupled {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.calc-type-badge.scratch {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.result-horses {
    list-style: none;
}

.result-horses li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-horses li:last-child {
    border-bottom: none;
}

.result-horses .horse-no {
    min-width: 40px;
}

.result-horses .horse-name {
    flex: 1;
    padding: 0 12px;
}

.result-horses .horse-agf {
    font-weight: 700;
    color: #10b981;
}

.result-info {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 20px 20px;
}

.result-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #dee2e6;
}

.result-info-row:last-of-type {
    border-bottom: 2px solid #667eea;
    margin-bottom: 16px;
}

.result-info-row span:first-child {
    color: #6b7280;
    font-weight: 600;
}

.result-info-row span:last-child {
    color: #1f2937;
    font-weight: 700;
}

.result-total {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ========== MOBİL RESPONSIVE ========== */
@media (max-width: 768px) {
    .tjk-app {
        padding: 10px;
    }

    .tjk-control-grid {
        grid-template-columns: 1fr;
    }

    .city-tabs {
        gap: 6px;
        padding: 8px;
    }

    .city-tab {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .agf-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .agf-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .race-tabs {
        gap: 4px;
    }

    .race-tab {
        min-width: 60px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .tjk-table thead th,
    .horse-table thead th {
        padding: 10px 4px;
        font-size: 9px;
    }

    .tjk-table tbody td,
    .horse-table tbody td {
        padding: 10px 4px;
        font-size: 11px;
    }

    .horse-no {
        font-size: 12px;
    }

    .horse-name {
        font-size: 11px;
    }

    .jokey {
        font-size: 10px;
    }

    .agf {
        font-size: 12px;
    }

    .coupled-badge,
    .scratch-badge {
        font-size: 8px;
        padding: 2px 4px;
    }

    .calc-button {
        font-size: 16px;
        padding: 16px;
    }

    .result-content {
        max-height: 85vh;
    }

    .result-header {
        font-size: 18px;
        padding: 16px 20px;
    }

    .result-body {
        padding: 16px;
    }

    .result-info {
        padding: 16px;
    }
}

/* ========== KÜÇÜK MOBİL ========== */
@media (max-width: 480px) {
    .tjk-table thead th,
    .horse-table thead th {
        padding: 8px 2px;
        font-size: 8px;
    }

    .tjk-table tbody td,
    .horse-table tbody td {
        padding: 8px 2px;
        font-size: 10px;
    }

    .horse-no {
        font-size: 11px;
        flex-direction: column;
        gap: 2px;
    }

    .horse-name {
        font-size: 10px;
    }

    .jokey {
        font-size: 9px;
    }

    .agf {
        font-size: 11px;
    }

    .coupled-badge,
    .scratch-badge {
        font-size: 7px;
        padding: 1px 3px;
        margin-left: 2px;
    }

    .result-race h4 {
        font-size: 14px;
    }

    .result-horses li {
        font-size: 13px;
    }

    .result-total {
        font-size: 16px;
        padding: 14px 16px;
    }
}

/* ========== SCROLLBAR STİLİ ========== */
.result-body::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
    width: 8px;
}

.result-body::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.result-body::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.result-body::-webkit-scrollbar-thumb:hover,
.result-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ========== LOADING ANİMASYON ========== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tjk-btn-load:disabled::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

/* ========== PRINT STİLİ ========== */
@media print {
    .tjk-control-panel,
    .city-tabs,
    .agf-tabs,
    .race-tabs,
    .calc-button {
        display: none;
    }

    .tjk-app {
        background: white;
        padding: 0;
    }

    .city-content,
    .agf-content,
    .race-content {
        display: block !important;
    }
}

/* ========== KOŞU BAŞLIĞI ========== */
.tjk-race-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
}

/* ========== EKSTRa STİLLER ========== */
.tjk-race {
    margin-bottom: 20px;
}

/* Tablo satırlarına pointer cursor */
.horse-table tbody tr {
    cursor: pointer;
}

/* Seçili satır vurgusu güçlendirme */
.horse-table tbody tr.selected {
    box-shadow: inset 4px 0 0 #10b981;
}

/* AGF değerlerinin görünürlüğünü artır */
.horse-table tbody td.agf {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Eküri info box animasyonu */
.tjk-coupled-info,
.coupled-info {
    animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge'ler için pulse animasyonu */
.coupled-badge,
.scratch-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Selection badge için pulse */
.selection-badge {
    animation: selectionPulse 1.5s ease-in-out infinite;
}

@keyframes selectionPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hesapla butonu hover efekti güçlendirme */
.calc-button {
    position: relative;
    overflow: hidden;
}

.calc-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.calc-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive iyileştirmeler */
@media (max-width: 640px) {
    .tjk-coupled-info,
    .coupled-info {
        font-size: 12px;
        padding: 10px 12px;
    }

    .tjk-race-title {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Tablet görünüm iyileştirmeleri */
@media (min-width: 768px) and (max-width: 1024px) {
    .city-tab {
        min-width: 120px;
        font-size: 14px;
    }

    .agf-tab {
        font-size: 16px;
    }

    .race-tab {
        min-width: 80px;
        font-size: 14px;
    }
}

/* Büyük ekranlar için optimize edilmiş görünüm */
@media (min-width: 1024px) {
    .tjk-app {
        max-width: 1200px;
        padding: 30px;
    }

    .city-tabs {
        padding: 16px;
    }

    .city-content {
        padding: 30px;
    }

    .tjk-table thead th,
    .horse-table thead th {
        font-size: 12px;
        padding: 14px 10px;
    }

    .tjk-table tbody td,
    .horse-table tbody td {
        font-size: 14px;
        padding: 16px 10px;
    }

    .horse-name {
        font-size: 13px;
    }

    .jokey {
        font-size: 12px;
    }

    .agf {
        font-size: 20px;
    }
}

/* Dark mode desteği (isteğe bağlı) */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
}

/* Accessibility iyileştirmeleri */
.tjk-table tbody tr:focus,
.horse-table tbody tr:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Yüksek kontrast modu */
@media (prefers-contrast: high) {
    .tjk-table tbody tr.selected {
        border-left-width: 6px;
    }

    .coupled-badge,
    .scratch-badge {
        border: 2px solid currentColor;
    }
}