/* ----- :root ve body (Değişiklik Yok) ----- */
:root {
    --primary-color: #4a90e2; /* Ana Mavi */
    --secondary-color: #50e3c2; /* Turkuaz/Yeşil */
    --background-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --text-color: #343a40;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --font-family: 'Poppins', sans-serif;
    --tab-inactive-bg: #e9ecef;
    --tab-active-bg: var(--card-bg);
    --tab-active-color: var(--primary-color);
    --code-font: 'Source Code Pro', monospace; /* Kart no için font */
    --debit-card-bg: linear-gradient(135deg, #6a85b6 0%, #bac8e0 100%);
    --credit-card-bg: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); /* Örnek Kredi Kartı Rengi */

}

body {
    font-family: var(--font-family);
    background: var(--background-gradient);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ----- game-container ve game-header (Değişiklik Yok) ----- */
.game-container {
    background-color: transparent;
    padding: 0;
    border-radius: var(--border-radius);
    text-align: center;
    width: 100%;
    max-width: 600px;
}
.game-header {
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}
.game-header svg { margin-bottom: 10px; color: var(--primary-color); }
.game-header h1 { margin: 0; font-weight: 700; font-size: 2.2em; }
.game-header .subtitle { font-size: 0.9em; color: #6c757d; font-weight: 300; }

/* ----- Sekme Stilleri (Değişiklik Yok) ----- */
.tabs {
    display: flex;
    margin-bottom: 0;
    background-color: var(--tab-inactive-bg);
    padding: 5px 5px 0 5px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    flex-wrap: wrap; /* Mobil için sekmeler alta kayabilir */
}
.tab-button {
    flex-grow: 1;
    padding: 12px 10px; /* Padding azaltıldı sığması için */
    font-size: 0.9em; /* Font boyutu azaltıldı */
    font-weight: 600;
    color: #6c757d;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* İkon ve yazı arası boşluk azaltıldı */
    min-width: 100px; /* Minimum genişlik */
}
.tab-button:hover { background-color: rgba(255, 255, 255, 0.5); color: var(--text-color); }
.tab-button.active { color: var(--tab-active-color); background-color: var(--tab-active-bg); border-bottom: 3px solid var(--primary-color); }
.tab-content-wrapper { background-color: var(--tab-active-bg); border-radius: 0 0 var(--border-radius) var(--border-radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-content { display: none; padding: 25px; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Kart Stili (Genel) (Değişiklik Yok) ----- */
.card { background-color: transparent; padding: 0; border-radius: 0; box-shadow: none; margin-bottom: 25px; border: none; }
.tab-content .card:last-child { margin-bottom: 0; }

/* ----- Ana Ekran & Yatırım Sekmesi Stilleri (Değişiklik Yok) ----- */
.balance-section h2, .upgrades-section h2, .kredi-section h2, .kartlarim-section h2, .profilim-section h2 { margin: 0 0 20px 0; font-size: 1.3em; color: var(--text-color); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.balance-amount { font-size: 3em; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; line-height: 1.1; }
.ips-info { font-size: 0.9em; color: #6c757d; margin-top: 0px; margin-bottom: 10px; }
#total-ips-display { font-weight: 600; color: #28a745; }
.info-text { font-size: 0.9em; color: #6c757d; margin-top: 10px; }
.click-section { position: relative; }
.click-btn { background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bc8 100%); color: white; border: none; padding: 18px 35px; font-size: 1.4em; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s ease-out; box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4); display: inline-flex; align-items: center; gap: 10px; margin-top: 15px; }
.click-btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 20px rgba(74, 144, 226, 0.5); }
.click-btn:active { transform: translateY(-1px) scale(0.98); box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3); background: linear-gradient(135deg, #3a7bc8 0%, var(--primary-color) 100%); }
.click-value-info { font-size: 0.7em; font-weight: 400; opacity: 0.9; margin-left: 5px; }
#click-feedback-container { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); width: 150px; height: 60px; pointer-events: none; z-index: 10; }
.click-feedback { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 1.4em; font-weight: 700; color: var(--secondary-color); opacity: 1; animation: floatUpFadeOut 1s ease-out forwards; white-space: nowrap; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
@keyframes floatUpFadeOut { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -70px); } }
#generators-list { display: flex; flex-direction: column; gap: 15px; }
.generator-item { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; transition: background-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.generator-item:hover { background-color: #e9ecef; box-shadow: 0 4px 8px rgba(0,0,0,0.07); }
.generator-info { flex-grow: 1; text-align: left; }
.generator-name { font-weight: 600; font-size: 1.1em; color: var(--primary-color); margin-bottom: 3px; }
.generator-stats { font-size: 0.85em; color: #495057; line-height: 1.4; }
.generator-stats span { font-weight: 600; }
.generator-buy { text-align: right; }
.buy-button { background: linear-gradient(135deg, #50e3c2 0%, #20c997 100%); color: white; border: none; padding: 8px 15px; font-size: 0.95em; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all 0.2s ease-out; box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3); display: flex; flex-direction: column; align-items: center; min-width: 100px; }
.buy-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(40, 167, 69, 0.4); }
.buy-button:active:not(:disabled) { transform: translateY(0px); box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3); }
.buy-button .cost { font-size: 0.9em; font-weight: 400; opacity: 0.9; }
.buy-button:disabled { background: #adb5bd; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

/* ----- YENİ: Kredi Sekmesi Stilleri ----- */
.kredi-section p { margin-bottom: 15px; line-height: 1.5; }
.kredi-section strong { color: var(--primary-color); font-weight: 600; }
.payment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.payment-form label { margin-bottom: 0; }
.payment-form input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    flex-grow: 1; /* Alanı doldur */
    min-width: 100px;
}
/* Genel Aksiyon Butonu */
.action-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.3);
    margin-top: 5px; /* Butonlar arası boşluk */
}
.action-button:hover:not(:disabled) {
    background-color: #3a7bc8;
    box-shadow: 0 5px 12px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}
.action-button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
/* İkincil Aksiyon Butonu (örn: kısmi ödeme) */
.action-button.secondary {
    background-color: #6c757d;
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}
.action-button.secondary:hover:not(:disabled) {
    background-color: #5a6268;
    box-shadow: 0 5px 12px rgba(108, 117, 125, 0.4);
}
.hidden { display: none !important; } /* Elementleri gizlemek için */


/* ----- YENİ: Kartlarım Sekmesi Stilleri ----- */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Mobil için alt alta */
}

.card-visual {
    width: 280px;
    height: 170px;
    border-radius: 15px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-visual:hover { transform: scale(1.03); }
.card-visual.debit { background: var(--debit-card-bg); }
.card-visual.credit { background: var(--credit-card-bg); }

.card-chip {
    width: 40px;
    height: 30px;
    background-color: #d4af37; /* Altın rengi */
    border-radius: 4px;
    position: absolute;
    top: 20px;
    left: 20px;
    background-image: linear-gradient(45deg, #b8860b, #daa520);
}
.card-logo {
    font-weight: 700;
    font-size: 1.1em;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.card-logo .credit-label {
    font-size: 0.7em;
    display: block;
    font-weight: 400;
    text-align: right;
}
.card-number {
    font-family: var(--code-font);
    font-size: 1.4em; /* Biraz daha büyük */
    letter-spacing: 2px;
    text-align: center;
    margin-top: 55px; /* Çip ve logodan sonra */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: 300;
    margin-top: auto; /* En alta yasla */
}
.card-holder { text-transform: uppercase; }
.card-cvv { margin-left: 10px; }

/* Nakit Avans Bölümü */
.cash-advance-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.cash-advance-section h3 { margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cash-advance-section p { margin-bottom: 10px; }
.cash-advance-section strong { color: var(--primary-color); font-weight: 600; }
.cash-advance-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.action-form { /* Kredi ödeme formuyla aynı stil */
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.action-form label { margin-bottom: 0; flex-basis: 120px; text-align: right; }
.action-form input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    flex-grow: 1;
    min-width: 100px;
}

/* ----- YENİ: Profilim Sekmesi Stilleri ----- */
#action-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* Maksimum yükseklik, gerekirse scroll çıkar */
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}
#action-log-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
    color: #333;
    text-align: left;
}
#action-log-list li:last-child { border-bottom: none; }
#action-log-list li:nth-child(odd) { background-color: #f8f9fa; } /* Zebra deseni */


/* ----- Mobil Uyumluluk (@media) ----- */
@media (max-width: 640px) { /* Daha geniş bir aralıkta sekmeleri küçült */
    .tabs { padding: 3px; }
    .tab-button { padding: 10px 5px; font-size: 0.85em; gap: 4px; min-width: unset; flex-basis: auto;}
}
@media (max-width: 480px) {
    body { padding: 5px; }
    .tab-content { padding: 15px; }
    .game-header h1 { font-size: 1.8em; }
    .balance-amount { font-size: 2.5em; }
    .click-btn { padding: 15px 25px; font-size: 1.2em; }
    .click-feedback { font-size: 1.2em; }
    .generator-item { flex-direction: column; align-items: stretch; padding: 12px; }
    .generator-info, .generator-buy { text-align: center; }
    .buy-button { width: 100%; margin-top: 10px; }
    .payment-form, .action-form { flex-direction: column; align-items: stretch; gap: 8px;}
    .payment-form label, .action-form label { text-align: left; margin-bottom: 5px; flex-basis: auto;}
    .action-button { width: 100%; } /* Mobil görünümde tam genişlik */
    .cards-container { gap: 15px; }
    .card-visual { width: 95%; /* Mobil için daha geniş */ height: auto; min-height: 160px; padding: 15px; }
    .card-number { font-size: 1.2em; margin-top: 45px; }
    .card-footer { font-size: 0.75em; }
}

/* İkonlar için genel stil */
i.bi { vertical-align: middle; margin-right: 5px; }
.click-btn i.bi { margin-right: 8px; }