/* ========================================================
   TAMPILJITU - PWA Google Play Store Theme
   Warna Aksen: Hijau Neon, Hijau Emerald & Aksen Emas (Neon & Emerald Green)
   Primary Green: #00e65b | #00c853 | #00ff66 | #00ff7f | #047857
   Gold Accent: #f59e0b | #fbbf24
   Background: #06140d | #0c2317 | #133523
   ======================================================== */

:root {
    --theme-green: #00e65b;
    --theme-green-light: #69f0ae;
    --theme-green-bright: #00ff66;
    --theme-green-vibrant: #00ff7f;
    --theme-green-dark: #00a843;
    --theme-green-deep: #044d21;
    --theme-green-hover: #00d652;
    --theme-green-glow: rgba(0, 230, 91, 0.45);
    --theme-emerald-glow: rgba(0, 255, 127, 0.35);

    --theme-gold: #f59e0b;
    --theme-gold-bright: #fbbf24;
    --theme-gold-light: #fde68a;

    --gp-bg: #06140d;
    --gp-surface: #0c2317;
    --gp-surface-light: #133523;
    --gp-border: #19442e;
    --gp-border-accent: rgba(0, 230, 91, 0.35);
    --gp-text: #ffffff;
    --gp-text-sub: #9bb5a7;
    --gp-text-muted: #688776;
    --gp-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--gp-bg);
    color: var(--gp-text);
    font-family: var(--gp-font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* TOP NAVIGATION */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background-color: var(--gp-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 230, 91, 0.2);
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__back-btn {
    background: none;
    border: none;
    color: var(--gp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.topbar__back-btn:hover {
    background-color: rgba(0, 230, 91, 0.15);
    color: var(--theme-green-bright);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-green-bright);
    letter-spacing: 0.5px;
}

.topbar__brand svg {
    width: 20px;
    height: 20px;
    fill: var(--theme-green);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gp-text-sub);
}

.topbar__icon-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.topbar__icon-btn:hover {
    background-color: rgba(0, 230, 91, 0.15);
    color: var(--theme-green-bright);
}

/* MAIN CONTAINER */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

/* APP HEADER */
.app-header {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.app-header__icon-box {
    position: relative;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header__icon-img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    padding: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 230, 91, 0.35);
    background: #04140a;
    border: 1.5px solid rgba(0, 230, 91, 0.55);
    z-index: 2;
    transition: transform 0.2s ease;
}

#iconLoading {
    position: absolute;
    top: 0;
    left: 0;
    width: 78px;
    height: 78px;
    z-index: 1;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#iconLoading.show-progress {
    opacity: 1;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
}

.app-header__info {
    flex: 1;
    min-width: 0;
}

.app-header__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gp-text);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.app-header__developer {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-green-bright);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.app-header__verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4cd964;
    margin-bottom: 6px;
}

.app-header__verified svg {
    width: 14px;
    height: 14px;
    fill: #4cd964;
}

.app-header__tags {
    font-size: 11px;
    color: var(--gp-text-muted);
}

/* STATS ROW */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 230, 91, 0.2);
    border-bottom: 1px solid rgba(0, 230, 91, 0.2);
    margin-bottom: 20px;
    background: rgba(12, 35, 23, 0.5);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(0, 230, 91, 0.2);
}

.stat-item__value {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gp-text);
}

.stat-item__value svg {
    width: 12px;
    height: 12px;
    fill: var(--theme-gold-bright);
}

.stat-item__label {
    font-size: 11px;
    color: var(--gp-text-sub);
    margin-top: 2px;
}

/* ACTION SECTION */
.action-box {
    margin-bottom: 24px;
}

/* SMART INSTALL BUTTON (HIJAU NEON & EMERALD) */
.btn-smart-install {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #00e65b 0%, #00c853 50%, #047857 100%);
    border: 1px solid #69f0ae;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 230, 91, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-smart-install:hover {
    background: linear-gradient(135deg, #00ff66 0%, #00d659 50%, #058f69 100%);
    box-shadow: 0 6px 26px rgba(0, 230, 91, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-smart-install:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 230, 91, 0.35);
}

.btn-smart-install .btn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn-smart-install .btn-title svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: transform 0.2s ease;
}

.btn-smart-install:hover .btn-title svg {
    transform: translateY(-1px);
}

.btn-smart-install .btn-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1px;
}

/* STATE INSTALLING */
.btn-smart-install.state-installing {
    background: #082012 !important;
    border: 1px solid var(--theme-green-bright) !important;
    box-shadow: none !important;
    cursor: wait;
}

.btn-smart-install.state-installing .btn-title {
    color: var(--theme-green-bright) !important;
}

.btn-smart-install.state-installing .btn-sub {
    color: var(--gp-text-sub) !important;
}

