/* ==========================================================================
   Yono Apps Hub — shared layout & homepage
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(45, 212, 191, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 184, 0, 0.08), transparent),
        linear-gradient(180deg, #E8EEF0 0%, var(--bg-body) 28%);
    background-attachment: fixed;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: calc(var(--header-height) + 12px);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

h1, h2, h3, h4, .nav-main-title, .home-brand-name, .hero-app-title {
    font-family: var(--font-display);
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; outline: none; font-family: inherit; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }

/* --------------------------------------------------------------------------
   Top navbar (full-width; drawer only on mobile)
   -------------------------------------------------------------------------- */
.top-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.04);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.9; }

.nav-logo {
    width: 44px; height: 44px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--brand-surface-border);
    box-shadow: 0 4px 14px var(--brand-shadow-soft);
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.nav-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-main-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 17px; font-weight: 800; color: var(--text-dark);
    letter-spacing: -0.4px; line-height: 1.1;
}
.nav-main-title .title-accent {
    background: var(--brand-accent-gradient);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.verified-badge { width: 16px; height: 16px; flex-shrink: 0; }
.nav-sub-title {
    font-size: 11px; font-weight: 700; color: var(--brand-primary);
    text-transform: uppercase; letter-spacing: 0.9px;
}

.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-desk-link {
    padding: 9px 15px;
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.nav-desk-link:hover { color: var(--brand-primary-dark); background: var(--brand-surface); }
.nav-desk-link.is-active {
    color: var(--brand-primary-deep);
    background: var(--brand-surface);
    font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-telegram-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 16px; border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff; font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.4px;
    box-shadow: 0 6px 18px var(--brand-shadow-soft);
    transition: var(--transition-smooth);
}
.nav-telegram-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--brand-shadow);
}
.nav-telegram-pill .tg-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    fill: currentColor; stroke: none; display: block;
}
.nav-telegram-pill .tg-icon path { fill: currentColor; stroke: none; }

.action-btn {
    position: relative; width: 42px; height: 42px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    cursor: pointer;
}
.action-btn:hover {
    background: var(--brand-surface);
    border-color: var(--brand-surface-border);
    color: var(--brand-primary);
    transform: translateY(-1px);
}
.action-btn svg { width: 20px; height: 20px; }
.bell-btn svg { animation: ringBell 5s infinite ease-in-out; transform-origin: top center; }
.bell-badge {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: linear-gradient(135deg, #FB7185, #EF4444);
    border: 2px solid #fff; border-radius: 50%;
}
@keyframes ringBell {
    0%, 88%, 100% { transform: rotate(0deg); }
    90%, 94% { transform: rotate(-10deg); }
    92%, 96% { transform: rotate(10deg); }
}
.hamburger-btn { display: none; }
.hamburger-btn.is-open {
    background: var(--brand-surface);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Mobile drawer */
.sidebar-mask {
    display: none; position: fixed; inset: 0;
    background: rgba(11, 18, 32, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2500; opacity: 0; pointer-events: none;
    transition: var(--transition-smooth);
}
.sidebar-mask.active { opacity: 1; pointer-events: auto; }

.right-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FA 100%);
    border-left: 1px solid var(--brand-glow-border);
    z-index: 3000;
    display: flex; flex-direction: column;
    box-shadow: -12px 0 40px rgba(11, 18, 32, 0.1);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease-out);
}
.right-sidebar.open { transform: translateX(0); }

