/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0c0d0e; /* Sleek desktop outer dark backdrop */
    color: #e8eaed; /* Light text */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Mobile Container Frame for Desktop */
.phone-wrapper {
    background-color: #000000; /* Pure black wrapper */
    width: 100%;
    max-width: 480px; /* Standard mobile width */
    min-height: 100vh;
    box-shadow: 0 4px 24px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-container {
    width: 100%;
    padding: 0 16px 40px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header Navigation Bar */
.play-header {
    width: 100%;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background-color: #000000; /* Pure black header */
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #1f2023; /* Dark border */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    cursor: pointer;
}

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

.header-icon path,
.section-header svg path {
    fill: #e8eaed !important;
}

/* App Info Header */
.app-intro {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    cursor: pointer;
}

.app-logo-wrapper {
    width: 72px;
    height: 72px;
    margin-right: 16px;
    flex-shrink: 0;
}

.app-logo {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-text-info {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    line-height: 28px;
    margin-bottom: 4px;
}

.app-developer {
    font-size: 14px;
    font-weight: 500;
    color: #00e676; /* Vibrant Play Store Green for contrast */
    margin-bottom: 4px;
    cursor: pointer;
}

.app-developer:hover {
    text-decoration: underline;
}

.app-verification {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9aa0a6;
}

.verified-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
}

/* App Stats Grid */
.app-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1f2023;
    margin-bottom: 16px;
    cursor: pointer;
}

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

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-mini {
    font-size: 12px;
    color: #ffffff;
}

.stat-label {
    font-size: 11px;
    color: #9aa0a6;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: #1f2023;
}

/* Primary Fast Install Button */
.action-buttons {
    margin-bottom: 16px;
}

.btn-install {
    width: 100%;
    background-color: #00875f; /* Play Store Green */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
}

.btn-install:active {
    background-color: #006b4b;
    transform: scale(0.98);
}

.install-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    gap: 6px;
}

.bolt-icon {
    fill: #ffeb3b; /* bright yellow lightning */
    display: flex;
    align-items: center;
}

.install-subtext {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
    text-align: center;
}

/* Share & Wishlist Row */
.share-wishlist {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-secondary {
    flex: 1;
    background: none;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #9aa0a6;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #202124;
}

.btn-secondary span {
    font-size: 12px;
}

/* Screenshot Carousel / Gallery */
.screenshot-gallery {
    margin: 0 -16px 24px -16px;
    padding: 0 16px;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 8px;
}

.gallery-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.gallery-item {
    flex: 0 0 calc(100% / 3 - 7px); /* Three screens showing side by side */
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CSS text overlays to mirror layout precisely and maintain readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    color: #ffffff;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.text-p88 {
    background: linear-gradient(135deg, #673ab7, #3f51b5);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
}

.text-p88 span {
    color: #ffeb3b;
    font-size: 8px;
}

/* Custom overlay classes for exact text replication */
.slide-overlay.style-1 {
    justify-content: flex-end;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
}

.title-vip {
    color: #ffc107;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 0.5px;
}

.subtitle-vip {
    font-size: 7px;
    font-weight: 700;
    color: #ff5252;
    text-shadow: 1px 1px 2px #000;
    margin-top: 2px;
}

.value-vip {
    color: #ffff00;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 1px 1px 3px #000;
}

.value-vip.orange {
    color: #ffeb3b;
    font-size: 13px;
}

.slide-overlay.style-2 {
    justify-content: flex-end;
}

.title-bonus {
    color: #ffff00;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 1px 1px 3px #000;
}

.subtitle-bonus {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
}

.value-bonus {
    color: #ff3d00;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 1px 1px 3px #000;
}

.slide-overlay.style-3 {
    justify-content: flex-end;
}

.title-profit {
    color: #ffff00;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 1px 1px 2px #000;
}

.subtitle-profit {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
}

.value-profit {
    color: #ff1744;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 3px #000;
}

/* Dots underneath the gallery */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #303134;
}

.dot.active {
    background-color: #9aa0a6;
}

/* About App Section */
.about-app {
    padding: 16px 0;
    border-bottom: 1px solid #1f2023;
    cursor: pointer;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.about-content {
    font-size: 14px;
    line-height: 20px;
    color: #bdc1c6;
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 10px;
}

.about-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.about-content ul li {
    margin-bottom: 6px;
}

.contact-info {
    font-weight: 500;
    margin-top: 14px;
}

.updated-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-title {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.date-value {
    font-size: 13px;
    color: #9aa0a6;
}

/* Ratings and Reviews Section */
.ratings-reviews {
    padding: 16px 0;
}

.ratings-reviews h2 {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
}

/* Pills toggle for device viewports */
.tabs-device {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #1f2023;
    border: 1px solid #3c4043;
    border-radius: 16px;
    font-family: inherit;
    font-size: 13px;
    color: #e8eaed;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.tab-btn.active {
    background-color: #0f5132;
    border-color: #0f5132;
    color: #34d399;
    font-weight: 500;
}

.tab-btn svg path {
    fill: #9aa0a6 !important;
}

.tab-btn.active svg path {
    fill: #34d399 !important;
}

/* Star rating breakdown summary */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.rating-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.rating-num {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 52px;
}

.rating-stars {
    color: #00875f;
    font-size: 12px;
    letter-spacing: 2px;
    margin: 4px 0;
}

.rating-count {
    font-size: 11px;
    color: #9aa0a6;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-num {
    font-size: 11px;
    color: #9aa0a6;
    width: 8px;
    text-align: center;
}

.bar-track {
    flex: 1;
    height: 8px;
    background-color: #303134;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #00875f;
    border-radius: 4px;
}

/* Individual Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f2023;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.review-meta .stars {
    color: #00875f;
    font-size: 8px;
    letter-spacing: 1px;
}

.review-date {
    font-size: 11px;
    color: #9aa0a6;
}

.btn-more {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.review-body {
    font-size: 13px;
    line-height: 18px;
    color: #bdc1c6;
    padding-left: 44px; /* Align content next to avatar */
}

/* Translucent Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* Modal Popup Card */
.modal-card {
    background-color: #1f2023;
    width: 90%;
    max-width: 360px;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-icon-container {
    background-color: #2d2e30;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
}

.modal-subtitle-box {
    font-size: 13px;
    color: #e8eaed;
    border: 1px solid #3c4043;
    background-color: #2a2b2e;
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

/* diaktifkan badge */
.modal-badge {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #34d399;
    background-color: #0f5132;
    border: 1.5px solid #34d399;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Circular Loading Ring Group */
.progress-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.progress-ring {
    transform: rotate(-90deg); /* Start progress fill from the top */
}

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

.progress-text {
    position: absolute;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

/* CTA Register Button (Post-Loading) */
.cta-box {
    width: 100%;
    display: none;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cta-box.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.btn-cta {
    width: 100%;
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%); /* High conversion gold gradient */
    color: #ffffff;
    border: none;
    border-radius: 50px; /* rounded pill style */
    padding: 14px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 212, 35, 0.4);
    animation: ctaPulse 1.8s infinite;
}

.btn-cta:active {
    transform: scale(0.98);
}

/* Premium pulse effect to drive action */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 4px 15px rgba(249, 212, 35, 0.4), 0 0 0 0 rgba(249, 212, 35, 0.4);
    }
    70% {
        box-shadow: 0 4px 15px rgba(249, 212, 35, 0.4), 0 0 0 10px rgba(249, 212, 35, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(249, 212, 35, 0.4), 0 0 0 0 rgba(249, 212, 35, 0);
    }
}
