/* BubbleMC v2 — Obsiverse-style blue theme */

:root {
    --bm-bg: #071428;
    --bm-bg-mid: #0c2340;
    --bm-panel: #122a4a;
    --bm-panel-2: #1a3558;
    --bm-border: rgba(92, 200, 255, 0.14);
    --bm-blue: #3b9eff;
    --bm-blue-dark: #1a6fd4;
    --bm-cyan: #5ce1ff;
    --bm-mc-blue: #2aabff;
    --bm-gold: #ffc940;
    --bm-gold-dark: #e6a800;
    --bm-text: #eef4ff;
    --bm-muted: #8fa3bf;
    --bm-danger: #ff5c5c;
    --bm-radius: 12px;
    --bm-font: "Montserrat", system-ui, sans-serif;
    --bm-hero-bg: none;
    --tebex-legal-footer-background-color: #071428;
    --tebex-legal-footer-text-color: #8fa3bf;
    --tebex-legal-footer-border-color: var(--bm-border);
    --tebex-legal-footer-logo-color: var(--bm-blue);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.bm-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--bm-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--bm-text);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(42, 171, 255, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(26, 111, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(92, 225, 255, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #05101f 0%, var(--bm-bg-mid) 45%, #081830 100%);
    overflow-x: hidden;
}

a { color: var(--bm-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

.bm-container { width: min(1100px, 94%); margin: 0 auto; }

.bm-bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.bm-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 158, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 158, 255, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, black 15%, transparent 75%);
    opacity: 0.85;
}

.bm-bg-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(92, 225, 255, 0.015) 3px,
        rgba(92, 225, 255, 0.015) 4px
    );
    pointer-events: none;
}

.bm-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(92, 225, 255, 0.3), rgba(42, 171, 255, 0.06));
    border: 1px solid rgba(92, 225, 255, 0.14);
    animation: bmFloat 16s ease-in-out infinite;
}

.bm-bubble--1 { width: 90px; height: 90px; top: 12%; left: 8%; }
.bm-bubble--2 { width: 50px; height: 50px; top: 55%; left: 90%; animation-delay: -3s; }
.bm-bubble--3 { width: 140px; height: 140px; top: 70%; left: 15%; animation-delay: -7s; opacity: 0.5; }
.bm-bubble--4 { width: 70px; height: 70px; top: 25%; left: 75%; animation-delay: -5s; }
.bm-bubble--5 { width: 110px; height: 110px; top: 85%; left: 60%; animation-delay: -10s; opacity: 0.35; }
.bm-bubble--6 { width: 40px; height: 40px; top: 40%; left: 45%; animation-delay: -2s; }

@keyframes bmFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-35px) scale(1.08); opacity: 1; }
}

.bm-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(7, 20, 40, 0.15) 0%, rgba(7, 20, 40, 0.92) 100%),
        var(--bm-hero-bg),
        linear-gradient(135deg, #051525 0%, #0a2848 45%, #0d3a6e 100%);
    background-size: cover, cover, cover;
    background-position: center;
    z-index: 2;
}

.bm-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(2px);
    background: rgba(5, 20, 45, 0.45);
}

.bm-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 2.75rem 0 3.5rem;
    min-height: 240px;
}

.bm-hero__side { display: flex; align-items: center; gap: 0.85rem; position: relative; z-index: 3; }

.bm-copy-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.bm-hero__side--right { justify-content: flex-end; text-align: right; }

.bm-hero__ip, .bm-hero__side-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}

.bm-hero__link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bm-cyan);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bm-hero__link:hover { color: #fff; }

.bm-circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--bm-blue), var(--bm-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 158, 255, 0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

.bm-circle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(92, 225, 255, 0.6);
}

.bm-circle-btn.is-copied {
    transform: scale(1.08);
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 0 28px rgba(52, 211, 153, 0.55);
}

.bm-hero__link.is-copied {
    color: #86efac;
    text-decoration-color: #86efac;
}

