/* Modern Minimal Gaming Theme */

/* Import clean fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Clean Color Palette */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-hover: #252525;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent-primary: #3b82f6;
    --accent-secondary: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    --border-primary: #2a2a2a;
    --border-secondary: #363636;
    
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Clean Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Clean Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

/* Modern Cards */
.samurai-card, .cheat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.samurai-card:hover, .cheat-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Clean Buttons */
.ninja-button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ninja-button:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ninja-button.primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.ninja-button.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.ninja-button.success {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

.ninja-button.danger {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

/* Clean Titles */
.samurai-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    margin-bottom: 1.5rem;
}

/* Removed samurai-title::after underline */

/* Clean Navigation */
.nav {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Clean Forms */
.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Status Labels */
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.status-label.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.status-label.updated {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.status-label.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border-color: var(--accent-warning);
}

/* Popular Category Styles - Точно как status-label.danger на продуктах */
.popular-category {
    position: relative;
}

.popular-category::after {
    content: '\f06d        HOT';
    font-family: "Font Awesome 5 Free", var(--font-primary);
    font-weight: 900;
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    z-index: 10;
}

/* Hover эффект для популярных категорий */
.popular-category:hover {
    transform: translateY(-2px);
}

.popular-category:hover::after {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .popular-category::after {
        top: 6px;
        left: 6px;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.payment-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.payment-modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-modal:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.payment-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.order-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.order-item:not(:last-child) {
    border-bottom: 1px solid var(--border-primary);
}

.order-item.total {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-primary);
}

.order-item .price {
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.method-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.method-action {
    color: var(--text-muted);
    font-size: 1rem;
}

.payment-method:hover .method-action {
    color: var(--accent-primary);
}

.email-input {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
    padding-top: 1.5rem;
}

.email-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.email-input input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.email-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-input input::placeholder {
    color: var(--text-muted);
}

/* Payment Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Payment Modal */
@media (max-width: 768px) {
    .payment-modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .payment-modal-header {
        padding: 1rem 1.25rem;
    }
    
    .payment-modal-body {
        padding: 1.25rem;
    }
    
    .payment-method {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.modal-footer .ninja-button {
    flex: 1;
    justify-content: center;
}

/* Ensure consistent button alignment */
.ninja-button {
    justify-content: center;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-overlay.fade-in {
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.modal-overlay.fade-out {
    animation: modalFadeOut 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95vw;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }
    
    .modal-footer .ninja-button {
        width: 100%;
    }
}

.status-label.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

/* Clean Tables */
.table {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
}

.table th {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 1rem;
    text-align: left;
}

.table td {
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 1rem;
    font-size: 0.9rem;
}

.table tr:hover {
    background: var(--bg-hover);
}

/* Clean Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--accent-secondary); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-danger); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }

.bg-card { background: var(--bg-card); }
.bg-hover { background: var(--bg-hover); }
.bg-secondary { background: var(--bg-secondary); }

.font-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.object-cover { object-fit: cover; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }

.hidden { display: none; }
.inline { display: inline; }
.block { display: block; }

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

.cursor-pointer { cursor: pointer; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.border-radius { border-radius: var(--radius-md); }

/* Dividers */
.samurai-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 3rem 0;
}

/* Clean Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Flex Utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Spacing */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 1rem; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 0.75rem; }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .grid-4, .grid-3, .grid-2 { 
        grid-template-columns: 1fr; 
    }
    
    .grid-auto { 
        grid-template-columns: 1fr; 
    }
    
    .ninja-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .samurai-card, .cheat-card {
        padding: 1rem;
    }
    
    .flex-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 0.5rem; }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .ninja-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .status-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Remove all animations that cause flickering */
* {
    animation: none !important;
    transition-duration: 0.2s !important;
}

/* Remove glitch effects */
.glitch {
    text-shadow: none !important;
    animation: none !important;
}

/* Clean product cards */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.product-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1rem;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-category {
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 0.25rem;
}

.product-period {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

/* ==== UTILITIES ==== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.m-0 { margin: 0; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.font-mono { font-family: var(--font-mono); }

/* ==== ADMIN TABLES ==== */
.table-responsive {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: var(--bg-hover);
    transition: background-color 0.2s ease;
}

.table td {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ==== FORM IMPROVEMENTS ==== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ==== SPACE UTILITIES ==== */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* ==== RESPONSIVE UTILITIES ==== */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .flex-wrap {
        flex-direction: column;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ==== ADMIN SPECIFIC ==== */
.admin-header {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-nav .ninja-button {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.admin-nav .ninja-button.primary {
    background: linear-gradient(45deg, var(--accent-primary), #2563eb);
    border: none;
}

/* ==== ENHANCED ANIMATIONS ==== */
.samurai-card {
    transition: all 0.2s ease;
}

.samurai-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==== STATUS IMPROVEMENTS ==== */
.status-label {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-label i {
    font-size: 0.65rem;
}

.status-label.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-label.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-label.updated {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-label.premium {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */

/* Mobile-first responsive breakpoints */
@media (max-width: 1200px) {
    .container { 
        max-width: 95%; 
        padding: 0 1rem; 
    }
    
    .grid-4 { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 992px) {
    .container { 
        padding: 0 0.75rem; 
    }
    
    .grid-4, .grid-3 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Navigation improvements */
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Hero section adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    /* Card spacing */
    .samurai-card, .cheat-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    /* Base typography */
    body { font-size: 13px; }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    .container { 
        padding: 0 0.5rem; 
    }
    
    /* Navigation - Mobile hamburger menu */
    .nav {
        padding: 0.5rem 0;
        position: relative;
    }
    
    .nav .container {
        position: relative;
    }
    
    .nav nav {
        position: relative;
        width: 100%;
    }
    
    .nav nav > ul {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-primary);
        border-bottom: 1px solid var(--border-primary);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    
    .nav nav > ul.active {
        max-height: 300px;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
    }
    
    /* Hamburger menu button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--bg-hover);
        color: var(--accent-primary);
    }
    
    /* Grid layouts - Single column on mobile */
    .grid-4, .grid-3, .grid-2, .grid-auto, .grid-auto-sm {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Product cards - Mobile optimized */
    .product-card {
        width: 100% !important;
        max-width: none;
        height: auto !important;
        min-height: 400px;
    }
    
    /* Products grid - Single column layout */
    #products-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        gap: 1rem;
    }
    
    /* Carousel - Mobile optimization */
    .top-cheats-carousel {
        padding: 0 0.5rem;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Buttons */
    .ninja-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .ninja-button.inline {
        width: auto;
        display: inline-flex;
    }
    
    /* Cards */
    .samurai-card, .cheat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Flex layouts - Stack on mobile */
    .flex-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .flex-between.keep-row {
        flex-direction: row;
        align-items: center;
    }
    
    /* Search bars */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
    }
    
    /* Status labels */
    .status-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Modal optimization */
    .modal-container, .payment-modal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: 95vh;
    }
    
    .modal-header, .payment-modal-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .modal-body, .payment-modal-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .ninja-button {
        width: 100%;
    }
    
    /* Payment methods - Mobile stack */
    .payment-method {
        padding: 0.75rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Games grid - Mobile specific */
    .games-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Hero section - Mobile adjustments */
    main {
        padding: 1rem 0;
    }
    
    /* Feature cards - Smaller on mobile */
    section .samurai-card {
        padding: 1.5rem 1rem;
    }
    
    /* Dividers - Smaller margins */
    .samurai-divider {
        margin: 2rem 0;
    }
    
    /* Footer adjustments */
    footer {
        padding: 1.5rem 0;
    }
    
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    footer .flex-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - phones in portrait */
    body { font-size: 12px; }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .container { 
        padding: 0 0.25rem; 
    }
    
    .samurai-card, .cheat-card {
        padding: 0.75rem;
    }
    
    .ninja-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .status-label {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    /* Even smaller modal */
    .modal-container, .payment-modal {
        margin: 0.25rem;
        max-width: calc(100vw - 0.5rem);
    }
    
    /* Tighter spacing */
    .grid {
        gap: 0.75rem;
    }
    
    /* Search input adjustments */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Product image smaller */
    .product-image {
        height: 140px;
    }
    
    /* Carousel indicators smaller */
    .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 360px) {
    /* Very small devices */
    .container { 
        padding: 0 0.125rem; 
    }
    
    .samurai-card, .cheat-card {
        padding: 0.5rem;
    }
    
    .ninja-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    
    /* Product cards even more compact */
    .product-card {
        min-height: 350px;
    }
    
    .product-image {
        height: 120px;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .nav nav > ul {
        max-height: 200px;
    }
    
    .modal-container, .payment-modal {
        max-height: 90vh;
    }
    
    /* Adjust hero padding */
    main {
        padding: 0.5rem 0;
    }
    
    /* Smaller sections */
    section {
        margin-bottom: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .samurai-card:hover,
    .cheat-card:hover,
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .ninja-button:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .ninja-button {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .close-modal {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp borders and shadows for retina displays */
    .samurai-card, .cheat-card {
        border-width: 0.5px;
    }
    
    .ninja-button {
        border-width: 0.5px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .top-cheats-carousel {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .nav, footer, .ninja-button, .modal-overlay {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .samurai-card, .cheat-card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* ===== ENHANCED MOBILE NAVIGATION ===== */

/* Modern mobile navigation improvements */
@media (max-width: 768px) {
    /* Properly implement mobile menu functionality */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Update mobile navigation to use the new structure */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 2rem !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu .nav-link {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        min-width: 200px;
        text-align: center;
        text-decoration: none;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-menu .nav-link:hover {
        background: var(--bg-hover);
        transform: scale(1.02);
        border-color: var(--accent-primary);
        color: var(--accent-primary);
    }
    
    /* Ensure proper navigation behavior */
    .nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    /* Better responsive adjustments */
    .flex-between.keep-horizontal {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    /* Improve button sizing for mobile */
    .ninja-button {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Optimize search inputs */
    input[type="text"], input[type="email"], .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    /* Improve modal behavior on mobile */
    .payment-modal, .modal-container {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 5vh auto !important;
    }
    
    .payment-modal-body, .modal-body {
        max-height: 65vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better table handling */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Optimize product grid for mobile */
    #products-grid {
        grid-template-columns: 1fr !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: 420px;
    }
    
    /* Improve games grid */
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Better carousel behavior */
    .top-cheats-carousel .carousel-slide {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0;
    }
}

/* Small mobile specific improvements */
@media (max-width: 480px) {
    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    .container {
        padding: 0 0.75rem !important;
    }
    
    .samurai-card, .cheat-card {
        padding: 1rem !important;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }
    
    .status-label {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .ninja-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
        min-width: 160px;
    }
    
    .nav-menu .nav-link .nav-text {
        display: none; /* Show only icons on very small screens */
    }
    
    .container {
        padding: 0 0.5rem !important;
    }
    
    .samurai-card, .cheat-card {
        padding: 0.75rem !important;
    }
    
    h1 { font-size: 1.3rem !important; }
    h2 { font-size: 1.1rem !important; }
    
    .ninja-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .product-card {
        min-height: 380px !important;
    }
}

/* Landscape mobile optimizations */
@media screen and (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .nav-menu {
        padding: 1rem;
        gap: 1rem !important;
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .nav-menu .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        min-width: 140px;
    }
    
    section {
        padding: 1rem 0 !important;
    }
    
    .payment-modal, .modal-container {
        max-height: 80vh !important;
        margin: 10vh auto !important;
    }
    
    .payment-modal-body, .modal-body {
        max-height: 50vh !important;
    }
}

/* iOS Safari specific optimizations */
@supports (-webkit-appearance: none) {
    @media (max-width: 768px) {
        .nav-menu {
            height: 100vh;
            height: -webkit-fill-available;
        }
        
        .form-control, input[type="text"], input[type="email"] {
            -webkit-appearance: none;
            border-radius: var(--radius-sm);
        }
        
        .nav {
            position: -webkit-sticky;
            position: sticky;
        }
        
        /* Fix iOS Safari viewport units */
        .payment-modal, .modal-container {
            height: auto;
            max-height: 90vh;
            max-height: calc(100vh - 10vh);
        }
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure all interactive elements meet touch target guidelines */
    .ninja-button, .nav-link, .close-modal, button, .form-control {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .samurai-card:hover,
    .cheat-card:hover,
    .product-card:hover,
    .ninja-button:hover,
    .nav-link:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    /* Add focus styles for accessibility */
    .ninja-button:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }
    
    /* Improve tap targets */
    .payment-method {
        min-height: 60px;
        padding: 1rem;
    }
    
    .status-label {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .samurai-card, .cheat-card, .ninja-button {
        border-width: 0.5px;
    }
    
    .nav {
        border-bottom-width: 0.5px;
    }
}

/* ===== PRODUCT PAGE MOBILE OPTIMIZATION ===== */

/* Product layout responsive design */
.product-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 350px;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 300px;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Stack layout on mobile */
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Product header mobile adjustments */
    .product-layout .flex.gap-3.mb-4 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Product image mobile adjustments */
    .product-layout .product-image {
        width: 100% !important;
        height: 200px !important;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
    }
    
    /* Purchase sidebar adjustments */
    .product-layout > div:last-child {
        position: static !important;
        order: -1; /* Show purchase section first on mobile */
    }
    
    /* Price options mobile adjustments */
    .price-option {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .price-option .flex-between {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    /* Purchase button mobile optimization */
    .product-layout button.ninja-button.primary {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
    
    /* Features grid mobile adjustments */
    .product-layout .grid.grid-auto-sm {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Video iframe mobile adjustments */
    .product-layout iframe {
        height: 250px !important;
    }
    
    /* Back button mobile */
    .product-layout ~ div .ninja-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-layout {
        gap: 1rem;
    }
    
    /* More compact product image */
    .product-layout .product-image {
        height: 180px !important;
    }
    
    /* Smaller price options */
    .price-option {
        padding: 0.75rem !important;
    }
    
    .price-option h4 {
        font-size: 0.9rem !important;
    }
    
    .price-option .font-mono {
        font-size: 1.1rem !important;
    }
    
    /* Compact video */
    .product-layout iframe {
        height: 200px !important;
    }
    
    /* Smaller feature cards */
    .product-layout .samurai-card.p-2 {
        padding: 0.75rem !important;
    }
}

/* Safety rating mobile adjustments */
@media (max-width: 768px) {
    .safety-rating {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .safety-rating + span {
        text-align: center;
        display: block;
        width: 100%;
    }
}

/* ===== ADMIN PANEL MOBILE OPTIMIZATION ===== */

/* Admin dashboard mobile responsive */
@media (max-width: 768px) {
    /* Admin navigation mobile */
    .admin-nav .flex.gap-2.flex-wrap {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .admin-nav .ninja-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Statistics grid mobile */
    .grid.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Statistics cards mobile */
    .grid.grid-3 .samurai-card {
        padding: 1.5rem 1rem !important;
    }
    
    .grid.grid-3 .samurai-card div[style*="font-size: 2rem"] {
        font-size: 1.8rem !important;
    }
    
    /* Quick actions mobile */
    .samurai-card .flex.gap-2.flex-wrap {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .samurai-card .flex.gap-2.flex-wrap .ninja-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Admin table mobile optimization */
    .table-responsive {
        margin: 0 -1rem !important;
        padding: 0 1rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .table {
        min-width: 600px !important;
        font-size: 0.8rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem !important;
        white-space: nowrap !important;
    }
    
    /* Mobile table actions */
    .table .flex.gap-1 {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .table .ninja-button {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        min-width: 60px !important;
    }
    
    /* Product name in table mobile */
    .table .flex.items-center.gap-2 {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    .table .flex.items-center.gap-2 span {
        font-size: 0.8rem !important;
    }
    
    /* Status labels in table */
    .table .status-label {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small admin adjustments */
    .grid.grid-3 .samurai-card {
        padding: 1rem 0.75rem !important;
    }
    
    .grid.grid-3 .samurai-card div[style*="font-size: 2rem"],
    .grid.grid-3 .samurai-card div[style*="font-size: 1.8rem"] {
        font-size: 1.5rem !important;
    }
    
    /* Admin header mobile */
    .admin-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Smaller buttons */
    .ninja-button {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Compact table for small screens */
    .table {
        min-width: 500px !important;
        font-size: 0.75rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.2rem !important;
    }
}

/* Admin form mobile optimization */
@media (max-width: 768px) {
    /* Form groups mobile */
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem !important;
        min-height: 48px !important;
    }
    
    /* Textarea mobile */
    textarea.form-control {
        min-height: 120px !important;
        resize: vertical !important;
    }
    
    /* Form buttons mobile */
    .form-group .ninja-button {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* File input mobile */
    input[type="file"] {
        font-size: 16px !important;
        padding: 0.5rem !important;
    }
    
    /* Select mobile */
    select.form-control {
        font-size: 16px !important;
        -webkit-appearance: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 0.5rem center !important;
        background-repeat: no-repeat !important;
        background-size: 1.5em 1.5em !important;
                 padding-right: 2.5rem !important;
     }
}

/* ===== HOMEPAGE & CATALOG MOBILE OPTIMIZATION ===== */

/* Hero section mobile */
@media (max-width: 768px) {
    /* Hero section responsive */
    section[style*="padding: 3rem 0"] {
        padding: 2rem 0 !important;
    }
    
    /* Hero title mobile */
    .samurai-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Hero buttons mobile */
    .flex-center.gap-2 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .flex-center.gap-2 .ninja-button {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Search bars mobile */
    div[style*="max-width: 400px"] {
        max-width: 100% !important;
        margin: 0 auto 2rem !important;
    }
    
    .form-control[placeholder*="Поиск"] {
        padding-left: 3rem !important;
        font-size: 16px !important;
        min-height: 48px !important;
    }
    
    /* Status labels mobile */
    .flex-center.gap-2.flex-wrap .status-label {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.7rem !important;
    }
}

/* Carousel mobile optimization */
@media (max-width: 768px) {
    /* Carousel container mobile */
    .top-cheats-carousel {
        padding: 0 !important;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Carousel cards mobile */
    .top-cheats-carousel .samurai-card {
        margin: 0 !important;
        padding: 1rem !important;
    }
    
    /* Carousel indicators mobile */
    .carousel-indicators {
        margin-top: 1.5rem !important;
    }
    
    .carousel-indicators .indicator {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Carousel navigation mobile */
    .top-cheats-carousel + .text-center .ninja-button {
        width: 100% !important;
        max-width: 300px !important;
        padding: 0.875rem 2rem !important;
    }
}

/* Games grid mobile optimization */
@media (max-width: 768px) {
    /* Games section mobile */
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Game cards mobile */
    .games-grid .cheat-card {
        padding: 1rem !important;
    }
    
    /* Game images mobile */
    .games-grid .cheat-card div[style*="height: 160px"] {
        height: 180px !important;
    }
    
    /* Game titles mobile */
    .games-grid .cheat-card h3 {
        font-size: 1.1rem !important;
    }
    
    /* Game descriptions mobile */
    .games-grid .cheat-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* Game badges mobile */
    .games-grid .cheat-card .status-label {
        font-size: 0.7rem !important;
    }
    
    /* Popular category badge mobile */
    .popular-category::after {
        top: 6px !important;
        left: 6px !important;
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Features section mobile */
@media (max-width: 768px) {
    /* Features grid mobile */
    #features .grid.grid-auto-sm {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Feature cards mobile */
    #features .samurai-card {
        padding: 1.5rem 1rem !important;
        text-align: center !important;
    }
    
    /* Feature icons mobile */
    #features .samurai-card i[style*="font-size: 2rem"] {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Feature titles mobile */
    #features .samurai-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Feature descriptions mobile */
    #features .samurai-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

/* Catalog page mobile optimization */
@media (max-width: 768px) {
    /* Catalog header mobile */
    .catalog-header h1 {
        font-size: 1.8rem !important;
    }
    
    /* Catalog stats mobile */
    .catalog-header .flex-center.gap-2.flex-wrap {
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Products grid mobile optimization */
    #products-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: 420px !important;
    }
    
    /* Product images mobile */
    .product-card div[style*="height: 200px"] {
        height: 180px !important;
    }
    
    /* Product titles mobile */
    .product-card h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Product features mobile */
    .product-card .flex.gap-1.mb-3.flex-wrap {
        gap: 0.5rem !important;
    }
    
    .product-card .flex.gap-1.mb-3.flex-wrap span {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    /* Product prices mobile */
    .product-card .flex-between {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .product-card .ninja-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    .samurai-title {
        font-size: 1.6rem !important;
    }
    
    .product-card {
        min-height: 380px !important;
    }
    
    .product-card div[style*="height: 180px"],
    .product-card div[style*="height: 200px"] {
        height: 160px !important;
    }
    
    .games-grid .cheat-card div[style*="height: 180px"] {
        height: 160px !important;
    }
    
    #features .samurai-card i[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
}

/* Pagination mobile (if used) */
@media (max-width: 768px) {
    .pagination {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .pagination .ninja-button {
        min-width: 44px !important;
        padding: 0.5rem !important;
    }
} 