:root {
    color-scheme: dark;
    --bg: #111827;
    --panel: #161f2e;
    --panel-strong: #1b2738;
    --accent: #27b4ff;
    --accent-strong: #ff8a00;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --shadow: 0 18px 35px rgba(3, 10, 22, 0.55);
    --header-bg: rgba(10, 17, 29, 0.95);
    --input-bg: rgba(15, 23, 42, 0.9);
    --border-color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-strong: #f1f5f9;
    --accent: #0077b3;
    --accent-strong: #d97706;
    --text: #1e293b;
    --muted: #64748b;
    --shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(241, 245, 249, 0.9);
    --border-color: rgba(148, 163, 184, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Oxanium", "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at top, #1a2540 0%, #0c121d 55%, #0a0f17 100%);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body,
body[data-theme="light"] {
    background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 50%, #ffffff 100%);
}

img {
    display: block;
    max-width: 100%;
}

/* Header styles moved to header.css */


.auth__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.auth__input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 13px;
    width: 110px;
    transition: all 0.2s ease;
}

.auth__input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth__input::placeholder {
    color: var(--muted);
}

.auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #0077b3 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth__submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 180, 255, 0.4);
}

.auth__button {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #fbbf24;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.auth__button--icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #00A3FF;
    /* Bright Blue */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth__button--icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
    /* Visual centering */
}

.auth__button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.auth__register-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.auth__register-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(39, 180, 255, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
}

.theme-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-icon {
    display: none;
}

[data-theme="dark"] .theme-icon--dark,
:root:not([data-theme]) .theme-icon--dark {
    display: block;
}

[data-theme="light"] .theme-icon--light {
    display: block;
}

[data-theme="auto"] .theme-icon--auto {
    display: block;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.theme-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-dropdown__item:hover {
    background: rgba(39, 180, 255, 0.1);
    color: var(--accent);
}

.theme-dropdown__item.is-active {
    background: rgba(39, 180, 255, 0.15);
    color: var(--accent);
}

/* Old button styles kept for modals */
.auth__button {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border: none;
    color: #0b1020;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.auth__button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero {
    position: relative;
    min-height: 360px;
    background: url("../assets/images/backgrounds/home-2.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(8, 12, 22, 0.65), rgba(8, 12, 22, 0.2));
}

.hero__content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
}

.hero__content h1 {
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: 0.12em;
    color: #f8fafc;
}

.hero__content p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.notice {
    background: rgba(255, 138, 0, 0.12);
    border: 1px solid rgba(255, 138, 0, 0.3);
    color: #fbbf24;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.notice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    background: rgba(14, 21, 34, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 28px;
    align-items: center;
}

.notice-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(140deg, #f59e0b, #ef4444);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b1020;
    font-size: 22px;
}

.notice-card__body h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.notice-card__body p {
    color: var(--muted);
}

.notice-card__actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-card__link {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #081423;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notice-card__link--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.block__header h2 {
    font-size: 28px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.block__header p {
    margin-top: 6px;
    color: var(--muted);
}

.card-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, rgba(21, 31, 49, 0.95), rgba(13, 19, 32, 0.95));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.card__image {
    flex: 1;
    min-height: 140px;
    background-size: cover;
    background-position: center;
}

.card__body {
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.9));
}

.card__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(39, 180, 255, 0.2);
    color: var(--accent);
    margin-bottom: 8px;
}

.card__body h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.card__body p {
    font-size: 13px;
    color: var(--muted);
}

.card__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
}

.featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: rgba(10, 15, 25, 0.7);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.featured__card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 140px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.featured__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.featured__title {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f8fafc;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.75);
}

.modal__content {
    position: relative;
    width: min(860px, 94vw);
    background: #0f172a;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow);
    padding: 0;
    z-index: 1;
}

.auth-modal {
    display: grid !important;
    grid-template-columns: 360px 1fr !important;
    min-height: 420px;
    overflow: hidden;
}

.auth-modal__media {
    position: relative;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
    background: #0b1220;
}

