/* NEW88 - Multi-Platform Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f2f2f7;
    color: #000000;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.ios-style {
    background: #f2f2f7;
}

body.android-style {
    background: #f8f9fa;
    font-family: 'Roboto', -apple-system, sans-serif;
}

.layout-container {
    width: 100%;
    min-height: 100vh;
}

#app {
    max-width: 100%;
    min-height: 100vh;
    background: #f2f2f7;
}

/* iOS Status Bar */
.status-bar-spacer {
    height: 44px;
    background: white;
}

/* iOS Header */
.ios-header {
    background: white;
    padding: 20px 16px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.app-header-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-icon-large {
    flex-shrink: 0;
}

.app-icon-large img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.app-company {
    font-size: 15px;
    color: #8e8e93;
    margin-bottom: 12px;
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.get-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 6px 28px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: -0.3px;
}

.get-btn:active {
    opacity: 0.7;
}

.in-app-text {
    font-size: 11px;
    color: #8e8e93;
}

.share-btn-ios {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.share-btn-ios:active {
    opacity: 0.5;
}

/* Stats Bar */
.stats-bar {
    background: white;
    display: flex;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #8e8e93;
    text-transform: capitalize;
}

.stat-divider {
    width: 0.5px;
    background: rgba(0,0,0,0.1);
}

/* Main Content */
.ios-content {
    padding-bottom: 60px;
}

/* Promotional Carousel */
.promo-carousel {
    background: white;
    padding: 16px 0 20px;
    margin-bottom: 12px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
    gap: 12px;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.promo-card {
    flex-shrink: 0;
    max-width: 90%;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d1d6;
    transition: all 0.3s;
}

.dot.active {
    background: #8e8e93;
}

/* Section Container */
.section-container {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

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

.see-all-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.see-all-btn:active {
    opacity: 0.5;
}

.section-content {
    color: #000000;
}

.app-description {
    font-size: 15px;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 12px;
}

.ratings-subtitle {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 16px;
}

/* Info Grid */
.info-grid {
    background: white;
    padding: 0 16px;
    margin-bottom: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    color: #000000;
    font-weight: 400;
}

/* Rating Overview iOS */
.rating-overview-ios {
    display: flex;
    gap: 24px;
    align-items: center;
}

.rating-score-ios {
    text-align: center;
    min-width: 80px;
}

.big-rating-ios {
    font-size: 56px;
    font-weight: 600;
    color: #000000;
    line-height: 1;
    letter-spacing: -2px;
}

.stars-ios {
    color: #8e8e93;
    font-size: 14px;
    margin: 6px 0;
    letter-spacing: 1px;
}

.rating-count-ios {
    font-size: 13px;
    color: #8e8e93;
}

.rating-bars-ios {
    flex: 1;
}

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

.bar-number {
    font-size: 13px;
    color: #8e8e93;
    width: 12px;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: #e5e5ea;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill-ios {
    height: 100%;
    background: #8e8e93;
    transition: width 1s ease-out;
}

/* Reviews List */
.reviews-list {
    background: white;
    padding: 0 16px;
}

.review-card-ios {
    padding: 16px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

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

.review-header-ios {
    margin-bottom: 8px;
}

.review-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #8e8e93;
}

.review-stars-ios {
    color: #FF9500;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.review-text-ios {
    font-size: 15px;
    line-height: 1.5;
    color: #000000;
}

/* iOS Bottom Bar */
.ios-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0,0,0,0.1);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-bar-content {
    text-align: center;
    font-size: 13px;
    color: #8e8e93;
}

.bottom-spacer {
    height: 60px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-container {
    animation: fadeIn 0.4s ease-out;
}

.review-card-ios {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (min-width: 768px) {
    #app {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }

    .status-bar-spacer {
        display: none;
    }

    .ios-bottom-bar {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 375px) {
    .app-icon-large img {
        width: 90px;
        height: 90px;
    }

    .app-name {
        font-size: 22px;
    }

    .promo-card {
        width: 280px;
        height: 200px;
    }

    .rating-overview-ios {
        flex-direction: column;
        gap: 16px;
    }
}

/* Touch Feedback */
button:active,
.get-btn:active,
.share-btn-ios:active,
.see-all-btn:active {
    opacity: 0.6;
}

/* Hide scrollbar but keep functionality */
.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .status-bar-spacer {
        height: max(44px, env(safe-area-inset-top));
    }

    .ios-bottom-bar {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background: #000000;
        color: #ffffff;
    }

    .dark-mode #app {
        background: #000000;
    }

    .dark-mode .ios-header,
    .dark-mode .stats-bar,
    .dark-mode .section-container,
    .dark-mode .info-grid,
    .dark-mode .reviews-list,
    .dark-mode .promo-carousel {
        background: #1c1c1e;
        border-color: rgba(255,255,255,0.1);
    }

    .dark-mode .app-name,
    .dark-mode .section-title,
    .dark-mode .info-value,
    .dark-mode .review-text-ios,
    .dark-mode .app-description,
    .dark-mode .big-rating-ios {
        color: #ffffff;
    }

    .dark-mode .app-company,
    .dark-mode .in-app-text,
    .dark-mode .stat-number,
    .dark-mode .stat-label,
    .dark-mode .info-label,
    .dark-mode .ratings-subtitle,
    .dark-mode .rating-count-ios,
    .dark-mode .reviewer-name,
    .dark-mode .bottom-bar-content {
        color: #8e8e93;
    }

    .dark-mode .ios-bottom-bar {
        background: rgba(28,28,30,0.9);
        border-color: rgba(255,255,255,0.1);
    }
}

/* Scroll Snap for Carousel */
.carousel-container {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
}

.promo-card {
    scroll-snap-align: start;
}

/* Disable text selection on buttons */
button {
    -webkit-user-select: none;
    user-select: none;
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove default button styles */
button {
    font-family: inherit;
    outline: none;
}

/* iOS-style transitions */
* {
    transition-property: opacity, transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
}

/* Prevent zoom on input focus (iOS) */
input,
textarea,
select {
    font-size: 16px;
}

/* ============================================
   ANDROID PLAY STORE STYLE
   ============================================ */

/* Android Header */
.android-header {
    background: #01875f;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.android-header .back-btn,
.android-header .icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-header .back-btn:hover,
.android-header .icon-btn:hover {
    background: rgba(255,255,255,0.1);
}

.android-header .header-actions {
    display: flex;
    gap: 8px;
}

/* Android Content */
.android-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Android App Info Section */
#android-layout .app-info-section {
    padding: 20px 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    animation: fadeInUp 0.5s ease-out;
}

#android-layout .app-logo img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#android-layout .app-title-container {
    flex: 1;
}

#android-layout .app-title {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#android-layout .verified-badge {
    vertical-align: middle;
}

#android-layout .app-subtitle {
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

#android-layout .app-verified {
    color: #5f6368;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Android Stats Section */
.android-stats {
    background: white;
    display: flex;
    padding: 16px;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.android-stats .stat-item {
    flex: 1;
    text-align: center;
}

.android-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.android-stats .stat-label {
    font-size: 12px;
    color: #5f6368;
}

.android-stats .stat-divider {
    width: 1px;
    background: #e8eaed;
    margin: 0 8px;
}

.android-stats .age-rating {
    border: 1px solid #5f6368;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* QR Install Section - Android */
#android-layout .qr-install-section {
    padding: 32px 16px;
    background: white;
    margin-bottom: 8px;
}

#android-layout .qr-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
}

.phone-with-qr-android,
.phone-with-app-android {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#android-layout .qr-code-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 3px solid #01875f;
    width: fit-content;
    margin: 0 auto 16px auto;
}

#android-layout .qr-code-img {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: contain;
}

#android-layout .arrow-icon {
    animation: bounce-horizontal 1.5s ease-in-out infinite;
}

#android-layout .qr-instruction {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Install Button - Android */
#android-layout .install-section {
    padding: 0 16px 16px;
    background: white;
}

