/* Modern UI Components for Account Page */
.modern-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 24px;
    margin: 24px auto;
    max-width: 420px;
    border: 1px solid #ececec;
    text-align: center;
    transition: box-shadow 0.2s;
}
.modern-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #FFBF00 0%, #ffe082 100%);
    color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 auto 18px;
    box-shadow: 0 2px 12px rgba(255,191,0,0.15);
}
.modern-info-group {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1em;
}
.modern-info-group:last-child { border-bottom: none; }
.modern-info-label { color: #888; }
.modern-info-value { font-weight: 600; color: #222; }
.modern-balance { color: #FFBF00; font-size: 1.15em; }
.modern-btn {
    background: #FFBF00;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,191,0,0.08);
    margin-top: 12px;
    width: 100%;
}
.modern-btn:hover {
    background: #ffd54f;
}
.modern-btn-secondary {
    background: #f7f7fa;
    color: #FFBF00;
    border: 1px solid #FFBF00;
    margin-top: 0;
}
.modern-btn-secondary:hover {
    background: #fffde7;
}
.modern-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 16px 24px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 8px;
}
.modern-topbar-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
}
.modern-menu-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #FFBF00;
    cursor: pointer;
}
.modern-form-group {
    margin-bottom: 18px;
    text-align: left;
}
.modern-form-label {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-size: 0.95em;
}
.modern-form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid #ececec;
    background: #f7f7fa;
    color: #222;
    font-family: inherit;
    font-size: 1em;
    transition: border 0.2s;
}
.modern-form-control:focus {
    border-color: #FFBF00;
    outline: none;
    box-shadow: 0 0 0 2px #ffe08255;
}
.modern-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}
.modern-modal-content {
    background: #fff;
    margin: 0 auto;
    padding: 32px 24px;
    border-radius: 16px;
    width: 95%;
    max-width: 400px;
    border: 1px solid #ececec;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    position: relative;
}
.modern-modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}
.modern-modal-close:hover { color: #FFBF00; }
.modern-quick-amounts {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.modern-quick-btn {
    background: #f7f7fa;
    color: #FFBF00;
    border: 1px solid #FFBF00;
    border-radius: 7px;
    padding: 10px 0;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modern-quick-btn:hover {
    background: #fffde7;
    color: #222;
}
.banner-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.banner-note-track {
    display: flex;
    gap: 48px;
    width: max-content;
    white-space: nowrap;
    color: var(--text-color);
    font-weight: 600;
    animation: marquee 14s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --bg-color: #f7f7fa;
    --card-bg: #fff;
    --text-color: #222;
    --text-muted: #888;
    --primary-color: #FFBF00;
    --primary-soft: rgba(255, 191, 0, 0.12);
    --primary-gradient: linear-gradient(135deg, #FFBF00 0%, #ffe082 100%);
    --secondary-bg: #f3f3f7;
    --border-color: #e0e0e0;
    --input-bg: #fff;
}

.text-muted {
    color: var(--text-muted) !important;
}


body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    font-size: 12px;
}


.admin {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: border-radius 0.2s;
}

.game-card, .add-form, .product-item, .container, .drawer, .drawer-header, .topbar {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.btn-primary, .btn-warning {
    background: var(--primary-color) !important;
    color: #101010 !important;
    border: none !important;
}
.btn-secondary {
    background: var(--card-bg) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}



body.admin {
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 18px auto;
    max-width: 540px;
}

/* allow focus and text selection inside admin inputs */
body.admin input,
body.admin textarea,
body.admin select,
body.admin button,
body.admin a {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
}


.container {
    max-width: 540px;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: none;
}


.modal-box {
    padding: 24px 18px;
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: none;
    border: 1px solid var(--border-color);
}


h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-shadow: none;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 6px;
}

h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 4px;
}
body.admin p,
body.admin label,
body.admin small,
body.admin td,
body.admin th {
    font-size: 0.88rem;
}

body.admin pre {
    white-space: pre-wrap;
    word-break: break-word;
}

body.admin table th,
body.admin table td {
    padding: 8px 10px;
}

body.admin .section-title {
    font-size: 1.05rem;
}

body.admin table {
    width: 100%;
    min-width: 0;
}

body.admin .order-card,
body.admin .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.admin a,
body.admin p,
body.admin td,
body.admin th,
body.admin .drawer-label,
body.admin .drawer-item,
body.admin .method-info,
body.admin .banner-card {
    word-break: break-word;
    overflow-wrap: anywhere;
}

body.admin input,
body.admin select,
body.admin textarea,
body.admin button {
    max-width: 100%;
}

@media (max-width: 600px) {
    body.admin {
        font-size: 13px;
    }

    body.admin .container {
        max-width: 320px;
        padding-left: 8px;
        padding-right: 8px;
    }

    body.admin h1 { font-size: 17px; }
    body.admin h2 { font-size: 15px; }
    body.admin h3 { font-size: 14px; }
    body.admin h4 { font-size: 13px; }

    body.admin .btn,
    body.admin .btn-sm {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    body.admin * {
        max-width: 100%;
    }

    body.admin input,
    body.admin select,
    body.admin textarea,
    body.admin .btn,
    body.admin .btn-sm,
    body.admin button {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.admin form,
    body.admin .form-row,
    body.admin .input-group,
    body.admin .actions,
    body.admin .header-bar,
    body.admin .shop-header,
    body.admin .game-header,
    body.admin .method-card,
    body.admin .user-profile-card,
    body.admin .banner-grid {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body.admin table,
    body.admin thead,
    body.admin tbody,
    body.admin th,
    body.admin td,
    body.admin tr {
        display: block !important;
        width: 100% !important;
    }

    body.admin thead {
        display: none !important;
    }

    body.admin tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    body.admin td {
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
    }

    body.admin td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    body.admin .table-responsive,
    body.admin .order-card {
        overflow: visible !important;
    }
}

body.admin .btn {
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 40px;
    font-weight: 600;
    background: var(--primary-color);
    color: #222;
    border: none;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}
body.admin .btn:hover {
    background: #ffe082;
    color: #222;
}
body.admin .btn:active {
    background: #ffe082;
    color: #222;
}

body.admin .btn-sm { padding: 9px 10px; min-height: 40px; }

body.admin .game-card { padding: 12px; border-radius: 10px; }

body.admin .game-logo { width: 64px; height: 64px; }

body.admin .product-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }

body.admin input[type="text"], body.admin input[type="number"], body.admin input[type="url"], body.admin .form-control {
    padding: 10px;
    border-radius: 8px;
}

body.admin .navbar-mobile-hide { display: none; }

body.admin .topbar {
    padding: 6px 8px;
    margin-bottom: 10px;
    border-radius: 10px;
}

body.admin .topbar-title { font-size: 0.9rem; }

body.admin .menu-btn {
    padding: 6px 10px;
    font-size: 1rem;
    border-radius: 8px;
}

body.admin .drawer {
    width: min(84vw, 260px);
    padding: 12px;
    gap: 6px;
}

body.admin .drawer-title { font-size: 0.95rem; }

body.admin .drawer-close { padding: 3px 8px; }

body.admin .drawer-link {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
}

@media (min-width: 900px) {
    /* keep admin constrained on large screens */
    body.admin { display: block; }
}

/* Mobile drawer styles */
.admin-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.44);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.admin-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.admin-drawer {
    position: fixed;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: var(--card-bg);
    box-shadow: -8px 0 30px rgba(0,0,0,0.14);
    z-index: 1600;
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1);
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-drawer.open { transform: translateX(0); }
.admin-drawer .drawer-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding: 6px 4px; }
.admin-drawer .drawer-header h3 { margin:0; font-size:18px; }
.drawer-menu { display:flex; flex-direction:column; gap:8px; padding: 6px; }
.drawer-item {
    display:flex;
    align-items: center;
    gap:12px;
    padding: 14px 14px;
    margin: 6px 4px;
    background: var(--card-bg) !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-decoration: none;
    color: var(--primary-color) !important;
    font-weight: 700;
    min-height: 56px;
    width: calc(100% - 8px);
}
.drawer-item:active { transform: translateY(1px); }
.drawer-item:hover { box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
.drawer-icon { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; color:var(--primary-color); }
.drawer-label { flex:1; font-size:16px; }
.admin-drawer a { outline: none; }
.admin-drawer a:focus { box-shadow: 0 0 0 4px rgba(73,121,107,0.12); }
.hamburger-btn { background: transparent; border: none; font-size: 22px; padding: 8px; border-radius: 8px; cursor:pointer; }
.hamburger-btn:active { transform: scale(0.98); }

/* ensure drawer is hidden on large screens if you prefer regular navbar */
@media (min-width: 700px) {
    .hamburger-btn { display: none; }
}

.container {
    width: 100%;
    max-width: 420px;
}

.screen {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-logo {
    text-align: center;
    margin-bottom: 30px;
}

.site-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: 0 auto 12px auto;
    display: block;
}

.site-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 0 8px 0;
}

.app-logo h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.form-container h2 {
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255,191,0,0.14);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-soft);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(255,191,0,0.12);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.back-btn {
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: 0.2s;
}

.back-btn:hover {
    color: var(--text-color);
    transform: translateX(-5px);
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.switch-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* New CSS Classes for JS/PHP Elements */
.modern-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    color: var(--text-color);
}

.modern-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 0.05;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 0 12px rgba(255,191,0,0.1);
    border-color: var(--primary-color);
}