.bm-circle-btn--discord {
    background: transparent;
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.35);
    padding: 0;
}

.bm-circle-btn--discord:hover {
    box-shadow: 0 0 32px rgba(88, 101, 242, 0.55);
}

.bm-discord-icon {
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 6px;
}

.bm-logo-img {
    display: block;
    width: auto;
    object-fit: contain;
}

.bm-hero__logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 3;
    margin-bottom: 0.35rem;
}

.bm-hero__logo-img {
    max-height: clamp(120px, 16vw, 175px);
    width: auto;
    filter: drop-shadow(0 0 28px rgba(59, 158, 255, 0.55));
    animation: bmLogoPulse 3s ease-in-out infinite;
}

.bm-hero__logo-text {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 158, 255, 0.8), 0 2px 0 var(--bm-blue-dark), 0 4px 0 #0a3d7a;
    animation: bmLogoPulse 3s ease-in-out infinite;
}

.bm-hero__logo-text--sm { font-size: 1.5rem; }

.bm-hero__logo-glow {
    position: absolute;
    bottom: -18px;
    width: 160px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(92, 225, 255, 0.55), transparent 70%);
    animation: bmGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.bm-hero__logo.is-loaded .bm-hero__logo-img,
.bm-hero__logo.is-loaded .bm-hero__logo-text {
    animation: bmLogoEnter 0.8s ease forwards, bmLogoPulse 3s ease-in-out 0.8s infinite;
}

@keyframes bmLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(59, 158, 255, 0.45)); }
    50% { filter: drop-shadow(0 0 32px rgba(92, 225, 255, 0.75)); }
}

@keyframes bmLogoEnter {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bmGlowPulse {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@media (max-width: 768px) {
    .bm-hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 1.5rem; }
    .bm-hero__side { justify-content: center; }
    .bm-hero__side--right { flex-direction: row-reverse; }
    .bm-hero__side-text { text-align: left; }
}

.bm-page { position: relative; z-index: 1; padding-bottom: 2rem; padding-top: 0.15rem; }
.bm-main { padding: 1.25rem 0 2rem; }

.bm-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bm-panel);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1rem 1.35rem;
    margin-top: -0.35rem;
    position: relative;
    z-index: 5;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.bm-userbar__brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.bm-userbar__logo { height: 62px; width: auto; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(59, 158, 255, 0.35)); }
.bm-userbar__logo-fallback { font-size: 1.5rem; }
.bm-userbar__name { display: block; font-size: 1rem; font-weight: 800; color: #fff; }
.bm-userbar__welcome { display: block; font-size: 0.82rem; font-weight: 600; color: var(--bm-cyan); }
.bm-userbar__actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    overflow: visible;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    padding-right: 0.15rem;
}

.bm-slant {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.65rem 1.6rem 0.65rem 1.35rem;
    min-width: 168px;
    text-decoration: none;
    color: #1a1200;
    font-weight: 800;
    clip-path: none;
    background: transparent;
    isolation: isolate;
    transition: transform 0.2s, filter 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    overflow: visible;
}

.bm-slant::before {
    content: "";
    position: absolute;
    inset: -1px -4px;
    z-index: -1;
    transform: skewX(-12deg);
    border-radius: 4px;
}

.bm-slant:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); color: #1a1200; }
.bm-slant--gold { z-index: 2; margin-right: -6px; }
.bm-slant--gold::before { background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-dark)); }
.bm-slant--cyan { color: #041428; z-index: 1; }
.bm-slant--cyan::before { background: linear-gradient(135deg, var(--bm-cyan), var(--bm-blue)); }
.bm-slant--ghost { background: var(--bm-panel-2); color: var(--bm-text); border-radius: 8px; border: 1px solid var(--bm-border); }
.bm-slant--ghost::before { display: none; }
.bm-slant--wide { width: 100%; align-items: center; border-radius: 10px; padding: 1rem; }
.bm-slant--wide::before { display: none; }
.bm-slant--wide.bm-slant--cyan { background: linear-gradient(135deg, var(--bm-cyan), var(--bm-blue)); }
.bm-slant--wide.bm-slant--gold { background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-dark)); }

