:root {
    --primary: #ff6800;
    --success: #08bb61;
}

body {
    margin: 0;
    padding: 0;
    background: #131418;
    font-family: "Nunito" !important;
}

.header {
    padding: 29.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0e;
    position: relative;
}

.header-logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s opacity ease;
}

.header-logo:hover {
    opacity: 0.5;
}

.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    pointer-events: none;
    bottom: 0;
    transform: translateY(50%);
}

.line-item {
    background: var(--primary);
    height: 7px;
    width: 50%;
}

.product {
    padding: 40px 0;
    color: #fff;
    position: relative;
}

.product>.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.product-item {
    background: #0e0e13;
    border: 0.3625rem solid rgba(0, 0, 0, 0.08);
    padding: 25px 10px;
    border-radius: 1.375rem;
    transition: 0.3s transform ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item:not(.product-item:hover) .product-item-image {
    filter: grayscale(1) contrast(1) brightness(1.5);
}

.product-item-image {
    height: auto;
    width: 100%;
    transition: 0.3s filter ease;
}

.product-details {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-details-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    font-size: 15px;
}

.product-details-item svg {
    height: 1rem;
    width: 1rem;
}

.product-details-item path {
    stroke: var(--primary);
}

.product-item-btn {
    width: 100%;
}

.btn {
    border-radius: 31px;
}

.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary) !important;
    transition: 0.3s background ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: transparent !important;
}

.about {
    position: relative;
    padding: 3rem 0;
}

.about-content {
    width: 100%;
    margin-top: 3rem;
}

.about-title {
    color: #fff;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
}

.about-item-title {
    color: var(--primary);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
}

.about-item-description {
    text-align: center;
    color: #fff;
    font-weight: 300;
}

.about .row {
    --bs-gutter-y: 1.5rem;
}

.footer {
    padding: 2rem 0;
    color: var(--primary);
}

.footer>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-payment-methods {
    text-align: center;
}

.footer-payment-methods-title {
    margin-bottom: 0.5rem;
}

.footer-payment-methods-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-payment-methods-image {
    height: 20px;
    width: auto;
}

.modal-dialog {
    height: 100%;
    margin: auto;
}

.modal-content {
    top: 50%;
    transform: translateY(-50%);
    background: #0e0e13;
    color: #fff;
    width: max-content;
}

.modal-body {
    padding: 0;
}

.btn-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
}

.modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 300;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-game:last-child {
    border-bottom: 0;
}

