/* =========================================================
   AZIEL V2.5 FINAL MOBILE.CSS
   Responsive Utilities Only
   No theme logic / no page redesign / no duplicate components
========================================================= */

/* =========================
   DESKTOP: HIDE MOBILE-ONLY UI
========================= */

@media (min-width: 769px) {

    .az-mobile-menu-btn,
    .az-mobile-drawer,
    .az-mobile-drawer-overlay,
    .mobile-only {
        display: none !important;
    }
}

/* =========================
   MOBILE GLOBAL
========================= */

@media (max-width: 768px) {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body {
        margin: 0;
        -webkit-text-size-adjust: 100%;
    }

    img,
    video,
    canvas,
    svg {
        max-width: 100%;
    }

    main,
    .az-page,
    .az-home,
    .main-content,
    .page-container,
    .section-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }

    .az-page,
    .main-content,
    .page-container,
    .section-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .az-section,
    .home-section,
    section {
        max-width: 100%;
    }
}

/* =========================
   MOBILE TYPOGRAPHY
========================= */

@media (max-width: 768px) {
    h1 {
        font-size: clamp(32px, 9vw, 42px) !important;
        line-height: 1.02 !important;
        letter-spacing: -1.6px !important;
    }

    h2 {
        font-size: clamp(22px, 6vw, 28px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.8px !important;
    }

    h3 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
    }

    small {
        font-size: 12px;
    }
}

/* =========================
   MOBILE SECTION HEADERS
========================= */

