.app-body {
    display: block;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--color-primary-darker) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: var(--color-text);
    padding-top: 60px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    align-items: unset;
    justify-content: unset;
}

.toolbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-primary-dark);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toolbox-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbox-brand {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    white-space: nowrap;
}

.toolbox-brand span {
    color: var(--color-text-muted);
}

.toolbox-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 14px;
    flex-shrink: 0;
}

.toolbox-balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.app-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

.app-card {
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.app-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.app-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: var(--color-primary-dark);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.bottom-nav-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 8px 6px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
    min-width: 0;
    min-height: 56px;
}

.bottom-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.bottom-nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottom-nav-icon svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-info {
    margin-bottom: 16px;
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.profile-card {
    text-align: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    border: 3px solid var(--color-primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.profile-avatar span {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar {
    border-radius: 50%;
    overflow: hidden;
}

.profile-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.profile-section {
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.profile-menu-btn + .profile-menu-btn {
    margin-top: 10px;
}

.profile-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.profile-menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 10px;
    flex-shrink: 0;
}

.profile-menu-icon svg {
    width: 20px;
    height: 20px;
}

.profile-menu-text {
    flex: 1;
    text-align: left;
}

.profile-menu-arrow {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.profile-menu-arrow svg {
    width: 18px;
    height: 18px;
}

.profile-menu-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-lighter);
}

.profile-menu-btn:hover .profile-menu-arrow {
    color: #ffffff;
}

.page-back-link {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.page-back-link:hover {
    color: #ffffff;
}

.page-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form .btn-primary {
    margin-top: 4px;
}

.profile-info dt {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.profile-info dd {
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
}

.btn-logout {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-lighter);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-logout:hover {
    background: var(--color-primary-lighter);
}

.contact-list {
    display: grid;
    gap: 0;
}

.contact-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    margin: 18px 0 6px;
    border: 1px solid var(--color-border);
    background: var(--color-primary-dark);
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item span {
    color: var(--color-text-muted);
    font-size: 13px;
}

.contact-item a {
    color: #7ee89a;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #fff;
}

/* Tablet */
@media (min-width: 768px) {
    .app-body {
        padding-top: 72px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
    }

    .toolbox-inner {
        padding: 16px 32px;
    }

    .toolbox-brand {
        font-size: 22px;
    }

    .toolbox-balance {
        padding: 8px 18px;
    }

    .toolbox-balance-amount {
        font-size: 16px;
    }

    .app-content {
        padding: 24px 32px;
    }

    .app-card {
        padding: 32px;
        border-radius: 20px;
    }

    .app-card h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .app-card p {
        font-size: 16px;
    }

    .bottom-nav-inner {
        gap: 8px;
        padding: 10px 32px calc(10px + env(safe-area-inset-bottom, 0));
    }

    .bottom-nav-item {
        min-height: 58px;
        gap: 5px;
    }

    .bottom-nav-icon {
        width: 30px;
        height: 30px;
    }

    .bottom-nav-icon svg {
        width: 23px;
        height: 23px;
    }

    .bottom-nav-label {
        font-size: 12px;
    }

    .contact-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .contact-item {
        border-bottom: none;
        background: var(--color-primary-dark);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 20px;
    }

    .profile-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 24px;
        text-align: left;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-avatar span {
        font-size: 42px;
    }

    .profile-name {
        font-size: 26px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .app-body {
        padding-top: 80px;
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0));
    }

    .toolbox-inner {
        padding: 18px 48px;
    }

    .toolbox-brand {
        font-size: 24px;
    }

    .app-content {
        padding: 32px 48px;
    }

    .app-content-home {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        padding: 32px 48px;
    }

    .app-card {
        padding: 40px;
    }

    .bottom-nav-inner {
        gap: 10px;
        padding: 10px 48px calc(10px + env(safe-area-inset-bottom, 0));
    }

    .bottom-nav-item {
        flex-direction: row;
        justify-content: center;
        min-height: 48px;
        gap: 8px;
        padding: 10px 12px;
    }

    .bottom-nav-icon {
        width: 24px;
        height: 24px;
    }

    .bottom-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .bottom-nav-label {
        font-size: 14px;
        white-space: nowrap;
    }
}

.wallet-topup-card,
.wallet-orders-card {
    margin-top: 0;
}

.wallet-orders-card {
    margin-top: 16px;
}

.wallet-topup-desc,
.wallet-section-label {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.wallet-section-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.wallet-topup-form .form-group {
    margin-bottom: 16px;
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.amount-preset {
    padding: 10px 8px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.amount-preset:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-lighter);
}

.wallet-bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-bank-option {
    cursor: pointer;
}

.wallet-bank-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wallet-bank-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--color-primary-dark);
    border: 2px solid var(--color-border);
    border-radius: 12px;
}

.wallet-bank-option input:checked + .wallet-bank-card {
    border-color: #fff;
    background: var(--color-primary-light);
}

.wallet-bank-image {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-bank-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-bank-placeholder {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.wallet-bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-bank-info strong {
    color: #fff;
    font-size: 15px;
}

.wallet-bank-info small {
    color: var(--color-text-muted);
    font-size: 13px;
}

.wallet-bank-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wallet-bank-phone {
    color: var(--color-text-muted);
    font-size: 13px;
}

.wallet-copy-phone {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.wallet-copy-phone:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-lighter);
}

.wallet-orders-card h3 {
    color: #fff;
    margin-bottom: 16px;
}

.wallet-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.wallet-order-main strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.wallet-order-main small {
    color: var(--color-text-muted);
    font-size: 12px;
}

.wallet-order-meta {
    text-align: right;
}

.wallet-order-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.wallet-order-status-pending {
    color: #f0c674;
    background: rgba(240, 198, 116, 0.15);
}

.wallet-order-status-approved {
    color: #7ee89a;
    background: rgba(40, 140, 60, 0.15);
}

.wallet-order-status-rejected {
    color: #ff8a8a;
    background: rgba(180, 40, 40, 0.15);
}

.wallet-order-status-processing {
    color: #f0c674;
    background: rgba(240, 198, 116, 0.15);
}

.wallet-order-status-success {
    color: #7ee89a;
    background: rgba(40, 140, 60, 0.15);
}

.wallet-order-status-failed {
    color: #ff8a8a;
    background: rgba(180, 40, 40, 0.15);
}

.game-history-price {
    display: block;
    color: #7ee89a;
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .amount-presets {
        grid-template-columns: repeat(6, 1fr);
    }
}

.home-banner-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-banner-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-banner-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: var(--color-primary-dark);
}

.home-banner-media {
    overflow: hidden;
    background: var(--color-primary);
}

.home-banner-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.home-banner-text {
    padding: 0 4px;
    background: transparent;
    text-align: center;
}

.home-banner-text p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.home-games-section {
    margin-top: 16px;
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px 6px;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.home-game-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.home-game-link:hover,
.home-game-link:active {
    border-color: var(--color-primary-lighter);
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

.home-game-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-game-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-game-logo-placeholder {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.home-game-name {
    margin: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .app-content-home {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        padding: 24px 32px;
    }

    .home-banner-list {
        gap: 24px;
    }

    .home-banner-item {
        gap: 12px;
    }

    .home-banner-card {
        border-radius: 16px;
        border: 1px solid var(--color-border);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }

    .home-banner-media {
        height: 220px;
    }

    .home-banner-image {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        max-height: none;
        object-fit: cover;
    }

    .home-banner-text {
        padding: 0 8px;
    }

    .home-banner-text p {
        font-size: 16px;
    }

    .home-games-section {
        margin-top: 20px;
    }

    .home-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .home-game-item {
        padding: 10px 6px 8px;
        border-radius: 14px;
        gap: 5px;
    }

    .home-game-logo-wrap {
        width: 52px;
        height: 52px;
    }

    .home-game-name {
        font-size: 11px;
    }
}

@media (min-width: 1024px) {
    .app-content-home {
        padding: 32px 48px;
    }

    .home-banner-media {
        height: 260px;
    }

    .home-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .home-game-item {
        padding: 12px 8px 10px;
    }

    .home-game-logo-wrap {
        width: 56px;
        height: 56px;
    }

    .home-game-name {
        font-size: 12px;
    }
}

.game-packages-card {
    padding: 20px;
}

.game-packages-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.game-packages-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-packages-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-packages-logo-placeholder {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.game-packages-head h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 20px;
}

.game-packages-count {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.game-packages-empty {
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.game-order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-order-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.game-order-fields .form-group {
    margin-bottom: 0;
}

.game-order-fields label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.game-order-fields input {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
}

.game-order-fields input:focus {
    outline: none;
    border-color: var(--color-primary-lighter);
}

.game-packages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-package-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.game-package-item:hover,
.game-package-item:active {
    background: var(--color-primary);
    border-color: var(--color-primary-lighter);
    transform: translateY(-1px);
}

.game-package-item:disabled,
.game-package-item-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.game-package-item:disabled:hover,
.game-package-item-disabled:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-border);
    transform: none;
}

.game-package-main {
    min-width: 0;
    flex: 1;
}

.game-package-main strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}

.game-package-main small {
    display: block;
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.game-package-main .game-package-balance-error {
    color: #ff8a8a;
    font-weight: 600;
}

.game-package-price {
    flex-shrink: 0;
    color: #7ee89a;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .game-order-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Modern user website refresh */
.app-body {
    background:
        radial-gradient(circle at top left, rgba(126, 232, 154, 0.18), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(92, 104, 125, 0.28), transparent 30%),
        linear-gradient(145deg, #181d28 0%, #252c3b 48%, #373F51 100%);
}

.toolbox {
    background: rgba(36, 42, 54, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.toolbox-brand {
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.toolbox-brand span {
    color: #7ee89a;
}

.toolbox-balance {
    background: linear-gradient(135deg, rgba(126, 232, 154, 0.2), rgba(74, 85, 104, 0.7));
    border-color: rgba(126, 232, 154, 0.35);
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.app-card,
.home-banner-card,
.home-game-item,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn {
    background: rgba(45, 52, 66, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.app-card {
    border-radius: 24px;
}

.app-card h2,
.page-title,
.profile-name {
    letter-spacing: 0.2px;
}

.bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(36, 42, 54, 0.9);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.bottom-nav-inner {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0));
}

.bottom-nav-item {
    border-radius: 18px;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, rgba(126, 232, 154, 0.24), rgba(74, 85, 104, 0.62));
    box-shadow: inset 0 0 0 1px rgba(126, 232, 154, 0.24), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-label {
    color: #ffffff;
}

.home-banner-card {
    border-radius: 26px;
    overflow: hidden;
}

.home-banner-media {
    background: #181d28;
}

.home-banner-image {
    transform: scale(1.01);
}

.home-banner-text {
    margin-top: 10px;
}

.home-banner-text p {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(126, 232, 154, 0.14);
    color: #eaffef;
    border: 1px solid rgba(126, 232, 154, 0.18);
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-section-head span {
    display: inline-block;
    margin-bottom: 3px;
    color: #7ee89a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.home-section-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.home-games-grid {
    gap: 10px;
}

.home-game-item {
    position: relative;
    padding: 12px 6px 10px;
    border-radius: 18px;
    overflow: hidden;
}

.home-game-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 48%);
    pointer-events: none;
}

.home-game-link:hover,
.home-game-link:active {
    background: rgba(74, 85, 104, 0.8);
    border-color: rgba(126, 232, 154, 0.35);
    transform: translateY(-2px);
}

.home-game-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.home-game-name {
    position: relative;
    font-size: 11px;
    color: #f5f7fb;
}

.game-packages-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.game-packages-logo-wrap {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.game-order-fields,
.game-package-item {
    background: rgba(36, 42, 54, 0.68);
    border-color: rgba(255, 255, 255, 0.08);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input {
    background: rgba(24, 29, 40, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus {
    border-color: rgba(126, 232, 154, 0.55);
    box-shadow: 0 0 0 3px rgba(126, 232, 154, 0.12);
}

.game-package-price,
.game-history-price {
    color: #7ee89a;
    text-shadow: 0 0 24px rgba(126, 232, 154, 0.24);
}

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, #7ee89a, #58c978);
    color: #18202b;
    box-shadow: 0 14px 30px rgba(88, 201, 120, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.profile-avatar {
    background: linear-gradient(135deg, rgba(126, 232, 154, 0.22), rgba(74, 85, 104, 0.92));
    border-color: rgba(126, 232, 154, 0.38);
}

.profile-menu-btn {
    border-radius: 16px;
}

.profile-menu-icon {
    background: rgba(126, 232, 154, 0.14);
    color: #7ee89a;
}

.contact-photo {
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.contact-item {
    padding: 16px;
    border-radius: 16px;
    border-bottom: 0;
}

.contact-list {
    gap: 10px;
}

.wallet-bank-card {
    border-radius: 18px;
}

.amount-preset {
    border-radius: 999px;
}

.alert {
    border-radius: 14px;
}

@media (min-width: 768px) {
    .bottom-nav {
        left: 32px;
        right: 32px;
        bottom: 16px;
    }

    .home-games-grid {
        gap: 14px;
    }

    .home-game-logo-wrap {
        width: 62px;
        height: 62px;
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        left: 50%;
        right: auto;
        width: min(920px, calc(100% - 96px));
        transform: translateX(-50%);
    }

    .home-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .home-game-item {
        padding: 16px 10px 12px;
    }

    .home-game-logo-wrap {
        width: 68px;
        height: 68px;
    }
}

/* Final premium mobile-app polish */
.app-body {
    --surface-1: #101827;
    --surface-2: #152033;
    --surface-3: #1d2a42;
    --accent: #35e07d;
    --accent-2: #38bdf8;
    --soft-border: rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 18% -5%, rgba(56, 189, 248, 0.18), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(53, 224, 125, 0.15), transparent 28%),
        linear-gradient(180deg, #0a1020 0%, #101827 44%, #172033 100%);
    color: #f6f8fc;
}

.app-content {
    padding: 18px 14px 22px;
}

.toolbox {
    background: rgba(10, 16, 32, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.toolbox-inner {
    padding: 12px 16px;
}

.toolbox-brand {
    font-size: 17px;
    letter-spacing: 1.2px;
}

.toolbox-brand span {
    color: var(--accent);
}

.toolbox-balance {
    padding: 7px 12px;
    background: rgba(53, 224, 125, 0.12);
    border-color: rgba(53, 224, 125, 0.30);
}

.toolbox-balance-amount {
    color: #eafff1;
    font-size: 13px;
}

.app-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(21, 32, 51, 0.96), rgba(16, 24, 39, 0.96));
    border: 1px solid var(--soft-border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.app-card h2,
.page-title {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.app-card p {
    color: #aab6ca;
}

.home-banner-list {
    gap: 14px;
}

.home-banner-card {
    border-radius: 22px;
    border: 1px solid var(--soft-border);
    background: var(--surface-2);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
}

.home-banner-image {
    aspect-ratio: 16 / 6.6;
}

.home-banner-text {
    margin-top: 8px;
}

.home-banner-text p {
    padding: 7px 13px;
    font-size: 13px;
    color: #dfffea;
    background: rgba(53, 224, 125, 0.10);
    border-color: rgba(53, 224, 125, 0.20);
}

.home-section-head {
    margin: 18px 2px 12px;
}

.home-section-head span {
    color: var(--accent-2);
    font-size: 11px;
}

.home-section-head h2 {
    font-size: 21px;
}

.home-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.home-game-item {
    min-height: 112px;
    justify-content: center;
    gap: 8px;
    padding: 12px 7px 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(29, 42, 66, 0.96), rgba(16, 24, 39, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.home-game-item::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

.home-game-link:hover,
.home-game-link:active {
    background: linear-gradient(180deg, rgba(35, 51, 79, 0.98), rgba(19, 30, 49, 0.98));
    border-color: rgba(53, 224, 125, 0.36);
}

.home-game-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-game-logo {
    transform: scale(1.02);
}

.home-game-name {
    color: #f8fbff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.bottom-nav {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 22px;
    background: rgba(10, 16, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
}

.bottom-nav-inner {
    gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
}

.bottom-nav-item {
    min-height: 54px;
    border-radius: 16px;
    color: #8f9db4;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, rgba(53, 224, 125, 0.22), rgba(56, 189, 248, 0.10));
    box-shadow: inset 0 0 0 1px rgba(53, 224, 125, 0.24);
}

.bottom-nav-icon {
    width: 25px;
    height: 25px;
}

.bottom-nav-icon svg {
    width: 21px;
    height: 21px;
}

.bottom-nav-label {
    font-size: 10px;
}

.game-packages-card {
    padding: 16px;
}

.game-packages-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.game-packages-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.game-packages-head h2 {
    font-size: 21px;
}

.game-order-fields {
    padding: 12px;
    border-radius: 18px;
    background: rgba(10, 16, 32, 0.48);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input {
    border-radius: 14px;
    background: #0b1220;
}

.game-package-item {
    padding: 13px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(29, 42, 66, 0.96), rgba(16, 24, 39, 0.96));
}

.game-package-main strong {
    font-size: 14px;
}

.game-package-price {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(53, 224, 125, 0.10);
    border: 1px solid rgba(53, 224, 125, 0.18);
    font-size: 13px;
}

.profile-card {
    background:
        radial-gradient(circle at top, rgba(53, 224, 125, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(21, 32, 51, 0.96), rgba(16, 24, 39, 0.96));
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border: 1px solid rgba(53, 224, 125, 0.32);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
}

.profile-menu-btn {
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(10, 16, 32, 0.42);
}

.profile-menu-icon {
    border-radius: 14px;
}

.wallet-bank-card,
.contact-item,
.wallet-order-item {
    border-radius: 18px;
    background: rgba(10, 16, 32, 0.42);
}

.amount-presets {
    gap: 8px;
}

.amount-preset,
.wallet-copy-phone {
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.22);
    color: #dff5ff;
}

.btn-primary {
    border-radius: 16px;
    background: linear-gradient(135deg, #35e07d, #38bdf8);
    color: #08111f;
}

.alert {
    border-radius: 16px;
}

@media (min-width: 768px) {
    .app-content {
        padding: 28px 32px;
    }

    .home-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .home-game-item {
        min-height: 132px;
    }

    .home-game-logo-wrap {
        width: 70px;
        height: 70px;
    }

    .home-game-name {
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .app-content {
        max-width: 1180px;
        padding: 34px 42px;
    }

    .app-content-home {
        max-width: 1180px;
        padding: 34px 42px;
    }

    .home-banner-media {
        height: 235px;
    }

    .home-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .home-game-item {
        min-height: 145px;
    }

    .home-game-logo-wrap {
        width: 76px;
        height: 76px;
    }

    .bottom-nav {
        width: min(860px, calc(100% - 96px));
    }
}

/* Arcade redesign layer */
.app-body {
    --arcade-bg: #070b16;
    --arcade-panel: #111827;
    --arcade-panel-2: #172033;
    --arcade-border: rgba(148, 163, 184, 0.18);
    --arcade-text: #f8fafc;
    --arcade-muted: #94a3b8;
    --arcade-cyan: #22d3ee;
    --arcade-purple: #a855f7;
    --arcade-green: #34d399;
    background:
        radial-gradient(circle at 14% 4%, rgba(168, 85, 247, 0.26), transparent 28%),
        radial-gradient(circle at 88% 2%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(180deg, #070b16 0%, #0b1020 45%, #101827 100%);
    color: var(--arcade-text);
}

.app-content {
    max-width: 1100px;
    padding: 14px 12px 28px;
}

.toolbox {
    background: rgba(7, 11, 22, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.toolbox-inner {
    padding: 11px 14px;
}

.toolbox-brand {
    font-size: 18px;
    letter-spacing: 1.6px;
}

.toolbox-brand span {
    color: var(--arcade-cyan);
}

.toolbox-balance {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.30);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.10);
}

.toolbox-balance-amount {
    color: #e0faff;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.app-card {
    background:
        linear-gradient(180deg, rgba(23, 32, 51, 0.98), rgba(9, 14, 28, 0.98));
    border: 1px solid var(--arcade-border);
    border-radius: 20px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.app-card h2,
.page-title,
.profile-name {
    color: var(--arcade-text);
}

.app-card p,
.wallet-topup-desc,
.game-packages-count,
.wallet-section-label {
    color: var(--arcade-muted);
}

.home-banner-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.home-banner-media {
    background: #050816;
}

.home-banner-image {
    aspect-ratio: 16 / 7.2;
}

.home-banner-text p {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #f8fafc;
}

.home-section-head {
    margin: 20px 2px 12px;
}

.home-section-head span {
    color: var(--arcade-cyan);
    letter-spacing: 1.2px;
}

.home-section-head h2 {
    font-size: 22px;
    color: var(--arcade-text);
}

.home-games-grid {
    gap: 10px;
}

.home-game-item {
    min-height: 118px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(7, 11, 22, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.home-game-link:hover,
.home-game-link:active {
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.12);
}

.home-game-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.home-game-name {
    color: #f8fafc;
    font-size: 11px;
}

.bottom-nav {
    background: rgba(7, 11, 22, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
}

.bottom-nav-item {
    color: #7f8da5;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.18));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: var(--arcade-cyan);
}

.bottom-nav-item.active .bottom-nav-label {
    color: #ffffff;
}

.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(23, 32, 51, 0.98), rgba(9, 14, 28, 0.98));
}

.game-packages-logo-wrap,
.profile-avatar,
.wallet-bank-image,
.contact-photo {
    border-color: rgba(34, 211, 238, 0.24);
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn {
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card {
    border-color: rgba(34, 211, 238, 0.36);
    background: rgba(15, 23, 42, 0.78);
}

.game-package-price,
.game-history-price {
    color: #07111f;
    background: linear-gradient(135deg, var(--arcade-cyan), var(--arcade-green));
    border: 0;
    text-shadow: none;
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.16);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input {
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--arcade-cyan), var(--arcade-purple));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(168, 85, 247, 0.22);
}

.amount-preset,
.wallet-copy-phone {
    background: rgba(34, 211, 238, 0.10);
    border-color: rgba(34, 211, 238, 0.22);
    color: #d8f9ff;
}

.profile-menu-icon {
    background: rgba(34, 211, 238, 0.10);
    color: var(--arcade-cyan);
}

.contact-item a {
    color: var(--arcade-cyan);
}

@media (min-width: 768px) {
    .app-content,
    .app-content-home {
        max-width: 1120px;
    }

    .home-games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .home-games-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* Desktop layout correction */
@media (min-width: 1024px) {
    .app-body {
        padding-top: 142px;
        padding-bottom: 40px;
        background:
            radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.16), transparent 30%),
            radial-gradient(circle at 95% 2%, rgba(168, 85, 247, 0.14), transparent 28%),
            linear-gradient(180deg, #090e1b 0%, #101827 52%, #0f172a 100%);
    }

    .toolbox {
        height: 72px;
        display: flex;
        align-items: center;
    }

    .toolbox-inner {
        max-width: 1240px;
        padding: 0 32px;
    }

    .toolbox-brand {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .toolbox-balance {
        padding: 10px 20px;
    }

    .toolbox-balance-amount {
        font-size: 15px;
    }

    .bottom-nav {
        top: 84px;
        bottom: auto;
        left: 50%;
        right: auto;
        width: min(760px, calc(100% - 64px));
        transform: translateX(-50%);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.88);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    }

    .bottom-nav-inner {
        height: auto;
        padding: 8px;
        gap: 8px;
    }

    .bottom-nav-item {
        flex-direction: row;
        min-height: 44px;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .bottom-nav-icon {
        width: 22px;
        height: 22px;
    }

    .bottom-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-label {
        font-size: 13px;
        font-weight: 700;
    }

    .app-content,
    .app-content-home {
        width: 100%;
        max-width: 1240px;
        padding: 32px;
        margin: 0 auto;
    }

    .home-banner-list {
        max-width: 100%;
    }

    .home-banner-card {
        border-radius: 24px;
    }

    .home-banner-media {
        height: 280px;
    }

    .home-banner-image {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: cover;
    }

    .home-banner-text {
        text-align: left;
        margin-top: 12px;
    }

    .home-section-head {
        margin: 28px 0 16px;
    }

    .home-section-head h2 {
        font-size: 28px;
    }

    .home-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }

    .home-game-item {
        min-height: 166px;
        padding: 18px 12px 14px;
        border-radius: 22px;
    }

    .home-game-logo-wrap {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .home-game-name {
        font-size: 14px;
        line-height: 1.25;
    }

    .app-card {
        max-width: 900px;
        margin: 0 auto;
        padding: 34px;
        border-radius: 26px;
    }

    .wallet-topup-card,
    .profile-card,
    .wallet-orders-card,
    .game-packages-card {
        max-width: 920px;
    }

    .game-packages-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .game-package-item {
        min-height: 86px;
    }

    .contact-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-banner-text p {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

@media (min-width: 1360px) {
    .home-games-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* Minimal final style: simple, clean, modern */
.app-body {
    --minimal-bg: #111827;
    --minimal-card: #1f2937;
    --minimal-card-soft: #273244;
    --minimal-border: rgba(255, 255, 255, 0.10);
    --minimal-text: #f9fafb;
    --minimal-muted: #b6c0cf;
    --minimal-accent: #4aa3c7;
    background: #111827;
    color: var(--minimal-text);
}

.app-body::before,
.home-game-item::before {
    display: none;
}

.toolbox {
    background: #111827;
    border-bottom: 1px solid var(--minimal-border);
    box-shadow: none;
    backdrop-filter: none;
}

.toolbox-brand {
    text-shadow: none;
}

.toolbox-brand span,
.home-section-head span,
.bottom-nav-item.active .bottom-nav-icon,
.profile-menu-icon,
.contact-item a {
    color: var(--minimal-accent);
}

.toolbox-balance {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    box-shadow: none;
}

.app-card,
.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
}

.home-banner-card {
    background: #0f172a;
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
}

.home-banner-media {
    background: #0f172a;
}

.home-banner-image {
    filter: none;
}

.home-banner-text p {
    color: var(--minimal-text);
    font-weight: 600;
    text-shadow: none;
}

.home-games-grid {
    gap: 10px;
}

.home-game-item {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 16px;
    box-shadow: none;
    transform: none;
}

.home-game-link:hover,
.home-game-link:active {
    background: var(--minimal-card-soft);
    border-color: rgba(74, 163, 199, 0.45);
    box-shadow: none;
    transform: none;
}

.home-game-logo-wrap {
    background: #111827;
    border: 1px solid var(--minimal-border);
    box-shadow: none;
}

.home-game-name {
    color: var(--minimal-text);
    font-weight: 700;
}

.bottom-nav {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
    backdrop-filter: none;
}

.bottom-nav-item {
    color: var(--minimal-muted);
    border-radius: 12px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    background: var(--minimal-card-soft);
    box-shadow: none;
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset {
    background: #172033;
    border: 1px solid var(--minimal-border);
    border-radius: 14px;
    box-shadow: none;
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card,
.amount-preset:hover {
    background: var(--minimal-card-soft);
    border-color: rgba(74, 163, 199, 0.38);
}

.game-package-price,
.game-history-price {
    color: #ffffff;
    background: var(--minimal-accent);
    border: 0;
    box-shadow: none;
}

.game-packages-logo-wrap,
.profile-avatar,
.wallet-bank-image,
.contact-photo {
    border-color: var(--minimal-border);
    box-shadow: none;
}

.profile-menu-icon {
    background: #111827;
}

.profile-menu-logout {
    border-color: rgba(248, 113, 113, 0.26);
}

.profile-menu-logout .profile-menu-icon {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.profile-menu-logout:hover {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.22);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input,
.wallet-topup-form select {
    background: #111827;
    border: 1px solid var(--minimal-border);
    border-radius: 12px;
    color: var(--minimal-text);
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: rgba(74, 163, 199, 0.65);
    box-shadow: 0 0 0 3px rgba(74, 163, 199, 0.12);
}

.btn-primary {
    background: var(--minimal-accent);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: none;
}

.btn-primary:hover {
    background: #60b3d4;
    filter: none;
    box-shadow: none;
}

.alert {
    border-radius: 12px;
    backdrop-filter: none;
}

@media (min-width: 1024px) {
    .app-body {
        background: #111827;
        padding-top: 72px;
        padding-bottom: 92px;
    }

    .bottom-nav {
        top: auto;
        bottom: 10px;
        left: 50%;
        right: auto;
        width: min(760px, calc(100% - 64px));
        transform: translateX(-50%);
        box-shadow: none;
    }
}

/* Game ID and Zone ID side-by-side */
.game-order-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.game-order-fields .form-group:only-child {
    grid-column: 1 / -1;
}

.game-order-fields label {
    font-size: 12px;
}

.game-order-fields input {
    padding: 11px 10px;
    font-size: 13px;
}

@media (min-width: 768px) {
    .game-order-fields {
        gap: 14px;
    }

    .game-order-fields label {
        font-size: 13px;
    }

    .game-order-fields input {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Game package list: 1 2 / 3 4 / 5 6 */
.game-packages-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.game-package-item {
    min-height: 112px;
    padding: 12px 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-radius: 16px;
    text-align: left;
    position: relative;
}

.game-package-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.game-quantity-field {
    padding: 14px;
    background: #172033;
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.22));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-quantity-field label {
    display: inline-block;
    margin-bottom: 0;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.game-quantity-control {
    display: grid;
    grid-template-columns: 36px 52px 36px;
    gap: 6px;
    width: auto;
    flex-shrink: 0;
}

.game-quantity-control button,
.game-quantity-control input {
    height: 36px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.game-quantity-control button {
    cursor: pointer;
}

.game-quantity-control button:hover {
    background: var(--active-accent-soft, rgba(56, 189, 248, 0.16));
}

.game-package-item:has(input[type="radio"]:checked) {
    border-color: var(--active-accent, #38bdf8);
    box-shadow: 0 0 0 3px var(--active-accent-soft, rgba(56, 189, 248, 0.16));
}

.game-package-item:has(input[type="radio"]:checked)::after {
    content: "Selected";
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--active-accent, #38bdf8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.game-buy-btn {
    margin-top: 14px;
}

.game-package-main {
    width: 100%;
}

.game-package-main strong {
    font-size: 13px;
    line-height: 1.25;
}

.game-package-main small {
    font-size: 11px;
    line-height: 1.3;
}

.game-package-price {
    align-self: flex-start;
    max-width: 100%;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
}

.game-package-price small,
.game-package-price em {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
}

.game-package-price small {
    opacity: 0.78;
    text-decoration: line-through;
}

.game-package-price em {
    font-style: normal;
    font-weight: 900;
}

@media (min-width: 768px) {
    .game-packages-list {
        gap: 14px;
    }

    .game-package-item {
        min-height: 124px;
        padding: 15px 14px;
    }

    .game-package-main strong {
        font-size: 15px;
    }

    .game-package-price {
        font-size: 13px;
    }
}

/* Bright clean color layer */
.app-body {
    --bright-bg: #0f172a;
    --bright-card: #1e293b;
    --bright-card-soft: #26364f;
    --bright-border: rgba(125, 211, 252, 0.22);
    --bright-cyan: #38bdf8;
    --bright-purple: #a78bfa;
    --bright-green: #34d399;
    --bright-orange: #fbbf24;
    --bright-text: #f8fafc;
    --bright-muted: #cbd5e1;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--bright-text);
}

.toolbox {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: var(--bright-border);
}

.toolbox-brand span,
.home-section-head span,
.bottom-nav-item.active .bottom-nav-icon,
.profile-menu-icon,
.contact-item a {
    color: var(--bright-cyan);
}

.toolbox-balance {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.12));
    border-color: rgba(56, 189, 248, 0.28);
}

.app-card,
.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(22, 31, 48, 0.98));
    border-color: var(--bright-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.home-banner-card {
    border-color: rgba(56, 189, 248, 0.24);
}

.home-section-head h2::after {
    background: linear-gradient(90deg, var(--bright-cyan), var(--bright-purple));
}

.home-game-item {
    background:
        linear-gradient(var(--bright-card), var(--bright-card)) padding-box,
        linear-gradient(135deg, var(--bright-cyan), var(--bright-purple), var(--bright-green)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28);
}

.home-game-link:hover,
.home-game-link:active {
    background:
        linear-gradient(var(--bright-card-soft), var(--bright-card-soft)) padding-box,
        linear-gradient(135deg, var(--bright-orange), var(--bright-cyan), var(--bright-purple)) border-box;
    box-shadow: 0 18px 32px rgba(56, 189, 248, 0.16);
}

.home-game-logo-wrap {
    background: linear-gradient(180deg, #0f172a, #111827);
    border-color: rgba(255, 255, 255, 0.14);
}

.bottom-nav {
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(125, 211, 252, 0.22);
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.16));
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset {
    background: #172033;
    border-color: rgba(125, 211, 252, 0.18);
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card,
.amount-preset:hover {
    background: #22314a;
    border-color: rgba(56, 189, 248, 0.42);
}

.game-package-price,
.game-history-price,
.btn-primary {
    background: linear-gradient(135deg, var(--bright-cyan), var(--bright-purple));
    color: #ffffff;
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: rgba(56, 189, 248, 0.70);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
}

/* Home game cards highlight */
.home-games-section {
    margin-top: 24px;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-section-head span {
    display: inline-block;
    margin-bottom: 4px;
    color: #6ec6e4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-section-head h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 7px;
    font-size: 22px;
}

.home-section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: #4aa3c7;
}

.home-games-grid {
    gap: 12px;
}

.home-game-item {
    min-height: 132px;
    padding: 12px 8px 10px;
    background:
        linear-gradient(#1f2937, #1f2937) padding-box,
        linear-gradient(135deg, rgba(110, 198, 228, 0.55), rgba(255, 255, 255, 0.08)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-game-link:hover,
.home-game-link:active {
    transform: translateY(-3px);
    background:
        linear-gradient(#273244, #273244) padding-box,
        linear-gradient(135deg, #6ec6e4, rgba(255, 255, 255, 0.14)) border-box;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.home-game-logo-wrap {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-game-logo {
    padding: 5px;
}

.home-game-name {
    margin-top: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .home-games-grid {
        gap: 16px;
    }

    .home-game-item {
        min-height: 148px;
        padding: 16px 10px 12px;
        border-radius: 20px;
    }

    .home-game-logo-wrap {
        width: 76px;
        height: 76px;
        border-radius: 20px;
    }
}

/* Simple clean user website style */
.app-body {
    --simple-bg: #101522;
    --simple-panel: #182033;
    --simple-panel-soft: #1d263a;
    --simple-border: rgba(255, 255, 255, 0.10);
    --simple-text: #f4f7fb;
    --simple-muted: #a7b0c0;
    --simple-accent: #5bc0de;
    --simple-accent-dark: #3b9fbd;
    background: linear-gradient(180deg, #101522 0%, #151c2c 100%);
    color: var(--simple-text);
}

.app-body::before {
    background: none;
}

.toolbox {
    background: rgba(16, 21, 34, 0.96);
    border-bottom: 1px solid var(--simple-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.toolbox-brand {
    text-shadow: none;
}

.toolbox-brand span {
    color: var(--simple-accent);
}

.toolbox-balance {
    background: #1d263a;
    border-color: var(--simple-border);
    box-shadow: none;
}

.app-card,
.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background: var(--simple-panel);
    border: 1px solid var(--simple-border);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.app-card h2,
.page-title,
.profile-name,
.home-section-head h2 {
    color: var(--simple-text);
}

.app-card p,
.wallet-topup-desc,
.game-packages-count,
.wallet-section-label {
    color: var(--simple-muted);
}

.home-banner-card {
    border-radius: 20px;
    background: #0c111d;
    border: 1px solid var(--simple-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.home-banner-media {
    background: #0c111d;
}

.home-banner-image {
    filter: none;
}

.home-banner-text p {
    color: #e8edf5;
    font-weight: 600;
    text-shadow: none;
}

.home-section-head span {
    color: var(--simple-accent);
}

.home-game-item {
    background: var(--simple-panel-soft);
    border: 1px solid var(--simple-border);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.home-game-item::before {
    display: none;
}

.home-game-link:hover,
.home-game-link:active {
    transform: translateY(-1px);
    border-color: rgba(91, 192, 222, 0.45);
    background: #222d43;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.home-game-logo-wrap {
    background: #101522;
    border: 1px solid var(--simple-border);
    box-shadow: none;
}

.home-game-name {
    color: #f4f7fb;
    font-weight: 700;
}

.bottom-nav {
    background: rgba(24, 32, 51, 0.96);
    border: 1px solid var(--simple-border);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.bottom-nav-item {
    color: var(--simple-muted);
    border-radius: 14px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    background: #263149;
    box-shadow: inset 0 0 0 1px rgba(91, 192, 222, 0.24);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: var(--simple-accent);
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset {
    background: #151c2c;
    border: 1px solid var(--simple-border);
    border-radius: 16px;
    box-shadow: none;
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card,
.amount-preset:hover {
    background: #1d263a;
    border-color: rgba(91, 192, 222, 0.36);
}

.game-package-price,
.game-history-price {
    color: #ffffff;
    background: var(--simple-accent-dark);
    border-radius: 999px;
    box-shadow: none;
}

.game-packages-logo-wrap,
.profile-avatar,
.wallet-bank-image,
.contact-photo {
    border-color: var(--simple-border);
    box-shadow: none;
}

.profile-menu-icon {
    background: #222d43;
    color: var(--simple-accent);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input,
.wallet-topup-form select {
    background: #101522;
    border: 1px solid var(--simple-border);
    border-radius: 14px;
    color: #f4f7fb;
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: rgba(91, 192, 222, 0.60);
    box-shadow: 0 0 0 3px rgba(91, 192, 222, 0.12);
}

.btn-primary {
    background: var(--simple-accent-dark);
    color: #ffffff;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--simple-accent);
    filter: none;
    box-shadow: none;
}

.alert {
    border-radius: 14px;
    backdrop-filter: none;
}

/* Final user website polish */
.app-body {
    --shop-bg: #050816;
    --shop-surface: rgba(12, 18, 34, 0.86);
    --shop-surface-strong: rgba(17, 25, 45, 0.94);
    --shop-border: rgba(125, 211, 252, 0.18);
    --shop-border-strong: rgba(34, 211, 238, 0.34);
    --shop-text: #f8fafc;
    --shop-muted: #9fb0c8;
    --shop-cyan: #22d3ee;
    --shop-blue: #38bdf8;
    --shop-purple: #a855f7;
    --shop-green: #34d399;
    background:
        radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.22), transparent 30%),
        radial-gradient(circle at 94% 7%, rgba(168, 85, 247, 0.24), transparent 32%),
        radial-gradient(circle at 50% 112%, rgba(52, 211, 153, 0.10), transparent 28%),
        linear-gradient(180deg, #050816 0%, #0b1020 48%, #111827 100%);
    color: var(--shop-text);
}

.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
    z-index: -1;
}

.toolbox {
    background: rgba(5, 8, 22, 0.88);
    border-bottom: 1px solid var(--shop-border);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.toolbox-brand {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.20);
}

.toolbox-brand span {
    color: var(--shop-cyan);
}

.toolbox-balance {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(168, 85, 247, 0.16));
    border-color: var(--shop-border-strong);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.12);
}

.app-content {
    padding-inline: 14px;
}

.app-card,
.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.08), transparent 28%),
        linear-gradient(180deg, var(--shop-surface-strong), rgba(7, 11, 22, 0.94));
    border: 1px solid var(--shop-border);
    border-radius: 26px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-card h2,
.page-title,
.profile-name,
.home-section-head h2 {
    color: var(--shop-text);
    letter-spacing: 0.2px;
}

.app-card p,
.wallet-topup-desc,
.game-packages-count,
.wallet-section-label {
    color: var(--shop-muted);
}

.home-banner-card {
    border-radius: 28px;
    border: 1px solid rgba(125, 211, 252, 0.20);
    background: #020617;
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.home-banner-media {
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 44%),
        #020617;
}

.home-banner-image {
    filter: saturate(1.08) contrast(1.04);
}

.home-banner-text {
    margin-top: 10px;
}

.home-banner-text p {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #dff8ff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
}

.home-section-head {
    margin-top: 22px;
}

.home-section-head span {
    color: var(--shop-cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-games-grid {
    gap: 10px;
}

.home-game-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 126px;
    padding: 12px 8px 10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 44%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.16);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-game-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.10));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.home-game-link:hover,
.home-game-link:active {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.46);
    box-shadow: 0 20px 42px rgba(34, 211, 238, 0.14);
}

.home-game-link:hover::before,
.home-game-link:active::before {
    opacity: 1;
}

.home-game-logo-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
        #020617;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.40),
        0 0 24px rgba(34, 211, 238, 0.10);
}

.home-game-logo {
    padding: 4px;
}

.home-game-name {
    margin-top: 2px;
    color: #eef7ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    background: rgba(5, 8, 22, 0.90);
    border: 1px solid var(--shop-border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.bottom-nav-inner {
    padding: 8px;
}

.bottom-nav-item {
    color: #8393ad;
    border-radius: 18px;
}

.bottom-nav-item:hover {
    background: rgba(34, 211, 238, 0.08);
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(168, 85, 247, 0.22));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.24);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: var(--shop-cyan);
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.62));
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card,
.amount-preset:hover {
    border-color: rgba(34, 211, 238, 0.40);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 13, 28, 0.86));
}

.game-package-price,
.game-history-price {
    color: #06121f;
    background: linear-gradient(135deg, var(--shop-cyan), var(--shop-green));
    border: 0;
    border-radius: 999px;
    font-weight: 900;
}

.game-packages-logo-wrap,
.profile-avatar,
.wallet-bank-image,
.contact-photo {
    border-color: rgba(34, 211, 238, 0.30);
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.10);
}

.profile-menu-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.14));
    color: var(--shop-cyan);
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input,
.wallet-topup-form select {
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 16px;
    color: #f8fafc;
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.btn-primary {
    border-radius: 18px;
    background: linear-gradient(135deg, var(--shop-cyan), var(--shop-purple));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(168, 85, 247, 0.24);
}

.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 22px 46px rgba(34, 211, 238, 0.18);
}

.alert {
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.34);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.34);
}

.alert-info {
    background: rgba(34, 211, 238, 0.10);
    border-color: rgba(34, 211, 238, 0.28);
}

@media (min-width: 768px) {
    .app-content,
    .app-content-home {
        padding-inline: 28px;
    }

    .home-games-grid {
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .app-body {
        padding-top: 138px;
    }

    .toolbox {
        border-bottom-color: rgba(125, 211, 252, 0.14);
    }

    .bottom-nav {
        top: 82px;
        bottom: auto;
        left: 50%;
        right: auto;
        width: min(790px, calc(100% - 80px));
        transform: translateX(-50%);
        border-radius: 22px;
    }

    .app-content,
    .app-content-home {
        max-width: 1200px;
        padding: 34px;
    }

    .home-banner-media {
        height: 300px;
    }

    .home-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }

    .home-game-item {
        min-height: 158px;
        padding: 18px 12px 14px;
    }

    .home-game-logo-wrap {
        width: 80px;
        height: 80px;
        border-radius: 22px;
    }

    .home-game-name {
        font-size: 14px;
    }
}

@media (min-width: 1360px) {
    .home-games-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* Minimal final override */
.app-body {
    --minimal-bg: #111827;
    --minimal-card: #1f2937;
    --minimal-card-soft: #273244;
    --minimal-border: rgba(255, 255, 255, 0.10);
    --minimal-text: #f9fafb;
    --minimal-muted: #b6c0cf;
    --minimal-accent: #4aa3c7;
    background: #111827;
    color: var(--minimal-text);
}

.app-body::before,
.home-game-item::before {
    display: none;
}

.toolbox {
    background: #111827;
    border-bottom: 1px solid var(--minimal-border);
    box-shadow: none;
    backdrop-filter: none;
}

.toolbox-brand {
    text-shadow: none;
}

.toolbox-brand span,
.home-section-head span,
.bottom-nav-item.active .bottom-nav-icon,
.profile-menu-icon,
.contact-item a {
    color: var(--minimal-accent);
}

.toolbox-balance {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    box-shadow: none;
}

.app-card,
.game-packages-card,
.wallet-topup-card,
.profile-card,
.wallet-orders-card {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
}

.home-banner-card {
    background: #0f172a;
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
}

.home-banner-media {
    background: #0f172a;
}

.home-banner-image {
    filter: none;
}

.home-banner-text p {
    color: var(--minimal-text);
    font-weight: 600;
    text-shadow: none;
}

.home-game-item {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 16px;
    box-shadow: none;
    transform: none;
}

.home-game-link:hover,
.home-game-link:active {
    background: var(--minimal-card-soft);
    border-color: rgba(74, 163, 199, 0.45);
    box-shadow: none;
    transform: none;
}

.home-game-logo-wrap {
    background: #111827;
    border: 1px solid var(--minimal-border);
    box-shadow: none;
}

.home-game-name {
    color: var(--minimal-text);
    font-weight: 700;
}

.bottom-nav {
    background: var(--minimal-card);
    border: 1px solid var(--minimal-border);
    border-radius: 18px;
    box-shadow: none;
    backdrop-filter: none;
}

.bottom-nav-item {
    color: var(--minimal-muted);
    border-radius: 12px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    background: var(--minimal-card-soft);
    box-shadow: none;
}

.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset {
    background: #172033;
    border: 1px solid var(--minimal-border);
    border-radius: 14px;
    box-shadow: none;
}

.game-package-item:hover,
.game-package-item:active,
.profile-menu-btn:hover,
.wallet-bank-option:hover .wallet-bank-card,
.amount-preset:hover {
    background: var(--minimal-card-soft);
    border-color: rgba(74, 163, 199, 0.38);
}

.game-package-price,
.game-history-price {
    color: #ffffff;
    background: var(--minimal-accent);
    border: 0;
    box-shadow: none;
}

.game-packages-logo-wrap,
.profile-avatar,
.wallet-bank-image,
.contact-photo {
    border-color: var(--minimal-border);
    box-shadow: none;
}

.profile-menu-icon {
    background: #111827;
}

.game-order-fields input,
.profile-form input,
.wallet-topup-form input,
.wallet-topup-form select {
    background: #111827;
    border: 1px solid var(--minimal-border);
    border-radius: 12px;
    color: var(--minimal-text);
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: rgba(74, 163, 199, 0.65);
    box-shadow: 0 0 0 3px rgba(74, 163, 199, 0.12);
}

.btn-primary {
    background: var(--minimal-accent);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: none;
}

.btn-primary:hover {
    background: #60b3d4;
    filter: none;
    box-shadow: none;
}

.alert {
    border-radius: 12px;
    backdrop-filter: none;
}

@media (min-width: 1024px) {
    .app-body {
        background: #111827;
    }

    .bottom-nav {
        box-shadow: none;
    }
}

/* PC bottom navigation stays at bottom */
@media (min-width: 1024px) {
    .app-body {
        padding-top: 72px;
        padding-bottom: 92px;
    }

    .bottom-nav {
        top: auto;
        bottom: 10px;
        left: 50%;
        right: auto;
        width: min(760px, calc(100% - 64px));
        transform: translateX(-50%);
    }
}

/* Auto moving banner text */
.home-banner-text {
    overflow: hidden;
    width: 100%;
}

.home-banner-text p {
    display: inline-block;
    min-width: max-content;
    padding-left: 100%;
    white-space: nowrap;
    animation: banner-text-marquee 12s linear infinite;
}

@keyframes banner-text-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Topup history detail view */
.topup-history-item {
    display: block;
}

.topup-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.topup-history-summary::-webkit-details-marker {
    display: none;
}

.topup-history-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    flex-shrink: 0;
}

.topup-history-icon svg {
    width: 18px;
    height: 18px;
}

.topup-history-item[open] .topup-history-icon {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.32);
    color: #34d399;
}

.topup-history-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.topup-history-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.topup-history-detail-grid div {
    padding: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.topup-history-detail-grid span,
.topup-history-proof > span {
    display: block;
    margin-bottom: 4px;
    color: #b6c0cf;
    font-size: 12px;
}

.topup-history-detail-grid strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.topup-history-proof {
    margin-top: 12px;
}

.topup-history-proof a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: #0f172a;
}

.topup-history-proof img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #0f172a;
}

.topup-history-proof p {
    margin: 0;
    color: #b6c0cf;
    font-size: 13px;
}

/* Guest login/signup prompt */
.guest-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
}

.guest-auth-modal.open {
    display: flex;
}

.guest-auth-card {
    position: relative;
    width: min(360px, 100%);
    padding: 28px 22px 22px;
    background: #1f2937;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.guest-auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.guest-auth-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
}

.guest-auth-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.guest-auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.guest-auth-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.guest-auth-login {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
}

.guest-auth-signup {
    background: linear-gradient(135deg, #34d399, #a78bfa);
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #172033;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 16px;
}

.leaderboard-item-current {
    border-color: rgba(52, 211, 153, 0.42);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.08));
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.leaderboard-rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
}

.leaderboard-rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #94a3b8);
    color: #111827;
}

.leaderboard-rank-3 {
    background: linear-gradient(135deg, #f97316, #b45309);
}

.leaderboard-main {
    min-width: 0;
}

.leaderboard-main strong,
.leaderboard-balance strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}

.leaderboard-main small,
.leaderboard-balance small {
    display: block;
    margin-top: 3px;
    color: #b6c0cf;
    font-size: 12px;
}

.leaderboard-balance {
    text-align: right;
}

.leaderboard-balance strong {
    color: #34d399;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .leaderboard-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .leaderboard-balance {
        grid-column: 2;
        text-align: left;
    }
}

/* User selected website color */
.app-body {
    --active-accent: var(--user-accent, #38bdf8);
    --active-accent-soft: rgba(var(--user-accent-rgb, 56, 189, 248), 0.16);
    --active-accent-border: rgba(var(--user-accent-rgb, 56, 189, 248), 0.34);
    background:
        radial-gradient(circle at top left, var(--active-accent-soft), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.toolbox-brand span,
.home-section-head span,
.bottom-nav-item.active .bottom-nav-icon,
.profile-menu-icon,
.contact-item a,
.auth-footer a {
    color: var(--active-accent);
}

.toolbox-balance,
.app-card,
.home-banner-card,
.bottom-nav,
.game-order-fields,
.game-package-item,
.wallet-bank-card,
.wallet-order-item,
.contact-item,
.profile-menu-btn,
.amount-preset,
.leaderboard-item {
    border-color: var(--active-accent-border);
}

.home-section-head h2::after,
.btn-primary,
.game-package-price,
.game-history-price {
    background: var(--active-accent);
}

.btn-primary {
    color: #ffffff;
}

.bottom-nav-item.active,
.profile-menu-icon,
.topup-history-icon,
.color-preview,
.color-custom {
    background: var(--active-accent-soft);
}

.home-game-item {
    background:
        linear-gradient(#1f2937, #1f2937) padding-box,
        linear-gradient(135deg, var(--active-accent), rgba(255, 255, 255, 0.08)) border-box;
}

.home-game-link:hover,
.home-game-link:active {
    background:
        linear-gradient(#273244, #273244) padding-box,
        linear-gradient(135deg, var(--active-accent), rgba(255, 255, 255, 0.16)) border-box;
}

.game-order-fields input:focus,
.profile-form input:focus,
.wallet-topup-form input:focus,
.wallet-topup-form select:focus {
    border-color: var(--active-accent);
    box-shadow: 0 0 0 3px var(--active-accent-soft);
}

/* Color settings page */
.color-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.color-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 14px;
    border: 1px solid var(--active-accent-border);
    border-radius: 16px;
}

.color-preview span {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--preview-color);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.color-preview strong {
    color: #ffffff;
    font-size: 15px;
}

.color-preview small {
    color: #cbd5e1;
    font-size: 12px;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.color-preset {
    height: 54px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #172033;
    cursor: pointer;
}

.color-preset span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--preset-color);
}

.color-preset.active {
    border-color: var(--active-accent);
    box-shadow: 0 0 0 3px var(--active-accent-soft);
}

.color-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--active-accent-border);
    border-radius: 16px;
}

.color-custom span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.color-custom input {
    width: 70px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

/* DevCore page */
.devcore-card {
    text-align: center;
}

.devcore-logo {
    overflow: hidden;
    width: 96px;
    max-width: 42%;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.34));
}

.devcore-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.devcore-badge {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 20px;
    background: var(--active-accent-soft, rgba(56, 189, 248, 0.16));
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.34));
    color: var(--active-accent, #38bdf8);
    font-weight: 900;
}

.devcore-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

.devcore-item {
    padding: 12px;
    background: #172033;
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.22));
    border-radius: 14px;
}

.devcore-item strong,
.devcore-item span {
    display: block;
}

.devcore-item strong {
    color: #ffffff;
    font-size: 14px;
}

.devcore-item span {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
}

.devcore-content-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    text-align: left;
}

.devcore-content-item {
    overflow: hidden;
    background: #172033;
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.22));
    border-radius: 18px;
}

.devcore-content-image {
    background: #0f172a;
}

.devcore-content-image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.devcore-content-item p {
    margin: 0;
    padding: 14px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

/* Plain package discount price */
.game-package-price {
    padding: 0;
    background: transparent;
    color: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

.game-package-price small {
    color: #b6c0cf;
}

.game-package-price em {
    color: #34d399;
}

/* Plain game history price */
.game-history-price {
    padding: 0;
    background: transparent;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Home banner image slider */
.home-banner-slider {
    position: relative;
}

.home-banner-slide + .home-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.home-banner-slider-2 .home-banner-slide {
    animation: home-banner-fade-2 8s infinite;
}

.home-banner-slider-3 .home-banner-slide {
    animation: home-banner-fade-3 12s infinite;
}

.home-banner-slider-2 .home-banner-slide:nth-child(1),
.home-banner-slider-3 .home-banner-slide:nth-child(1) {
    animation-delay: 0s;
}

.home-banner-slider-2 .home-banner-slide:nth-child(2),
.home-banner-slider-3 .home-banner-slide:nth-child(2) {
    animation-delay: 4s;
}

.home-banner-slider-3 .home-banner-slide:nth-child(3) {
    animation-delay: 8s;
}

@keyframes home-banner-fade-2 {
    0%,
    45% {
        opacity: 1;
    }

    50%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes home-banner-fade-3 {
    0%,
    28% {
        opacity: 1;
    }

    33%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Warning popup */
.warning-popup {
    position: fixed;
    inset: 0;
    z-index: 650;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
}

.warning-popup.open {
    display: flex;
}

.warning-popup-card {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    border-radius: 20px;
    background: #111827;
    border: 1px solid var(--active-accent-border, rgba(56, 189, 248, 0.28));
}

.warning-popup-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}

.warning-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.56);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (min-width: 768px) {
    .devcore-content-image img {
        height: 190px;
    }
}

.home-banner-text p {
    color: #facc15;
}