.auth-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Ensure face is not cut off */
    display: block;
}

.auth-modal__media-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.auth-modal__body {
    padding: 18px 20px 22px;
}

.auth-modal__tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 14px;
}

.auth-modal__tabs button {
    background: transparent;
    border: none;
    color: var(--muted);
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.auth-modal__tabs button.is-active {
    color: #fbbf24;
    border-bottom: 2px solid #fbbf24;
}

.auth-modal__panel {
    display: none;
}

.auth-modal__panel.is-active {
    display: block;
}

.auth-modal__panel h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-modal__field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.auth-modal__field input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    width: 100%;
}

.auth-modal__action {
    width: 100%;
    margin-top: 8px;
    background: #8b6b19;
    border: none;
    color: #0b1020;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-modal__field--with-btn {
    display: flex;
    gap: 8px;
    padding-right: 6px;
}

.auth-modal__field--with-btn input {
    flex: 1;
}

.auth-modal__otp-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #27b4ff 0%, #0077b3 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.auth-modal__otp-btn:hover {
    background: linear-gradient(135deg, #3cc5ff 0%, #0088cc 100%);
    transform: translateY(-1px);
}

.auth-modal__otp-btn:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
}

.auth-modal__check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
}

.auth-modal__check input {
    width: 16px;
    height: 16px;
    accent-color: #fbbf24;
    margin-top: 2px;
}

.auth-modal__notify {
    margin-top: 14px;
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
}

.auth-modal__notify h5 {
    margin-bottom: 6px;
    font-size: 13px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-modal__notify ul {
    margin-left: 16px;
    color: var(--text);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.modal__close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.modal__form {
    display: grid;
    gap: 10px;
}

.modal__form input {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
}

.modal__form button {
    margin-top: 6px;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border: none;
    color: #081423;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .top-bar__inner {
        flex-wrap: wrap;
    }
}

/* NEW HOMEPAGE STYLES (ONE789) */

/* 1. Featured Top Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    text-decoration: none;
    background: #000;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-card__bg {
    transform: scale(1.05);
}

.featured-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
}

.featured-card__title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 2. Bong88 Section */
.section-block {
    margin-bottom: 40px;
}

.block-header {
    margin-bottom: 20px;
}

.block-header h2 {
    color: #2dacff;
    font-size: 24px;
    text-transform: uppercase;
}

.bong88-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
}

/* Large Banner */
.bong88-banner {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    position: relative;
    box-shadow: var(--shadow);
}

.bong88-banner__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.bong88-banner:hover .bong88-banner__bg {
    transform: scale(1.05);
}

/* Right Grid */
.bong88-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-content: start;
}

/* Small Game Card */
.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    text-decoration: none;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s;
}

.game-card:hover {
    border-color: #2dacff;
    transform: translateY(-2px);
}

.game-card__image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.game-card__info {
    padding: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #0f172a);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.game-card__info h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.game-card__info p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

/* Special Orange Card (Saba) */
.special-card {
    background: linear-gradient(135deg, #ff9f0a, #ff6b00);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.special-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.special-card__content {
    text-align: center;
    color: #fff;
}

.special-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #ff6b00;
    font-weight: 900;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.special-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .bong88-layout {
        grid-template-columns: 1fr;
    }

    .bong88-banner {
        min-height: 200px;
    }
}

/* Header nav/auth styles are in header.css */

.notice-card {
    grid-template-columns: 1fr;
    text-align: center;
}

.notice-card__icon {
    margin: 0 auto;
}

.auth-modal {
    grid-template-columns: 1fr;
}

.auth-modal__media {
    border-radius: 18px 18px 0 0;
    max-height: 260px;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease forwards;
    font-size: 14px;
    line-height: 1.5;
}

.toast--success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left-width: 4px;
    backdrop-filter: blur(10px);
}

.toast--error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left-width: 4px;
    backdrop-filter: blur(10px);
}

.toast--fading {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Play Button Overlay */
.card__image {
    position: relative;
    overflow: hidden;
}

.card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(253, 185, 49, 0.6);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    cursor: pointer;
    pointer-events: none;
    /* Let clicks pass through to link */
}

