/* Custom styles for Bingo Aruba */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
    color: #0f172a;
}

.home-navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-navbar .navbar-brand,
.home-navbar .nav-link,
.home-navbar .navbar-toggler {
    color: #0f172a !important;
}

.home-navbar .nav-link {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 0.95rem !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-navbar .nav-link:hover,
.home-navbar .nav-link:focus {
    background: #f3f4f6;
    color: #111827 !important;
}

.home-navbar .container-fluid {
    position: relative;
    display: flex;
    align-items: center;
}

.home-navbar .navbar-collapse {
    position: static;
    min-height: 48px;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.home-navbar .navbar-nav.me-auto {
    gap: 0.25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-right: 0 !important;
    white-space: nowrap;
    z-index: 1;
}

.home-navbar .navbar-account-nav {
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.brand-logo {
    height: 24px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.account-summary {
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.account-summary-home {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.mobile-account-summary {
    display: none;
}

.navbar-profile-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.navbar-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.navbar-profile-avatar-fallback {
    background: #111827;
    border-color: rgba(15, 23, 42, 0.24);
    color: #ffffff;
}

.profile-photo-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.profile-photo-preview {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9 0%, #facc15 100%);
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-photo-controls {
    min-width: 0;
    flex: 1 1 auto;
}

#notification-settings-panel {
    border-color: #dbeafe !important;
}

#notification-settings-panel .form-check-label {
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 575.98px) {
    .profile-photo-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

.site-theme-main {
    flex: 1 0 auto;
}

.site-theme-shell {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 76px);
    background: linear-gradient(160deg, #1f1147 0%, #43198f 44%, #6d28d9 74%, #7c3aed 100%);
}

.site-theme-grid {
    --site-theme-columns: 12;
    --site-theme-row-height: 96px;
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--site-theme-columns), minmax(0, 1fr));
    grid-auto-rows: var(--site-theme-row-height);
    align-content: start;
    gap: 4px;
    padding: 4px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 0;
}

.home-hero-grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.1);
    font-size: clamp(0.72rem, 1vw, 0.95rem);
    font-weight: 700;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    animation: heroGridPulse 6s ease-in-out infinite;
    animation-delay: var(--cell-delay, 0s);
}

.home-hero-grid-cell.is-lit {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.2);
    color: rgba(255, 255, 255, 0.55);
    transform: scale(1.02);
}

.home-hero-grid-cell.is-pink {
    background: rgba(244, 114, 182, 0.1);
    border-color: rgba(244, 114, 182, 0.16);
}

.home-hero-grid-cell.is-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.16);
    color: rgba(255, 255, 255, 0.48);
}

@keyframes heroGridPulse {
    0%, 100% {
        opacity: 0.62;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.018);
    }
}

