/* Magaza sayfası için özel arka plan - en yüksek öncelik */
html body {
    background-image: url('/files/images/magaza-background-20251224093220.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}


.magaza-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px;
    box-sizing: border-box;
}

.welcome-section {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 30, 30, 0.85) 100%);
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    /* Modal genişliğini sabit tut - içerik ne olursa olsun */
    display: block;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-description {
    color: #a3a3a3;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.market-select-wrapper {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.market-select {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.market-select:hover {
    border-color: #9333ea;
}

.market-select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.market-content {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
}

.market-content.active {
    display: block;
}

.market-content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

.market-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    /* Grid genişliğini sabit tut */
    grid-auto-columns: minmax(0, 1fr);
}

@media (max-width: 1200px) {
    .market-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .market-items {
        grid-template-columns: 1fr;
    }
}

.market-item {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    text-align: left;
    position: relative;
    z-index: 1;
}

.market-item:hover {
    border-color: #9333ea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
    z-index: 10;
}

.market-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.market-item-emoji {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.market-item-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.market-item-description {
    color: #a3a3a3;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.market-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9333ea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-item-buy-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.market-item-buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.market-item-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.market-item-buy-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ekonomi Bar - Diğer sayfalarla aynı tasarım */
.ekonomi-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.ekonomi-bar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(147, 51, 234, 0.05);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ekonomi-bar-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9333ea, transparent);
    opacity: 0.6;
}

.ekonomi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    justify-content: center;
}

.ekonomi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9333ea, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ekonomi-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(147, 51, 234, 0.3) inset,
        0 0 30px rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
}

.ekonomi-item:hover::before {
    opacity: 1;
}

.ekonomi-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.ekonomi-item:hover .ekonomi-icon {
    transform: scale(1.1) rotate(5deg);
}

.ekonomi-label {
    font-size: 0.875rem;
    color: #a3a3a3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.ekonomi-value {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff 0%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.ekonomi-item-with-transfer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
}

.ekonomi-item-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.ekonomi-kasa {
    font-size: 0.8rem;
    color: #a3a3a3;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.ekonomi-kasa span {
    color: #9333ea;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.transfer-btn-small {
    margin-top: 0.25rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 2px solid rgba(147, 51, 234, 0.4);
    border-radius: 0.75rem;
    color: #9333ea;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.transfer-btn-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.transfer-btn-small:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 20px rgba(147, 51, 234, 0.4),
        0 0 0 2px rgba(147, 51, 234, 0.2) inset;
    border-color: #9333ea;
}

.transfer-btn-small:hover::before {
    width: 300px;
    height: 300px;
}

.transfer-btn-small:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .ekonomi-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .ekonomi-item {
        min-height: 100px;
        padding: 1rem 0.75rem;
    }

    .ekonomi-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .ekonomi-label {
        font-size: 0.75rem;
    }

    .ekonomi-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ekonomi-bar-inner {
        grid-template-columns: 1fr;
    }
}

/* Bahis Sandığı Modal */
.chest-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chest-modal-content {
    text-align: center;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chest-animation-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.chest-gif {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
}

.chest-result {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #9333ea;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.chest-result-title {
    color: #9333ea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chest-result-message {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.chest-result-message img {
    display: inline !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
}

.chest-close-btn {
    padding: 0.75rem 2rem;
    background: #9333ea;
    border: none;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chest-close-btn:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

/* Transfer Modal Styles */
.transfer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.transfer-modal.active {
display: flex;
}

.transfer-modal-content {
background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.95) 100%);
border-radius: 1.25rem;
padding: 1.75rem;
max-width: 450px;
width: 100%;
border: 2px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.6),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
backdrop-filter: blur(20px);
position: relative;
animation: slideUp 0.3s ease;
overflow: visible;
}

@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

.transfer-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.transfer-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.transfer-modal-close {
    background: none;
    border: none;
    color: #a3a3a3;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.transfer-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.transfer-direction-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.transfer-direction-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transfer-direction-btn.active {
    background: #9333ea;
    border-color: #9333ea;
}

.transfer-direction-btn:hover:not(.active) {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
}

.transfer-amount-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.transfer-amount-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.transfer-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transfer-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.transfer-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
