:root {
    --primary:#0057d9;
    --primary-dark:#003f9e;
    --secondary:#071b3a;
    --accent:#ffbf27;
    --success:#15a34a;
    --danger:#dc2626;
    --bg:#eef4ff;
    --surface:#ffffff;
    --surface-soft:#f8fbff;
    --text:#102033;
    --muted:#64748b;
    --line:#dbe7f7;
    --shadow:0 18px 50px rgba(7,27,58,.10);
    --shadow-soft:0 10px 28px rgba(7,27,58,.08);
    --radius:22px;
}

* {
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html {
    scroll-behavior:smooth;
}

body {
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0,87,217,.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(255,191,39,.14), transparent 28rem),
        var(--bg);
    color:var(--text);
    min-height:100vh;
}

a {
    color:inherit;
    text-decoration:none;
}

img {
    max-width:100%;
}

.page-shell {
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

.top-nav-wrap {
    position:sticky;
    top:0;
    z-index:100;
    backdrop-filter:blur(18px);
    background:rgba(238,244,255,.78);
    border-bottom:1px solid rgba(219,231,247,.85);
}

.top-nav {
    width:min(1180px, calc(100% - 24px));
    margin:0 auto;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:900;
    color:var(--secondary);
    letter-spacing:.2px;
}

.brand-mark {
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg, var(--primary), #29a8ff);
    color:#fff;
    box-shadow:0 10px 24px rgba(0,87,217,.28);
}

.nav-links {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.nav-links a {
    padding:10px 14px;
    border-radius:999px;
    font-size:14px;
    font-weight:800;
    color:#23415f;
    background:rgba(255,255,255,.62);
    border:1px solid rgba(219,231,247,.9);
    transition:.2s ease;
}

.nav-links a:hover {
    background:var(--primary);
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,87,217,.18);
}

.hero {
    padding:42px 0 24px;
}

.hero-card {
    position:relative;
    overflow:hidden;
    border-radius:30px;
    padding:42px;
    background:
        linear-gradient(135deg, rgba(7,27,58,.96), rgba(0,87,217,.88)),
        url('images/gallery-bg.jpg');
    background-size:cover;
    color:#fff;
    box-shadow:var(--shadow);
}

.hero-card:before {
    content:"";
    position:absolute;
    inset:auto -80px -120px auto;
    width:320px;
    height:320px;
    border-radius:999px;
    background:rgba(255,191,39,.22);
}

.hero-content {
    position:relative;
    z-index:1;
    max-width:760px;
}

.hero-kicker {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.18);
    font-weight:800;
    font-size:13px;
    margin-bottom:16px;
}

.hero h1 {
    font-size:clamp(31px, 5vw, 58px);
    line-height:1.02;
    letter-spacing:-1.5px;
    margin-bottom:14px;
}

.hero p {
    color:rgba(255,255,255,.86);
    font-size:17px;
    line-height:1.65;
    max-width:680px;
}

.hero-actions {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:24px;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:11px 18px;
    border-radius:999px;
    border:0;
    cursor:pointer;
    font-weight:900;
    font-size:14px;
    transition:.2s ease;
}

.btn-primary {
    background:var(--accent);
    color:#172033;
    box-shadow:0 12px 24px rgba(255,191,39,.25);
}

.btn-primary:hover {
    transform:translateY(-2px);
    box-shadow:0 16px 34px rgba(255,191,39,.32);
}

.btn-light {
    color:#fff;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.24);
}

.btn-light:hover {
    background:rgba(255,255,255,.22);
}

.stats-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}

.stat-card {
    background:rgba(255,255,255,.82);
    border:1px solid rgba(219,231,247,.9);
    border-radius:20px;
    padding:18px;
    box-shadow:var(--shadow-soft);
}

.stat-card strong {
    display:block;
    font-size:25px;
    color:var(--secondary);
    margin-bottom:4px;
}

.stat-card span {
    color:var(--muted);
    font-size:13px;
    font-weight:800;
}

.search-panel {
    margin:18px 0 22px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(219,231,247,.95);
    border-radius:var(--radius);
    box-shadow:var(--shadow-soft);
    padding:18px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
}

.search-panel form {
    display:flex;
    gap:10px;
    align-items:center;
}

.search-input {
    width:100%;
    height:48px;
    border:1px solid var(--line);
    border-radius:999px;
    padding:0 18px;
    font-size:15px;
    outline:0;
    background:#fff;
}

.search-input:focus {
    border-color:rgba(0,87,217,.48);
    box-shadow:0 0 0 4px rgba(0,87,217,.10);
}

.filter-pills {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
}

.filter-pill {
    display:inline-flex;
    padding:9px 12px;
    border-radius:999px;
    background:#fff;
    color:#31506f;
    border:1px solid var(--line);
    font-size:13px;
    font-weight:800;
}

