#status-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 10px;
    margin-bottom: 25px;
    background: rgba(28, 28, 30, 0.5); /* %50 Saydam Arka Plan */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 24px; /* Apple tarzı yumuşak köşeler */
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.status-item {
    flex: 1 1 calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(235, 235, 245, 0.6); /* iOS İkincil Metin Rengi */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Apple Tarzı İnce ve Zarif Bar Arka Planı */
.progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(118, 118, 128, 0.5); /* %50 Saydam (Önceden 0.24 idi) */
    border-radius: 8px; /* Tam yuvarlak (Pill) */
    overflow: hidden;
}

/* Apple Tarzı Düz ve Temiz Dolum */
.progress {
    height: 100%;
    width: 50%;
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* iOS tarzı yumuşak yaylanma */
}

/* Apple HIG (Human Interface Guidelines) Orijinal Renkleri */
.fill-hunger { background: #FF3B30; } /* iOS Red */
.fill-thirst { background: #007AFF; } /* iOS Blue */
.fill-energy { background: #FFCC00; } /* iOS Yellow */
.fill-security { background: #5856D6; } /* iOS Indigo */
.fill-love { background: #FF2D55; } /* iOS Pink */
.fill-intelligence { background: #32ADE6; } /* iOS Cyan */
.fill-health { background: #34C759; } /* iOS Green */

#ai-log {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    border-left: 3px solid var(--primary);
}

.modern-dock {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(30, 32, 43, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 10px 15px;
    margin: 0 auto 15px auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%; /* max-content taşma yapıyordu, %100 yapıp içini yayalım */
    max-width: 380px; /* Konteyner dışına taşmasını kesin engeller */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dock-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex: 1; /* Tüm butonların eşit genişlikte olmasını sağlar */
    max-width: 65px; /* Aşırı esnemeyi önler */
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Outfit', sans-serif;
}

.dock-btn svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.dock-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.dock-btn:hover {
    color: #ffffff;
    transform: translateY(-4px);
}

.dock-btn:hover svg {
    transform: scale(1.15);
    color: var(--primary);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.dock-btn:active {
    transform: translateY(0) scale(0.95);
}

#btn-feed, #btn-water, #btn-love, #btn-scold, #btn-tickle {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 90px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.voice-btn {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border: none;
    font-weight: 700;
}

.voice-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.text-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    font-weight: 700;
}

.text-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.hidden {
    display: none !important;
}

/* Yeni İletişim Çubuğu (Premium Modern Tasarım) */
#communication-bar {
    display: flex;
    align-items: center;
    background: rgba(30, 32, 43, 0.65); /* Yarı şeffaf modern arka plan */
    backdrop-filter: blur(16px); /* Glassmorphism bulanıklığı */
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 8px 12px;
    gap: 8px !important;
    justify-content: flex-start; /* Elemanların arasına boşluk girmesini önle */
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Aura için gerekli */
}

/* Kapsülün ARKA PLANINDAKİ (Behind) Aura Katmanı */
#communication-bar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 54px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.8), rgba(255, 71, 87, 0.8), rgba(56, 189, 248, 0));
    background-size: 200% 100%;
    z-index: -1; /* Kapsülün tam arkasına gönderir */
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(12px); /* Dışarıya doğru dağılan bir ışık huzmesi */
    pointer-events: none;
}

#communication-bar:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.comm-icons-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto; /* Esnemesini veya genişlemesini kesin olarak engelle */
    gap: 6px !important;
    padding-left: 2px;
    margin: 0;
}

.comm-icon-btn {
    background: none;
    border: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.5); /* Modern yarı şeffaf ikon rengi */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 24px;  /* En (Genişlik) sabitlendi */
    height: 24px; /* Boy (Yükseklik) sabitlendi */
    padding: 0;
    transition: all 0.3s ease;
    position: relative; /* Google dalga efekti için */
}

.comm-icon-btn:hover {
    color: #ffffff;
    transform: scale(1.1); /* Hafif büyüme efekti */
}

.comm-icon-btn.active {
    color: #ff4757;
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6)); /* Parlama efekti */
}

/* Google Asistan tarzı ses dalgası efekti (İkonun arkasından dışarı doğru büyüyen halkalar) */
.comm-icon-btn.active::before,
.comm-icon-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.5); /* Kırmızımsı dalga rengi */
    z-index: -1;
    pointer-events: none;
    animation: googleRipple 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.comm-icon-btn.active::after {
    animation-delay: 0.75s; /* İkinci dalga */
}

@keyframes googleRipple {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 350%; height: 350%; opacity: 0; }
}

.comm-input-wrapper {
    flex: 1;
    display: flex;
}

#chat-input {
    width: 100%;
    background: transparent; /* İç kapsül arka planı kaldırıldı, ana bara entegre oldu */
    border: none; /* İç kenarlık kaldırıldı */
    padding: 6px 10px;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    outline: none;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

#chat-input:focus {
    /* Focus halkasını iç kutudan kaldırıp dış ana barı aydınlatacağız, veya sadece sade bırakacağız */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