.game-card img {
    border-radius: 12px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    z-index: 1;
}

.game-card-title {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    z-index: 1;
}

.home-header h1 {
    font-size: 20px;
    margin: 0;
}

/* User Info Card */


.user-info p {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.user-info p:last-child {
    margin-bottom: 0;
}

.user-info strong {
    color: #888;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid var(--border-color);
    max-width: 320px;
    width: auto;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #2f6f5f;
    color: var(--text-color);
}

.toast.error {
    border-color: #b94a4a;
    color: var(--text-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,191,0,0.12);
}

.btn-primary:active {
    transform: translateY(0);
}


.switch-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.switch-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-decoration: underline;
}

.home-header {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.home-header h1 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.user-info {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.user-info p {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--secondary-bg);
    border-radius: 8px;
}

.user-info p strong {
    color: var(--text-color);
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .app-logo h1 {
        font-size: 36px;
    }

    .form-container {
        padding: 20px;
    }
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.topbar-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.menu-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
}

.drawer-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed !important;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: 8px 0 24px rgba(0,0,0,0.12);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    z-index: 10000;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    will-change: transform;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    background: var(--bg-color) !important;
    color: var(--primary-color) !important;
}

.drawer-title {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.drawer-close {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    color: #101010 !important;
}

.drawer-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: var(--primary-color) !important;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--primary-color) !important;
    background: var(--bg-color) !important;
    text-align: left;
    font-weight: 600;
}

.drawer-link:active {
    transform: scale(0.98);
    background: var(--primary-color) !important;
    color: #101010 !important;
}

/* Mobile-first touch improvements for admin game pages */
body.admin .product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.admin .product-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    position: relative;
    z-index: 0;
}

body.admin .product-item .product-price {
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-actions .btn { min-height: 44px; padding: 10px 12px; }

.btn-danger { background: #fff6f6; color: #b33; border: 1px solid #f2b6b6; }

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .product-actions { flex-direction: column; }
    .product-actions .btn, .product-actions .btn-sm { width: 100%; }
    body.admin input[type="text"], body.admin input[type="number"], body.admin input[type="url"], body.admin .form-control {
        min-height: 44px;
        padding: 12px;
    }
    .product-item input[type="number"] { width: 100%; }
    .product-item .product-price { align-self: flex-end; }
    .game-header a, .game-header img { touch-action: manipulation; }
}
