:root {
    --primary-color: #2e7d32; /* Yono Green */
    --secondary-color: #1b5e20;
    --text-color: #333;
    --white: #fff;
    --bg-light: #f0f2f5;
    --btn-blue: #4285f4;
    --btn-hover: #3367d6;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

html, body { touch-action: pan-x pan-y; }

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding-bottom: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- Header & Nav --- */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; max-width: 1200px; margin: 0 auto;
}
.logo { font-size: 22px; font-weight: 700; color: #002f5b; text-decoration: none; }

/* Desktop Menu */
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links li a { text-decoration: none; color: #333; font-weight: 600; }
.nav-links li a:hover { color: var(--primary-color); }

/* Hamburger Menu Icon */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background-color: #4285f4; transition: 0.3s; }

/* --- Mobile Responsive Nav --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
}

/* --- Promo Container (Elementor Style Gradient) --- */
.promo-container {
    background-color: var(--promo-strip-bg, #0b2f4d);
    background-image: none;
    padding: 10px;
    border-bottom: 1px solid #08263d;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.promo-text {
    color: #FFFFFF;
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5em;
    margin: 0;
    padding: 0 10px;
    text-shadow: 0px 0px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .promo-container { padding: 8px 5px; }
    .promo-text {
        font-size: 8px !important;
        line-height: 1.3em;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
}

/* --- Main Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.home-telegram-cta {
    margin: 18px 0 6px;
    display: flex;
    justify-content: center;
}

.telegram-pill {
    width: 100%;
    max-width: 920px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.18);
    text-decoration: none;
    color: #0284c7;
    font-weight: 900;
    animation: telegram-border-blink 0.9s ease-in-out infinite;
}

.telegram-pill .tg-icon {
    width: 18px;
    height: 18px;
    fill: #0284c7;
}

.telegram-pill i { font-size: 18px; }

@media (max-width: 480px) {
    .telegram-pill { padding: 11px 14px; }
}

/* --- Game List (Horizontal Layout) --- */
.game-list { display: flex; flex-direction: column; gap: 12px; }

.game-card {
    background: var(--white);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: relative;
    gap: 12px;
}

/* 1. Image Section */
.game-img-box {
    position: relative;
    width: 65px; height: 65px;
    flex-shrink: 0;
}
.game-icon {
    width: 100%; height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
}
.rank-badge {
    position: absolute;
    top: -5px; left: -5px;
    background-color: #ff3d00;
    color: white;
    font-size: 10px; font-weight: bold;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px 0 5px 0;
    z-index: 2;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* 2. Text Info Section */
.game-info-text {
    flex-grow: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.game-info-text h3 a {
    font-size: 16px; font-weight: 800; color: #000;
    text-decoration: none; display: block;
}
.info-line {
    font-size: 12px; display: flex; align-items: center; gap: 6px; font-weight: 600;
}
.bonus { color: #d32f2f; }
.withdraw { color: #2e7d32; }
.info-line i { font-size: 12px; }

/* 3. Button Section */
.game-action { flex-shrink: 0; }

.download-btn {
    background-color: var(--btn-blue);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px; font-weight: bold;
    display: inline-flex; align-items: center; gap: 5px;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}
.download-btn:hover { background-color: var(--btn-hover); }

/* --- Mobile Specific (Game List) --- */
@media (max-width: 480px) {
    .container { padding: 10px; }
    .game-card { padding: 10px; gap: 10px; }
    .game-img-box { width: 60px; height: 60px; }
    .game-info-text h3 a { font-size: 15px; }
    .info-line { font-size: 11px; }
    .download-btn { padding: 6px 10px; font-size: 12px; }
    .btn-text { display: block; } 
}

/* --- Footer Warning Box (Pink) --- */
.notice-section { margin-top: 30px; margin-bottom: 20px; }

.notice-box {
    background-color: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 20px;
    color: #000;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.notice-title {
    text-align: center; font-size: 20px; margin-bottom: 15px; font-weight: 800; color: #000;
}
.notice-title i { font-size: 24px; margin-right: 5px; }
.notice-box p { margin-bottom: 10px; }
.notice-box strong { font-weight: 700; }

.thanks-text {
    text-align: center; color: #2e7d32; font-size: 18px; margin-top: 15px; font-weight: 600;
}

.seo-tags-marquee {
    background: #10b981;
    border: 2px solid #059669;
    border-radius: 6px;
    padding: 10px 0;
    margin-top: 10px;
    overflow: hidden;
}

.seo-tags-marquee marquee {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
}

.bottom-tags-ticker {
    background: #10b981;
    border: 2px solid #059669;
    color: #ffffff;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 6px;
}

.bottom-tags-content {
    display: inline-block;
    padding-left: 100%;
    animation: bottom-tags-scroll 18s linear infinite;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

@keyframes bottom-tags-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.bottom-cta-stack {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bottom-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.bottom-cta-row .cta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0f172a;
    min-width: 0;
}

.bottom-cta-row .cta-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-cta-row .cta-left i { font-size: 18px; }

.bottom-cta-row .cta-right {
    background: #0ea5e9;
    color: #ffffff;
    border: none;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.bottom-cta-row.share { background: #ecfdf5; border-color: #86efac; }
.bottom-cta-row.share .cta-right { background: #16a34a; }
.bottom-cta-row.telegram { background: #eff6ff; border-color: #bfdbfe; }
.bottom-cta-row.telegram .cta-right { background: #1d4ed8; }

@media (max-width: 520px) {
    .bottom-cta-row { flex-direction: column; align-items: stretch; }
    .bottom-cta-row .cta-left span { white-space: normal; }
    .bottom-cta-row .cta-right { width: 100%; justify-content: center; }
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.85; }
}

.bottom-cta-row.telegram,
.bottom-cta-row.share {
    animation: cta-pulse 1.2s ease-in-out infinite;
}

.bottom-cta-row.telegram .cta-right,
.bottom-cta-row.share .cta-right {
    animation: cta-pulse 1s ease-in-out infinite;
}

@media (max-width: 480px) {
    .bottom-tags-content { font-size: 12px; }
    .bottom-cta-row { padding: 10px; }
    .bottom-cta-row .cta-right { padding: 8px 10px; font-size: 13px; }
    .seo-tags-marquee marquee { font-size: 12px; }
}

@media (max-width: 768px) {
    .notice-box { padding: 15px; font-size: 13px; }
    .notice-title { font-size: 18px; }
}

/* --- Blue Scrolling Ticker --- */
.scrolling-ticker {
    background-color: #0056b3;
    color: #ffffff;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #004494;
}

.scrolling-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left var(--running-ticker-speed, 20s) linear infinite;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Verdana', sans-serif;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .scrolling-ticker { padding: 8px 0; }
    .scrolling-content { font-size: 12px; }
}

/* --- SEO Content Box (Clean White Design) --- */
.seo-content-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.seo-item {
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}
.seo-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.seo-item h2 {
    color: #0d47a1;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Segoe UI', sans-serif;
}

.seo-item ul { list-style-type: none; padding-left: 5px; }
.seo-item ul li {
    font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 5px;
    position: relative; padding-left: 15px;
}
.seo-item ul li::before {
    content: "•"; color: #2e7d32; font-weight: bold;
    display: inline-block; width: 15px; margin-left: -15px;
}

@media (max-width: 768px) {
    .seo-content-box { padding: 15px; }
    .seo-item h2 { font-size: 17px; }
    .seo-item ul li { font-size: 13px; }
}

/* --- Details Page Styling --- */

/* 1. Page Title Card */
.page-title-card {
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.25);
    border: 2px solid #000;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.page-title-card::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-top: 18px solid #f4f4f4;
}

.page-title-card h1 {
    font-size: 18px; font-weight: 800; color: #000;
    margin: 0; line-height: 1.4; font-family: 'Segoe UI', sans-serif;
}

/* 2. Top Header Section (Updated: Row Layout & Left Align) */
.app-header-section {
    display: flex;
    flex-direction: row; /* Force Row Desktop */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.app-logo-box {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.app-logo-box img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    display: block;
}

.app-title-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
    flex: 1;
}

/* 3. Big App Name & APK Tag */
.main-app-name {
    font-size: 28px; font-weight: 900; color: #000;
    margin-bottom: 5px; line-height: 1; font-family: sans-serif;
    letter-spacing: -0.5px;
}
.apk-tag {
    color: #007bff; font-weight: 700; text-decoration: none;
    font-size: 14px; background: transparent; padding: 0;
    margin-top: 5px; display: inline-block;
}
.apk-tag:hover { text-decoration: underline; }

/* 4. Stats Grid */
.app-stats-grid {
    display: flex; justify-content: space-between;
    background: #fff; border-radius: 15px;
    padding: 15px 5px; margin-bottom: 25px;
}
.stat-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    text-align: center; border-right: 1px solid #eee;
}
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 20px; margin-bottom: 5px; color: #000; }
.stat-item strong { display: block; font-size: 16px; color: #000; }
.stat-item span { font-size: 12px; color: #777; }

/* Make the last label (Upto Bonus) a bit more readable */
.app-stats-grid .stat-item:last-child span { font-size: 14px; font-weight: 700; color: #333; }

@media (max-width: 480px) {
    .app-stats-grid .stat-item:last-child span { font-size: 14px; font-weight: 700; }
}

/* 5. Buttons */
.action-buttons {
    display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px;
}
.big-download-btn {
    background: linear-gradient(180deg, #ec407a 0%, #c2185b 100%);
    color: white; text-align: center; padding: 15px;
    font-size: 18px; font-weight: 800; text-decoration: none;
    border-radius: 8px; text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); border: 1px solid #e91e63;
    display: block; width: 100%;
}
.big-download-btn:hover {
    background: linear-gradient(180deg, #c2185b 0%, #880e4f 100%);
}

.telegram-btn {
    background: #fff; color: #29b6f6; border: 4px solid #29b6f6;
    text-align: center; padding: 12px; font-size: 16px;
    font-weight: 700; text-decoration: none; border-radius: 30px;
    display: block; width: 100%;
    animation: telegram-border-blink 0.9s ease-in-out infinite;
}
.telegram-btn i { margin-right: 5px; }

.telegram-pill .tg-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
}

@keyframes telegram-border-blink {
    0%, 100% { border-color: #29b6f6; box-shadow: 0 0 0 rgba(41, 182, 246, 0); }
    50% { border-color: #0ea5e9; box-shadow: 0 0 0 6px rgba(41, 182, 246, 0.35); }
}

/* 6. Related Apps Header */
.related-header {
    background: linear-gradient(to right, #00c853, #009688);
    color: white; padding: 12px; font-size: 16px;
    font-weight: bold; text-align: center; border-radius: 5px;
    margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* Mobile Adjustments for Details Page */
@media (max-width: 480px) {
    .page-title-card h1 { font-size: 15px; }
    
    /* Force Row on Mobile (Icon Left, Text Right) */
    .app-header-section {
        flex-direction: row !important;
        gap: 15px;
        text-align: left !important;
    }
    .app-logo-box { width: 95px; height: 95px; }
    .main-app-name { font-size: 22px; }
    .app-title-box { text-align: center !important; align-items: center; }
    
    .stat-item strong { font-size: 14px; }
    .stat-item span { font-size: 10px; }
    .app-stats-grid .stat-item:last-child span { font-size: 12px; }
    .big-download-btn { font-size: 16px; padding: 12px; }
}

/* --- FAQ Section Styling --- */
.faq-container { margin-top: 40px; margin-bottom: 30px; }

.faq-header-styled {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin-bottom: 25px;
}
.faq-text {
    font-size: 30px; font-weight: 900; color: #4a148c;
    font-style: italic; font-family: serif;
}
.triangle-left {
    width: 0; height: 0;
    border-top: 10px solid transparent; border-bottom: 10px solid transparent;
    border-right: 20px solid #4a148c;
}
.triangle-right {
    width: 0; height: 0;
    border-top: 10px solid transparent; border-bottom: 10px solid transparent;
    border-left: 20px solid #4a148c;
}

.faq-item {
    background: #fff; border: 3px solid #000; border-radius: 15px;
    margin-bottom: 15px; box-shadow: 5px 6px 0px #1a1a1a;
    transition: all 0.3s ease; overflow: hidden;
}

.faq-question {
    padding: 15px 20px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; font-weight: 700;
    font-size: 16px; color: #000; background: #fff;
}
.faq-question i { font-size: 20px; transition: transform 0.3s ease; }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background-color: #f9f9f9; padding: 0 20px;
}
.faq-answer p { padding: 15px 0; color: #333; line-height: 1.6; }

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-item.active {
    box-shadow: 2px 3px 0px #1a1a1a; transform: translateY(2px);
}

@media (max-width: 480px) {
    .faq-text { font-size: 24px; }
    .faq-question { font-size: 14px; padding: 12px 15px; }
}