/* ============================================================
   CHEAT STORE — Page-specific Styles (Centred Hero & Smart Links)
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════ */
.home-section { margin-bottom: var(--sp-xl); }
.home-section:last-child { margin-bottom: 0; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-lg);
}
.page-header-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   APP DETAIL PAGE (Centred Hero Layout & Premium Download UI)
   ═══════════════════════════════════════════════════════════ */
.app-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding: var(--sp-xl) var(--sp-lg);
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-raised-lg);
    border: 1px solid var(--border-hover);
    position: relative;
    overflow: hidden;
}

.app-detail-icon-wrap {
    width: 92px; height: 92px;
    margin: 0 auto 6px auto;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-raised-lg);
    border: 2px solid var(--border-accent);
    background: var(--bg-deep);
}
.app-detail-icon-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}

@media (min-width: 520px) {
    .app-detail-icon-wrap { width: 104px; height: 104px; }
}

.app-detail-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-detail-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.25;
    text-align: center;
}

.app-detail-dev {
    font-size: var(--fs-sm);
    color: var(--accent);
    font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-bottom: var(--sp);
}

.app-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.app-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-raised);
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 12px;
}
.app-detail-meta-item .material-symbols-outlined { font-size: 13px; color: var(--accent); }

/* Comments Open Button (single clean row button) */
.comments-open-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: var(--t-spring);
    text-align: left;
    color: var(--text-primary);
    margin-bottom: var(--sp-lg);
}
.comments-open-btn:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-raised-lg);
    transform: translateY(-2px);
}
.comments-open-btn:active { transform: translateY(0); box-shadow: var(--shadow-inset); }
.comments-open-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Screenshots gallery */
.screenshots-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.screenshots-row::-webkit-scrollbar { display: none; }

.screenshot-thumb {
    width: 130px;
    height: 230px;
    border-radius: var(--r);
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border);
    transition: var(--t-spring);
    background: var(--bg-deep);
}
.screenshot-thumb:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-raised-lg);
    transform: scale(1.03);
}

@media (min-width: 480px) {
    .screenshot-thumb { width: 146px; height: 250px; }
}

/* Description & Smart Links */
.app-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 2;
    word-break: break-word;
}

/* ── Inline [copy] Chip — flows naturally within text ── */
.copy-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-deep);
    border: 1.5px solid var(--border-accent);
    border-radius: 6px;
    padding: 1px 8px 1px 8px;
    margin: 0 2px;
    cursor: pointer;
    transition: var(--t-spring);
    box-shadow: var(--shadow-raised);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    vertical-align: middle;
    user-select: none;
    line-height: 1.6;
    white-space: nowrap;
}
.copy-tag:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.copy-tag:active { transform: scale(0.96); }
.copy-tag .copy-icon,
.copy-tag .copied-icon {
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--t);
}
.copy-tag .copied-icon { display: none; }
.copy-tag.copied .copy-icon { display: none; }
.copy-tag.copied .copied-icon { display: inline-flex; color: var(--accent); }
.copy-tag.copied { background: var(--accent-bg); border-color: var(--accent); }

/* ── Smart Social / Web Link Chips — inline with text ── */
.smart-link-card {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 10px 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin: 0 3px;
    box-shadow: var(--shadow-raised);
    transition: var(--t-spring);
    border: 1.5px solid var(--border-hover);
    vertical-align: middle;
    line-height: 1.6;
    white-space: nowrap;
}
.smart-link-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-raised-lg);
}
.smart-link-card .material-symbols-outlined {
    font-size: 13px;
}

.smart-link-telegram {
    background: rgba(36, 161, 222, 0.18);
    color: #24a1de;
    border-color: rgba(36, 161, 222, 0.5);
}
.smart-link-telegram:hover {
    background: rgba(36, 161, 222, 0.28);
    border-color: #24a1de;
}
.smart-link-youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.4);
}
.smart-link-youtube:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: #ff4444;
}
.smart-link-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #4a8cf1;
    border-color: rgba(74, 140, 241, 0.4);
}
.smart-link-facebook:hover {
    background: rgba(24, 119, 242, 0.25);
    border-color: #4a8cf1;
}
.smart-link-generic {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--border-accent);
}
.smart-link-generic:hover {
    background: rgba(0, 230, 118, 0.2);
}

/* YouTube embed container */
.yt-embed-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border);
    background: var(--bg-deep);
}
.yt-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Download Action Panel */
.download-section {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    box-shadow:
        inset -3px -3px 7px rgba(255,255,255,0.04),
        inset  3px  3px 7px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,230,118,0.12);
    border: 1px solid rgba(0,230,118,0.18);
    padding: var(--sp-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* Search & Account Page Panels */
.account-view {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
    max-width: 480px;
    margin: 0 auto;
}

.auth-panel {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-raised-lg);
    border: 1px solid var(--border);
    padding: var(--sp-xl);
    text-align: center;
}

