/* ============================================================
 * 2222bet review - shared stylesheet (mobile-first, bn-BD)
 * Prefix: uif5-  |  CSS variables: --uif5-*
 * Palette: #1B263B / #FFEFD5 / #B03060 / #DEB887 / #BC8F8F
 * Canvas: 320-430px. Wide screens center a phone frame.
 * ============================================================ */

:root {
    --uif5-bg: #1B263B;
    --uif5-bg-soft: #22304b;
    --uif5-bg-card: #2a3a58;
    --uif5-text: #FFEFD5;
    --uif5-text-soft: #e9d3b0;
    --uif5-muted: #BC8F8F;
    --uif5-accent: #B03060;
    --uif5-accent-2: #c44a7d;
    --uif5-gold: #DEB887;
    --uif5-line: rgba(255, 239, 213, 0.14);
    --uif5-line-strong: rgba(255, 239, 213, 0.28);
    --uif5-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    --uif5-radius: 14px;
    --uif5-radius-sm: 10px;
    --uif5-header-h: 60px;
    --uif5-bottomnav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--uif5-bg);
    color: var(--uif5-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Shonar Bangla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(176, 48, 96, 0.30), transparent 60%),
        radial-gradient(90% 40% at 100% 100%, rgba(222, 184, 135, 0.12), transparent 70%),
        var(--uif5-bg);
}

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

a { color: var(--uif5-gold); text-decoration: none; }
a:hover { color: var(--uif5-text); }

.uif5-no-scroll { overflow: hidden; }

/* Phone frame on wide screens. */
.uif5-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, rgba(34, 48, 75, 0.55) 0%, rgba(27, 38, 59, 0) 240px), var(--uif5-bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

@media (min-width: 600px) {
    .uif5-shell {
        border-left: 1px solid var(--uif5-line);
        border-right: 1px solid var(--uif5-line);
    }
}

/* ============================================================
 * Top header - asymmetric brand head
 * ============================================================ */
.uif5-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--uif5-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98), rgba(27, 38, 59, 0.92));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--uif5-line);
}

.uif5-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.uif5-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--uif5-accent), var(--uif5-gold));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 10px rgba(176, 48, 96, 0.4);
    flex-shrink: 0;
}

.uif5-brand-text { min-width: 0; }

.uif5-brand-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--uif5-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uif5-brand-tag {
    font-size: 10.5px;
    color: var(--uif5-gold);
    line-height: 1.2;
    white-space: nowrap;
}

.uif5-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.uif5-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    min-height: 38px;
    font-size: 13px;
    line-height: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s ease, color 0.18s ease;
}

.uif5-btn:active { transform: scale(0.94); }

.uif5-btn--login {
    background: transparent;
    color: var(--uif5-text);
    border: 1px solid var(--uif5-line-strong);
    padding: 8px 13px;
}

.uif5-btn--login:hover { border-color: var(--uif5-gold); color: var(--uif5-gold); }

.uif5-btn--register {
    background: linear-gradient(135deg, var(--uif5-accent), var(--uif5-accent-2));
    color: #fff;
    box-shadow: 0 6px 14px rgba(176, 48, 96, 0.45);
    padding: 9px 16px;
}

.uif5-btn--register:hover { box-shadow: 0 8px 18px rgba(176, 48, 96, 0.6); }

.uif5-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    color: var(--uif5-text);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.uif5-menu-btn:active { transform: scale(0.93); }

.uif5-menu-btn svg { width: 20px; height: 20px; }

/* ============================================================
 * Slide-down compact route panel
 * ============================================================ */
.uif5-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82%, 340px);
    background: var(--uif5-bg-soft);
    border-left: 1px solid var(--uif5-line);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    z-index: 80;
    padding: 18px 16px calc(var(--uif5-bottomnav-h) + 18px);
    overflow-y: auto;
    box-shadow: var(--uif5-shadow);
}

.uif5-menu-panel--open { transform: translateX(0); }

.uif5-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.uif5-menu-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--uif5-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uif5-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    color: var(--uif5-text);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.uif5-menu-close svg { width: 16px; height: 16px; }

.uif5-menu-cta {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.uif5-menu-cta .uif5-btn { flex: 1; }

.uif5-menu-section { margin-bottom: 14px; }
.uif5-menu-section h4 {
    margin: 0 0 8px;
    font-size: 11.5px;
    color: var(--uif5-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.uif5-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--uif5-text);
    font-size: 14px;
    margin-bottom: 3px;
    border: 1px solid transparent;
}
.uif5-menu-link:hover, .uif5-menu-link:focus {
    background: var(--uif5-bg-card);
    border-color: var(--uif5-line);
    color: var(--uif5-gold);
}
.uif5-menu-link span.chev { color: var(--uif5-muted); font-size: 16px; }

.uif5-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease;
    z-index: 70;
}
.uif5-backdrop--show { opacity: 1; visibility: visible; }