.android-install-btn {
    width: 100%;
    background: #01875f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s;
    flex-direction: column;
}

.android-install-btn:hover {
    background: #00704d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

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

.android-install-btn .install-time {
    font-size: 12px;
    opacity: 0.9;
}

/* Action Buttons - Android */
#android-layout .action-buttons {
    padding: 16px;
    display: flex;
    gap: 16px;
    background: white;
    border-bottom: 8px solid #f8f9fa;
}

#android-layout .action-btn {
    flex: 1;
    background: white;
    border: 1px solid #dadce0;
    color: #01875f;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

#android-layout .action-btn:hover {
    background: #f8f9fa;
    border-color: #01875f;
}

#android-layout .action-btn:active {
    transform: scale(0.97);
}

/* Promotional Banners - Android */
#android-layout .promo-section {
    padding: 16px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: white;
    border-bottom: 8px solid #f8f9fa;
}

#android-layout .promo-banner {
    min-width: 280px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease-out;
}

/* Section Headers - Android */
#android-layout .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
}

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

#android-layout .section-header:hover {
    background: #f8f9fa;
}

/* App Details - Android */
#android-layout .app-details-section {
    background: white;
    border-bottom: 8px solid #f8f9fa;
}

#android-layout .app-description {
    padding: 0 16px 16px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}