.sidebar-header {
    height: var(--header-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.sidebar-brand-mini { display: flex; align-items: center; gap: 10px; }
.sidebar-brand-mini img {
    width: 36px; height: 36px; border-radius: 12px;
    border: 1px solid var(--brand-surface-border);
}
.sidebar-title { font-size: 13px; font-weight: 800; color: var(--text-dark); font-family: var(--font-display); }
.sidebar-title-sub { font-size: 9px; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.8px; }
.close-btn {
    width: 38px; height: 38px;
    background: var(--brand-surface); border: 1px solid var(--brand-surface-border);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary); transition: 0.2s;
}
.close-btn:hover { background: var(--brand-primary); color: #fff; border-color: transparent; }
.close-btn svg { width: 18px; height: 18px; }

.sidebar-nav {
    flex: 1; overflow-y: auto;
    padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.nav-item-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 14px;
    font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
    transition: 0.22s var(--ease-out);
    border: 1px solid transparent;
}
.nav-item-row svg {
    width: 18px; height: 18px; flex-shrink: 0;
    padding: 8px; box-sizing: content-box;
    background: #F1F5F9; border-radius: 10px;
    stroke: #64748B;
}
.nav-item-row .tg-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    padding: 8px; box-sizing: content-box;
    background: #F1F5F9; border-radius: 10px;
    fill: #64748B; stroke: none;
}
.nav-item-row .tg-icon path { fill: currentColor; stroke: none; }
.nav-item-row:hover .tg-icon { background: var(--brand-surface); color: var(--brand-primary); }
.nav-item-row:hover:not(.nav-item-active) {
    background: #fff;
    color: var(--brand-primary-dark);
    border-color: var(--brand-surface-border);
}
.nav-item-active {
    background: var(--brand-gradient);
    color: #fff !important;
    box-shadow: 0 8px 20px var(--brand-shadow-soft);
}
.nav-item-active svg { background: rgba(255,255,255,0.18); stroke: #fff !important; }
.nav-section-title {
    font-size: 10px; font-weight: 800; color: #94A3B8;
    text-transform: uppercase; letter-spacing: 1.2px;
    margin: 16px 6px 6px;
    padding-top: 12px;
    border-top: 1px dashed #E2E8F0;
}

.hire-widget {
    margin: 12px 14px 18px;
    padding: 16px;
    background: linear-gradient(145deg, var(--brand-primary-deep) 0%, #0B1220 100%);
    border-radius: 18px; color: #fff;
    position: relative; overflow: hidden;
}
.hire-widget-title { font-size: 13px; font-weight: 800; margin-bottom: 6px; font-family: var(--font-display); }
.hire-widget-desc { font-size: 11px; color: #94A3B8; margin-bottom: 12px; line-height: 1.45; }
.hire-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: var(--brand-accent-gradient);
    color: var(--brand-primary-deep);
    padding: 11px; border-radius: 12px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    transition: 0.2s;
}
.hire-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hire-btn svg { width: 16px; height: 16px; stroke: var(--brand-primary-deep); }

/* Notification modal */
.popup-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(6px);
    z-index: 5000;
    display: none; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none;
    transition: var(--transition-smooth);
}
.popup-modal-overlay.modal-active { display: flex; opacity: 1; pointer-events: auto; }
.popup-modal-card {
    background: #fff; width: 100%; max-width: 400px;
    border-radius: 24px; padding: 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    transform: scale(0.94);
    transition: transform 0.3s var(--ease-out);
}
.popup-modal-overlay.modal-active .popup-modal-card { transform: scale(1); }
.modal-header-row {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #F1F5F9; padding-bottom: 16px; margin-bottom: 16px;
}
.modal-branding { display: flex; align-items: center; gap: 12px; }
.modal-icon {
    width: 48px; height: 48px;
    background: var(--brand-surface); color: var(--brand-primary);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-surface-border);
}
.modal-icon svg { width: 24px; height: 24px; }
.modal-heading { font-size: 17px; font-weight: 800; font-family: var(--font-display); }
.modal-badge { font-size: 11px; font-weight: 800; color: var(--brand-secondary); text-transform: uppercase; margin-top: 2px; }
.modal-body-text { font-size: var(--text-base); font-weight: 500; color: var(--text-muted); line-height: var(--leading-body); margin-bottom: 24px; }
.modal-footer-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: var(--brand-primary-deep); color: #fff;
    padding: 14px; border-radius: 14px;
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
    transition: 0.2s;
}
.modal-footer-btn:hover { background: var(--brand-primary); }