/* ============================================================
 * Page layout helpers
 * ============================================================ */
.uif5-main {
    padding: 14px 14px calc(var(--uif5-bottomnav-h) + 26px);
}

.uif5-section { margin-top: 22px; }

.uif5-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 11px;
}

.uif5-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--uif5-text);
    margin: 0;
    line-height: 1.25;
    position: relative;
    padding-left: 12px;
}
.uif5-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--uif5-accent), var(--uif5-gold));
}

.uif5-section-more {
    font-size: 12px;
    color: var(--uif5-gold);
    white-space: nowrap;
}

/* ============================================================
 * Hero carousel
 * ============================================================ */
.uif5-hero {
    position: relative;
    border-radius: var(--uif5-radius);
    overflow: hidden;
    box-shadow: var(--uif5-shadow);
    background: var(--uif5-bg-soft);
}

.uif5-hero-track { position: relative; aspect-ratio: 16 / 9; }

.uif5-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    display: flex;
    align-items: flex-end;
}
.uif5-hero-slide--active { opacity: 1; }

.uif5-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.uif5-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(27, 38, 59, 0.85) 0%, rgba(27, 38, 59, 0.05) 55%);
}
.uif5-hero-caption {
    position: relative;
    z-index: 2;
    padding: 14px 14px 16px;
    width: 100%;
}
.uif5-hero-caption h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--uif5-text);
}
.uif5-hero-caption p {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--uif5-text-soft);
}
.uif5-hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--uif5-accent), var(--uif5-accent-2));
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(176, 48, 96, 0.5);
}
.uif5-hero-cta:active { transform: scale(0.95); }

.uif5-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 5px;
}
.uif5-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 239, 213, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
}
.uif5-hero-dot--active { background: var(--uif5-gold); width: 18px; border-radius: 4px; }

/* ============================================================
 * Quick category strip
 * ============================================================ */
.uif5-cat-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.uif5-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 9px 4px;
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    border-radius: 12px;
    color: var(--uif5-text);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.18s ease;
}
.uif5-cat-chip:hover, .uif5-cat-chip:focus {
    border-color: var(--uif5-gold);
    color: var(--uif5-gold);
}
.uif5-cat-chip:active { transform: scale(0.94); }
.uif5-cat-chip .uif5-cat-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(176, 48, 96, 0.25), rgba(222, 184, 135, 0.25));
    color: var(--uif5-gold);
}
.uif5-cat-chip .uif5-cat-ico svg { width: 17px; height: 17px; }

/* ============================================================
 * Game grid
 * ============================================================ */
.uif5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
@media (min-width: 375px) {
    .uif5-game-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

.uif5-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s ease;
}
.uif5-game-card:active { transform: scale(0.93); }

.uif5-game-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--uif5-radius-sm);
    overflow: hidden;
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    position: relative;
}
.uif5-game-tile img { width: 100%; height: 100%; object-fit: cover; }

.uif5-game-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(27, 38, 59, 0.45));
    pointer-events: none;
}

.uif5-game-name {
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--uif5-text);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

/* Hot ribbon badge */
.uif5-game-tile--hot::before {
    content: "হট";
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    background: var(--uif5-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

/* ============================================================
 * Info / promo blocks
 * ============================================================ */
.uif5-card {
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    border-radius: var(--uif5-radius);
    padding: 16px;
    box-shadow: var(--uif5-shadow);
}

.uif5-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--uif5-gold);
}

.uif5-card p {
    margin: 0 0 10px;
    color: var(--uif5-text-soft);
    font-size: 13.5px;
}
.uif5-card p:last-child { margin-bottom: 0; }

.uif5-lead {
    font-size: 14px;
    color: var(--uif5-text-soft);
    line-height: 1.75;
    margin: 14px 0 0;
}
.uif5-lead strong { color: var(--uif5-gold); font-weight: 700; }

.uif5-h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 4px 0 6px;
    color: var(--uif5-text);
}
.uif5-h1 span { color: var(--uif5-accent-2); }

.uif5-subtitle {
    font-size: 13px;
    color: var(--uif5-muted);
    margin: 0 0 8px;
}

/* Two-column quick info grid */
.uif5-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.uif5-info-item {
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    border-radius: var(--uif5-radius-sm);
    padding: 12px;
    text-align: center;
}
.uif5-info-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--uif5-gold);
    line-height: 1.1;
}
.uif5-info-label {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--uif5-text-soft);
}

