/* BattleGuru Modern Esports UI Enhancement */
:root {
    --bm-bg-dark: #0b0f19;
    --bm-bg-surface: #131a2a;
    --bm-bg-card-dark: rgba(255, 255, 255, 0.045);
    --bm-border-dark: rgba(255, 255, 255, 0.1);
    --bm-accent: #ff5e62;
    --bm-accent-alt: #f07873;
    --bm-accent-gradient: linear-gradient(135deg, #ff5e62 0%, #ff825c 100%);
    --bm-mint: #34d399;
    --bm-light-bg: #f4f6fb;
    --bm-text-dark: #1e293b;
    --bm-text-muted: #64748b;
    --bm-shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bm-bg-dark);
    overflow-x: hidden;
}

/* Navbar */
.nav-bg {
    background: rgba(11, 15, 25, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 1rem;
    transition: all 0.25s ease;
}

.nav-bg .navbar-brand img {
    max-height: 40px;
    width: auto;
}

.bm-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.bm-brand-lockup img {
    max-height: 36px !important;
    width: auto;
}

.bm-brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

.bm-brand-text span {
    color: #ff5e62;
}

.nav-bg .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-bg .navbar-nav .nav-link:hover,
.nav-bg .navbar-nav .nav-item.active > .nav-link {
    color: #ffffff !important;
    background: rgba(255, 94, 98, 0.15);
}

.header-dd-menu {
    background: #161e2e;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
}

.header-dd-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    padding: 7px 12px !important;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.header-dd-menu .dropdown-item:hover,
.header-dd-menu .dropdown-item.active {
    background: var(--bm-accent-gradient) !important;
    color: #fff !important;
}

/* Hero Section - Rich Esports Gradient & Mesh Background (replaces cluttered banner image) */
.bm-hero-section {
    position: relative;
    min-height: 86vh;
    padding: 112px 0 64px !important;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 94, 98, 0.24), transparent 42%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.20), transparent 45%),
        radial-gradient(circle at 75% 85%, rgba(52, 211, 153, 0.16), transparent 40%),
        linear-gradient(145deg, #090d16 0%, #111827 52%, #182238 100%) !important;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bm-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 35%, transparent 85%);
    pointer-events: none;
}

.bm-hero-section .container {
    position: relative;
    z-index: 2;
}

.bm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 94, 98, 0.15);
    border: 1px solid rgba(255, 94, 98, 0.38);
    color: #ff9c98;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.bm-hero-title {
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 700;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 18px;
    min-height: 76px;
}

.bm-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 28px;
    max-width: 540px;
}

.bm-hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bm-accent-gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 28px rgba(255, 94, 98, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
}

.bm-hero-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 94, 98, 0.5);
    color: #ffffff !important;
}

.bm-version-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.bm-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.bm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 8px;
}

.bm-meta-chip-success {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    font-weight: 600;
}

.bm-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bm-hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
}

.bm-hero-highlight-item i {
    color: var(--bm-mint);
    font-size: 15px;
}

/* Constrained Sleek Phone Frame on Home Hero */
.bm-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.bm-phone-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 94, 98, 0.38) 0%, rgba(56, 189, 248, 0.16) 55%, transparent 75%);
    filter: blur(22px);
    z-index: 0;
    pointer-events: none;
}

.bm-phone-mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 270px;
    background: linear-gradient(160deg, #1f2937 0%, #0f172a 100%);
    padding: 10px;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    animation: bmPhoneFloat 5s ease-in-out infinite;
}

.bm-phone-mockup img {
    width: 100%;
    max-height: 490px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    display: block;
}

@keyframes bmPhoneFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Section Headers */
.bm-light-bg {
    background-color: var(--bm-light-bg) !important;
}

.bm-dark-bg {
    background: linear-gradient(180deg, #0f1626 0%, #131b2e 100%) !important;
}

.bm_section_title {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem) !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.bm-section-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(240, 120, 115, 0.12);
    color: #e14d48;
    margin-bottom: 10px;
}