a.bm-pay-btn,
a.bm-slant--wide {
    display: inline-flex;
    text-decoration: none;
    color: #1a1200;
    cursor: pointer;
}

a.bm-pay-btn:hover,
a.bm-slant--wide:hover { color: #1a1200; }
.bm-slant__label { font-size: 0.65rem; font-weight: 600; opacity: 0.75; }
.bm-slant__text { font-size: 0.82rem; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.bm-slant__badge {
    position: absolute; top: 4px; right: 12px; background: #fff; color: var(--bm-gold-dark);
    font-size: 0.65rem; font-weight: 900; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.bm-slant__avatar { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border-radius: 4px; image-rendering: pixelated; }

@media (max-width: 640px) {
    .bm-userbar { flex-direction: column; align-items: stretch; padding: 1rem; }
    .bm-userbar__actions { flex-direction: column; padding-right: 0; }
    .bm-slant { margin-right: 0; min-width: 100%; }
    .bm-slant::before { transform: none; inset: 0; }
}

.bm-sale {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    background: var(--bm-panel); border: 1px solid var(--bm-border); border-radius: var(--bm-radius);
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}

.bm-sale__title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.bm-sale__title h2 { margin: 0; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.04em; }
.bm-sale__star { color: var(--bm-gold); font-size: 1.2rem; animation: bmStarSpin 4s linear infinite; }
@keyframes bmStarSpin { 0%, 90%, 100% { transform: rotate(0deg) scale(1); } 95% { transform: rotate(180deg) scale(1.2); } }
.bm-sale__line { margin: 0.15rem 0; font-size: 0.88rem; font-weight: 700; }
.bm-sale__line--blue { color: var(--bm-blue); }
.bm-sale__line--cyan { color: var(--bm-cyan); }
.bm-sale__timer { display: flex; gap: 0.75rem; }
.bm-timer__block { text-align: center; min-width: 52px; }
.bm-timer__num { display: block; font-size: 1.75rem; font-weight: 900; color: #fff; line-height: 1; }
.bm-timer__lbl { font-size: 0.6rem; font-weight: 700; color: var(--bm-muted); letter-spacing: 0.08em; }

.bm-mosaic {
    display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 1rem; margin-bottom: 1.5rem; min-height: 400px;
}

.bm-tile {
    position: relative; display: block; border-radius: var(--bm-radius); overflow: hidden;
    border: 1px solid var(--bm-border); text-decoration: none; color: #fff; min-height: 180px;
    background: linear-gradient(145deg, rgba(var(--tile-accent, 100, 180, 255), 0.1), var(--bm-panel) 50%, #0a1628);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.bm-tile--hero { grid-row: span 2; min-height: 100%; }

.bm-tile__bg {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 16, 32, 0.1) 0%, rgba(8, 16, 32, 0.35) 50%, rgba(0, 0, 0, 0.85) 100%),
        radial-gradient(ellipse 85% 70% at 72% 38%, rgba(var(--tile-accent, 100, 180, 255), 0.2), transparent 68%);
}

.bm-tile__media {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    bottom: 3.75rem;
    left: 26%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.bm-tile__art {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-tile--hero .bm-tile__media {
    top: 1.25rem;
    right: 1rem;
    bottom: 4.5rem;
    left: 18%;
}

.bm-tile--sm .bm-tile__media {
    top: 0.65rem;
    right: 0.65rem;
    bottom: 3.25rem;
    left: 30%;
}

.bm-tile--md .bm-tile__media {
    left: 24%;
}

.bm-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(59, 158, 255, 0.25); color: #fff; }
.bm-tile:hover .bm-tile__art { transform: scale(1.06) translateY(-3px); }
.bm-tile__content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1.35rem 1.5rem; z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}
.bm-tile__title { margin: 0 0 0.25rem; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; letter-spacing: 0.04em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.bm-tile--hero .bm-tile__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.bm-tile__cta { font-size: 0.8rem; font-weight: 600; color: var(--bm-cyan); }

@media (max-width: 700px) {
    .bm-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
    .bm-tile--hero { grid-row: span 1; min-height: 200px; }
}

.bm-subcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.bm-subcat {
    position: relative; min-height: 180px; border-radius: var(--bm-radius); overflow: hidden;
    border: 1px solid var(--bm-border); text-decoration: none; color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bm-subcat:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(59, 158, 255, 0.2); color: #fff; }
.bm-subcat__bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(59, 158, 255, 0.12), rgba(10, 20, 40, 0.9)); }
.bm-subcat__content { position: relative; padding: 2rem 1.5rem; z-index: 1; }
.bm-subcat__content h2 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.03em; }
.bm-subcat__content span { font-size: 0.82rem; color: var(--bm-cyan); font-weight: 600; }

.bm-products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.bm-products > .bm-product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}

.bm-product {
    display: flex;
    flex-direction: column;
    background: var(--bm-panel);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
}

.bm-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 158, 255, 0.3);
    border-color: rgba(59, 158, 255, 0.35);
}

.bm-product__img {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.bm-product__img img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; transition: transform 0.4s; }
.bm-product:hover .bm-product__img img { transform: scale(1.05); }
.bm-product__placeholder { font-size: 2.5rem; opacity: 0.4; }
.bm-product__body { flex: 1 1 auto; margin-bottom: 0.85rem; }
.bm-product__name { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.25; }
.bm-product__price { min-height: 1.5em; }
.bm-product__old { display: block; color: var(--bm-danger); font-size: 0.8rem; font-weight: 700; text-decoration: line-through; }
.bm-product__now { display: block; font-size: 0.9rem; font-weight: 700; color: var(--bm-muted); }
.bm-product__custom { font-size: 0.75rem; color: var(--bm-muted); }
.bm-product__actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: auto;
}

