/* ==========================================================================
   1. RESET & BASE VARIABLES (PREMIUM DARK GAMING SYSTEM)
   ========================================================================== */

:root {
    --bg-main: #0a0a14;
    --bg-secondary: #121225;
    --bg-card: rgba(22, 22, 45, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    --text-primary: #f0f0f7;
    --text-secondary: #9ea0be;
    
    /* Neon gradients & glow colors */
    --accent-blue: #00d2ff;
    --accent-purple: #9b51e0;
    --accent-green: #00ff87;
    --accent-red: #ff4757;
    
    --grad-primary: linear-gradient(135deg, #00d2ff, #0072ff);
    --grad-purple: linear-gradient(135deg, #8a2387, #e94057, #f27121);
    --grad-green: linear-gradient(135deg, #00ff87, #60efff);
    --grad-card: linear-gradient(145deg, rgba(26, 26, 54, 0.8), rgba(15, 15, 32, 0.8));
    
    --glow-blue: 0 0 15px rgba(0, 210, 255, 0.35);
    --glow-purple: 0 0 15px rgba(155, 81, 224, 0.35);
    --glow-green: 0 0 15px rgba(0, 255, 135, 0.35);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, 0.3) var(--bg-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(93, 173, 236, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(155, 81, 224, 0.06) 0%, transparent 40%);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #59dfff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. SHAPKA SAЙТА (HEADER)
   ========================================================================== */

.site-header {
    background: rgba(18, 18, 37, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00d2ff, #9b51e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.logo a:hover {
    filter: brightness(1.2);
}

.search-bar {
    display: flex;
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-glass);
    border-radius: 20px 0 0 20px;
    background: rgba(10, 10, 20, 0.6);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: var(--accent-blue);
    background: rgba(10, 10, 20, 0.8);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background: var(--accent-blue);
    color: #121225;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: #00fffa;
    box-shadow: var(--glow-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: #121225;
    transition: all 0.2s ease;
}

.header-actions .btn:hover {
    background: #00fffa;
    transform: translateY(-1px);
    box-shadow: var(--glow-blue);
    text-decoration: none;
}

.header-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.header-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-glass-hover);
    box-shadow: none;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: var(--grad-primary);
    color: #121225;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--glow-blue);
    text-decoration: none;
}

/* ==========================================================================
   3. NAVIGATION (NAV)
   ========================================================================== */

.main-nav {
    background: rgba(18, 18, 37, 0.5);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.main-nav ul li a {
    color: var(--text-secondary);
    padding: 8px 18px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    text-decoration: none;
}

/* ==========================================================================
   4. CONTENT BLOCKS & FOOTER
   ========================================================================== */

.main-content {
    flex: 1;
    padding: 40px 0;
}

.main-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.main-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    box-shadow: var(--glow-blue);
    margin: 8px auto 0;
    border-radius: 2px;
}

.main-content p {
    text-align: center;
    color: var(--text-secondary);
}

.site-footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 5px;
}

/* ==========================================================================
   5. GAME GRID & CARDS (GLASSMORPHIC)
   ========================================================================== */

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

a.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.game-card {
    position: relative;
    background: var(--grad-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.15);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.catalog-page .game-card img,
.discounts-page .game-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    margin: 15px auto 0;
    border-radius: 8px;
    border-bottom: none;
    aspect-ratio: auto;
}

.game-card:hover img {
    filter: brightness(1.1);
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-green);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.old-price {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 500;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-blue);
    color: #121225;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.buy-btn:hover {
    background: #00fffa;
    box-shadow: var(--glow-blue);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.35);
    text-transform: uppercase;
}

/* ==========================================================================
   6. PRODUCT DETAILS PAGE
   ========================================================================== */

.product-page-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-gallery .main-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.thumbnail-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 5px;
    padding-bottom: 8px;
}

