:root {
    /* --bg-color: #f2f7f2;
    --text-primary: #f8fafc;
    --brand-gradient: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
    --nav-bg: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.1); */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-1px) scale(1.02);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(247, 244, 245, 0.4));
    animation: float 3s ease-in-out infinite;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    background: rgb(15, 12, 12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Navigation Links --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(15, 12, 12);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #449342;
    /* A nice hover green */
}

/* --- Action Buttons --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.telegram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.telegram-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
    /* Keep it above the mobile menu */
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: rgb(15, 12, 12);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(242, 247, 242, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- Mobile Sub Nav --- */
.mobile-sub-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.mobile-sub-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.mobile-sub-nav a i {
    font-size: 1rem;
    color: #000000;
    transition: color 0.3s ease;
}

.mobile-sub-nav a:hover,
.mobile-sub-nav a:hover i {
    color: #198754;
}

@media (max-width: 768px) {
    .mobile-sub-nav {
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
        justify-content: space-evenly;
    }

    .mobile-sub-nav a {
        font-size: 0.8rem;
        gap: 4px;
        flex-direction: column;
        text-align: center;
    }

    .mobile-sub-nav a i {
        font-size: 0.9rem;
    }
}

/* --- Main Content & Popular Apps --- */
.main-content {
    margin-top: 85px;
    /* Offset for fixed navbar */
    padding: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    width: 100%;
}

article.app-description {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
}

article.app-description h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #198754;
}

article.app-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;

    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

article.app-description p.expanded {
    -webkit-line-clamp: unset;
}

.popular-apps {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.apps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: stretch;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    background-color: #f8fafc;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon span {
    font-size: 0.9rem;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.app-rating {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
}

.download-btn {
    background: rgb(48, 141, 48);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile responsive adjustments for the apps */
@media (max-width: 600px) {
    article.app-description {
        padding: 1.25rem 1rem;
    }

    article.app-description h2 {
        font-size: 1.2rem;
    }

    article.app-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .apps-container {
        gap: 8px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .app-icon span {
        font-size: 0.65rem;
    }

    .app-name {
        font-size: 0.85rem;
    }

    .app-rating {
        font-size: 0.85rem;
    }

    .secure-badge {
        font-size: 0.65rem;
        flex-wrap: wrap;
    }

    .secure-badge svg {
        width: 12px;
        height: 12px;
        margin-bottom: -2px;
    }

    .download-btn {
        padding: 0.4rem 0;
        font-size: 0.75rem;
        gap: 3px;
    }

    .download-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* --- Footer Styles --- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.02);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Mobile responsive adjustments for the footer */
@media (max-width: 600px) {
    .site-footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* --- Games Explorer Section --- */
.games-explorer {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tab-switch {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn.active {
    background: #ffffff;
    color: #198754;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover:not(.active) {
    color: #334155;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

#game-search {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

#game-search:focus {
    outline: none;
    border-color: #198754;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

/* Tab Content */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
	justify-content: center;
}

.game-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.game-card-thumbnail {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f8fafc;
}

.game-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-info {
    flex-grow: 1;
    min-width: 0;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta,
.game-badge-text {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.text-accent {
    color: #8b5cf6;
}

.text-green {
    color: #10b981;
}

.game-badge-text {
    color: #10b981;
    font-weight: 600;
}

.game-card-action {
    flex-shrink: 0;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: scale(1.02);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-state h3 {
    color: #475569;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .explorer-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
    }

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

    .games-explorer {
        padding: 1.25rem;
    }

    .game-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .game-card-thumbnail {
        width: 56px;
        height: 56px;
    }

    .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* --- SEO Article Section --- */
.seo-article {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-top: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.seo-article h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #198754;
}

.seo-article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
    color: #2c3e50;
}

.seo-article h3:first-child {
    margin-top: 0;
}

.seo-article p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4a5568;
    margin-bottom: 0.75rem;
    text-align: justify;
}

.seo-article p:last-child {
    margin-bottom: 0;
}

.seo-article-content {
    max-height: 80px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

.seo-article-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.seo-article.expanded .seo-article-content {
    max-height: 3000px;
}

.seo-article.expanded .seo-article-content::after {
    opacity: 0;
}

.seo-see-more-btn {
    background: none;
    border: none;
    color: #198754;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    font-family: inherit;
}

.seo-see-more-btn:hover {
    color: #146c43;
}

.seo-article ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.seo-article li {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-article li::before {
    content: "âœ“";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #e8f5e9;
    color: #198754;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .seo-article {
        padding: 1rem 1.25rem;
        margin-top: 1rem;
    }

    .seo-article h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .seo-article h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        margin-top: 0.9rem;
    }

    .seo-article p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .seo-article li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* ================================
   IMPORTANT NOTICE
   ================================ */

.important-notice {
    background: #fffaf0;
    border: 1.5px dashed #f5a623;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 25px 0;
    color: #7a3e00;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Notice Heading */
.important-notice h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #b45f06;
    font-size: 18px;
    font-weight: 700;
}

/* Warning Icon */
.important-notice h3::before {
    content: "âš ï¸";
    font-size: 20px;
}

/* Notice Paragraph */
.important-notice p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Bold Text */
.important-notice strong {
    color: #a84600;
    font-weight: 700;
}

/* Links */
.important-notice a {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
}

.important-notice a:hover {
    color: #7c2d12;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 600px) {
    .important-notice {
        padding: 14px 15px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .important-notice h3 {
        font-size: 16px;
    }

    .important-notice h3::before {
        font-size: 18px;
    }

    .important-notice p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Fix for landing pages content hiding under fixed navbar */
.page {
    padding-top: 105px !important;
}

/* Make all download buttons use the solid green color */
.btn-primary, .download-button {
    background: rgb(48, 141, 48) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary:hover, .download-button:hover {
    background: rgb(48, 141, 48) !important;
    /* Maintain the hover transform for .download-button if any, but override background */
}