.site-theme-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(124, 58, 237, 0.08), rgba(15, 23, 42, 0.12)),
        linear-gradient(180deg, rgba(22, 6, 48, 0.12) 0%, rgba(72, 23, 140, 0.62) 54%, rgba(124, 58, 237, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.site-theme-content {
    position: relative;
    z-index: 2;
    padding: 2.4rem 0 4rem;
}

.site-theme-flashes {
    position: relative;
    z-index: 3;
    margin-bottom: 1.25rem;
}

.site-theme-flashes .alert {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.modal-backdrop {
    z-index: 1390;
}

.modal {
    z-index: 1400;
    padding-top: calc(76px + 0.9rem);
}

@media (max-width: 575.98px) {
    .modal {
        padding-top: calc(76px + 0.5rem);
    }
}

.site-theme-content > .container > h1,
.site-theme-content > .container > h2,
.site-theme-content > .container > h3,
.site-theme-content > .container > .d-flex h1,
.site-theme-content > .container > .d-flex h2,
.site-theme-content > .container > .d-flex h3,
.site-theme-content > .container > .row > [class*='col'] > h1,
.site-theme-content > .container > .row > [class*='col'] > h2,
.site-theme-content > .container > .row > [class*='col'] > h3,
.site-theme-content .agent-page-title,
.site-theme-content .contact-page-title {
    color: #ffffff;
}

.site-theme-content > .container > p,
.site-theme-content > .container > .d-flex p,
.site-theme-content > .container > .row > [class*='col'] > p,
.site-theme-content .agent-page-subtitle,
.site-theme-content .contact-page-subtitle,
.site-theme-content .lead,
.site-theme-content .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.site-theme-content .card,
.site-theme-content .modal-content,
.site-theme-content .alert,
.site-theme-content .table-responsive,
.site-theme-content .list-group,
.site-theme-content .accordion-item {
    border-radius: 20px;
    border: 1px solid rgba(250, 204, 21, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.site-theme-content .card,
.site-theme-content .modal-content,
.site-theme-content .table-responsive,
.site-theme-content .list-group,
.site-theme-content .accordion-item {
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
}

.table-responsive,
.ba-table-scroll {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.ba-table-scroll {
    margin-bottom: 1rem;
}

.table-responsive > .table,
.ba-table-scroll > table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

.table-responsive th,
.table-responsive td,
.ba-table-scroll th,
.ba-table-scroll td {
    white-space: nowrap;
}

.table-responsive .text-wrap,
.table-responsive .text-break,
.ba-table-scroll .text-wrap,
.ba-table-scroll .text-break {
    white-space: normal !important;
}

.site-theme-content .card .text-muted,
.site-theme-content .modal-content .text-muted,
.site-theme-content .alert .text-muted,
.site-theme-content .list-group .text-muted,
.site-theme-content .table-responsive .text-muted {
    color: #64748b !important;
}

.site-theme-content .card-header,
.site-theme-content .modal-header {
    border: 0;
    border-bottom: 1px solid rgba(109, 40, 217, 0.12);
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(109, 40, 217, 0.08));
    color: #4c1d95;
}

.site-theme-content .card-header.bg-primary,
.site-theme-content .modal-header.bg-primary {
    background: linear-gradient(180deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
}

.site-theme-content .card-header.bg-warning-subtle,
.site-theme-content .modal-header.bg-warning-subtle {
    background: linear-gradient(180deg, #fef3c7, #fde68a) !important;
    color: #92400e !important;
}

.site-theme-content .card-header h1,
.site-theme-content .card-header h2,
.site-theme-content .card-header h3,
.site-theme-content .card-header h4,
.site-theme-content .card-header h5,
.site-theme-content .card-header h6,
.site-theme-content .modal-header h1,
.site-theme-content .modal-header h2,
.site-theme-content .modal-header h3,
.site-theme-content .modal-header h4,
.site-theme-content .modal-header h5,
.site-theme-content .modal-header h6 {
    color: inherit;
}

.site-theme-content .text-primary {
    color: #6d28d9 !important;
}

.site-theme-content .btn {
    border-radius: 16px;
    font-weight: 800;
    padding: 0.72rem 1.1rem;
    border-width: 1px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.site-theme-content .btn-sm {
    border-radius: 12px;
    padding: 0.45rem 0.85rem;
}

.site-theme-content .btn-primary {
    background: linear-gradient(180deg, #facc15, #eab308);
    border-color: #facc15;
    color: #111827;
}

.site-theme-content .btn-primary:hover,
.site-theme-content .btn-primary:focus {
    background: linear-gradient(180deg, #fde047, #facc15);
    border-color: #fde047;
    color: #111827;
}

.site-theme-content .btn-outline-primary {
    background: rgba(250, 204, 21, 0.08);
    border-color: #facc15;
    color: #facc15;
}

.site-theme-content .btn-outline-primary:hover,
.site-theme-content .btn-outline-primary:focus {
    background: #facc15;
    border-color: #facc15;
    color: #111827;
}

.site-theme-content .btn-success {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: #ffffff;
}

.site-theme-content .btn-success:hover,
.site-theme-content .btn-success:focus {
    background: linear-gradient(180deg, #4ade80, #22c55e);
    border-color: #4ade80;
    color: #ffffff;
}

.site-theme-content .btn-danger {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: #ffffff;
}

.site-theme-content .btn-danger:hover,
.site-theme-content .btn-danger:focus {
    background: linear-gradient(180deg, #f87171, #ef4444);
    border-color: #f87171;
    color: #ffffff;
}

.site-theme-content .btn-secondary {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.site-theme-content .btn-secondary:hover,
.site-theme-content .btn-secondary:focus {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.home-footer {
    margin-top: 0;
    padding: 4rem 1.5rem 1.5rem;
    background: #111111;
    color: #ffffff;
}

.home-footer-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-decoration: none;
}

.home-footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.home-footer-brand strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.home-footer-copy {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.home-footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.home-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #a855f7;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-footer-social a:hover {
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(250, 204, 21, 0.55);
    color: #facc15;
    transform: translateY(-2px);
}

.home-footer-heading {
    margin-bottom: 1rem;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.home-footer-links a,
.home-footer-contact {
    display: block;
    padding: 0.28rem 0;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.home-footer-links a:hover,
.home-footer-social a:hover,
.home-footer-bar-links a:hover {
    color: #facc15;
}

.home-footer-contact i {
    color: #7c3aed;
    margin-right: 0.45rem;
}

.home-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    flex-wrap: wrap;
}

.home-footer-bar-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-footer-bar-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1350;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(18, 140, 126, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
    color: #ffffff;
    filter: brightness(1.04);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 48px rgba(18, 140, 126, 0.48);
}

.floating-whatsapp i {
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .home-navbar .container-fluid {
        flex-wrap: wrap;
    }

    .home-navbar .navbar-toggler {
        margin-left: auto;
    }

    .home-navbar .navbar-collapse {
        min-height: 0;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    }

    .home-navbar .navbar-collapse:not(.show) {
        display: none !important;
    }

    .home-navbar .navbar-collapse.show,
    .home-navbar .navbar-collapse.collapsing {
        display: block !important;
    }

    .home-navbar .navbar-nav.me-auto {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-right: auto !important;
        white-space: normal;
        width: 100%;
        gap: 0.1rem;
    }

    .home-navbar .navbar-account-nav {
        margin-left: 0;
        width: 100%;
        padding-top: 0.5rem;
        margin-top: 0.4rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .home-navbar .nav-link,
    .home-navbar .account-summary,
    .home-navbar .mobile-account-summary {
        display: block;
        width: 100%;
        text-align: left;
    }

    .home-navbar .mobile-account-summary {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.15rem 0 0.55rem;
        padding: 0.7rem 0.95rem;
        border-radius: 18px;
        background: #fef3c7;
        border: 1px solid #fde68a;
        color: #111827;
        font-weight: 700;
    }

    .home-navbar .mobile-account-summary i {
        margin-right: 0.45rem;
    }

    .site-theme-grid {
        --site-theme-columns: 7;
        --site-theme-row-height: 84px;
    }
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(13, 110, 253, 0.18));
}

.payaw-logo {
    height: 14px;
    max-width: 72px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.payaw-logo-lg {
    height: 16px;
    max-width: 84px;
    width: auto;
    display: inline-block;
}

.payaw-logo-home {
    height: 16px;
    max-width: 84px;
    width: auto;
    display: inline-block;
}

.payaw-option-logo {
    height: 16px;
    max-width: 84px;
    width: auto;
    display: inline-block;
}

.payaw-inline-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-page {
    max-width: 1180px;
}

.store-item-card {
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.store-item-image-shell {
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.store-item-image-empty {
    min-height: 220px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #7d8aa5;
    font-size: 0.95rem;
}

.store-item-image-empty i {
    font-size: 2rem;
}

.store-item-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-store-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background: #f4f7fb;
}

.admin-store-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d8aa5;
}

.store-item-preview-shell {
    border: 1px dashed rgba(13, 110, 253, 0.3);
    border-radius: 18px;
    min-height: 220px;
    overflow: hidden;
    background: #f8fbff;
}

.store-item-preview {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.store-item-preview-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #7d8aa5;
}

.store-item-preview-placeholder i {
    font-size: 2rem;
}

.agent-page {
    max-width: 1080px;
}

.agent-page-title {
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
}

.agent-page-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.agent-map-shell {
    background: linear-gradient(180deg, #d9e8ff 0%, #edf4ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.22);
    border-radius: 24px;
    overflow: hidden;
    min-height: 430px;
    box-shadow: 0 18px 40px rgba(76, 29, 149, 0.22);
}

.agent-map-frame {
    width: 100%;
    height: 430px;
    border: 0;
    display: block;
}

.agent-map-empty {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #5a6b83;
}

.agent-location-card {
    background: #fff;
    border: 1px solid rgba(109, 40, 217, 0.18);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(14, 30, 37, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 30, 37, 0.09);
}

.agent-location-card-body {
    padding: 1.5rem;
}

.agent-location-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f4edff 0%, #ebe0ff 100%);
    color: #6d28d9;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.agent-location-name {
    color: #6d28d9 !important;
    font-weight: 700;
}

.agent-map-button.active {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.agent-cta-box {
    background: linear-gradient(180deg, #d9e8ff 0%, #edf4ff 100%);
    border: 2px solid rgba(109, 40, 217, 0.24);
    border-radius: 20px;
    padding: 2.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 18px 40px rgba(76, 29, 149, 0.18);
}

.agent-location-card p:not(.text-muted) {
    color: #1f2937;
}

.agent-cta-box h3 {
    color: #111827;
}

.agent-cta-box .text-muted {
    color: #64748b !important;
}

.agent-page .text-muted {
    color: #5b647a !important;
}

.agent-page .agent-location-card .text-muted {
    color: #5b647a !important;
}

.agent-page .btn-primary,
.agent-page .btn-outline-primary {
    border-radius: 14px;
    font-weight: 700;
    box-shadow: none;
}

.agent-page .btn-primary {
    background: linear-gradient(135deg, #facc15 0%, #fbbf24 100%) !important;
    border-color: #facc15 !important;
    color: #1f2937 !important;
}

.agent-page .btn-primary:hover,
.agent-page .btn-primary:focus {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%) !important;
    border-color: #fde047 !important;
    color: #111827 !important;
}

.agent-page .btn-outline-primary,
.agent-page .agent-map-button {
    background: #ffffff !important;
    border-color: rgba(109, 40, 217, 0.38) !important;
    color: #6d28d9 !important;
}

.agent-page .btn-outline-primary:hover,
.agent-page .btn-outline-primary:focus,
.agent-page .agent-map-button:hover,
.agent-page .agent-map-button:focus,
.agent-page .agent-map-button.active {
    background: rgba(109, 40, 217, 0.14) !important;
    border-color: #6d28d9 !important;
    color: #6d28d9 !important;
}

.live-watch-shell {
    background: #0f0f0f;
    color: #fff;
    margin-top: 0;
    min-height: calc(100vh - 56px);
    padding: 0;
}

.live-stream-page {
    max-width: 100%;
    padding: 0 !important;
}

.live-watch-row {
    min-height: calc(100vh - 56px);
    margin: 0;
}

.live-watch-row > [class*="col-"] {
    padding: 0;
}

.watch-stage {
    background: transparent;
    padding-right: 0;
}

.watch-player-wrap {
    position: relative;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.watch-player-frame iframe {
    border: 0;
    background: #000;
}

.watch-player-offline {
    min-height: 520px;
    background:
        radial-gradient(circle at top, rgba(40, 110, 255, 0.18), transparent 40%),
        linear-gradient(180deg, #121212 0%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.watch-player-offline-inner {
    max-width: 420px;
}

.watch-offline-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-player-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.watch-live-pill,
.watch-viewer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.watch-live-pill {
    background: #ff0033;
    color: #fff;
    text-transform: uppercase;
}

.watch-live-pill.is-offline {
    background: rgba(255, 255, 255, 0.16);
}

.watch-viewer-pill {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    backdrop-filter: blur(6px);
}

.watch-info-panel {
    background: #181818;
}

.watch-stream-kicker {
    color: #8ab4ff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}

.watch-stream-title {
    color: #fff;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 800;
}

.watch-stream-subtitle {
    color: #b8b8b8;
    font-size: 0.98rem;
}

.watch-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #1f2630;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-meta-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.watch-channel-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    overflow: hidden;
    background: #0f1724;
}

.watch-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-title-block {
    min-width: 0;
}

.watch-meta-bar .watch-stream-kicker {
    margin-bottom: 0.2rem;
}

.watch-meta-bar .watch-stream-title {
    font-size: 0.98rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-meta-bar .watch-stream-subtitle {
    font-size: 0.8rem;
    color: #a8b0bb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-viewer-caption {
    color: #c7ced8;
    font-size: 0.8rem;
}

.watch-home-link {
    margin-left: auto;
    text-align: right;
}

.watch-chat-shell {
    position: static;
    background: #212121;
    border-radius: 0;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.watch-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #202020;
}

.watch-chat-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.watch-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c05b;
    display: inline-block;
}

.watch-chat-subtitle {
    color: #a8a8a8;
    font-size: 0.88rem;
}

.watch-chat-more {
    text-decoration: none;
    padding-inline: 0.35rem;
}

.watch-chat-more:disabled {
    opacity: 1;
}

.watch-chat-messages {
    flex: 1;
    background: #181818;
    color: #fff;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding: 0.8rem 0.65rem;
}

.stream-chat-empty {
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    padding: 3rem 1rem;
}

.stream-message {
    margin-bottom: 0.15rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.stream-message:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stream-message.is-deleted {
    opacity: 0.72;
}

.stream-message-author {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 700;
}

.stream-message-time {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
    font-weight: 500;
}

.stream-message-body {
    color: #f1f1f1;
    margin-top: 0.2rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.55;
}

.stream-message.is-emote .stream-message-body {
    font-size: 1.3rem;
    line-height: 1.45;
}

.stream-message-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.stream-message-actions .btn {
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
}

.watch-chat-input-area {
    position: relative;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #202020;
}

.watch-chat-statebar {
    color: #b9a58c;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
    background: #2a2a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-chat-input-group {
    align-items: stretch;
}

.watch-chat-input,
.watch-mod-input {
    background: #121212;
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.watch-chat-input:focus,
.watch-mod-input:focus {
    background: #121212;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

.watch-chat-input::placeholder,
.watch-mod-input::placeholder {
    color: #7f7f7f;
}

.watch-chat-send {
    min-width: 52px;
}

.watch-chat-emoji {
    border-color: rgba(255, 255, 255, 0.12);
    color: #b8b8b8;
    background: #121212;
}

.watch-chat-emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    max-height: 120px;
    overflow-y: auto;
}

.watch-emoji-choice {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #121212;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
}

.watch-emoji-choice:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.48);
}

.watch-chat-signin {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
    color: #e8e8e8;
}

.watch-chat-signin .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.watch-moderation-panel {
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    color: #fff;
}

.watch-moderation-section-title {
    color: #9ba3af;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.watch-moderation-list {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.75rem;
}

.moderation-log-item,
.moderation-user-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0;
}

.moderation-log-item:last-child,
.moderation-user-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.moderation-user-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

main {
    flex: 1;
}

/* Bingo Card Styles */
.bingo-card {
    background: white;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bingo-header {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
}

.bingo-cell.free {
    background: #ffc107;
    font-size: 0.9rem;
}

.bingo-cell.marked {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
}

.bingo-cell:hover:not(.free):not(.marked) {
    background: #f8f9fa;
    cursor: pointer;
}

/* Ball Call Display */
.ball-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.current-ball {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
}

.ball-history {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.ball-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Game Card Styles */
.game-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Winner Modal */
.winner-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% { transform: translate(-50%, -50%) scale(0.3); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.winner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-summary {
        white-space: normal;
    }

    .agent-map-shell,
    .agent-map-frame,
    .agent-map-empty {
        min-height: 320px;
        height: 320px;
    }

    .watch-stage {
        padding-right: 0;
    }

    .watch-chat-shell {
        position: static;
        min-height: auto;
        height: auto !important;
        border-left: 0;
        margin-top: 0;
    }

    .watch-chat-messages {
        min-height: 360px;
        max-height: 420px;
    }

    .watch-player-offline {
        min-height: 320px;
    }

    .watch-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bingo-cell {
        font-size: 1rem;
    }
    
    .current-ball {
        font-size: 2rem;
    }
    
    .bingo-header {
        font-size: 1.2rem;
    }
}

/* Shared footer mobile hardening */
.home-footer,
.home-footer-wrap,
.home-footer-grid {
    max-width: 100%;
}

.home-footer-wrap {
    width: 100%;
}

.home-footer-grid {
    width: 100%;
}

.home-footer-grid > * {
    min-width: 0;
}

.home-footer-social {
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .home-footer {
        padding: 3rem 1.25rem 1.25rem;
        overflow-x: hidden;
    }

    .home-footer-wrap {
        max-width: 100%;
    }

    .home-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
    }

    .home-footer-copy {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .home-footer {
        padding: 2.5rem 1rem 1.25rem;
    }

    .floating-whatsapp {
        right: 1rem;
        bottom: 1rem;
        width: 60px;
        height: 60px;
    }

    .floating-whatsapp i {
        font-size: 1.8rem;
    }

    .home-footer-brand {
        gap: 0.6rem;
    }

    .home-footer-brand strong {
        font-size: 1.05rem;
    }

    .home-footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-footer-bar-links {
        width: 100%;
        gap: 0.75rem 1rem;
    }
}
