* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: #eef4ff url('../images/bus-background.png') center center / cover fixed no-repeat;
    color: #0f172a;
    position: relative;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

body > * {
    position: relative;
    z-index: 1;
}

button,
input {
    font-family: 'Poppins', sans-serif;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    width: 100%;
    background: #0c4aff;
}

.page-header__title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 24px;
    text-align: center;
}

.page-header__title h1 {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 7vw, 6.5rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.title-marquee {
    overflow: hidden;
    width: 100%;
}

.slide-title {
    display: inline-block;
    white-space: nowrap;
    animation: slide-title 7.2s linear infinite;
    will-change: transform;
    font-family: 'Anton', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

@keyframes slide-title {
    from {
        transform: translateX(120vw);
    }
    to {
        transform: translateX(-120vw);
    }
}

.search-section,
.hero-red-section {
    width: 100%;
    background: linear-gradient(90deg, #e60000 0%, #ff2a2a 100%);
    padding: 20px 24px 28px;
    min-height: 300px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.search-box,
.hero-search-box {
    width: 100%;
    max-width: 980px;
    margin: 0;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.search-box input {
    display: none;
}

.search-box button {
    display: none;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.hero {
    width: 100%;
    background: #000;
    background-image: none;
    padding: 56px 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Video background ─────────────────────────────────────────────── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* ── Search + categories section inside hero ─────────────────────── */
.hero-search-section {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 7vw, 6.5rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 0.9;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Animated hero image background (dual-direction carousel) */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* subtle overlay between the background image and the header text */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    z-index: 1;
    pointer-events: none;
}

.hero-inner { 
    position: relative;
    z-index: 3;
}

.hero-row {
    width: 100%;
    overflow: hidden;
    display: none;
}

.hero-row .slide {
    display: flex;
    width: 200%;
    gap: 20px;
    align-items: center;
}

.hero-row .slide img {
    height: 96px;
    width: auto;
    border-radius: 16px;
    object-fit: cover;
    opacity: 0.16;
    filter: brightness(0.24) saturate(0.85);
    box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}

/* ensure covers keep their intrinsic size in the sliding row */
.hero-row .slide img {
    flex: 0 0 auto;
}

.hero-row.row-a .slide {
    animation: slide-left 34s linear infinite;
}

.hero-row.row-b .slide {
    animation: slide-right 26s linear infinite;
}

@keyframes slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slide-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-row .slide { animation: none !important; }
}

@media (max-width: 720px) {
    .hero-row .slide img { height: 64px; }
}

.search-area {
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.search-inner {
    max-width: none;
    width: auto;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 24px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: text;
    flex-shrink: 0;
}

.search-box input {
    display: flex;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    padding: 0 4px;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-box button {
    display: flex;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #0c4aff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.search-box .search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.categories {
    width: auto;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.categories-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.categories-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    gap: 4px;
    padding: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 0 1 350px;
    align-items: center;
}

.categories-inner::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.cat {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #0c4aff 0%, #e60000 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 3px 10px rgba(12, 74, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
}

.cat:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0a2b8f 0%, #ff5757 100%);
}

.cat.active {
    background: #0c4aff;
    box-shadow: 0 10px 24px rgba(12, 74, 255, 0.28);
}

.cat-scroll-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #0c4aff;
    border: 1px solid rgba(12, 74, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.cat-scroll-btn:hover {
    background: #0c4aff;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(12, 74, 255, 0.3);
}

.cat-scroll-btn:active {
    transform: scale(0.94);
}

.main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 48px;
}

.category-panel {
    margin-bottom: 32px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.category-title {
    margin: 0;
    font-size: 2rem;
    color: #0f172a;
}

.category-label {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(12, 74, 255, 0.1);
    color: #0c4aff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
}

.back-home:hover {
    background: rgba(12, 74, 255, 0.18);
}

.category-empty-message {
    padding: 32px;
    border-radius: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.category-empty-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.hidden {
    display: none !important;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.stat-value {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.section-block {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: #0f172a;
    letter-spacing: 0.02em;
}

.btn-see-all,
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-see-all:hover,
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(10, 43, 143, 0.28);
}

.btn-action.disabled,
.btn-see-all.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Make chat buttons smaller and less tall */
.btn-chat {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 999px;
    min-width: 160px;
    align-items: center;
}

.btn-chat .btn-icon {
    font-size: 1rem;
}

/* Secondary chat button variant (WhatsApp) */
.btn-secondary.btn-chat {
    padding: 10px 14px;
    min-width: 160px;
}

/* Small website chat button style (matches other small buttons) */
.btn-chat-small {
    background: linear-gradient(90deg, #3949ab, #ff3d00);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-width: 110px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-chat-small .small-text { display: inline-block; }

.btn-secondary {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.latest-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
}

.latest-carousel::-webkit-scrollbar {
    display: none;
}

.latest-card {
    flex: 0 0 240px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.latest-card-image {
    width: 100%;
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    overflow: hidden;
    background: #1e293b;
}

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

.latest-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.latest-card-date {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.latest-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-card p {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-btn {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ── Category badge on game cards ─────────────────────────────────── */
.card-img-wrap {
    position: relative;
    width: 100%;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
}

.card-img-wrap .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-card-image {
    position: relative;
}

/* ── Advertisement Containers & Ad Slots ──────────────────────────── */
.ad-container {
    width: 100% !important;
    max-width: 960px !important;
    margin: 16px auto !important;
    padding: 10px 14px !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 90px !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Pass clicks/touches through to the <a> inside */
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

.ad-container:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
}

.ad-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 6px !important;
    user-select: none !important;
    line-height: 1 !important;
    text-align: left !important;
    display: block !important;
    pointer-events: none !important;
}

.ad-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 70px !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* Hardcoded Banner Link Styles */
.ad-banner-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    /* Ensure mobile taps register immediately without 300ms delay */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255,255,255,0.15) !important;
}

.ad-banner-link:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
}

/* Banner Themes */
.ad-banner-theme-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ad-banner-theme-green {
    background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #16a34a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ad-banner-theme-purple {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ad-banner-theme-red {
    background: linear-gradient(135deg, #881337 0%, #be123c 50%, #e11d48 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ad-banner-tag {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #facc15 !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(250, 204, 21, 0.4) !important;
}

.ad-banner-icon {
    font-size: 2rem !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) !important;
}

.ad-banner-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: left !important;
    overflow: hidden !important;
}

.ad-banner-title {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
    display: block !important;
}

.ad-banner-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.76rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    display: block !important;
}

.ad-banner-action {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
    letter-spacing: 0.02em !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.ad-banner-link:hover .ad-banner-action {
    background: #f8fafc !important;
    transform: scale(1.04) !important;
}

/* Modifier variants */
.ad-container.ad-banner {
    max-width: 960px !important;
    margin: 16px auto !important;
}

.ad-container.ad-top {
    margin-top: 10px !important;
    margin-bottom: 16px !important;
}

.ad-container.ad-bottom {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.ad-container.ad-compact {
    padding: 8px 10px !important;
    margin: 10px 0 !important;
    min-height: 70px !important;
}

.ad-container.ad-compact .ad-banner-link {
    padding: 8px 12px !important;
    gap: 8px !important;
}

.ad-container.ad-compact .ad-banner-icon {
    font-size: 1.4rem !important;
}

.ad-container.ad-compact .ad-banner-title {
    font-size: 0.82rem !important;
}

.ad-container.ad-compact .ad-banner-desc {
    font-size: 0.68rem !important;
}

.ad-container.ad-compact .ad-banner-action {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
}

@media (max-width: 720px) {
    .ad-container {
        padding: 8px 10px !important;
        margin: 12px auto !important;
    }
    .ad-banner-link {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    .ad-banner-tag {
        display: none !important;
    }
    .ad-banner-icon {
        font-size: 1.6rem !important;
    }
    .ad-banner-title {
        font-size: 0.84rem !important;
    }
    .ad-banner-desc {
        font-size: 0.7rem !important;
    }
    .ad-banner-action {
        padding: 6px 12px !important;
        font-size: 0.74rem !important;
    }
}

@media (max-width: 480px) {
    .ad-banner-desc {
        display: none !important;
    }
    .ad-banner-title {
        font-size: 0.8rem !important;
    }
    .ad-banner-action {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}


.follow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.follow-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
}

.follow-icon {
    font-size: 2rem;
}

.follow-label {
    margin: 0 0 6px;
    font-weight: 700;
    color: #0f172a;
}

.follow-account {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    word-break: break-all;
}

.chat-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.chat-section .section-header {
    justify-content: flex-start;
}

.chat-section .section-header h2 {
    font-size: 1.2rem;
}

#sendContactBtn {
    align-self: flex-start;
    padding: 6px 10px;
    font-size: 0.7rem;
}

.btn-chat {
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
}

.account-card {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.account-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.account-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.btn-follow {
    padding: 18px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    background: linear-gradient(90deg, #FF7A18 0%, #AF002D 50%, #5B0060 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(95, 18, 128, 0.18);
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(95, 18, 128, 0.22);
}

.follow-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-weight: 700;
}

.follow-text {
    font-size: 1rem;
}

/* Follow menu popup */
.follow-menu {
    position: absolute;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    z-index: 999999;
    display: none;
}

.follow-menu.active {
    display: block;
}

.follow-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
}

.follow-menu a:hover {
    background: #f3f6ff;
}

.follow-menu .icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13,31,53,0.06);
}

/* Small buttons placed inside account actions */
.account-actions .btn-action {
    padding: 10px 14px;
    min-width: 140px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.account-actions .btn-account,
.account-actions .btn-follow {
    padding: 10px 14px;
    min-width: 140px;
}

.btn-whatsapp-small {
    background: #25D366; /* WhatsApp green */
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-width: 110px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-whatsapp-small .small-text {
    display: inline-block;
}

/* Uniform small button size for header/account actions */
.btn-uniform-small,
.btn-chat-small,
.btn-whatsapp-small,
.account-actions .btn-action,
.account-actions .btn-account,
.account-actions .btn-follow,
.btn-account,
.btn-follow {
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 120px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ensure header/account buttons use exactly the same small size */
.btn-action.btn-account,
.btn-action.btn-follow,
.btn-action.btn-whatsapp-small,
.btn-action.btn-secondary.btn-chat,
.btn-action.btn-chat,
.btn-follow,
.btn-account,
.btn-chat,
.btn-whatsapp-small {
    padding: 8px 12px !important;
    font-size: 0.95rem !important;
    min-width: 140px !important;
    height: auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 720px) {
    .account-actions { flex-direction: column; align-items: stretch; }
    .account-actions .btn-action { width: 100%; min-width: auto; }
}

.btn-account {
    width: auto;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    border-radius: 999px;
}

.btn-account .btn-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.4rem;
}

.account-icon {
    display: none;
}

/* Legacy card rules removed — consolidated below */

.card-title {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: 1.4rem;
    color: #0f172a;
}

.card-desc {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 1080px) {
    .follow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .chat-actions,
    .follow-grid {
        grid-template-columns: 1fr;
    }

    .latest-card {
        min-width: 280px;
        max-width: 100%;
    }

    .account-card {
        justify-content: flex-end;
    }

    .btn-account {
        width: auto;
        min-width: 220px;
        padding: 16px 24px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .account-icon {
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
    }
}

@media (max-width: 560px) {
    .latest-carousel {
        padding-left: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action,
    .btn-see-all {
        width: 100%;
    }

    .follow-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 180px;
    }
}

.section-empty {
    margin-top: 18px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.card-meta {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 2px;
}

.card-price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 4px;
    width: fit-content;
    line-height: 1.3;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* No fixed min-height — height adapts to content */
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

/* .card-img is inside .card-img-wrap which controls the height */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #1e293b;
}

.card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}

.card-title,
.card h2,
.card h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc,
.card p {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card a {
    margin-top: auto;
    width: 100%;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(10, 43, 143, 0.2);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 43, 143, 0.28);
}

.btn-buy-now {
    background: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
}

.download-icon,
.buy-icon {
    font-size: 0.9rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 32px;
}

.site-footer {
    width: 100%;
    background: linear-gradient(90deg, #1c4cff 0%, #0a2b8f 100%);
    color: #ffffff;
    text-align: center;
    padding: 28px 24px;
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 1080px) {
    .cards,
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .search-box {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        min-width: 40px !important;
        flex-direction: row !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .search-box input,
    .search-box button {
        display: none !important;
        width: 0 !important;
    }

    .cards,
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .statistics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories {
        padding: 10px 0;
    }

    .categories-wrapper {
        padding: 0 8px;
        gap: 6px;
    }

    .cat-scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .cat {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 560px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: stretch;
    }

    .back-home {
        width: 100%;
    }
}

@keyframes slide-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-8px);
    }
}

.site-footer {
    width: 100%;
    background: linear-gradient(90deg, #1c4cff 0%, #0a2b8f 100%);
    color: #ffffff;
    text-align: center;
    padding: 28px 24px;
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 1080px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-header__title {
        padding: 40px 18px 18px;
    }

    .page-header__title h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .search-section {
        padding: 22px 18px 28px;
    }

    .search-box {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .page-content {
        padding: 32px 18px 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Download / details page redesign */
.download-header {
    width: 100%;
    background: #000000;
    background-size: cover;
    background-position: center;
    padding: 32px 24px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.download-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.download-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-label {
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.download-title {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.8rem, 6vw, 5.2rem);
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.slide-in {
    transform: translateX(120px);
    opacity: 0;
    animation: slide-in 1.2s ease-out forwards;
}

@keyframes slide-in {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.download-nav {
    background: #e60000;
    border-top: 4px solid #0c4aff;
    border-bottom: 4px solid #0c4aff;
}

.download-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.download-nav__inner::-webkit-scrollbar {
    display: none;
}

.download-nav__inner a {
    flex: 0 0 auto;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.download-nav__inner a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.download-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 48px;
}

.hero-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    background: #ffffff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
    align-items: center;
}

.hero-card__media {
    border-radius: 28px;
    overflow: hidden;
    background: transparent;
}

.hero-card__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 850px) {
    .hero-card {
        grid-template-columns: 1fr;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .hero-card__media {
        border-radius: 24px;
        overflow: hidden;
    }

    .hero-card__media img {
        border-radius: 0;
        box-shadow: none;
    }

    .hero-card__content {
        padding: 24px 0 0;
        background: transparent;
    }
}

.hero-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 16px;
}

.hero-badge--primary {
    background: #edf4ff;
    color: #0c4aff;
}

.hero-badge--secondary {
    background: #fff0f0;
    color: #c70a0a;
}

.hero-card h2 {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    color: #0f172a;
    line-height: 0.95;
}

.hero-copy {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #475569;
    max-width: 760px;
}

.hero-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.info-pill {
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.download-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 28px;
    margin-top: 32px;
}

.info-card,
.download-panel,
.content-card,
.screenshots-section,
.related-section {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.info-card,
.download-panel,
.content-card {
    padding: 32px;
}

.info-card h3,
.content-card h3,
.screenshots-section h3,
.related-section h3 {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: 1.7rem;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #475569;
}

.info-item__value {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.download-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}

.download-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #0a2b8f 0%, #e60000 100%);
    padding: 14px 20px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(10, 43, 143, 0.18);
}

.download-panel__copy {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #475569;
    font-size: 1rem;
    line-height: 1.85;
}

.download-cta {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
}

.download-cta h3 {
    margin: 0 0 12px;
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: #0f172a;
}

.download-cta p {
    margin: 0 0 22px;
    font-family: 'Inter', sans-serif;
    color: #475569;
    line-height: 1.8;
    font-size: 1.02rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 18px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 20px 40px rgba(10, 43, 143, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(10, 43, 143, 0.28);
    filter: brightness(1.04);
}

.download-button:active {
    transform: translateY(0);
    box-shadow: 0 18px 34px rgba(10, 43, 143, 0.22);
}

.download-button .download-icon {
    font-size: 1.15rem;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 32px;
}

.content-card {
    padding: 32px;
}

.content-copy {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #475569;
    line-height: 1.85;
    font-size: 1rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.feature-tile {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 18px 30px rgba(10, 43, 143, 0.16);
}

.feature-tile p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    font-size: 0.98rem;
}

.screenshots-section {
    padding: 32px;
    margin-top: 32px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.screenshot-card {
    border-radius: 14px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.related-section {
    padding: 32px;
    margin-top: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.related-card img {
    width: 100%;
    height: 160px;
    max-height: 170px;
    object-fit: cover;
    display: block;
    background: #1e293b;
}

.related-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.related-card-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-text {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #475569;
    line-height: 1.45;
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card button {
    margin-top: auto;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0a2b8f 0%, #ff2a2a 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(10, 43, 143, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 43, 143, 0.28);
}

.site-footer {
    display: none !important;
    width: 100%;
    background: linear-gradient(90deg, #0c4aff 0%, #0a2b8f 100%);
    color: #ffffff;
    text-align: center;
    padding: 28px 24px;
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 1080px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .content-section {
        grid-template-columns: 1fr;
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .page-header__title {
        padding: 40px 18px 18px;
    }

    .page-header__title h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .search-section {
        padding: 22px 18px 28px;
    }

    .search-box {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .page-content {
        padding: 24px 14px 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .download-main {
        padding: 28px 18px 32px;
    }
    .hero-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .download-nav__inner {
        padding: 0 18px;
        gap: 10px;
    }
    .download-grid {
        gap: 22px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .screenshot-card {
        border-radius: 12px !important;
    }
    .screenshot-card img {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 140px !important;
        object-fit: cover !important;
    }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .content-section {
        gap: 24px;
    }
}

/* =========================================================
   GAME CENTER NET - Mobile & Accessibility Improvements
   ========================================================= */

.search-icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.card {
    min-width: 0;
}

.card-img {
    max-width: 100%;
    width: 100%;
    height: 160px;
    max-height: 170px;
    object-fit: cover;
}

.card-body {
    min-width: 0;
    padding: 12px 14px;
}

.card-title,
.card-desc {
    overflow-wrap: anywhere;
}

.btn-download {
    max-width: 100%;
    width: 100%;
}

@media (max-width: 720px) {
    .hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: 0.08em;
    }

    .search-area {
        padding: 20px 12px;
    }

    .search-box {
        max-width: 100%;
        border-radius: 24px;
    }

    .search-box input,
    .search-box button {
        min-width: 0;
        box-sizing: border-box;
    }

    .search-box input {
        padding: 15px 16px;
    }

    .search-box button {
        padding: 15px 20px;
    }

    .categories {
        padding: 10px 0;
    }

    .categories-wrapper {
        padding: 0 8px;
        gap: 6px;
    }

    .cat-scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .cat {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .main {
        padding: 24px 14px 36px;
    }
}

/* ─── Pressso Payment Modal ─────────────────────────────────────────────────── */
.pressso-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pressso-payment-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pressso-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.pressso-modal__panel {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.pressso-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.pressso-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.pressso-modal__header {
    padding: 28px 24px 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.pressso-modal__header h2 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.pressso-modal__header p {
    margin: 0;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.pressso-modal__body {
    padding: 24px;
}

.pressso-form .form-group {
    margin-bottom: 18px;
}

.pressso-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.pressso-form input[type="tel"],
.pressso-form input[type="text"],
.pressso-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.pressso-form input[type="tel"]:focus,
.pressso-form input[type="text"]:focus,
.pressso-form input[type="email"]:focus {
    outline: none;
    border-color: #0c4aff;
    background: white;
    box-shadow: 0 0 0 3px rgba(12, 74, 255, 0.1);
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: #f0f6ff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 2px solid #0c4aff;
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
    color: #0c4aff;
}

.amount-currency {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.form-info {
    background: #f0f9ff;
    border-left: 4px solid #0c4aff;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.form-info p {
    margin: 6px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.form-info p:first-child {
    margin-top: 0;
}

.form-info p:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit {
    background: #0c4aff;
    color: white;
}

.btn-submit:hover:not(:disabled) {
    background: #0a3fb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 74, 255, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.payment-status {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
}

.payment-status p {
    margin: 6px 0;
}

.payment-status p:first-child {
    margin-top: 0;
    font-weight: 600;
}

.payment-status.loading {
    background: #f0f9ff;
    border-left: 4px solid #0c4aff;
    color: #0c4aff;
}

.payment-status.success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.payment-status.error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

    .category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .card-img {
        height: 140px;
        max-height: 150px;
    }

    .card-body {
        padding: 10px 12px;
        gap: 6px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-desc {
        font-size: 0.78rem;
    }

    .btn-download {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .site-title {
        font-size: 2.25rem;
    }

    .search-box {
        padding: 10px;
    }

    .cards,
    .cards-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .card-img {
        height: 120px;
        max-height: 130px;
    }

    .card-body {
        padding: 8px 10px;
        gap: 5px;
    }

    .card-title {
        font-size: 0.88rem;
    }

    .btn-download {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

.gcnet-payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.gcnet-payment-modal.active {
    display: flex;
}

.gcnet-payment-modal__content {
    width: min(100%, 440px);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    padding: 20px 20px 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.gcnet-payment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gcnet-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.gcnet-payment-header__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gcnet-payment-header__text h3 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.gcnet-payment-header__text p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.gcnet-payment-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef4ff;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gcnet-payment-price-box {
    background: linear-gradient(180deg, #edf5ff 0%, #e8f1ff 100%);
    border: 1px solid #d7e8ff;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    color: #0c4aff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gcnet-payment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gcnet-payment-field label {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.gcnet-payment-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    overflow: hidden;
    min-height: 56px;
}

.gcnet-payment-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    font-size: 1.2rem;
    color: #0c4aff;
    background: #edf4ff;
    border-right: 1px solid #dbeafe;
}

.gcnet-payment-input-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 16px 14px;
    font-size: 1rem;
    color: #0f172a;
}

.gcnet-payment-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0c4aff 0%, #0a2b8f 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 16px 18px;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(12, 74, 255, 0.2);
}

.gcnet-payment-helper {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.gcnet-payment-result {
    min-height: 22px;
    font-size: 0.88rem;
    color: #0f172a;
    text-align: center;
}

/* ──────────────────────────────── Bottom Navigation Bar ────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.bottom-nav__inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
    border-top: 3px solid transparent;
    position: relative;
}

.bottom-nav__item:active {
    background: rgba(12, 74, 255, 0.06);
}

.bottom-nav__item.active {
    color: #0c4aff;
    border-top-color: #0c4aff;
}

.bottom-nav__icon {
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
    fill: none;
}

.bottom-nav__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Adjust body padding for fixed bottom nav */
body {
    padding-bottom: 75px;
}

@media (max-width: 720px) {
    .bottom-nav__item {
        padding: 10px 4px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .bottom-nav__icon {
        font-size: 1.2rem;
    }

    .bottom-nav__icon svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav__label {
        font-size: 0.75rem;
    }

    body {
        padding-bottom: 70px;
    }
}

/* ── Mobile: keep search box as small circle emoji button only ──────── */
@media (max-width: 768px) {
    .search-box {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        min-width: 40px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        overflow: hidden !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .search-box input,
    .search-box button,
    .search-box .btn-search {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    .search-box .search-icon {
        display: flex !important;
        font-size: 1.2rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-search-section {
        padding: 10px 12px !important;
        gap: 12px !important;
    }

    .search-inner {
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }
}

/* ── Search box mobile: ensure clickable ──────────────────────────── */
@media (max-width: 768px) {
    .search-box {
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    .search-box .search-icon {
        pointer-events: auto !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 1.3rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DOWNLOAD / DETAILS PAGE — MOBILE SIZE REDUCTION
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Header */
    .download-header {
        padding: 16px 14px 14px;
    }
    .header-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    .download-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }

    /* Main container */
    .download-main {
        padding: 14px 10px 24px !important;
    }

    /* Hero card */
    .hero-card {
        padding: 14px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }
    .hero-card h2 {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
    }
    .hero-copy {
        font-size: 0.82rem !important;
        line-height: 1.6 !important;
    }
    .hero-badge {
        font-size: 0.72rem !important;
        padding: 6px 10px !important;
    }
    .hero-card__labels {
        gap: 6px !important;
    }
    .hero-quick-info {
        gap: 6px !important;
        margin-top: 6px !important;
    }
    .info-pill {
        font-size: 0.72rem !important;
        padding: 6px 10px !important;
    }

    /* Download grid */
    .download-grid {
        gap: 12px !important;
        margin-top: 14px !important;
    }

    /* Cards */
    .info-card,
    .download-panel,
    .content-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }
    .info-card h3,
    .content-card h3,
    .screenshots-section h3,
    .related-section h3 {
        font-size: 1.1rem !important;
    }

    /* Info grid */
    .info-grid {
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .info-item {
        padding: 10px 12px !important;
        border-radius: 12px !important;
        gap: 4px !important;
    }
    .info-item__label {
        font-size: 0.65rem !important;
    }
    .info-item__value {
        font-size: 0.85rem !important;
    }

    /* Download panel */
    .download-panel {
        gap: 12px !important;
    }
    .download-panel__badge {
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
        border-radius: 14px !important;
    }
    .download-panel__copy {
        font-size: 0.8rem !important;
    }

    /* CTA box */
    .download-cta {
        padding: 14px !important;
        border-radius: 14px !important;
    }
    .download-cta h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    /* Download buttons */
    .download-button {
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
    }

    /* Content section */
    .content-section {
        margin-top: 12px !important;
    }
    .content-copy {
        font-size: 0.82rem !important;
        line-height: 1.6 !important;
    }

    /* Screenshots on mobile */
    .screenshots-section {
        padding: 14px !important;
        border-radius: 16px !important;
        margin-top: 12px !important;
    }
    .screenshots-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .screenshot-card {
        border-radius: 10px !important;
    }
    .screenshot-card img {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 125px !important;
        object-fit: cover !important;
        display: block !important;
    }
}