.bm-product__buy {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.bm-product__buy:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45); }
.bm-product__buy:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.bm-product__buy--remove { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }
.bm-product__buy--remove:hover { box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45); }

.bm-product__reason {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--bm-muted);
    text-align: center;
}

.bm-product__actions .bm-icon-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.bm-icon-btn {
    width: 38px; height: 38px; border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: #fff;
}

.bm-icon-btn--info { background: linear-gradient(135deg, var(--bm-blue), var(--bm-blue-dark)); box-shadow: 0 4px 14px rgba(59, 158, 255, 0.35); }
.bm-icon-btn--cart { background: linear-gradient(135deg, #2eccff, var(--bm-blue)); box-shadow: 0 4px 14px rgba(46, 204, 255, 0.3); }
.bm-icon-btn--danger { background: var(--bm-danger); }
.bm-icon-btn--active { background: linear-gradient(135deg, #22c55e, #16a34a); }
.bm-icon-btn:hover:not(:disabled) { transform: scale(1.1); box-shadow: 0 6px 20px rgba(59, 158, 255, 0.5); color: #fff; }
.bm-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.bm-modals { position: relative; z-index: 0; height: 0; overflow: visible; }

.bm-modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center; padding: 1rem;
}

.bm-modal.is-open { display: flex; }
.bm-modal--page { display: block; position: static; padding: 0; }
.bm-modal--page .bm-modal__dialog { max-width: 700px; margin: 0 auto; }
body.bm-modal-open { overflow: hidden; }

.bm-modal__backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px); animation: bmFadeIn 0.25s ease;
}

.bm-modal__dialog {
    position: relative; width: min(560px, 100%); max-height: 85vh;
    background: var(--bm-panel); border: 1px solid var(--bm-border); border-radius: var(--bm-radius);
    display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    animation: bmModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden;
}

@keyframes bmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmModalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.bm-modal__close {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    border: none; border-radius: 6px; background: var(--bm-danger); color: #fff;
    font-size: 1.25rem; line-height: 1; cursor: pointer; z-index: 5; transition: transform 0.2s;
}

.bm-modal__close:hover { transform: scale(1.1); }
.bm-modal__header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--bm-border); text-align: center; }
.bm-modal__header h2 { margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.04em; }
.bm-modal__body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; }
.bm-modal__footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid var(--bm-border); background: rgba(0, 0, 0, 0.2); }
.bm-modal__price del { color: var(--bm-danger); margin-right: 0.5rem; font-weight: 700; }
.bm-modal__price strong { font-size: 1.1rem; font-weight: 900; color: #fff; }

.bm-payments-wrap { margin-top: 0.5rem; }
.bm-payments { text-align: center; padding: 1.5rem; }
.bm-payments__title { margin: 0 0 1.25rem; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.03em; }
.bm-payments__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

.bm-payment {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    animation: bmPaymentIn 0.5s ease backwards; animation-delay: var(--delay, 0s);
}

.bm-payment img { border-radius: 8px; image-rendering: pixelated; transition: transform 0.3s; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.bm-payment:hover img { transform: translateY(-6px) scale(1.05); box-shadow: 0 8px 20px rgba(59, 158, 255, 0.3); }
.bm-payment span { font-size: 0.78rem; font-weight: 700; color: var(--bm-muted); }
.bm-payment__pkg, .bm-payment__price { display: block; font-size: 0.65rem; color: var(--bm-muted); font-weight: 600; }
.bm-payment__price { color: var(--bm-cyan); }

@keyframes bmPaymentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.bm-basket__title { font-size: 1.5rem; font-weight: 900; margin: 0 0 1.25rem; }
.bm-basket-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem; background: var(--bm-panel); border: 1px solid var(--bm-border); border-radius: 8px; margin-bottom: 0.5rem; }
.bm-basket-row__info strong { display: block; color: #fff; }
.bm-basket-row__info span { font-size: 0.8rem; color: var(--bm-muted); }
.bm-basket-row__price { font-weight: 800; color: var(--bm-cyan); }
.bm-basket__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.bm-basket__total strong { font-size: 1.4rem; color: var(--bm-cyan); }

.bm-card { background: var(--bm-panel); border: 1px solid var(--bm-border); border-radius: var(--bm-radius); padding: 1.5rem; margin-bottom: 1rem; }
.bm-auth { max-width: 480px; margin: 1rem auto; text-align: center; }
.bm-auth h1 { margin: 0 0 0.5rem; font-size: 1.4rem; font-weight: 900; }
.bm-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.bm-form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bm-form-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.bm-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--bm-text); }