@media (max-width: 900px) {
    body { padding-top: 96px; }
    .top-navbar {
        width: calc(100% - 20px); left: 10px; right: auto; top: 10px;
        height: 64px; border-radius: 18px; padding: 0 12px;
        border: 1px solid rgba(255,255,255,0.95);
        box-shadow: 0 10px 28px rgba(11, 18, 32, 0.08);
    }
    .nav-desktop-links { display: none; }
    .nav-telegram-pill { display: none; }
    .nav-logo { width: 40px; height: 40px; }
    .nav-main-title { font-size: 15px; }
    .hamburger-btn { display: flex; }
    .sidebar-mask { display: block; }
    .right-sidebar { border-radius: 20px 0 0 20px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.main-premium-footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 48px 0 0;
    margin-top: 48px;
    width: 100%;
    position: relative;
}
.footer-top-accent-line {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-gradient-wide);
}
.footer-grid-wrapper {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px 36px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 40px;
}
.footer-meta-box { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-node { display: flex; align-items: center; gap: 12px; }
.footer-avatar-frame {
    width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 18, 32, 0.08);
}
.footer-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-title { font-size: 16px; font-weight: 800; font-family: var(--font-display); letter-spacing: -0.2px; }
.footer-brand-tagline { font-size: 11px; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-editorial-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-body); font-weight: 500; }
.footer-social-cluster { display: flex; flex-wrap: wrap; gap: 10px; }
.premium-social-button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 16px; border-radius: 12px; font-size: 12px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    transition: all 0.25s var(--ease-out);
}
.tg-glow-btn {
    background: var(--brand-surface); color: var(--brand-primary-dark);
    border: 1px solid var(--brand-surface-border);
}
.tg-glow-btn:hover {
    background: var(--brand-gradient-hero); color: #fff; border-color: transparent;
    transform: translateY(-2px);
}
.dev-tg-btn { background: #F8FAFC; color: #0F172A; border: 1px solid #E2E8F0; }
.dev-tg-btn:hover { background: var(--brand-surface); color: var(--brand-primary-dark); border-color: var(--brand-surface-border); }
.premium-social-button .tg-icon {
    width: 16px; height: 16px; fill: currentColor; stroke: none;
}
.premium-social-button .tg-icon path { fill: currentColor; stroke: none; }
.footer-link-group-box { display: flex; flex-direction: column; gap: 14px; }
.footer-group-heading {
    font-size: 11px; font-weight: 800; color: #94A3B8;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.footer-navigation-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-navigation-list a {
    font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
    transition: 0.2s;
}
.footer-navigation-list a:hover { color: var(--brand-primary); transform: translateX(3px); display: inline-block; }
.footer-trust-badge-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.trust-badge-node {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    padding: 10px 12px; border-radius: 12px;
}
.trust-badge-node span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-icon { width: 16px; height: 16px; }
.secure-ssl { border-color: var(--brand-surface-border); background: var(--brand-surface); color: var(--brand-primary-dark); }
.verified-rng { border-color: #FDE68A; background: #FFFBEB; color: #B45309; }
.footer-ultimate-base-bar { border-top: 1px solid rgba(0,0,0,0.04); background: var(--bg-elevated); padding: 20px 0; }
.base-bar-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.copyright-text { font-size: 12px; font-weight: 600; color: #94A3B8; }
.regulatory-subtext { font-size: 11px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.4px; }

@media (max-width: 900px) {
    .footer-grid-wrapper { grid-template-columns: 1fr; gap: 32px; }
    .base-bar-inner { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */
.app-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Banner-only hero */
.home-hero {
    position: relative;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
    animation: heroIn 0.55s var(--ease-out) both;
}
.home-hero--banner::before,
.home-hero--banner::after { display: none; }

.home-banner-link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
    line-height: 0;
}
.home-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(11, 18, 32, 0.16);
}
.home-banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1600 / 533;
    object-fit: cover;
}

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

.site-compliance-strip {
    background: transparent;
    border: none;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0;
    padding: 4px 0 4px 14px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-body);
    font-weight: 500;
}
.site-compliance-strip a { color: var(--brand-primary-dark); font-weight: 700; text-decoration: underline; }
.site-compliance-strip p { margin: 0; }

/* Directory controls */
.directory-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-margin-top: 100px;
}
.app-directory-heading {
    font-size: var(--text-lg);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin: 0;
    text-align: left;
}
.directory-lead {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    line-height: var(--leading-body);
    margin: -4px 0 0;
}