@media (max-width: 768px) {

    .az-section-head,
    .section-heading,
    .section-header,
    .home-section-header,
    .card-head {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .az-section-head h2,
    .section-heading h2,
    .section-header h2,
    .home-section-header h2,
    .card-head h2 {
        margin: 0 !important;
    }

    .az-section-head a,
    .section-header a,
    .home-section-header a,
    .card-head a {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* =========================
   MOBILE GRIDS
========================= */

@media (max-width: 768px) {

    .grid,
    .az-grid,
    .dashboard-grid,
    .wallet-grid,
    .support-page,
    .az-dashboard-grid,
    .footer-grid,
    .az-footer-grid {
        grid-template-columns: 1fr !important;
    }

    .form-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {

    .quick-amounts,
    .payment-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   MOBILE CARDS
========================= */

@media (max-width: 768px) {

    .card,
    .az-card,
    .wallet-card,
    .support-card,
    .az-panel,
    .content-card,
    .form-card {
        max-width: 100% !important;
    }

    .support-card,
    .az-panel {
        border-radius: 22px !important;
    }

    .wallet-card,
    .content-card,
    .form-card {
        overflow: visible;
    }
}

/* =========================
   HOME MOBILE
========================= */

@media (max-width: 768px) {
    .az-home {
        width: calc(100% - 24px) !important;
        margin-top: 12px !important;
    }

    .az-banner-zone {
        height: 220px !important;
        margin-top: 14px !important;
    }

    .az-banner-track {
        height: 200px !important;
    }

    .az-banner-card {
        width: 82vw !important;
        height: 190px !important;
        border-radius: 18px !important;
    }

    .az-banner-dots {
        bottom: 22px !important;
    }

    .popular-game-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 14px !important;
        padding: 2px 2px 10px !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
    }

    .popular-game-grid::-webkit-scrollbar {
        display: none !important;
    }

    .popular-game-card {
        min-width: 86px !important;
        min-height: unset !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        scroll-snap-align: start !important;
        padding-bottom: 0 !important;
    }

    .popular-game-card img {
        width: 72px !important;
        height: 72px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }

    .popular-game-card h3 {
        margin: 9px 0 3px !important;
        text-align: center !important;
        font-size: 11px !important;
    }

    .popular-game-card p {
        margin: 0 !important;
        text-align: center !important;
        font-size: 10px !important;
    }

    .az-trust-row {
        display: none !important;
    }
}

/* =========================
   ACCOUNT MOBILE
========================= */

@media (max-width: 900px) {
    body.account-page::after {
        display: none !important;
    }

    .account-layout {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 26px 16px 80px !important;
    }

    .account-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-bottom: 40px !important;
    }

    .account-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;

        width: 82% !important;
        max-width: 318px !important;
        height: 100vh !important;

        padding: 88px 20px 24px !important;

        background: var(--surface-strong) !important;
        border-right: 1px solid var(--border) !important;
        box-shadow: 18px 0 60px rgba(0, 0, 0, .20) !important;

        transform: translateX(-110%) !important;
        transition: transform .28s ease !important;

        z-index: 999999 !important;
        overflow-y: auto !important;
    }

    .account-sidebar.show {
        transform: translateX(0) !important;
    }

    .account-drawer-overlay {
        position: fixed !important;
        inset: 0 !important;

        display: block !important;

        background: rgba(0, 0, 0, .48) !important;
        backdrop-filter: blur(6px) !important;

        opacity: 0 !important;
        visibility: hidden !important;

        transition: .25s ease !important;
        z-index: 999998 !important;
    }

    .account-drawer-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.drawer-open {
        overflow: hidden !important;
    }

    .page-title {
        margin-bottom: 30px !important;
    }

    .page-title p {
        max-width: 340px !important;
        margin-top: 14px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 18px !important;
    }

    .dash-card strong {
        font-size: 31px !important;
    }

    .security-card {
        grid-template-columns: 44px 1fr !important;
        gap: 14px !important;
    }
}

/* =========================
   WALLET MOBILE
========================= */

@media (max-width: 900px) {
    .wallet-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 70px !important;
        padding: 28px 16px 80px !important;
    }

    .wallet-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .wallet-balance-top {
        align-items: flex-start !important;
    }

    .wallet-card-head h2 {
        font-size: 26px !important;
    }

    .wallet-card-head span {
        font-size: 14px !important;
    }

    .payment-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .pay-card,
    .payment-option,
    .payment-card,
    .payment-method,
    .payment-item {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 520px) {
    .wallet-balance-top {
        flex-direction: column !important;
        gap: 18px !important;
    }
}

/* =========================
   SUPPORT MOBILE
========================= */

@media (max-width: 1180px) {
    .support-page {
        grid-template-columns: 1fr !important;
    }

    .support-right {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .support-categories {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 820px) {
    .support-page {
        width: min(100% - 28px, 720px) !important;
        margin-top: 96px !important;
        gap: 22px !important;
    }

    .support-hero {
        padding: 28px !important;
        align-items: flex-start !important;
    }

    .support-hero h1 {
        font-size: 42px !important;
    }

    .hero-icon {
        width: 96px !important;
        height: 96px !important;
        font-size: 40px !important;
    }

    .support-categories {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .support-right {
        display: flex !important;
    }
}

@media (max-width: 560px) {
    .support-page {
        width: calc(100% - 22px) !important;
        margin-top: 86px !important;
    }

    .support-hero {
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .support-hero h1 {
        font-size: 36px !important;
    }

    .hero-icon {
        display: none !important;
    }

    .support-categories {
        grid-template-columns: 1fr !important;
    }

    .ticket-top {
        flex-direction: column !important;
    }
}

/* =========================
   FOOTER MOBILE
========================= */

@media (max-width: 768px) {

    .az-footer,
    footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 28px auto 0 !important;
        padding: 26px 14px 70px !important;
    }

    .az-footer-grid,
    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 28px !important;
    }

    .az-footer-brand,
    .footer-brand {
        grid-column: 1 / -1 !important;
    }

    .footer-copy {
        grid-column: 1 / -1 !important;
        width: 100%;
        text-align: center;
        font-size: 11px;
        opacity: .7;
        margin-top: 20px;
        color: var(--text-secondary);
    }
}

/* =========================
   PAYMENT LOGOS MOBILE
========================= */

@media (max-width: 768px) {

    .payment-logos,
    .footer-payments,
    .payment-methods,
    .payment-logo-row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .payment-logos img,
    .footer-payments img,
    .payment-methods img,
    .payment-logo-row img {
        width: 52px !important;
        max-width: 52px !important;
        height: 28px !important;
        max-height: 28px !important;
        object-fit: contain !important;
    }
}

/* =========================
   LIVE CHAT MOBILE POSITION
========================= */

@media (max-width: 768px) {

    .aziel-support-tab,
    .chat-ball,
    .live-chat-btn,
    #liveChatButton {
        right: 16px !important;
        bottom: 18px !important;
        z-index: 100000 !important;
    }

    .live-chat-panel,
    .chat-panel,
    #liveChatPanel {
        right: 14px !important;
        bottom: 82px !important;
        width: calc(100vw - 28px) !important;
        max-width: 360px !important;
        max-height: 72vh !important;
        border-radius: 22px !important;
        z-index: 100001 !important;
    }
}

/* =========================
   SMALL PHONE
========================= */

@media (max-width: 430px) {

    .az-page,
    .az-home,
    .main-content,
    .page-container,
    .section-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .dashboard-grid {
        gap: 24px 16px !important;
    }

    .dash-card strong {
        font-size: 30px !important;
    }
}