.bm-input, .bm-select {
    width: 100%; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--bm-border);
    background: rgba(0, 0, 0, 0.25); color: #fff; font-family: inherit; font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bm-input:focus, .bm-select:focus { outline: none; border-color: var(--bm-blue); box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.2); }
.bm-input-suffix { display: flex; align-items: center; padding: 0 1rem; background: var(--bm-panel-2); border: 1px solid var(--bm-border); border-radius: 8px; font-weight: 700; color: var(--bm-cyan); }
.bm-muted { color: var(--bm-muted); font-size: 0.88rem; }
.bm-prose { color: var(--bm-text); line-height: 1.65; }
.bm-prose h1, .bm-prose h2, .bm-prose h3 { color: #fff; }
.bm-prose ul { padding-left: 1.25rem; }
.bm-prose a { color: var(--bm-cyan); text-decoration: underline; text-underline-offset: 2px; }
.bm-prose a:hover { color: #fff; }

.bm-legal-page__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

.bm-legal-page__body { font-size: 0.88rem; }
.bm-legal-page__body h1 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
.bm-legal-page__body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.82rem; }
.bm-legal-page__body th,
.bm-legal-page__body td { border: 1px solid var(--bm-border); padding: 0.5rem 0.65rem; text-align: left; }
.bm-empty { text-align: center; padding: 2rem; }
.bm-empty p { color: var(--bm-muted); margin-bottom: 1rem; }

.bm-login-form input[type="text"], .bm-login-form input[type="password"] {
    width: 100%; padding: 0.75rem; margin-bottom: 0.75rem; border-radius: 8px;
    border: 1px solid var(--bm-border); background: rgba(0, 0, 0, 0.25); color: #fff; font-family: inherit;
}

.bm-login-form input[type="submit"], .bm-login-form button {
    width: 100%; padding: 0.85rem; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--bm-cyan), var(--bm-blue)); color: #041428;
    font-weight: 900; font-family: inherit; cursor: pointer;
}