/* Promo action tiles (extended footer) */
.uif5-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.uif5-promo-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(176, 48, 96, 0.18), rgba(222, 184, 135, 0.10));
    border: 1px solid var(--uif5-line-strong);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.18s ease;
}
.uif5-promo-tile:active { transform: scale(0.96); }
.uif5-promo-tile:hover { border-color: var(--uif5-gold); }
.uif5-promo-tile .uif5-promo-ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--uif5-accent);
    color: #fff;
    display: grid; place-items: center;
}
.uif5-promo-tile .uif5-promo-ico svg { width: 17px; height: 17px; }
.uif5-promo-tile h4 { margin: 0; font-size: 13.5px; color: var(--uif5-text); }
.uif5-promo-tile span { font-size: 11.5px; color: var(--uif5-text-soft); }

/* ============================================================
 * Extended footer
 * ============================================================ */
.uif5-extended-footer {
    margin-top: 26px;
    padding: 20px 14px 18px;
    background: var(--uif5-bg-soft);
    border-top: 1px solid var(--uif5-line);
    border-bottom: 1px solid var(--uif5-line);
}

.uif5-ef-block { margin-bottom: 18px; }
.uif5-ef-block:last-child { margin-bottom: 0; }

.uif5-ef-title {
    font-size: 12px;
    color: var(--uif5-gold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 9px;
    font-weight: 800;
}

.uif5-ef-brand {
    font-size: 13px;
    color: var(--uif5-text-soft);
    line-height: 1.7;
    margin: 0;
}
.uif5-ef-brand strong { color: var(--uif5-text); }

.uif5-ef-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.uif5-ef-list li a {
    display: block;
    font-size: 12.5px;
    color: var(--uif5-text);
    padding: 4px 0;
    border-bottom: 1px dashed var(--uif5-line);
}
.uif5-ef-list li a:hover { color: var(--uif5-gold); }

.uif5-disclaimer {
    font-size: 11px;
    color: var(--uif5-muted);
    line-height: 1.65;
    background: rgba(188, 143, 143, 0.08);
    border-left: 3px solid var(--uif5-muted);
    padding: 9px 11px;
    border-radius: 6px;
}

/* ============================================================
 * Footer (page bottom, above bottom nav)
 * ============================================================ */
.uif5-footer {
    text-align: center;
    padding: 14px 16px calc(var(--uif5-bottomnav-h) + 14px);
    font-size: 11.5px;
    color: var(--uif5-muted);
    line-height: 1.6;
}
.uif5-footer .uif5-foot-brand { color: var(--uif5-gold); font-weight: 700; }

/* ============================================================
 * Bottom navigation - center raised style, line icons + filled active
 * ============================================================ */
.uif5-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 460px;
    height: var(--uif5-bottomnav-h);
    background: linear-gradient(180deg, rgba(34, 48, 75, 0.98), rgba(27, 38, 59, 1));
    border-top: 1px solid var(--uif5-line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 65;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.uif5-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--uif5-text-soft);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    padding-top: 6px;
    transition: color 0.18s ease, transform 0.12s ease;
}

.uif5-nav-item:active { transform: scale(0.92); }

.uif5-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--uif5-bg-card);
    border: 1px solid var(--uif5-line);
    color: var(--uif5-text-soft);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.uif5-nav-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }

/* Center raised promo button */
.uif5-nav-item--center .uif5-nav-icon {
    width: 46px;
    height: 46px;
    margin-top: -16px;
    background: linear-gradient(135deg, var(--uif5-accent), var(--uif5-accent-2));
    color: #fff;
    border: 3px solid var(--uif5-bg);
    box-shadow: 0 6px 16px rgba(176, 48, 96, 0.55);
}
.uif5-nav-item--center .uif5-nav-icon svg { stroke-width: 2; }

.uif5-nav-label { line-height: 1.1; }

.uif5-nav-item:hover { color: var(--uif5-gold); }
.uif5-nav-item:hover .uif5-nav-icon { color: var(--uif5-gold); border-color: var(--uif5-gold); }

/* Active state: filled icon + accent label */
.uif5-nav-item--active { color: var(--uif5-gold); }
.uif5-nav-item--active .uif5-nav-icon {
    background: linear-gradient(135deg, var(--uif5-gold), #f0c98a);
    color: var(--uif5-bg);
    border-color: var(--uif5-gold);
    box-shadow: 0 4px 12px rgba(222, 184, 135, 0.4);
}
.uif5-nav-item--active .uif5-nav-icon svg { stroke-width: 2; fill: currentColor; }

/* Utility */
.uif5-row { display: flex; gap: 10px; }
.uif5-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.uif5-container-intro { padding: 4px 2px 0; }