/* STATE PLAY (SUDAH TERPASANG / SELESAI) */
.btn-smart-install.state-play {
    background: linear-gradient(135deg, #00ff7f 0%, #00e65b 50%, #00a843 100%) !important;
    border: 1.5px solid #a7f3d0 !important;
    box-shadow: 0 4px 24px rgba(0, 255, 127, 0.7) !important;
    animation: pulsePlayGreen 2s infinite;
}

.btn-smart-install.state-play .btn-title {
    color: #04140a !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.btn-smart-install.state-play .btn-title svg {
    fill: #04140a !important;
}

.btn-smart-install.state-play .btn-sub {
    color: rgba(4, 20, 10, 0.9) !important;
}

@keyframes pulsePlayGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.75); }
    70% { box-shadow: 0 0 0 16px rgba(0, 255, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0); }
}

/* SECONDARY BUTTONS (Buka Web & Windows PC) */
.secondary-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-secondary {
    flex: 1;
    height: 40px;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    color: var(--gp-text-sub);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gp-surface-light);
    color: #ffffff;
    border-color: var(--theme-green-bright);
}

.btn-secondary svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* SCREENSHOTS CAROUSEL */
.screenshots-section {
    margin-bottom: 24px;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-green) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 5px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--theme-green);
    border-radius: 4px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 175px;
    height: 310px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    border: 1.2px solid rgba(0, 230, 91, 0.3);
    background: var(--gp-surface);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    border-color: var(--theme-green-bright);
}

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

/* SECTIONS (ABOUT, DATA SAFETY, REVIEWS) */
.section-block {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gp-text);
}

.section-header svg {
    width: 20px;
    height: 20px;
    fill: var(--gp-text-sub);
}

.section-desc {
    font-size: 13px;
    color: var(--gp-text-sub);
    line-height: 1.6;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-pill {
    padding: 5px 12px;
    background: var(--gp-surface);
    border: 1px solid rgba(0, 230, 91, 0.4);
    border-radius: 16px;
    font-size: 12px;
    color: var(--theme-green-light);
    font-weight: 600;
}

/* DATA SAFETY BOX */
.data-safety-card {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    padding: 16px;
}

.data-safety-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.data-safety-item:last-child {
    margin-bottom: 0;
}

.data-safety-item svg {
    width: 20px;
    height: 20px;
    fill: var(--theme-green-bright);
    flex-shrink: 0;
    margin-top: 2px;
}

.data-safety-text {
    font-size: 13px;
    color: var(--gp-text-sub);
}

.data-safety-text strong {
    color: var(--gp-text);
    display: block;
    margin-bottom: 2px;
}

/* REVIEWS & RATINGS */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.reviews-score {
    text-align: center;
}

.reviews-score__num {
    font-size: 44px;
    font-weight: 700;
    color: var(--gp-text);
    line-height: 1;
}

.reviews-score__stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
}

.reviews-score__stars svg {
    width: 14px;
    height: 14px;
    fill: var(--theme-gold-bright);
}

.reviews-score__count {
    font-size: 11px;
    color: var(--gp-text-muted);
    margin-top: 4px;
}

.reviews-bars {
    flex: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--gp-text-sub);
}

.bar-track {
    flex: 1;
    height: 5px;
    background: #0f2b1d;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-green-dark) 0%, var(--theme-green-bright) 100%);
    border-radius: 3px;
}

/* USER REVIEW CARD */
.user-review {
    background: var(--gp-surface);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    border: 1px solid rgba(0, 230, 91, 0.15);
}

.user-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.user-review__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-review__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e65b 0%, #047857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.user-review__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-text);
}

.user-review__stars {
    display: flex;
    gap: 2px;
}

.user-review__stars svg {
    width: 12px;
    height: 12px;
    fill: var(--theme-gold-bright);
}

.user-review__date {
    font-size: 11px;
    color: var(--gp-text-muted);
    margin-bottom: 6px;
}

.user-review__text {
    font-size: 13px;
    color: var(--gp-text-sub);
    line-height: 1.5;
}

/* BOTTOM STICKY BAR FOR MOBILE */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(6, 20, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 230, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 99;
}

.bottom-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-bar__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    padding: 3px;
    border: 1px solid rgba(0, 230, 91, 0.4);
    background: #04140a;
}

.bottom-bar__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gp-text);
}

.bottom-bar__meta {
    font-size: 11px;
    color: var(--theme-green-bright);
}

.bottom-bar__btn {
    height: 38px;
    padding: 0 20px;
    background: linear-gradient(135deg, #00e65b 0%, #047857 100%);
    border: 1px solid #69f0ae;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 230, 91, 0.45);
    transition: all 0.2s ease;
}

.bottom-bar__btn:hover {
    background: linear-gradient(135deg, #00ff66 0%, #058f69 100%);
}

.bottom-bar__btn.state-play {
    background: linear-gradient(135deg, #00ff7f 0%, #00e65b 50%, #00a843 100%) !important;
    border-color: #a7f3d0 !important;
    color: #04140a !important;
}

/* TOAST NOTIFICATION */
.toast-notice {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0a2618;
    color: #ffffff;
    border: 1px solid var(--theme-green-bright);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 230, 91, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
}

.toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