.thumbnail-grid img {
    width: 90px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail-grid img:hover,
.thumbnail-grid img.active-thumb {
    opacity: 1;
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.purchase-box {
    background: rgba(22, 22, 45, 0.4);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.purchase-box .price {
    font-size: 36px;
    margin-bottom: 25px;
}

.buy-now-btn {
    background: var(--accent-green) !important;
    color: #121225 !important;
}

.buy-now-btn:hover {
    background: #00ff73 !important;
    box-shadow: var(--glow-green) !important;
}

.description {
    margin-top: 30px;
}

.description h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.description p {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.7;
}

.system-requirements {
    background: rgba(22, 22, 45, 0.4);
    border: 1px solid var(--border-glass);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.system-requirements h3 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.trailer-container {
    margin-top: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.trailer-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Reviews List */
.reviews-section {
    margin-top: 50px;
    background: rgba(22, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 16px;
}

.reviews-section h2 {
    text-align: left;
    left: 0;
    transform: none;
    margin-bottom: 25px;
}

.reviews-section h2::after {
    margin: 8px 0 0;
}

.review-form textarea {
    width: 100%;
    height: 90px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    resize: none;
    font-family: var(--font-sans);
    transition: border-color 0.3s;
}

.review-form textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.review-card {
    border-bottom: 1px solid var(--border-glass);
    padding: 20px 0;
    display: flex;
    gap: 15px;
}

.review-card:last-child {
    border-bottom: none;
}

.review-author {
    color: var(--accent-blue);
    font-weight: 700;
}

.review-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.review-text {
    color: var(--text-primary);
    margin-top: 6px;
}

/* ==========================================================================
   7. CART & CHECKOUT
   ========================================================================== */

.cart-grid,
.checkout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 35px;
    align-items: flex-start;
}

.cart-items-wrapper,
.checkout-form {
    background: rgba(22, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glass);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
}

.cart-item-info .price {
    font-size: 18px;
    margin-top: 4px;
}

.remove-btn {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.cart-summary {
    background: rgba(22, 22, 45, 0.7);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 16px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}

.cart-summary h3,
.checkout-form h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 22px;
    color: var(--text-primary);
}

.summary-row.total strong {
    color: var(--accent-green);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background: var(--accent-green);
    color: #121225;
    text-align: center;
    display: block;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.2);
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #00ff73;
    box-shadow: var(--glow-green);
    color: #121225;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-sans);
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* ==========================================================================
   8. STEAM TOP-UP
   ========================================================================== */

.topup-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.topup-info-side {
    text-align: left;
}

.topup-info-side h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.topup-info-side h1 span {
    background: linear-gradient(135deg, #00d2ff, #9b51e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topup-info-side p.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 30px;
}

.info-box, .fee-warning {
    background: rgba(22, 22, 45, 0.4);
    border-left: 4px solid var(--accent-blue);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 20px;
}

.fee-warning {
    border-left-color: var(--accent-purple);
}

.info-box h3, .fee-warning h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.info-box ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.topup-card {
    background: rgba(22, 22, 45, 0.55);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
}

.topup-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    left: 0;
    transform: none;
    text-align: left;
}

.topup-card h2::after {
    margin: 8px 0 0;
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.total-calculation {
    background: rgba(10, 10, 20, 0.4);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    border: 1px dashed var(--border-glass);
}

.total-calculation strong {
    font-size: 20px;
    color: var(--accent-blue);
}

.topup-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: var(--grad-primary);
    color: #121225;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.topup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
    filter: brightness(1.1);
}

/* ==========================================================================
   HOMEPAGE GAME SECTIONS
   ========================================================================== */

.home-section {
    margin-top: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.section-header h2 {
    text-align: left;
    left: auto;
    transform: none;
    margin-bottom: 0;
    font-size: 26px;
}

.section-header h2::after {
    display: none;
}

/* ==========================================================================
   9. MODALS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 210, 255, 0.05);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-window {
    transform: scale(1);
}

.close-icon {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-icon:hover {
    color: white;
}

.modal-window h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 25px;
    text-align: left;
    left: 0;
    transform: none;
}

.modal-window h2::after {
    margin: 8px 0 0;
}

.modal-window input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: var(--font-sans);
}

.modal-window input:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.modal-window .btn {
    width: 100%;
    background: var(--accent-blue);
    color: #121225;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.modal-window .btn:hover {
    background: #00fffa;
    box-shadow: var(--glow-blue);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   10. SUCCESS & FAVORITES PAGES
   ========================================================================== */

.success-page {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(22, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.success-page h2 {
    left: 0;
    transform: none;
}

.success-page h2::after {
    display: none;
}

#key-generation-box {
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.text-content-page {
    background: rgba(22, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.text-content-page h2 {
    left: 0;
    transform: none;
    margin-bottom: 25px;
}

.text-content-page h2::after {
    margin: 8px 0 0;
}

/* Favorite buttons */
.favorite-btn {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}

.favorite-btn.favorited {
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: var(--accent-red) !important;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

/* ==========================================================================
   11. PROFILE & CABINET LAYOUT
   ========================================================================== */

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.profile-sidebar {
    background: rgba(22, 22, 45, 0.55);
    border: 1px solid var(--border-glass);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    height: fit-content;
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.avatar-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(10, 10, 20, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--accent-blue);
    font-weight: 800;
    margin: 0 auto;
    border: 3px solid var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.profile-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-block {
    background: rgba(22, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 25px;
    border-radius: 14px;
}

.form-block h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.form-block label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="password"] {
    width: 100%;
    padding: 11px 15px;
    margin-bottom: 15px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.form-block input:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.orders-table th, .orders-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-glass);
    text-align: left;
}

.orders-table th {
    background: rgba(10, 10, 20, 0.5);
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
}

.orders-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   12. NOTIFICATION BADGE & BELL
   ========================================================================== */

.notification-badge {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.notification-badge .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.notifications-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-width: none !important;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.notifications-dropdown.active {
    display: flex;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    gap: 10px;
    position: relative;
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-icon {
    font-size: 16px;
}

.notif-message {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
    padding-right: 15px;
}

.notif-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

.notif-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}

.notif-delete:hover {
    color: var(--accent-red);
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================================================
   13. MOBILE BOTTOM NAVIGATION
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    z-index: 1500;
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.nav-icon {
    font-size: 20px;
}

.nav-item.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* ==========================================================================
   14. RESPONSIVENESS
   ========================================================================== */

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .product-page-grid,
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .search-bar {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .header-actions .btn:not(.admin-btn) {
        display: none;
    }
    .cart-btn {
        display: none;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-page-grid,
    .cart-grid,
    .checkout-grid,
    .profile-layout,
    .topup-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .topup-info-side h1 {
        font-size: 32px;
        text-align: center;
    }
    
    .topup-info-side p.subtitle {
        text-align: center;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body.has-mobile-nav {
        padding-bottom: 60px; /* Space for the bar */
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    .avatar-img,
    .avatar-placeholder {
        width: 110px;
        height: 110px;
    }
}

/* ==========================================================================
   15. PORTRAIT CARDS & MOBILE SEARCH FOR CATALOG & DISCOUNTS
   ========================================================================== */

/* Grid with auto-fill for portrait cards on desktop/tablet */
.catalog-page .game-grid,
.discounts-page .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Set cards to exactly 200px width */
.catalog-page .game-card,
.discounts-page .game-card {
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
}

/* Ensure images are 2:3 aspect ratio (portrait) */
.catalog-page .game-card img,
.discounts-page .game-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Mobile Search Bar Container */
.mobile-search-container {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile search styling */
    .mobile-search-container {
        display: block;
        width: 100%;
        margin: 0 auto 25px;
    }
    .mobile-search-container .search-bar {
        display: flex;
        max-width: 100%;
        width: 100%;
    }
    
    /* 2-column grid on mobile for portrait cards */
    .catalog-page .game-grid,
    .discounts-page .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Allow cards to scale down below 200px on mobile grids */
    .catalog-page .game-card,
    .discounts-page .game-card {
        max-width: 100%;
    }
}

/* Prevent game card buttons from wrapping and keep them beautifully in one line globally */
.card-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: auto !important;
}

.card-actions .buy-btn {
    font-size: 11px !important;
    padding: 10px 5px !important;
    flex: 1 !important;
    white-space: nowrap !important;
}

.card-actions .favorite-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 16px !important;
    padding: 0 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================================================
   16. ULTIMATE MOBILE OVERFLOW & RESPONSIVENESS ADAPTATION
   ========================================================================== */

/* Prevent horizontal scroll globally and wrap long text */
body, html {
    overflow-x: hidden !important;
}

* {
    max-width: 100%;
}

/* Structural fix for titles on mobile: remove translate-shift */
@media (max-width: 768px) {
    .main-content h2 {
        display: block !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        font-size: 26px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .main-content h2::after {
        margin: 8px auto 0 !important;
    }
    .site-header {
        padding: 12px 0 !important;
    }
    .logo a {
        font-size: 22px !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    /* Responsive layout tables to prevent mobile stretching */
    .orders-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 19px !important;
    }
    .site-header {
        padding: 10px 0 !important;
    }
    .site-header .container {
        gap: 10px !important;
    }
    /* Layout paddings for squished containers on smartphones */
    .modal-window, 
    .topup-card, 
    .success-page, 
    .text-content-page {
        padding: 25px 15px !important;
    }
    .purchase-box {
        padding: 20px !important;
    }
    .reviews-section {
        padding: 20px 15px !important;
    }
    .section-header h2 {
        font-size: 20px !important;
    }
    .notifications-dropdown {
        width: 280px !important;
        right: -10px !important;
    }
    /* Stack cart items vertically to fit smartphone viewports */
    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        position: relative !important;
        padding: 15px 0 !important;
    }
    .cart-item img {
        width: 120px !important;
        height: 75px !important;
    }
    .cart-item .remove-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   SIDEBAR & FILTERS SYSTEM (PREMIUM DESIGN)
   ========================================================================== */
.catalog-layout {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    align-items: flex-start;
}

.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(18, 18, 37, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
    z-index: 100;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.catalog-content {
    flex-grow: 1;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Neon Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    user-select: none;
    margin: 10px 0;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-container input {
    display: none;
}

.toggle-container input:checked + .toggle-switch {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.toggle-container input:checked + .toggle-switch::after {
    left: 26px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.toggle-container:hover .toggle-label {
    color: var(--text-primary);
}

/* Custom genres list styles */
.genres-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.genre-filter-chk-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.genre-filter-chk-label:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}

.genre-filter-chk-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

/* Editions Selector */
.editions-selector {
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
}

.editions-selector h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.editions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edition-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(22, 22, 45, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.edition-card:hover {
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(22, 22, 45, 0.8);
}

.edition-card.active {
    border-color: var(--accent-blue);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.edition-name {
    font-weight: 600;
    font-size: 14px;
}

.edition-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.edition-price .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-left: 6px;
}

/* Recommended Games Section */
.recommended-section {
    margin: 40px 0;
}

.recommended-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* Steam Review System */
.steam-rating-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 15px 20px;
    border-radius: 10px;
}

.steam-rating-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.rating-badge {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.rating-badge.very-positive {
    background: rgba(0, 255, 135, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 135, 0.25);
}

.rating-badge.mixed {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 210, 255, 0.25);
}

.rating-badge.very-negative {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.review-like-dislike {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.like-dislike-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.like-dislike-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.like-dislike-btn.active-like {
    color: var(--accent-green);
    border-color: rgba(0, 255, 135, 0.3);
    background: rgba(0, 255, 135, 0.05);
}

.like-dislike-btn.active-dislike {
    color: var(--accent-red);
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.05);
}

.review-recommendation-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.review-recommendation-tag.recommended {
    background: rgba(0, 255, 135, 0.1);
    color: var(--accent-green);
}

.review-recommendation-tag.not-recommended {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-red);
}

/* Mobile responsive filter side */
@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
        gap: 20px;
    }
    .filter-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 10px;
    }
    .genres-list-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        max-height: none;
    }
    .filter-group {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

/* ==========================================================================
   12. NEW CABIN, PREVIEW AVATAR & BILLING CUSTOM STYLES
   ========================================================================== */

/* Custom Review Submit Button */
.review-submit-btn {
    background: var(--grad-primary);
    color: #121225;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    filter: brightness(1.1);
}
.review-submit-btn:active {
    transform: translateY(0);
}

/* Custom Neon Glow Toggle */
.glow-checkbox-label input[type="checkbox"] + .custom-toggle {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}
.glow-checkbox-label input[type="checkbox"] + .custom-toggle::after {
    content: '';
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-checkbox-label input[type="checkbox"]:checked + .custom-toggle {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}
.glow-checkbox-label input[type="checkbox"]:checked + .custom-toggle::after {
    left: 22px;
    background: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

/* Modal Overlay & Modal Card CSS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1; pointer-events: auto;
}
.modal-content.glass-card {
    background: linear-gradient(145deg, rgba(30, 30, 55, 0.95), rgba(18, 18, 38, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.open .modal-content.glass-card {
    transform: translateY(0);
}
.avatar-preview-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    box-shadow: var(--glow-blue);
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Circular Crop Overlay for Cropper.js */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
    outline: 2px solid #5dadec !important;
}
.cropper-view-box {
    outline-color: #5dadec !important;
}
.cropper-line,
.cropper-point {
    background-color: #5dadec !important;
}
.cropper-point.point-se {
    width: 6px;
    height: 6px;
    opacity: 1;
    background-color: #fff !important;
    border: 1px solid #000;
}

/* ==========================================================================
   12. TOAST NOTIFICATIONS SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 18, 37, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: toast-slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast-success {
    border-color: rgba(0, 255, 135, 0.25);
    box-shadow: 0 8px 32px rgba(0, 255, 135, 0.05), 0 0 15px rgba(0, 255, 135, 0.1);
}
.toast-success::before {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.toast-error {
    border-color: rgba(255, 71, 87, 0.25);
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.05), 0 0 15px rgba(255, 71, 87, 0.1);
}
.toast-error::before {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-fade-out {
    animation: toast-slide-out 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
    opacity: 0;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

/* ==========================================================================
   13. PROMO CAROUSEL STYLES
   ========================================================================== */
.promo-carousel-container {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    margin-top: 15px;
}

.promo-banner-main {
    flex: 2.2;
    min-width: 320px;
    background: #121225;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.promo-slide-content {
    max-width: 580px;
    z-index: 3;
}

.buy-btn-carousel:hover {
    box-shadow: 0 0 25px rgba(0, 255, 135, 0.7);
    transform: translateY(-2px);
    cursor: pointer;
}

.promo-sidebar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.promo-sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(22, 22, 45, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.promo-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
}

.promo-sidebar-item.active {
    background: rgba(93, 173, 236, 0.12);
    border-color: rgba(93, 173, 236, 0.3);
    box-shadow: 0 4px 20px rgba(93, 173, 236, 0.08);
}

/* Progress bar inside sidebar items */
.promo-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-blue);
    width: 0%;
}

.promo-sidebar-item.active .promo-progress-bar {
    animation: promo-timer 10s linear forwards;
}

@keyframes promo-timer {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .promo-carousel-container {
        display: none !important;
    }
}