.filter-pill.active,
.filter-pill:hover {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.section-title {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    margin:22px 0 14px;
}

.section-title h2 {
    font-size:26px;
    color:var(--secondary);
    letter-spacing:-.4px;
}

.section-title p {
    color:var(--muted);
    font-size:14px;
    margin-top:4px;
}

.bookmakers {
    background:rgba(255,255,255,.82);
    border:1px solid rgba(219,231,247,.95);
    border-radius:var(--radius);
    box-shadow:var(--shadow-soft);
    padding:24px;
    margin-bottom:24px;
}

.bookmaker-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
}

.bookmaker-card {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px;
    border:1px solid var(--line);
    background:linear-gradient(180deg,#fff,#f8fbff);
    border-radius:20px;
    transition:.2s ease;
}

.bookmaker-card:hover {
    transform:translateY(-3px);
    box-shadow:var(--shadow-soft);
}

.bookmaker-logo {
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-box {
    width:90px;
    height:70px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#fff;
    border:1px solid var(--line);
}

.logo-box img {
    max-width:78px;
    max-height:56px;
    object-fit:contain;
}

.bookmaker-card strong {
    display:block;
    color:var(--secondary);
    margin-bottom:4px;
}

.bookmaker-card span {
    color:var(--muted);
    font-size:13px;
    font-weight:700;
}

.gallery-feed {
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
}

.post {
    overflow:hidden;
    border-radius:var(--radius);
    background:rgba(255,255,255,.9);
    border:1px solid rgba(219,231,247,.95);
    box-shadow:var(--shadow-soft);
}

.post-head {
    padding:18px 18px 0;
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
}

.poster {
    display:flex;
    align-items:center;
    gap:12px;
}

.poster-avatar {
    width:44px;
    height:44px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--primary),#29a8ff);
    color:#fff;
    font-weight:900;
}

.poster strong {
    display:block;
    color:var(--secondary);
}

.poster span {
    color:var(--muted);
    font-size:13px;
    font-weight:700;
}

.post-badge {
    padding:7px 10px;
    border-radius:999px;
    background:rgba(21,163,74,.12);
    color:var(--success);
    font-weight:900;
    font-size:12px;
}

.carousel {
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:18px;
    margin-top:2px;
    scroll-snap-type:x mandatory;
}

.carousel a {
    scroll-snap-align:start;
    flex:0 0 auto;
}

.carousel img {
    height:260px;
    width:auto;
    min-width:260px;
    max-width:420px;
    object-fit:cover;
    border-radius:18px;
    cursor:pointer;
    border:1px solid rgba(219,231,247,.95);
    transition:.2s ease;
    background:#eaf1fb;
}

.carousel img:hover {
    transform:scale(1.018);
    box-shadow:0 12px 28px rgba(7,27,58,.12);
}

.carousel::-webkit-scrollbar {
    height:8px;
}

.carousel::-webkit-scrollbar-thumb {
    background:#b9cbe4;
    border-radius:999px;
}

.carousel::-webkit-scrollbar-track {
    background:#edf4ff;
    border-radius:999px;
}

.post-body {
    padding:0 18px 18px;
}

.caption {
    font-size:16px;
    line-height:1.65;
    color:#20364f;
    margin-bottom:14px;
}

.post-actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding-top:14px;
    border-top:1px solid var(--line);
}

.likes {
    display:flex;
    align-items:center;
    gap:10px;
}

.like-btn {
    background:#edf5ff;
    border:1px solid #d7e8ff;
    min-height:42px;
    padding:8px 14px;
    border-radius:999px;
    cursor:pointer;
    font-weight:900;
    color:var(--primary);
    display:flex;
    align-items:center;
    gap:7px;
    transition:.2s ease;
}

.like-btn:hover {
    transform:translateY(-1px);
    background:#dcebff;
}