.bm-dark-bg .bm-section-badge {
    background: rgba(255, 94, 98, 0.16);
    color: #ff9c98;
}

.bm_section_subtitle {
    color: var(--bm-text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.bm-dark-bg .bm_section_subtitle {
    color: #94a3b8;
}

/* Screenshots Carousel */
#screenshot .item {
    background: #ffffff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#screenshot .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

#screenshot .item img {
    border-radius: 14px;
    width: 100%;
    height: auto;
}

/* Features Tabs */
#tabs .nav-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--bm-border-dark);
    margin: 0 auto;
}

#tabs .nav-tabs .nav-link {
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600;
    padding: 10px 22px;
    color: #cbd5e1 !important;
    transition: all 0.25s ease;
}

#tabs .nav-tabs .nav-link.active {
    background: var(--bm-accent-gradient) !important;
    color: #ffffff !important;
    border-bottom: none !important;
    box-shadow: 0 6px 18px rgba(255, 94, 98, 0.35);
}

.bm_featurecard {
    background: var(--bm-bg-card-dark) !important;
    border: 1px solid var(--bm-border-dark) !important;
    border-radius: 14px !important;
    margin-bottom: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.bm_featurecard:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 94, 98, 0.45) !important;
}

#tabs .card .card-body {
    padding: 16px 18px !important;
    display: flex;
    align-items: center;
    gap: 14px;
}

.center-tab .bm_featuretext,
.left-tab .bm_featuretext,
.right-tab .bm_featuretext {
    width: auto !important;
    flex: 1;
}

.bm_featuretext h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.bm_featuretext p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 0;
}

#nav-tabContent .bm_featureicon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    border-radius: 12px !important;
    background: var(--bm-accent-gradient) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    float: none !important;
}

#nav-tabContent .bm_featureicon .fa {
    font-size: 20px !important;
    line-height: 1 !important;
    color: #ffffff;
}

.bm-feature-phone-img {
    max-width: 240px;
    max-height: 430px;
    width: auto;
    border-radius: 26px;
    border: 6px solid #1e293b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    margin: 10px auto;
}

/* Tournaments & Leaderboard */
.bm-game-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bm-text-dark);
    padding-left: 14px;
    border-left: 4px solid var(--bm-accent);
}

.tour-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--bm-shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.tour-card .card-img-top {
    height: 140px !important;
    object-fit: cover;
}

.tour-card .card-title {
    font-weight: 600;
    color: var(--bm-text-dark);
    font-size: 15px;
}

.tour-card .btn-lightpink,
.btn-lightpink {
    background: var(--bm-accent-gradient) !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(255, 94, 98, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tour-card .btn-lightpink:hover,
.btn-lightpink:hover {
    opacity: 0.94 !important;
    transform: translateY(-1px);
}

.bm-leaderboard-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--bm-shadow-card);
    overflow: hidden;
    background: #ffffff;
    height: 100%;
}