.bm-toast { padding: 0.75rem 1rem; border-radius: 8px; margin: 0.75rem 0; font-weight: 700; font-size: 0.88rem; animation: bmModalIn 0.3s ease; }
.bm-toast--success, .bm-toast--info { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.bm-toast--error, .bm-toast--danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

.bm-footer { position: relative; z-index: 1; padding: 2.5rem 0; border-top: 1px solid var(--bm-border); background: rgba(5, 16, 32, 0.85); backdrop-filter: blur(8px); }
.bm-footer__inner { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 1.5rem; }
.bm-footer__logo-img { max-height: 56px; margin: 0 auto; filter: drop-shadow(0 0 14px rgba(59, 158, 255, 0.45)); }
.bm-footer__logo img { max-height: 56px; margin: 0 auto; }
.bm-footer__legal p { margin: 0 0 0.25rem; font-size: 0.75rem; color: var(--bm-muted); line-height: 1.5; }

.bm-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.65rem;
}

.bm-footer__links a {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bm-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.bm-footer__links a:hover { color: var(--bm-cyan); }

.bm-footer__dot {
    color: rgba(143, 163, 191, 0.45);
    font-size: 0.75rem;
    line-height: 1;
}

.bm-footer__social { display: flex; gap: 0.5rem; justify-content: flex-end; align-items: center; }

.bm-footer__discord {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bm-footer__discord:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(59, 158, 255, 0.35);
}

.bm-footer__discord .bm-discord-icon {
    width: 22px;
    height: 22px;
}

.bm-social {
    width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 900; color: #fff; transition: transform 0.2s;
}

.bm-social:hover { transform: scale(1.12); color: #fff; }
.bm-social--yt { background: #ff0000; }
.bm-social--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743); }
.bm-social--tt { background: #00f2ea; color: #000; }
.bm-social--dc {
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.bm-social--dc .bm-discord-icon {
    width: 36px;
    height: 36px;
}

.bm-locale { padding: 0.75rem 0 1.5rem; font-size: 0.82rem; color: var(--bm-muted); }
.bm-locale select { margin-left: 0.5rem; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--bm-panel); border: 1px solid var(--bm-border); color: var(--bm-text); font-family: inherit; }

@media (max-width: 900px) {
    .bm-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
    .bm-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .bm-footer__social { justify-content: center; }
    .bm-footer__links { justify-content: center; }
}

@media (max-width: 520px) {
    .bm-products { grid-template-columns: 1fr !important; }
}

.bm-reveal {
    opacity: 1;
    transform: translateY(0);
}

.bubblemc-module, .bm-module {
    background: var(--bm-panel); border: 1px solid var(--bm-border); border-radius: var(--bm-radius);
    padding: 1.25rem; margin-bottom: 1rem;
}

.bubblemc-module__title, .bm-module__title {
    margin: 0 0 0.75rem; font-size: 0.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em;
}

.bubblemc-progress, .bm-progress { height: 8px; background: rgba(0, 0, 0, 0.3); border-radius: 999px; overflow: hidden; }
.bubblemc-progress__bar, .bm-progress__bar { height: 100%; background: linear-gradient(90deg, var(--bm-blue), var(--bm-cyan)); border-radius: 999px; }
