:root {
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --container: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

label { display: block; font-weight: 800; margin: 0 0 6px; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    outline: none;
    font: inherit;
    background: #fff;
}
textarea { resize: vertical; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg, var(--bg));
    color: var(--header-text, var(--text));
    border-bottom: 1px solid var(--header-border, var(--border));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo-link,
.brand-title-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-logo-link:hover,
.brand-title-link:hover {
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

.site-nav .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-link.is-active {
    color: var(--header-active, var(--primary));
    background: rgba(37, 99, 235, 0.08);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--header-border, var(--border));
    background: var(--header-bg, var(--bg));
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.dots {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--header-text, var(--text));
    box-shadow: 0 -8px 0 var(--header-text, var(--text)), 0 8px 0 var(--header-text, var(--text));
}

.subheader {
    background: var(--subheader-bg, var(--bg));
    border-top: 1px solid var(--header-border, var(--border));
}

.subheader-inner {
    padding: 8px 0;
}

.subnav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
}

.subnav-item {
    display: inline-flex;
    align-items: center;
}

.subnav-item + .subnav-item::before {
    content: "›";
    margin-right: 10px;
    color: var(--muted);
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.subnav-link:hover { text-decoration: underline; }

.subnav-icon {
    font-size: 14px;
    line-height: 1;
}

.site-main { padding: 18px 0 36px; }
.content { padding: 8px 0; }

.home-hero {
    padding: 8px 0 14px;
}

.home-hero-title {
    margin: 10px 0 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}

.home-hero-desc {
    background: var(--home-desc-bg, #dbeafe);
    color: var(--home-desc-text, var(--text));
    border: 1px solid rgba(0,0,0,0.06);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.home-hero-title2 {
    margin: 14px 0 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.home-tabs {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.home-tabs-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.home-tab-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
}

.home-tab-btn.is-active {
    background: var(--header-active, var(--primary));
    border-color: var(--header-active, var(--primary));
    color: #fff;
}

.home-tabs-panels {
    padding: 10px;
}

.home-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: product;
}

.product-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 12px 12px 18px;
    background: var(--row-bg, #fff);
}

.product-row::before {
    counter-increment: product;
    content: counter(product);
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
}

.product-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
}

.product-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-logo-placeholder {
    font-weight: 900;
    color: var(--muted);
}

.product-meta {
    min-width: 0;
}

.product-name {
    display: inline-block;
    font-weight: 900;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}

.product-name:hover { text-decoration: underline; }

.product-stats {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.product-stat {
    color: var(--muted);
}

.product-bonus { color: #dc2626; font-weight: 800; }
.product-withdraw { color: var(--muted); font-weight: 700; }

.product-extra {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.product-right {
    flex: 0 0 auto;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--btn-bg, #111827);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
}

.product-btn:hover {
    text-decoration: none;
    filter: brightness(0.95);
}

.product-btn-icon {
    font-size: 13px;
}

.home-blogs {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.home-queries {
    margin-top: 18px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.queries-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

.queries-marquee {
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.04);
}

.queries-track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
    animation: queries-scroll 28s linear infinite;
}

.queries-marquee:hover .queries-track {
    animation-play-state: paused;
}

.query-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.18);
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes queries-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .queries-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .queries-track {
        animation: none;
    }
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--blog-bg, #ffffff);
    color: var(--blog-text, var(--text));
    overflow: hidden;
}

.blog-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.blog-image-wrap {
    display: block;
    background: rgba(0,0,0,0.04);
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 14px;
    min-width: 0;
}

.blog-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-title a:hover { text-decoration: underline; }

.blog-body {
    font-size: 13px;
    color: rgba(17, 24, 39, 0.86);
    overflow-wrap: anywhere;
}

.blog-body a {
    color: var(--blog-link, var(--primary));
    font-weight: 800;
    text-decoration: underline;
}

.blog-body img,
.blog-body video,
.blog-body iframe {
    max-width: 100%;
}

.blog-body img,
.blog-body video {
    height: auto;
}

.blog-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-actions {
    margin-top: 12px;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #111827;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.blog-btn:hover { text-decoration: none; filter: brightness(0.95); }

.float-actions {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 80;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.18);
}

.float-btn:hover { filter: brightness(0.95); }

.float-telegram { background: #229ED9; }
.float-whatsapp { background: #25D366; }

.float-icon {
    font-size: 20px;
    line-height: 1;
}

.app-page {
    background: #f8fafc;
    padding-bottom: 26px;
    --app-theme: #ef4444;
}

.app-topbar {
    background: var(--app-theme);
    color: #fff;
}

.app-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-topbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.18);
    object-fit: cover;
}

.app-topbar-title {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.25);
}

.app-back:hover { filter: brightness(0.98); text-decoration: none; }

.app-hero {
    display: grid;
    place-items: center;
    padding: 18px 0 10px;
}

.app-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.app-hero .app-card {
    width: min(520px, 100%);
    text-align: center;
}

.app-hero-logo {
    display: grid;
    place-items: center;
    margin-top: 6px;
}

.app-hero-logo-img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: #fff;
}

.app-hero-logo-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 900;
    color: var(--muted);
    background: #fff;
}