.bm-leaderboard-header {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bm-leaderboard-header i {
    color: #fbbf24;
}

.bm-leaderboard-card .table {
    margin-bottom: 0;
}

.bm-leaderboard-card .table thead th {
    background: #f8fafc;
    font-size: 11.5px;
    text-transform: uppercase;
    color: #64748b;
    padding: 10px 14px !important;
    border-bottom: 1px solid #e2e8f0;
}

.bm-leaderboard-card .table tbody td {
    padding: 9px 14px !important;
    font-size: 13px;
    color: #1e293b;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
}

.bm-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.bm-rank-1 { background: #fef3c7; color: #b45309; }
.bm-rank-2 { background: #e2e8f0; color: #334155; }
.bm-rank-3 { background: #ffedd5; color: #c2410c; }

/* How To Play */
.bm-htp-card {
    background: var(--bm-bg-card-dark);
    border: 1px solid var(--bm-border-dark);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
}

.bm-htp-card .img-wrapper img {
    max-height: 330px;
    width: auto;
    border-radius: 22px;
    margin: 0 auto !important;
    border: 5px solid #1e293b;
}

.bm-step-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bm-htp-card h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.bm-htp-card p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Bottom Download CTA */
.bm-download-cta {
    background: linear-gradient(135deg, #ff5e62 0%, #e14d6c 55%, #c23b78 100%) !important;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.bm-download-card {
    background: rgba(11, 15, 25, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    padding: 36px 28px;
}

.bm-btn-white {
    background: #ffffff;
    color: #e14d48 !important;
    font-weight: 700;
    border-radius: 12px !important;
    border: none !important;
    padding: 14px 28px !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.bm-btn-white:hover {
    background: #f8fafc;
    color: #c8322d !important;
    transform: translateY(-2px);
}

/* Inner Page Headers & Content Cards (About, Terms, Contact, Auth, How to Install) */
.page-header {
    min-height: 230px !important;
    height: auto !important;
    padding: 125px 0 55px !important;
    background-color: #0b0f19 !important;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 94, 98, 0.24), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.18), transparent 45%),
        linear-gradient(145deg, #090d16 0%, #111827 55%, #182238 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-header .black-overlay {
    background: rgba(9, 13, 22, 0.45) !important;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 6px;
}

.bm-page-subtitle {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 0;
}

.bm-content-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--bm-shadow-card);
    border: 1px solid #e2e8f0;
    color: var(--bm-text-dark);
    line-height: 1.8;
}

.bm-content-card h1,
.bm-content-card h2,
.bm-content-card h3,
.bm-content-card h4 {
    color: #0f172a;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Auth & Contact Cards */
.cnt-card,
.bm-auth-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: var(--bm-shadow-card);
    background: #ffffff;
    overflow: hidden;
}

.cnt-card .card-body,
.bm-auth-card .card-body {
    padding: 32px !important;
}

.bm-auth-card .form-control,
.cnt-card .form-control {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    height: auto;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bm-auth-card .form-control:focus,
.cnt-card .form-control:focus {
    border-color: var(--bm-accent);
    box-shadow: 0 0 0 3px rgba(255, 94, 98, 0.15);
}

.bm-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.bm-auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bm-accent-gradient);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 10px 22px rgba(255, 94, 98, 0.28);
}

.bm-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bm-contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: var(--bm-accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bm-otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 14px;
}

/* How To Install Gallery */
.bm-install-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--bm-shadow-card);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.bm-install-step-num {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: #e14d48;
    background: rgba(240, 120, 115, 0.12);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.bm-install-card img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* Footer */
#footer {
    background: #080b13 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 0 32px !important;
}

#footer .nav-link {
    color: #cbd5e1 !important;
    font-size: 14px;
    padding: 6px 14px;
}

#footer .nav-link:hover {
    color: #ff7a59 !important;
}

#footer ul.social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 4px;
    transition: all 0.25s ease;
}

#footer ul.social li a:hover {
    background: var(--bm-accent-gradient);
    color: #ffffff !important;
    transform: translateY(-3px);
}

#footer ul.social li a i {
    margin-right: 0 !important;
    font-size: 17px !important;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .bm-hero-section {
        padding: 96px 0 50px !important;
        min-height: auto;
        text-align: center;
    }
    .bm-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .bm-hero-meta,
    .bm-hero-highlights {
        justify-content: center;
    }
    .bm-phone-mockup {
        max-width: 240px;
        margin-bottom: 24px;
    }
    .bm-phone-mockup img {
        max-height: 430px;
    }
    #tabs .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .bm-content-card {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .bm-phone-mockup {
        max-width: 220px;
    }
    .bm-phone-mockup img {
        max-height: 390px;
    }
    .bm-htp-card {
        padding: 20px;
    }
}