.modal-game-item {
    display: flex;
    gap: 1rem;
    padding-right: 2rem;
    margin-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-game-image {
    height: 58px;
    width: auto;
}

.modal-game-title {
    margin-bottom: 0.1rem;
}

.modal-game-price {
    color: var(--primary);
}

.modal-game-state-wrapper {
    flex-direction: column;
    text-align: center;
    color: var(--primary);
    gap: 0;
    position: relative;
}

.modal-game-state-wrapper span {
    position: relative;
}

.modal-game-state {
    color: var(--success);
    position: relative;
}

.modal-game .btn {
    border-radius: 4px;
    height: max-content;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
}

.payment {
    color: #fff;
    padding: 40px 0;
    position: relative;
}

.payment .col-lg-8 {
    height: 100%;
}

.product-information {
    background-color: #0e0e13;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.product-information-image {
    width: 100%;
    height: auto;
}

.product-information-content {
    padding: 30px 30px 0 30px;
}

.product-information-title {
    font-weight: bold;
    font-size: 18px;
}

.product-information-price {
    font-size: 17px;
    font-weight: 700;
}

.product-information-price span {
    color: var(--primary);
}

/* Diagonal split payment method selection */
.payment-tab {
    background: linear-gradient(145deg, #0e0e13, #0e0e13);
    border-radius: 16px;
    padding: 0;
    border: 1px solid #0e0e13;
    margin-bottom: 10px;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    height: 70px;
}

.payment-tab-item {
    background: transparent;
    border: none;
    color: #bbb;
    padding: 0 20px;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 15% 100%);
    border-radius: 16px;
}

.payment-tab-item:first-child {
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    margin-right: -15px;
    border-radius: 16px 0 0 16px;
}

.payment-tab-item:last-child {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -15px;
    border-radius: 0 16px 16px 0;
}

.payment-tab-item:hover {
    color: #fff;
    background: rgba(229, 90, 43, 0.15);
    transform: translateY(-2px);
}

.payment-tab-item-active {
    background: linear-gradient(135deg, #e55a2b, #d67a1a) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.payment-tab-item-active::before {
    content: '✓';
    font-weight: bold;
    font-size: 14px;
}

.payment-tab-item-crypto {
    position: relative;
}

.crypto-discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.5);
    border: 1px solid #fff;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.payment-tab-item-crypto.payment-tab-item-active ~ .crypto-discount-badge {
    background: linear-gradient(135deg, #e55a2b, #d67a1a);
    box-shadow: 0 3px 10px rgba(229, 90, 43, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Add subtle icons */
.payment-tab-item-card:not(.payment-tab-item-active)::before {
    content: '💳';
    font-size: 25px;
    opacity: 0.7;
}

.payment-tab-item-crypto:not(.payment-tab-item-active)::before {
    content: '₿';
    font-size: 25px;
    opacity: 0.7;
}

/* Enhanced price styling */
.product-information-price {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white !important;
    padding: 15px;
    border-radius: 12px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 25px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid #ff6b35;
    position: absolute;
    bottom: 15px;
    left: 50px;
    right: 50px;
    overflow: hidden;
}

/* iPad Mini ve tablet için fiyat alanı düzeltmesi */
@media only screen and (max-width: 1024px) {
    .product-information-price {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin: 20px 0 !important;
        display: block !important;
    }
}

/* iPhone ve küçük mobil cihazlar için fiyat alanı düzeltmesi */
@media only screen and (max-width: 480px) {
    .product-information-price {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin: 20px 0 !important;
        display: block !important;
    }
}

.product-information-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.product-information-price span {
    color: #fff !important;
    font-size: 25px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Vertical alignment fix for product info and payment form */
.product-information {
    margin-top: 0;
}

.payment-content {
    margin-top: 0;
}

/* Ensure both columns start at the same level */
.row > .col-lg-4,
.row > .col-lg-8 {
    display: flex;
    flex-direction: column;
}

.product-information,
.payment-content {
    flex: 1;
}

.payment-form {
    background: #0e0e13;
    padding: 20px;
    border-radius: 10px;
}

.payment-form-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.65rem;
}

.payment-form .row {
    --bs-gutter-y: 0.5rem;
}

.payment-form-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-form-top svg {
    height: 22px;
}

.crypto {
    text-align: center;
    margin-top: 1rem;
    color: var(--primary);
}

.payment-form:not(.payment-form-active) .crypto {
    display: none;
}

.card-form {}

.card-form .row {
    align-items: end;
}

/* 3D Secure Information */
.card-security-info {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.security-info-icon {
    color: #60a5fa;
    flex-shrink: 0;
}

.security-info-text {
    color: #e0e7ff;
    font-size: 14px;
    line-height: 1.4;
}

.security-info-text strong {
    color: #ffffff;
    font-weight: 600;
}

.security-info-text a {
    color: #60a5fa !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.security-info-text a:hover {
    color: #93c5fd !important;
    text-decoration: underline;
}

.payment-form.payment-form-card .payment-form-content {
    display: none;
}

.payment-form.payment-form-card .card-form {
    display: block;
}

@media only screen and (max-width: 991px) {
    .product-information {
        margin-bottom: 3rem;
        min-height: 500px !important;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {
    .product-information {
        min-height: 550px !important;
    }

    .footer>.container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-payment-methods {
        margin-top: 2rem;
    }
    .modal-game {
        flex-direction: column;
        justify-content: center;
    }
    .modal-game-item {
        margin-right: -56px;
        padding-right: 59px;
        border-right: 0;
        justify-content: space-between;
        width: 100%;
        text-align: right;
    }
    .modal-game-state-wrapper {
        margin-right: auto;
        text-align: left;
        display: flex;
        align-items: center;
        flex-direction: row;
        margin: 1rem 0;
        padding-right: 0px;
    }
    .modal-game .btn {
        width: 100%;
        margin: 0;
    }
    .modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    /* Mobile responsive payment tabs */
    .payment-tab-item {
        font-size: 15px;
    }
    
    .crypto-discount-badge {
        font-size: 11px;
    }
    
    /* Mobile responsive icons */
    .payment-tab-item-card:not(.payment-tab-item-active)::before {
        font-size: 16px;
    }
    
    .payment-tab-item-crypto:not(.payment-tab-item-active)::before {
        font-size: 16px;
    }
    
    /* Mobile search dropdown fix */
    .searchpa {
        max-width: 90%;
        padding: 15px;
    }
    
    .autocomplete-suggestions {
        width: 100%;
        left: 0;
        right: 0;
        margin-top: -2px;
        top: calc(100% - 2px);
    }
    .select2-container--default .select2-dropdown {
        max-width: 300px !important;
        min-width: 200px;
    }
    
    /* Tablet ve mobil için Select2 dropdown boyutları */
    .select2-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: absolute !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results {
        max-height: 200px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results__options {
        max-height: 180px !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results__option {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
}

@media only screen and (max-width: 480px) {
    .searchpa {
        max-width: 95%;
        padding: 10px;
    }
    
    .autocomplete-suggestions {
        width: 100%;
        left: 0;
        right: 0;
        font-size: 14px;
        margin-top: -12px;
        top: calc(100% - 2px);
    }
    
    /* Mobil Select2 dropdown boyutları */
    .select2-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results {
        max-height: 150px !important;
        font-size: 14px !important;
        width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results__options {
        max-height: 130px !important;
        overflow-y: auto !important;
        width: 100% !important;
    }
    
    .select2-container--default .select2-dropdown .select2-results__option {
        padding: 8px 12px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
}

/* Search Styles */
.searchpa {
    padding: 25px;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#headerSearchInput {
    color: var(--primary);
    background: rgba(0, 0, 0, .25);
    border-color: var(--primary);
    text-align: center;
    align-items: center;
    position: relative;
}

#headerSearchInput::placeholder {
    color: var(--primary);
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1em;
    width: 1em;
    border-radius: 50em;
    background: url(/public/uploads/others/searchinputdeletebutton.png) no-repeat 50% 50%;
    background-size: contain;
    opacity: 1;
}

.autocomplete-suggestions {
    text-align: center;
    cursor: default;
    border: 1px solid var(--primary);
    border-radius: 5px;
    border-top: 0;
    background: rgba(10, 10, 14, 0.95);
    box-shadow: -1px 1px 3px rgba(0, 0, 0, .3);
    position: absolute;
    display: none;
    z-index: 9999;
    max-height: 254px;
    overflow: hidden;
    color: #fff;
    overflow-y: auto;
    box-sizing: border-box;
    width: calc(100% - 50px);
    top: 100%;
    left: 25px;
    right: 25px;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.autocomplete-suggestions::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.autocomplete-suggestion {
    position: relative;
    padding: .5rem 1rem;
    line-height: 23px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02em;
    color: #fff;
    transition: all .2s ease;
    border: 1px solid rgba(255, 104, 0, 0.3);
    border-radius: 5px;
    margin: 2px 0;
}

.autocomplete-suggestion a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.autocomplete-suggestion b {
    font-weight: 400;
    color: #08bb61;
}

.autocomplete-suggestion.selected {
    background: rgba(255, 104, 0, 0.2);
    border-color: var(--primary);
}

.autocomplete-suggestion:hover {
    background: rgba(255, 104, 0, 0.1);
    border-color: var(--primary);
}

/* Select2 Dropdown Styles */
.select2-container--default .select2-dropdown {
    background: rgba(10, 10, 14, 0.95);
    border: 1px solid var(--primary);
    border-radius: 5px;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, .3);
    width: 300px !important;
    max-width: 600px !important;
    min-width: 400px;
}

/* Mobil Select2 düzeltmeleri */
@media only screen and (max-width: 1024px) {
    .select2-container--default .select2-dropdown {
        width: 330px !important;
        max-width: 340px !important;
        min-width: 330px !important;
    }
}

@media only screen and (max-width: 480px) {
    .select2-container--default .select2-dropdown {
        width: 300px !important;
        max-width: 340px !important;
        min-width: 330px !important;
    }
}

.select2-container--default .select2-results__option {
    color: #fff;
    background: transparent;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 104, 0, 0.2);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(255, 104, 0, 0.2);
    color: var(--primary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(255, 104, 0, 0.1);
    color: var(--primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 3px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 104, 0, 0.2);
}

/* CVV Son Hane Gösterimi */
input[name="cvc"] {
    text-align: center;
}

input[name="cvc"]::placeholder {
    text-align: center;
}