.home-seo-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.home-seo-title {
    font-size: var(--text-lg);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-dark);
    margin: 0;
}
.home-notice {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-notice-title {
    font-size: 12px;
    font-weight: 800;
    color: #C2410C;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.home-notice-body,
.home-notice-alert {
    font-size: var(--text-sm);
    color: #9A3412;
    font-weight: 500;
    line-height: var(--leading-body);
    margin: 0;
}
.home-notice-body a { color: #C2410C; font-weight: 700; }
.home-notice-alert { border-top: 1px solid #FED7AA; padding-top: 8px; }

.app-search-wrap {
    position: relative;
}
.app-search-wrap svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #94A3B8; pointer-events: none;
}
.app-search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.app-search-input:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px var(--brand-glow-light);
}
.app-search-input::placeholder { color: #94A3B8; font-weight: 500; }

.category-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.cat-chip {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    transition: 0.2s;
    cursor: pointer;
}
.cat-chip:hover { border-color: var(--brand-surface-border); color: var(--brand-primary-dark); }
.cat-chip.is-active {
    background: var(--brand-primary-deep);
    color: #fff;
    border-color: transparent;
}

.tab-switcher {
    background: rgba(15, 23, 42, 0.06);
    padding: 5px;
    border-radius: 14px;
    display: flex;
    width: 100%;
    max-width: 360px;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--text-muted);
    border-radius: 10px;
    transition: all 0.35s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.tab-btn.active {
    background: var(--brand-gradient-hero);
    color: #fff;
    box-shadow: 0 6px 16px var(--brand-glow-medium);
}

.view-box { display: none; }
.view-box.active { display: block; animation: panelIn 0.35s var(--ease-out); }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-empty {
    display: none;
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: 600;
}
.filter-empty.is-visible { display: block; }

/* App list — simple rows inside one panel */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
}
.app-list-card {
    background: #fff;
    border-radius: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: none;
    transition: background 0.2s;
    position: relative;
}
.app-list-card:last-child { border-bottom: none; }
.app-list-card:hover { background: #F8FAFC; transform: none; box-shadow: none; }
.app-list-card.is-filtered-out { display: none !important; }

.list-icon-box {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: #fff;
    overflow: hidden;
}
.list-icon-box img { width: 100%; height: 100%; object-fit: cover; }

.list-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-pill {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 3px 7px; border-radius: 6px; line-height: 1;
}
.list-pill--hot { background: #FEF3C7; color: #B45309; }
.list-pill--new { background: #D1FAE5; color: #047857; }

.app-list-card-link {
    text-decoration: none; color: inherit;
    display: flex; align-items: center; gap: 14px;
    flex: 1; min-width: 0;
}
.app-list-card-link:hover .app-name-title { color: var(--brand-primary); }

.list-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-name-title {
    font-size: var(--text-md); font-weight: 800; color: var(--text-dark);
    font-family: var(--font-display); line-height: var(--leading-tight); margin: 0;
}
.list-meta-line {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}
.list-meta-line strong { color: var(--text-dark); font-weight: 800; }
.list-meta-line strong:first-of-type { color: var(--brand-primary-dark); }

.list-action-btn,
.grid-action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    transition: 0.22s var(--ease-out); text-decoration: none; cursor: pointer;
}
.list-action-btn svg,
.grid-action-btn svg {
    width: 15px; height: 15px; stroke: currentColor; fill: none;
    stroke-width: 2.5; flex-shrink: 0;
}
.list-action-btn {
    background: var(--brand-primary-deep);
    padding: 11px 16px; border-radius: 11px; font-size: var(--text-sm);
    box-shadow: none;
    flex-shrink: 0;
}
.list-action-btn:hover { background: var(--brand-primary); transform: none; box-shadow: none; }
.list-action-btn:active { transform: scale(0.98); }

/* New apps grid */
.grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app-grid-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.app-grid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.app-grid-card.is-filtered-out { display: none !important; }
.grid-icon-box {
    width: 68px; height: 68px; border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-bottom: 10px;
}
.grid-icon-box img { width: 100%; height: 100%; object-fit: cover; }
.new-badge-ribbon {
    position: absolute; top: 10px; right: 10px;
    background: #10B981; color: #fff;
    font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
    text-transform: uppercase;
}
.grid-app-title {
    font-size: var(--text-base); font-weight: 700; font-family: var(--font-display);
    color: var(--text-dark); margin-bottom: 8px; width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-stats-box { width: 100%; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.grid-reward-pill {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 8px; font-size: var(--text-xs); font-weight: 700;
}
.grid-bonus { background: var(--brand-surface); color: var(--brand-primary-dark); border: 1px solid var(--brand-surface-border); }
.grid-withdraw { background: #F0F9FF; color: #0369A1; border: 1px solid #BAE6FD; }
.grid-lbl { font-size: 10px; text-transform: uppercase; opacity: 0.8; }
.grid-action-btn {
    width: 100%; background: var(--brand-gradient);
    padding: 12px; border-radius: 11px; font-size: var(--text-xs);
    box-shadow: 0 4px 12px var(--brand-shadow-soft);
}
.grid-action-btn:hover { transform: translateY(-1px); }

/* Trending — amber language, distinct from New */
.trending-block { margin-top: 4px; }
.sec-title {
    font-size: var(--text-lg); font-weight: 800; font-family: var(--font-display);
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0 6px; color: var(--text-dark);
}
.sec-icon {
    width: 28px; height: 28px; border-radius: 8px;
    padding: 5px; display: flex; align-items: center; justify-content: center;
}
.sec-icon--trending { background: #FEF3C7; color: #B45309; }

.app-list-card--trending { background: linear-gradient(90deg, rgba(254,243,199,0.35) 0%, #fff 55%); }
.app-list-card--trending:hover { background: linear-gradient(90deg, rgba(254,243,199,0.5) 0%, #F8FAFC 55%); }

/* Below-fold content — less card chrome */
.home-section-lead {
    font-size: var(--text-sm); color: var(--text-muted); font-weight: 500;
    line-height: var(--leading-body); margin: 0 0 10px;
}

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    box-shadow: none;
}
.faq-question {
    padding: 16px 4px;
    font-size: var(--text-base); font-weight: 700; color: var(--text-dark);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    list-style: none; font-family: var(--font-display); line-height: var(--leading-tight);
    gap: 12px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { width: 18px; height: 18px; color: #94A3B8; transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(180deg); color: var(--brand-primary); }
.faq-answer {
    padding: 0 4px 16px;
    font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; line-height: var(--leading-body);
}

.seo-keywords-box { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-keyword {
    font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
    background: transparent; padding: 0; border-radius: 0;
    border: none; border-bottom: 1px solid #CBD5E1;
    text-decoration: none; display: inline-block;
}
a.seo-keyword:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

.featured-seo-links {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.featured-seo-link {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: var(--text-base); font-weight: 700; color: var(--text-dark);
    transition: color 0.2s;
}
.featured-seo-link:hover { color: var(--brand-primary); }
.featured-seo-link span { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.seo-tips-list { display: flex; flex-direction: column; gap: 0; }
.seo-tip-item {
    background: transparent; border: none; border-radius: 0;
    padding: 14px 4px 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; line-height: var(--leading-body);
}
.seo-tip-item strong { color: var(--text-dark); }

.seo-master-block {
    padding: 8px 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.seo-card-title {
    font-size: var(--text-lg); font-weight: 800; font-family: var(--font-display);
    color: var(--text-dark); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.seo-card-title svg { width: 20px; height: 20px; color: var(--brand-primary); }
.seo-paragraph {
    font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; font-weight: 500; margin-bottom: 14px;
}
.legal-warning-box {
    background: transparent;
    border-left: 3px solid #E11D48;
    padding: 8px 0 8px 14px;
    border-radius: 0;
}
.warning-text { font-size: var(--text-xs); color: #9F1239; font-weight: 500; line-height: var(--leading-body); }

/* Sticky Telegram bar (mobile home) */
.home-sticky-tg {
    display: none;
    position: fixed; left: 12px; right: 12px; bottom: 12px;
    z-index: 400;
    align-items: center; justify-content: center; gap: 8px;
    padding: 15px 18px;
    border-radius: 14px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: var(--text-sm); font-weight: 800;
    box-shadow: 0 12px 32px var(--brand-shadow);
    text-transform: uppercase; letter-spacing: 0.4px;
}
.home-sticky-tg .tg-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.home-sticky-tg .tg-icon path { fill: currentColor; stroke: none; }

@media (max-width: 768px) {
    .home-sticky-tg { display: flex; }
    .app-container { padding-bottom: 80px; }
}
@media (max-width: 600px) {
    .app-container { padding: 0 14px 72px; gap: 20px; }
    .home-banner-link { border-radius: 16px; }
    .list-icon-box { width: 60px; height: 60px; }
    .app-name-title { font-size: var(--text-base); }
    .list-action-btn { padding: 11px 14px; font-size: 12px; }
    .grid-container { gap: 10px; }
    .grid-icon-box { width: 60px; height: 60px; }
    .tab-switcher { max-width: 100%; }
}
@media (min-width: 901px) {
    .tab-switcher { max-width: 420px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