#android-layout .app-description p {
    margin-bottom: 12px;
}

#android-layout .category-tags {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

#android-layout .tag {
    padding: 6px 12px;
    background: #e8f5e9;
    color: #01875f;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Ratings Section - Android */
#android-layout .ratings-section {
    background: white;
    border-bottom: 8px solid #f8f9fa;
}

#android-layout .ratings-subtitle {
    padding: 0 16px 16px;
    color: #5f6368;
    font-size: 13px;
}

#android-layout .rating-overview {
    padding: 0 16px 24px;
    display: flex;
    gap: 32px;
    align-items: center;
}

#android-layout .rating-score {
    text-align: center;
}

#android-layout .big-rating {
    font-size: 56px;
    font-weight: 300;
    color: #202124;
    line-height: 1;
}

#android-layout .stars {
    color: #01875f;
    font-size: 18px;
    margin: 8px 0;
}

#android-layout .half-star {
    opacity: 0.5;
}

#android-layout .rating-count {
    color: #5f6368;
    font-size: 13px;
}

#android-layout .rating-bars {
    flex: 1;
}

#android-layout .rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

#android-layout .bar-label {
    width: 12px;
    font-size: 13px;
    color: #5f6368;
}

#android-layout .bar-container {
    flex: 1;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

#android-layout .bar-fill {
    height: 100%;
    background: #01875f;
    transition: width 1s ease-out;
}

/* Reviews Section - Android */
#android-layout .reviews-section {
    background: white;
    border-bottom: 8px solid #f8f9fa;
    padding-bottom: 16px;
}

#android-layout .review-item {
    padding: 16px;
    border-bottom: 1px solid #e8eaed;
    animation: fadeInUp 0.5s ease-out;
}

#android-layout .review-item:last-child {
    border-bottom: none;
}

#android-layout .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#android-layout .review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#android-layout .review-user-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#android-layout .review-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

#android-layout .review-menu-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
}

#android-layout .review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#android-layout .stars-small {
    color: #01875f;
    font-size: 14px;
}

#android-layout .review-date {
    color: #5f6368;
    font-size: 12px;
}

#android-layout .review-text {
    color: #202124;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

#android-layout .review-helpful {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#android-layout .review-helpful span {
    color: #5f6368;
    font-size: 13px;
}

#android-layout .helpful-buttons {
    display: flex;
    gap: 8px;
}

#android-layout .helpful-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 20px;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#android-layout .helpful-btn:hover {
    background: #f8f9fa;
    border-color: #01875f;
}

/* Data Safety Section - Android */
#android-layout .data-safety-section {
    background: white;
    padding-bottom: 32px;
}

#android-layout .data-safety-intro {
    padding: 0 16px 16px;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}

#android-layout .safety-items {
    padding: 0 16px;
}

#android-layout .safety-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
}

#android-layout .safety-item:last-child {
    border-bottom: none;
}

#android-layout .safety-item svg {
    flex-shrink: 0;
}

#android-layout .safety-text {
    flex: 1;
}

#android-layout .safety-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

#android-layout .safety-desc {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}

#android-layout .see-details-btn {
    margin: 16px;
    padding: 10px 24px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#android-layout .see-details-btn:hover {
    background: #f8f9fa;
    border-color: #01875f;
}

/* Responsive for Android */
@media (max-width: 768px) {
    #android-layout .qr-illustration {
        flex-direction: row;
        justify-content: space-around;
    }

    .phone-with-qr-android,
    .phone-with-app-android {
        width: 60px;
        height: 90px;
    }

    #android-layout .arrow-icon {
        width: 40px;
        height: 40px;
    }

    #android-layout .qr-code-img {
        width: 100px;
        height: 100px;
    }

    #android-layout .rating-overview {
        flex-direction: column;
        gap: 16px;
    }

    #android-layout .promo-banner {
        min-width: 240px;
        height: 360px;
    }
}

@media (min-width: 769px) {
    #android-layout .main-content {
        max-width: 600px;
        margin: 0 auto;
    }
}
