
/* =====================================================
   RDX LUDO - PREMIUM LIGHT GAMING UI
   Optimized CSS | User + Admin Panel
===================================================== */

:root {
    --rdx-blue: #2868f4;
    --rdx-blue2: #4385ff;
    --rdx-ink: #101b35;
    --rdx-muted: #65758f;
    --rdx-line: #c7d8fa;
    --rdx-bg: #f5f8ff;
    --rdx-card: #ffffff;
    --rdx-shadow: 0 12px 32px rgba(48,105,220,.12);
}

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

html {
    min-height: 100%;
    background: var(--rdx-bg);
}

body {
    background:
        radial-gradient(circle at 18% 15%, rgba(105,153,255,.16), transparent 30%),
        radial-gradient(circle at 85% 42%, rgba(132,181,255,.14), transparent 28%),
        linear-gradient(135deg,#f8fbff,#edf4ff 55%,#f8fbff) !important;

    background-attachment: fixed !important;
    color: var(--rdx-ink);
    font-family: 'Nunito','Roboto',sans-serif !important;
    padding-bottom: 82px;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(rgba(63,117,220,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(63,117,220,.025) 1px,transparent 1px);

    background-size: 28px 28px;
}

.container,
.container-fluid {
    max-width: 520px;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar.bg-light,
.navbar.navbar-light {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--rdx-line) !important;
    box-shadow: 0 4px 20px rgba(43,90,170,.07);
}

.navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(40,104,244,.2);
}

.navbar .btn {
    border-radius: 18px;
    font-weight: 800;
}

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

.card {
    border: 1px solid var(--rdx-line) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: var(--rdx-shadow) !important;

    overflow: hidden;

    /* Heavy entrance animation removed */
    animation: none !important;
}

.card-header {
    background: transparent !important;
    border: 0 !important;
    color: var(--rdx-ink) !important;
    font-weight: 900;
    font-size: 1.08rem;
    padding: 18px 20px 8px !important;
}

.card-body {
    padding: 18px 20px 22px !important;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
    border-radius: 15px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary,
.btn-dark,
.btn-success {
    background: linear-gradient(110deg,var(--rdx-blue),var(--rdx-blue2)) !important;
    border: 0 !important;
    color: white !important;
    box-shadow: 0 8px 22px rgba(40,104,244,.25);
}

.btn-outline-dark,
.btn-outline-primary {
    border: 1px solid #a9c3fa !important;
    color: var(--rdx-blue) !important;
    background: #edf4ff !important;
}

/* =====================================================
   INPUTS
===================================================== */

.form-control,
.form-select,
.input-group-text {
    border: 1px solid #dce4f1 !important;
    border-radius: 16px !important;
    background: #f1f3f7 !important;
    color: var(--rdx-ink) !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #83aaff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(40,104,244,.10) !important;
}

.input-group > .input-group-text {
    border-radius: 0 16px 16px 0 !important;
}

.input-group > .form-control {
    border-radius: 16px 0 0 16px !important;
}

.alert {
    border-radius: 16px;
    border: 1px solid var(--rdx-line);
}

/* =====================================================
   BOTTOM NAVIGATION
===================================================== */

.bottombar {
    bottom: 0 !important;
    z-index: 1030 !important;
    padding: 0 !important;
}

.bottombar > div {
    background: rgba(255,255,255,.97) !important;
    border-color: var(--rdx-line) !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 25px rgba(40,90,170,.10) !important;
    padding: 8px 0 5px;
}

.bottombar a {
    color: #62728e !important;
    min-width: 58px;
}

.bottombar a .fs-1 {
    font-size: 22px !important;
    width: 42px;
    height: 42px;
    border-radius: 14px;

    background: linear-gradient(145deg,#8d7cff,#5c62f5);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 12px rgba(89,97,240,.24);
    margin: auto;
    align-self: center;
}

.bottombar a:nth-child(2) .fs-1 {
    background: linear-gradient(145deg,#35d17c,#10a957);
}

.bottombar a:nth-child(3) .fs-1 {
    background: linear-gradient(145deg,#36d7f3,#05a6d5);
}

.bottombar a:nth-child(4) .fs-1 {
    background: linear-gradient(145deg,#ff9b38,#f05a28);
}

.bottombar a small {
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.bottombar + div {
    padding-bottom: 20px;
}

/* =====================================================
   SIDEBAR OFFCANVAS
===================================================== */

.offcanvas:not(.offcanvas-bottom) {
    border: 0 !important;
    border-radius: 0 22px 22px 0 !important;
    box-shadow: 15px 0 35px rgba(22,45,90,.14);
}

.offcanvas-header {
    border-bottom: 1px solid var(--rdx-line);
}

.offcanvas-body .btn {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    color: var(--rdx-ink) !important;
    border-radius: 17px;
    padding: 14px !important;
    font-weight: 800;
}

/* =====================================================
   REQUEST CANCELLATION POPUP
===================================================== */

/* Popup container */

#cancel.offcanvas-bottom {
    top: auto !important;
    bottom: 0 !important;

    height: 62vh !important;
    height: 62dvh !important;

    max-height: calc(100vh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;

    display: flex !important;
    flex-direction: column !important;

    border: 0 !important;
    border-radius: 22px 22px 0 0 !important;

    overflow: hidden !important;

    box-shadow: 0 -10px 35px rgba(22,45,90,.14);
}

/* Popup heading */

#cancel .offcanvas-header {
    flex: 0 0 auto !important;
    padding: 17px 20px !important;
    background: #fff;
    border-bottom: 1px solid var(--rdx-line);
}

/* Popup scrolling area */

#cancel .offcanvas-body {
    flex: 1 1 auto !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 18px 20px 28px !important;

    background: #fff;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

/* Cancellation buttons */

#cancel .offcanvas-body .btn {
    margin-bottom: 9px;
}

/* =====================================================
   LOGIN + OTP
===================================================== */

.rdx-login-hero {
    text-align: center;
    padding: 20px 18px 12px;
    position: relative;
}

.rdx-login-back {
    position: absolute;
    left: 16px;
    top: 8px;

    border: 1px solid #9bb9f5;
    border-radius: 28px;
    padding: 8px 16px;

    background: #ffffff70;
    color: var(--rdx-ink);
    font-weight: 800;
    text-decoration: none;
}

.rdx-login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;

    background: #fff;
    border: 4px solid #9bbcff;
    box-shadow: 0 8px 22px rgba(42,104,244,.18);

    margin: 34px auto 12px;
    display: block;
}

.rdx-login-hero h1 {
    font-size: 29px;
    font-weight: 1000;
    letter-spacing: -1px;
    margin: 0;
    color: #0e1931;
}

.rdx-login-hero p {
    color: var(--rdx-muted);
    font-size: 17px;
    margin: 4px 0 14px;
}

.rdx-login-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 14px auto 8px;
    max-width: 330px;
}

.rdx-login-steps span {
    border: 1px solid #a9c3fa;
    background: #e7efff;
    color: var(--rdx-blue);

    border-radius: 30px;
    padding: 9px 17px;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: .4px;
}

.rdx-login-steps i {
    height: 1px;
    background: #a9c3fa;
    flex: 1;
}

.rdx-login-card {
    margin: 12px 18px 22px !important;

    border: 2px solid #b8ceff !important;
    border-radius: 27px !important;

    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 16px 40px rgba(55,112,220,.16) !important;
}

.rdx-login-card .card-header {
    display: none;
}

.rdx-login-card .card-body {
    padding: 25px 24px !important;
}

.rdx-step-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid #a9c3fa;
    background: #eaf1ff;
    color: var(--rdx-blue);

    border-radius: 25px;
    padding: 6px 13px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    margin-bottom: 13px;
}

.rdx-login-card h2 {
    font-size: 27px;
    font-weight: 1000;
    letter-spacing: -.8px;
    margin: 0 0 5px;
}

.rdx-login-sub {
    color: var(--rdx-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.rdx-login-card label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .4px;
}

.rdx-login-card .form-control {
    height: 70px;
    font-size: 19px;
    padding: 14px 18px;
}

.rdx-login-card .input-group-text {
    min-width: 64px;
    justify-content: center;

    background: #dfeaff !important;
    color: var(--rdx-blue) !important;
    border-color: #a9c3fa !important;

    font-weight: 900;
}

.rdx-login-card .btn {
    height: 64px;
    border-radius: 40px !important;
    font-size: 19px;
    margin-top: 12px !important;
}

.rdx-login-benefits {
    display: flex;
    justify-content: space-between;

    border-top: 1px solid #e7edf7;
    margin-top: 20px;
    padding-top: 17px;

    text-align: center;
    color: #526887;
    font-size: 12px;
}

.rdx-login-benefits span {
    flex: 1;
}

.rdx-login-benefits i {
    display: block;
    color: var(--rdx-blue);
    font-size: 18px;
    margin-bottom: 3px;
}

.rdx-login-legal {
    text-align: center;
    color: #74839b;
    font-size: 13px;
    margin: 0 24px 25px;
}

/* =====================================================
   DASHBOARD, PROFILE AND GAME CARDS
===================================================== */

body .py-3.px-3.bg-white.shadow {
    background: transparent !important;
    box-shadow: none !important;
}

.gc {
    border-radius: 20px !important;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.card .card {
    box-shadow: none !important;
    background: #f3f6fb !important;
    border-radius: 18px !important;
}

.card .card .card-header {
    font-size: 12px !important;
    color: #65758f !important;
}

.bgy {
    background: linear-gradient(125deg,#dce9ff,#eef4ff) !important;
    color: var(--rdx-ink) !important;
}

.opm,
.card:has(.text-primary) {
    border-radius: 21px !important;
}

.opm .btn-success {
    border-radius: 30px !important;
}

/* =====================================================
   ADMIN AREA
===================================================== */

body:has(.admin),
body.admin-body {
    background: linear-gradient(135deg,#f7faff,#edf3ff) !important;
}

.table {
    --bs-table-bg: transparent;
    border-color: #e3eaf5;
}

.table thead th {
    background: #edf3ff;
    color: #415777;
    border: 0;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table td {
    vertical-align: middle;
}

.modal-content {
    border: 1px solid var(--rdx-line);
    border-radius: 22px;
    box-shadow: var(--rdx-shadow);
}
/* WINNER POPUP - SAME AS CANCEL */
#winscreenshot.offcanvas-bottom {
    height: 62vh !important;
    height: 62dvh !important;
    max-height: calc(100dvh - 90px) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: hidden !important;
}

#winscreenshot .offcanvas-header {
    flex: 0 0 auto !important;
}

#winscreenshot .offcanvas-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 12px 16px 25px !important;
}
/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 768px) {

    body {
        padding-bottom: 25px;
    }

    .rdx-login-card {
        max-width: 480px;
        margin: 15px auto 24px !important;
    }

    .rdx-login-hero {
        max-width: 520px;
        margin: auto;
    }

    .bottombar {
        display: none !important;
    }

    .container,
    .container-fluid {
        max-width: 900px;
    }

    #cancel.offcanvas-bottom {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 22px 22px 0 0 !important;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .rdx-login-card .card-body {
        padding: 21px 17px !important;
    }

    .rdx-login-card h2 {
        font-size: 24px;
    }

    .rdx-login-card .btn {
        height: 58px;
    }

    #cancel.offcanvas-bottom {
        height: 68vh !important;
        height: 68dvh !important;
    }

    #cancel .offcanvas-body {
        padding: 14px 15px 24px !important;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