.auth-panel-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-bg);
    box-shadow: var(--shadow-raised);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 32px;
    margin: 0 auto var(--sp-lg);
    border: 1.5px solid var(--border-accent);
}

.auth-tab-row {
    display: flex;
    background: var(--bg-deep);
    box-shadow: var(--shadow-inset);
    border-radius: var(--r);
    padding: 4px;
    gap: 4px;
    margin-bottom: var(--sp-lg);
}
.auth-tab {
    flex: 1;
    padding: 8px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--t);
    text-align: center;
}
.auth-tab.active {
    background: var(--bg-raised);
    box-shadow: var(--shadow-raised);
    color: var(--accent);
}

.profile-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-raised);
    border: 2px solid var(--border-accent);
}

.profile-avatar-placeholder {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--accent-bg);
    box-shadow: var(--shadow-raised);
    border: 2px solid var(--border-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--accent);
}

.earnings-card {
    background: var(--bg-surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-raised-lg);
    border: 1px solid var(--border-accent);
    padding: var(--sp-xl);
    position: relative;
    overflow: hidden;
}

.earnings-balance {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   FACEBOOK / TIKTOK STYLE COMMENTS
   ─────────────────────────────────────────────────────────────*/

/* Count badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
    margin-left: 4px;
}

/* Facebook-style comment card */
.fb-comment-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 4px;
}
.fb-comment-card.is-reply {
    margin-left: 44px;
    margin-bottom: 10px;
}

.fb-comment-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1.5px solid var(--border-accent);
    box-shadow: var(--shadow-raised);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}
.fb-comment-card.is-reply .fb-comment-avatar {
    width: 26px; height: 26px;
    font-size: 12px;
    border-color: var(--border-hover);
    background: var(--bg-raised);
    color: var(--text-secondary);
}

.fb-comment-body { flex: 1; min-width: 0; }

.fb-comment-bubble {
    background: var(--bg-surface);
    border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--border-hover);
    padding: 10px 14px;
    position: relative;
    transition: var(--t);
}
.fb-comment-bubble:hover { border-color: var(--border-accent); }

.fb-comment-name {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 3px;
}

.fb-comment-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-image {
    width: 100%; max-width: 220px;
    border-radius: var(--r);
    box-shadow: var(--shadow-raised);
    cursor: pointer;
    margin-top: 8px;
    border: 1px solid var(--border);
    display: block;
    transition: var(--t);
}
.comment-image:hover { border-color: var(--border-accent); }

.fb-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding-left: 4px;
}

.fb-comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.cmt-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: var(--t);
}
.cmt-action-btn:hover { color: var(--accent); }

.replies-wrap { margin-left: 0; }

/* ── Sticky Bottom Comment Bar (TikTok/Facebook) ── */
.comment-bar-sticky {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-hover);
    padding: 10px 14px 14px;
    backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    z-index: 10;
}

.reply-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    padding: 4px 0 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.reply-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    transition: var(--t);
}
.reply-cancel-btn:hover { color: var(--rose); }

.comment-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-bar-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 1.5px solid var(--border-hover);
    box-shadow: var(--shadow-raised);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}

.comment-bar-input-wrap {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-inset-sm);
    border-radius: var(--r-full);
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--t);
}
.comment-bar-input-wrap:hover {
    border-color: var(--border-accent);
}
.comment-bar-placeholder {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-bar-photo-btn {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--t);
}
.comment-bar-photo-btn:hover { color: var(--accent); background: var(--accent-bg); }
.comment-bar-photo-btn .material-symbols-outlined { font-size: 22px; }

.comment-bar-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: var(--t-spring);
    flex-shrink: 0;
}
.comment-bar-send-btn:hover { transform: scale(1.1); }
.comment-bar-send-btn .material-symbols-outlined { font-size: 18px; }

.comment-bar-expanded {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.comment-bar-textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border-hover);
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    resize: none;
    box-shadow: var(--shadow-inset-sm);
    font-family: inherit;
    transition: var(--t);
    outline: none;
    min-height: 70px;
}
.comment-bar-textarea:focus { border-color: var(--border-accent); }

.comment-bar-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── First-time Name Modal ── */
.name-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 20;
    padding: 20px;
}

.name-modal-card {
    background: var(--bg-surface);
    border-radius: var(--r-xl) var(--r-xl) var(--r) var(--r);
    box-shadow: var(--shadow-raised-lg), 0 0 0 1px var(--border-accent);
    border: 1px solid var(--border-hover);
    padding: var(--sp-xl);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.name-modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1.5px solid var(--border-accent);
    box-shadow: var(--shadow-raised);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--sp);
}