.card__play-btn svg {
    width: 24px;
    height: 24px;
    fill: #000;
    margin-left: 4px;
    /* Optical adjustment */
}

.featured__card:hover .featured__image::before,
.card:hover .card__image::before {
    opacity: 1;
}

.featured__card:hover .card__play-btn,
.card:hover .card__play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile: Always show play button but smaller/transparent */
@media (max-width: 768px) {
    .card__play-btn {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.9);
        width: 45px;
        height: 45px;
    }

    .card__play-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================= */
/* COMPREHENSIVE MOBILE STYLES */
/* ============================= */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .featured__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .games__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .section__title {
        font-size: 18px;
    }

    .hero__title {
        font-size: 28px;
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {

    /* Header */
    .top-bar__inner {
        padding: 10px 15px;
    }

    .nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block !important;
    }

    .auth {
        gap: 8px;
    }

    .auth__input {
        width: 80px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .auth__submit {
        width: 32px;
        height: 32px;
    }

    /* Banner/Hero */
    .hero__title {
        font-size: 22px;
    }

    .hero__subtitle {
        font-size: 13px;
    }

    /* Game grids */
    .featured__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .games__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .featured__card,
    .card {
        border-radius: 10px;
    }

    .card__title {
        font-size: 12px;
        padding: 8px;
    }

    /* Sections */
    .section {
        padding: 20px 0;
    }

    .section__title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* Bottom nav */
    .bottom-nav {
        display: flex !important;
    }

    /* Modal */
    .modal__content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal__header {
        padding: 15px;
    }

    .modal__body {
        padding: 15px;
    }

    /* Forms */
    .form-group {
        margin-bottom: 12px;
    }

    .form-input {
        padding: 12px;
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 20px 15px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small mobile: < 480px */
@media (max-width: 480px) {

    .featured__grid,
    .games__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero__title {
        font-size: 18px;
    }

    .section__title {
        font-size: 14px;
    }

    .card__title {
        font-size: 11px;
        padding: 6px;
    }

    /* Auth buttons */
    .auth .btn-register,
    .auth .btn-login {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Tabs */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {

    .featured__card,
    .card,
    .btn-primary,
    .btn-secondary,
    .nav a,
    .tab-item {
        min-height: 44px;
    }

    .form-input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px;
    }

    /* Larger tap targets */
    .auth__submit {
        width: 44px;
        height: 44px;
    }
}

/* Mobile bottom navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    z-index: 100;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 10px;
    padding: 5px 10px;
}

.bottom-nav a.active {
    color: #f59e0b;
}

.bottom-nav svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f59e0b;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}@media (max-width: 768px) {
    .featured-grid { grid-template-columns: 1fr; gap: 12px; }
    .featured-card { height: 200px; }
    .section-block { padding: 0 12px; }
    .bong88-layout { grid-template-columns: 1fr; }
    .bong88-banner { min-height: 220px; }
    .bong88-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .auth-modal__media { display: none; }
    .auth-modal__body { width: 100%; padding: 20px 16px; }
    .auth-modal__tabs button { font-size: 14px; padding: 10px; }
    .auth-modal__field input { font-size: 14px; }
}

@media (max-width: 480px) {
    body { background: #0b121c; }
    .content { padding: 12px; }
    .featured-card__title { font-size: 14px; }
    .game-card { height: 160px; }
    .auth-modal__action { width: 100%; }
    header .nav, header .actions { display: none; }
}

/* Deep mobile tweaks */
@media (max-width: 540px) {
    .content { padding: 10px; }
    .featured-card { height: 180px; }
    .section-block { padding: 0 6px; }
    .bong88-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .block-header h2 { font-size: 18px; }
    .auth-modal__content { width: 100%; max-width: 100%; margin: 0 6px; }
    .auth-modal__body { padding: 18px 12px; }
    .auth-modal__field input { font-size: 13px; padding: 10px; }
}
/* Auth modal UI refresh */
.modal__content.auth-modal {
    max-width: 920px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0f19 0%, #0c1220 60%, #10192d 100%);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.auth-modal {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    min-height: 460px;
}
.auth-modal__media {
    position: relative;
    transform: rotate(-3deg) scale(1.05);
    margin-left: -24px;
    border-radius: 16px;
}
.auth-modal__media-info { bottom: 22px; font-weight: 800; letter-spacing: 0.08em; }

.auth-modal__body { padding: 20px 24px 24px; background: rgba(15,20,32,0.92); }
.auth-modal__tabs { margin-bottom: 16px; }
.auth-modal__tabs button { font-weight: 700; color: #94a3b8; padding: 12px 0; }
.auth-modal__tabs button.is-active { color: #fbbf24; border-bottom: 3px solid #fbbf24; }

.auth-modal__panel h4 { font-size: 18px; margin-bottom: 12px; color: #e2e8f0; }
.auth-modal__field { background: #0f1624; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; }
.auth-modal__field input { padding-left: 6px; font-weight: 600; }
.auth-modal__action { background: linear-gradient(135deg,#c6961c,#b38212); color:#0b0f19; font-size:15px; padding: 14px; border-radius: 12px; }
.auth-modal__action:hover { filter: brightness(1.05); }

.auth-modal__field--with-btn { align-items: stretch; }
.auth-modal__otp-btn { border-radius: 10px; font-weight: 800; }

.auth-modal__check { display:flex; align-items:center; gap:10px; margin:12px 0; color:#cbd5e1; font-size:13px; }
.auth-modal__check input { width:16px; height:16px; accent-color:#fbbf24; }

.auth-modal__notify { background:#0f1624; border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:12px 14px; color:#cbd5e1; }
.auth-modal__notify h5 { color:#e2e8f0; margin-bottom:8px; }
.auth-modal__notify li { margin-left: 18px; list-style: disc; }

/* OTP guide panel for register modal */
.auth-modal__media {
    background: transparent;
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal__media img {
    display: none;
}

.auth-modal__guide {
    width: 100%;
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(3, 8, 20, 0.35);
}

.auth-modal__guide h3 {
    margin: 0 0 8px;
    color: #fbbf24;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-modal__guide p {
    margin: 0 0 10px;
    color: #cbd5e1;
    font-size: 13px;
}

.auth-modal__guide ol {
    margin: 0 0 12px 18px;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.auth-modal__note {
    border: 1px dashed rgba(251, 191, 36, 0.6);
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.08);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 860px) {
    .auth-modal__media {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    }
}

@media (max-width: 768px) {
    .auth-modal { grid-template-columns: 1fr !important; }
    .auth-modal__media { display:none; }
    .modal__content.auth-modal { max-width: 100%; }
}
/* Fix auth modal media alignment + remove gold border */
.modal__content.auth-modal {
    border: none !important;
}
.auth-modal__media {
    transform: none !important;
    margin-left: 0 !important;
}
.auth-modal__media img {
    object-position: center center !important;
}
/* Desktop auth modal alignment fix */
@media (min-width: 769px) {
    .auth-modal__media {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: #0b1220;
    }
    .auth-modal__media img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    }
    .auth-modal__media-info {
        left: 50%;
        transform: translateX(-50%);
        bottom: 18px;
    }
}
/* Remove orange frame + force clean image crop */
.auth-modal__media {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.auth-modal__media img {
    width: 100% !important;
    max-width: 300px !important;
    height: 360px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}
.auth-modal__media-info {
    background: rgba(0,0,0,0.65) !important;
    border: none !important;
}
/* Stretch auth image to full media panel height */
.auth-modal__media {
    align-items: stretch !important;
}
.auth-modal__media img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

/* Final auth modal guide overrides */
.auth-modal__media {
    transform: none !important;
    margin-left: 0 !important;
    padding: 18px !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-right: 1px solid rgba(148, 163, 184, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-modal__media img,
.auth-modal__media-info {
    display: none !important;
}

@media (max-width: 768px) {
    .auth-modal__media {
        border-right: none !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
    }
}