#minigame-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.minigame-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.rps-buttons {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.rps-buttons .action-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.top-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 32, 43, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 8px 12px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.top-bar-left.ticker-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 160px; /* Jeton, Hava durumu ve İsim için artırıldı */
    height: 24px;
    overflow: hidden;
}

.ticker-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    animation: newsTicker3 15s infinite ease-in-out;
}

.weather-display.ticker-item {
    animation-delay: -10s;
    opacity: 0;
}

.pet-name-container.ticker-item {
    animation-delay: -5s;
    opacity: 0;
    color: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    cursor: default;
}

.pet-name-container.ticker-item:hover {
    transform: scale(1.05);
}

@keyframes newsTicker3 {
    0%, 26% {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    30%, 33.33% {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    33.34%, 93% {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }
    97%, 100% {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

.top-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coin-display {
    color: #fde047;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    cursor: default;
}

.coin-display:hover {
    transform: scale(1.05);
}

.weather-display {
    color: #7dd3fc;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    cursor: default;
}

.weather-display:hover {
    transform: scale(1.05);
}


.icon-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.1);
    color: #ffffff;
}


#pet-name-input:hover {
    background: rgba(255, 255, 255, 0.1);
}

#pet-name-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}



/* Info, Market, Diary, Profile & Games Modal Styles */
#info-modal, #market-modal, #diary-modal, #profile-modal, #games-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 32, 43, 0.91); /* Barların ana rengi ile eşleştirildi (0.91 opaklık) */
    z-index: 1000; /* Pet'in (300) ve diğer her şeyin üzerinde olması için 1000 yapıldı */
    border-radius: 30px; /* Daha premium kıvrımlar */
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    backdrop-filter: blur(20px); /* Saydamlığın arkasını bulanıklaştırarak şık gösterir */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ... existing market styles ... */

/* Radial Menu (GTA Style) */
#master-radial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radial-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease-in-out;
}
.radial-group.hidden {
    opacity: 0;
    pointer-events: none;
    display: block; /* Overrides default hidden display:none to allow opacity transitions */
}

.radial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.radial-wheel {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: scale(0);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

@keyframes popIn {
    to { transform: scale(1); }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(30, 32, 43, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}
.wheel-center:hover {
    background: rgba(50, 52, 63, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.wheel-center.hidden {
    display: none !important;
}

.wheel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Yarıçap değişkeni kullanarak (varsayılan 140px, media query ile değişecek) */
    transform: rotate(var(--angle)) translate(var(--radial-radius, 140px)) rotate(calc(var(--angle) * -1));
    z-index: 5;
    pointer-events: auto;
}

.wheel-item:hover {
    transform: rotate(var(--angle)) translate(var(--radial-radius, 140px)) rotate(calc(var(--angle) * -1)) scale(1.5);
    z-index: 10;
}

/* Tablet ve PC Media Queries for Radial Menu */
@media (min-width: 768px) {
    :root {
        --radial-radius: 180px;
    }
    .wheel-item {
        width: 100px;
        height: 100px;
        margin: -50px;
    }
    .radial-icon {
        font-size: 40px !important;
    }
}

@media (min-width: 1024px) {
    :root {
        --radial-radius: 220px;
    }
    .wheel-item {
        width: 120px;
        height: 120px;
        margin: -60px;
    }
    .radial-icon {
        font-size: 50px !important;
    }
}

.wheel-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(30, 32, 43, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: pre;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.wheel-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -5px;
}

.wheel-item .radial-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    transition: filter 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-item:hover .radial-icon {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.8)) drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.info-content {
    background: transparent; /* İkinci arka planı kaldırdık */
    border: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(118, 118, 128, 0.24);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: rgba(235, 235, 245, 0.6);
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(118, 118, 128, 0.35);
    color: white;
}

.info-title {
    text-align: center;
    margin: 18px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Apple iOS Style Segmented Control */
.info-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 3px;
    margin: 0 16px 16px 16px;
    background: rgba(118, 118, 128, 0.24);
    border-radius: 9px;
    border: none;
    box-shadow: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.2s ease;
    flex: 1 1 auto;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    background: rgba(99, 99, 102, 0.8);
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04);
    border: 0.5px solid rgba(0,0,0,0.04);
    font-weight: 600;
    text-shadow: none;
}

.tab-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(235, 235, 245, 0.8);
}


.tab-content h3 {
    color: #38bdf8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tab-content p, .tab-content ul {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.tab-content ul {
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

/* Market Styles */
.market-content {
    background: transparent; /* Kapsüldeki derinliği bozmaması için şeffaf yapıldı */
}

.market-tabs .tab-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 15px;
}

.market-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.market-item:active {
    transform: scale(0.98);
}