.like-btn.liked {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.share-buttons {
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.share-btn {
    min-height:38px;
    padding:8px 12px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    color:#34536f;
    font-size:13px;
    font-weight:900;
    transition:.2s ease;
}

.share-btn:hover {
    background:var(--secondary);
    border-color:var(--secondary);
    color:#fff;
}

.cta-strip {
    margin:22px 0;
    border-radius:var(--radius);
    overflow:hidden;
    background:linear-gradient(135deg, var(--primary), #00a3ff);
    color:#fff;
    padding:24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    box-shadow:var(--shadow-soft);
}

.cta-strip h3 {
    font-size:23px;
    margin-bottom:5px;
}

.cta-strip p {
    color:rgba(255,255,255,.84);
    line-height:1.55;
}

.empty-state {
    text-align:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:42px 20px;
    box-shadow:var(--shadow-soft);
}

.empty-state h3 {
    font-size:24px;
    color:var(--secondary);
    margin-bottom:8px;
}

.empty-state p {
    color:var(--muted);
    margin-bottom:18px;
}

.pagination {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin:28px 0 10px;
}

.pagination a,
.pagination span {
    min-width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#fff;
    color:#31506f;
    border:1px solid var(--line);
    font-weight:900;
}

.pagination a:hover,
.pagination .active {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.footer {
    margin-top:38px;
    background:#071b3a;
    color:#fff;
    padding:34px 20px;
}

.footer-inner {
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.footer p {
    color:rgba(255,255,255,.72);
    margin-top:6px;
}

.footer-links {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.footer-links a {
    color:#fff;
    padding:8px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    font-size:13px;
    font-weight:800;
}

#telegram-chat {
    position:fixed;
    bottom:96px;
    right:20px;
    z-index:9999;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    background:#fff;
    border-radius:50%;
    box-shadow:0 14px 36px rgba(7,27,58,.22);
    border:1px solid rgba(219,231,247,.9);
    transition:.2s ease;
}

#telegram-chat:hover {
    transform:translateY(-3px) scale(1.04);
}

#telegram-chat img {
    width:36px;
    height:36px;
}

.back-top {
    position:fixed;
    bottom:28px;
    right:20px;
    z-index:9998;
    width:48px;
    height:48px;
    border-radius:50%;
    border:0;
    display:grid;
    place-items:center;
    background:var(--secondary);
    color:#fff;
    cursor:pointer;
    box-shadow:0 14px 34px rgba(7,27,58,.22);
    opacity:0;
    visibility:hidden;
    transition:.2s ease;
}

.back-top.show {
    opacity:1;
    visibility:visible;
}

@media(max-width:900px) {
    .top-nav {
        align-items:flex-start;
        flex-direction:column;
        padding:14px 0;
    }

    .nav-links {
        justify-content:flex-start;
    }

    .hero-card {
        padding:30px 22px;
        border-radius:24px;
    }

    .stats-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .search-panel {
        grid-template-columns:1fr;
    }

    .filter-pills {
        justify-content:flex-start;
    }

    .bookmaker-grid {
        grid-template-columns:1fr;
    }

    .cta-strip {
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:600px) {
    .page-shell {
        width:min(100% - 20px, 1180px);
    }

    .brand {
        width:100%;
    }

    .nav-links {
        width:100%;
        display:grid;
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:8px;
    }

    .nav-links a {
        text-align:center;
        padding:10px 8px;
        font-size:13px;
    }

    .hero {
        padding-top:20px;
    }

    .hero h1 {
        letter-spacing:-.8px;
    }

    .hero p {
        font-size:15px;
    }

    .hero-actions .btn {
        width:100%;
    }

    .stats-grid {
        grid-template-columns:1fr;
    }

    .search-panel form {
        flex-direction:column;
    }

    .search-panel .btn {
        width:100%;
    }

    .section-title {
        align-items:flex-start;
        flex-direction:column;
    }

    .bookmaker-card {
        align-items:flex-start;
        flex-direction:column;
    }

    .bookmaker-card .btn {
        width:100%;
    }

    .post-head {
        align-items:flex-start;
        flex-direction:column;
    }

    .carousel {
        padding:14px;
    }

    .carousel img {
        height:190px;
        min-width:220px;
        max-width:280px;
        border-radius:15px;
    }

    .post-actions {
        align-items:stretch;
        flex-direction:column;
    }

    .likes,
    .like-btn {
        width:100%;
    }

    .like-btn {
        justify-content:center;
    }

    .share-buttons {
        display:grid;
        grid-template-columns:1fr 1fr;
        width:100%;
    }

    .share-btn {
        text-align:center;
    }

    .footer-inner {
        align-items:flex-start;
        flex-direction:column;
    }

    #telegram-chat {
        right:14px;
        bottom:90px;
        width:52px;
        height:52px;
    }

    .back-top {
        right:16px;
        bottom:24px;
    }
}

/* ===== Floating Support Chat Launcher ===== */

.eb-chat-launcher{
    position:fixed !important;
    right:20px !important;
    bottom:32px !important;
    width:64px !important;
    height:64px !important;
    border-radius:50% !important;
    background:linear-gradient(135deg,#0d6efd,#084298) !important;
    box-shadow:0 10px 30px rgba(13,110,253,.45) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
    z-index:999999999 !important;
    transition:.25s ease !important;
    animation:ebChatPulse 2s infinite !important;
}

.eb-chat-launcher:hover{
    transform:translateY(-4px) scale(1.04) !important;
    box-shadow:0 14px 35px rgba(13,110,253,.55) !important;
}

.eb-chat-launcher svg{
    width:30px !important;
    height:30px !important;
    fill:#fff !important;
}

.eb-chat-widget{
    z-index:999999999 !important;
}

/* Telegram Button Position */
#telegram-chat{
    bottom:105px !important;
}

/* App Download Button Position */
#app-download-float{
    bottom:176px !important;
}

/* Floating Pulse */
@keyframes ebChatPulse{
    0%{
        box-shadow:0 0 0 0 rgba(13,110,253,.55);
    }
    70%{
        box-shadow:0 0 0 18px rgba(13,110,253,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(13,110,253,0);
    }
}

/* Mobile */
@media(max-width:560px){

    .eb-chat-launcher{
        right:14px !important;
        bottom:18px !important;
        width:58px !important;
        height:58px !important;
    }

    .eb-chat-launcher svg{
        width:27px !important;
        height:27px !important;
    }

    #telegram-chat{
        bottom:88px !important;
    }

    #app-download-float{
        bottom:154px !important;
    }
}