.app-hero-title {
    margin: 12px 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.app-stats {
    margin: 8px 0 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 12px;
}

.app-stat-value {
    font-weight: 900;
    font-size: 16px;
}

.app-stat-label {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.10);
    margin-top: 10px;
}

.app-btn-primary {
    background: #db2777;
    color: #fff;
    border-color: #db2777;
}

.app-btn-outline {
    background: #fff;
    color: #ef4444;
    border-color: #ef4444;
}

.app-btn:hover { text-decoration: none; filter: brightness(0.98); }

.app-btn-full { margin-top: 0; }

.app-sections {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.app-section-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.app-section-body {
    font-size: 14px;
    color: rgba(17, 24, 39, 0.90);
}

.app-section-body a { color: var(--primary); font-weight: 800; }

.app-muted { color: var(--muted); margin: -6px 0 12px; }

.app-notice {
    margin-top: 14px;
    font-size: 14px;
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.other-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    text-align: center;
}

.other-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.other-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-title { font-weight: 900; margin-bottom: 6px; }
.other-bonus { color: #16a34a; font-weight: 900; margin-bottom: 4px; }
.other-withdraw { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.other-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.other-btn:hover { text-decoration: none; filter: brightness(0.95); }

.faq-list { display: grid; gap: 10px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 10px 12px;
}
.faq-q {
    font-weight: 900;
    cursor: pointer;
}
.faq-a {
    margin-top: 8px;
    color: rgba(17, 24, 39, 0.90);
    font-size: 14px;
}

.fb-list { display: grid; gap: 10px; }
.fb-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}
.fb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.fb-name { font-weight: 900; }
.fb-stars { color: #f59e0b; font-weight: 900; }
.fb-body { color: rgba(17, 24, 39, 0.90); font-size: 14px; }

.app-final {
    margin-top: 14px;
    display: grid;
    place-items: center;
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    background: var(--footer-bg, #0b1220);
    color: var(--footer-text, #e5e7eb);
    padding: 26px 0 18px;
}

.site-footer a { color: var(--footer-link, #93c5fd); }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 18px;
    padding-bottom: 14px;
}

.footer-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: var(--footer-text, #e5e7eb);
}

.footer-text {
    font-size: 13px;
    color: rgba(229, 231, 235, 0.92);
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.footer-address { color: rgba(229, 231, 235, 0.92); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 14px;
    color: rgba(229, 231, 235, 0.75);
    font-size: 13px;
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        background: var(--header-bg, var(--bg));
        border-bottom: 1px solid var(--header-border, var(--border));
    }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 12px;
    }
    .nav-link {
        width: 100%;
        padding: 12px 10px;
        border-radius: 12px;
    }
    .brand-title { max-width: 60vw; }
    .home-tab-btn { min-width: 100%; }
    .product-row { padding-left: 16px; }
    .blog-inner { grid-template-columns: 1fr; }
    .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .other-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