/* Inner content wrapper */
.market-item-inner {
    padding: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.item-icon-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.market-item:hover .item-icon-wrapper {
    background: rgba(255, 255, 255, 0.12);
}

.item-icon {
    font-size: 1.8rem;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.item-stats {
    font-size: 0.75rem;
    color: rgba(235, 235, 245, 0.6);
    margin-bottom: 12px;
    font-weight: 400;
}

.item-cost {
    background: #0A84FF;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
    border: none;
    text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Custom Form Inputs for Modals (Apple iOS Style) */
.form-group {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: none;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(235, 235, 245, 0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
    text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(118, 118, 128, 0.12);
    border: none;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    transition: all 0.2s ease;
    box-shadow: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    background: rgba(118, 118, 128, 0.2);
    box-shadow: 0 0 0 2px #0A84FF;
    transform: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="number"]::placeholder {
    color: rgba(235, 235, 245, 0.3);
}



/* Custom Apple iOS Range Sliders */
.form-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(118, 118, 128, 0.3);
    outline: none;
    margin: 15px 0;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.form-group input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Custom Apple Color Pickers */
.form-group input[type="color"] {
    -webkit-appearance: none;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: rgba(118, 118, 128, 0.12);
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.form-group input[type="color"]:hover {
    background: rgba(118, 118, 128, 0.2);
    transform: none;
    box-shadow: none;
}

/* The Save Button - Apple Standard Button */
#btn-save-profile {
    background: #0A84FF;
    border: none;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: normal;
    text-transform: none;
    transition: all 0.2s ease;
    box-shadow: none;
    width: 100%;
    max-width: 300px;
}

#btn-save-profile:hover {
    background: #007AFF;
    transform: none;
    box-shadow: none;
}

#btn-save-profile:active {
    opacity: 0.7;
}

/* =========================================
   Hava Durumu ve Çevre Efektleri
   ========================================= */

#weather-fx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* İçeriklerin arkasında kalsın */
    border-radius: 30px;
    overflow: hidden;
}

/* Yağmur Efekti */
#weather-fx.rain {
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.2) 50%, rgba(255,255,255,0)),
        linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.15) 50%, rgba(255,255,255,0));
    background-size: 2px 20px, 1px 15px;
    background-position: 0 0, 50px 10px;
    animation: rain-fall 0.6s linear infinite;
}

@keyframes rain-fall {
    from { background-position: 0 0, 50px 10px; }
    to { background-position: -20px 100vh, 30px 100vh; }
}

/* Kar Efekti */
#weather-fx.snow {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5) 1.5px, transparent 2px);
    background-size: 100px 100px, 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: snow-fall 3s linear infinite;
}

@keyframes snow-fall {
    from { background-position: 0 0, 30px 30px; }
    to { background-position: 20px 100vh, -20px 100vh; }
}

/* Bulutlu Efekt */
#weather-fx.cloudy {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

/* Gece Modu (.night-mode) */
body.night-mode {
    --bg-color: #020617; /* Çok daha karanlık bir gece mavisi/siyahı */
    background: linear-gradient(135deg, var(--bg-color), #000000);
}

body.night-mode #game-container {
    background: rgba(0, 0, 0, 0.4); /* Gece iç mekan kararması */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

body.night-mode .glass-orb {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.night-mode .top-bar,
body.night-mode .modern-dock,
body.night-mode #status-bar {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

body.night-mode .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Active Game HUD Styles */
#active-game-hud {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(59, 130, 246, 0.2);
    animation: hudSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

#active-game-hud.hidden {
    display: none;
}

@keyframes hudSlideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.hud-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

#hud-game-icon {
    font-size: 1.2rem;
    animation: float 2s infinite ease-in-out;
}

.btn-hud-close {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-hud-close:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

/* Custom Modern Select */
.modern-select { position: relative; width: 100%; user-select: none; }
.modern-select.disabled .select-trigger { opacity: 0.5; cursor: not-allowed; background: rgba(118, 118, 128, 0.05); }
.select-trigger { width: 100%; padding: 10px 12px; border-radius: 8px; background: rgba(118, 118, 128, 0.12); border: none; color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 17px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; }
.select-trigger:hover { background: rgba(118, 118, 128, 0.2); }
.modern-select.open .select-trigger { box-shadow: 0 0 0 2px #0A84FF; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.modern-select.open .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s ease; opacity: 0.7; }
.select-options { position: absolute; top: 100%; left: 0; right: 0; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); border-radius: 0 0 8px 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); max-height: 200px; overflow-y: auto; z-index: 100; display: none; flex-direction: column; }
.modern-select.open .select-options { display: flex; }
.select-option { padding: 10px 12px; color: #fff; cursor: pointer; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s ease; }
.select-option:last-child { border-bottom: none; }
.select-option:hover { background: rgba(10, 132, 255, 0.2); color: #0A84FF; }
.select-options::-webkit-scrollbar { width: 6px; }
.select-options::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Modern Credits Panel Styles */
.credits-modern-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.credit-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.credit-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.credit-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.credit-card.primary .credit-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.credit-card.version .credit-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.credit-card.vision .credit-icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.credit-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credit-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.credit-value {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.credit-value.v-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    width: fit-content;
}

.credit-value.text-muted {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}
