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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #dbeafe;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Curved Background */
.curved-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(135deg, #009c15 0%, #00df00 100%);
    border-radius: 0 0 15% 15% / 0 0 25px 25px;
    z-index: 1;
}

.curved-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bglengkung.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 15% 15% / 0 0 25px 25px;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    padding: 15px;
    padding-bottom: 70px;
}

/* Header */
.header {
    margin-bottom: 1rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Remove gap specifically between profile card and account section */
.profile-card + .account-section {
    margin-top: -0.5rem; /* cancels out .main-content gap */
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 1rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Profile Background Image */
.profile-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Responsive adjustments for background image */
@media (max-width: 768px) {
    .profile-bg-image {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .profile-bg-image {
        width: 100%;
        height: 100%;
        top: -10%;
        left: 0;
        object-fit: cover;
    }
}

@media (max-width: 360px) {
    .profile-bg-image {
        width: 98%;
        height: 98%;
        top: -7.5%;
        left: 1%;
        object-fit: contain;
    }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 122, 85, 0.72) 0%, rgb(12, 83, 60) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.avatar-edit:hover {
    transform: scale(1.1);
}

.avatar-edit i {
    font-size: 0.8rem;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-info .influencer-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.profile-info .influencer-check-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.user-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.level-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.level-badge i {
    font-size: 0.9rem;
}

.level-badge:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.member-since {
    font-size: 0.65rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-since:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 18px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Overlay gambar untuk stat items */
.stat-item.coin-stat::after {
    content: '';
    position: absolute;
    top: 1px;
    right: -7px;
    width: 65px;
    height: 65px;
    background-image: url('../img/1juta.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.stat-item.diamond-stat::after {
    content: '';
    position: absolute;
    top: 6px;
    right: -4px;
    width: 50px;
    height: 50px;
    background-image: url('../img/berlian.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Dark green background for coin and diamond stat boxes */
.stat-item.coin-stat,
.stat-item.diamond-stat {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.stat-item.coin-stat:hover,
.stat-item.diamond-stat:hover {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border-color: rgba(255, 215, 0, 0.6);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.stat-item:hover .stat-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.stat-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
    padding-right: 60px; /* reserve space for smaller floating button */
}

/* Add inner padding now that icons are removed */
.stat-item.coin-stat .stat-content,
.stat-item.diamond-stat .stat-content {
    padding-left: 10px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0rem;
    line-height: 1.05;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* Floating Convert Button inside stat items */
.convert-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 0.65rem;
    font-weight: 400; /* normal weight, not bold */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.convert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.45);
}

.convert-btn:active {
    transform: translateY(0);
}

/* Account Section */
.account-section {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 1rem;
    color: white;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    /* stretch to screen edges by offsetting container padding */
    margin-left: -15px;
    margin-right: -15px;
}

.account-section::before {
    background: none;
}

.account-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
    position: relative;
    z-index: 2;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.info-card {
    background: #065f46;
    border-radius: 12px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Make info cards inside account-section transparent */
.account-section .info-cards .info-card {
    background: #ffffff; /* solid white card */
    border: 2px solid rgba(6, 95, 70, 0.30); /* green stroke */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

.account-section .info-cards .info-card:hover {
    background: #ffffff;
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(6, 95, 70, 0.45); /* stronger on hover */
}

/* Dark green title and gray description for transparent info cards */
.account-section .info-cards .info-card .info-content h3 {
    color: #065f46; /* dark green */
    text-shadow: none;
}

.account-section .info-cards .info-card .info-content p {
    color: #64748b; /* slate gray */
    opacity: 1;
}

/* Dark green arrow icon on white cards */
.account-section .info-cards .info-card .info-arrow {
    color: #065f46;
    text-shadow: none;
}

.info-card:hover {
    background: #047857;
    transform: translateX(3px);
}

/* Special styling for promotion card with shimmer effect */
.info-card[onclick="viewPromotion()"] {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 165, 0, 0.15) 25%, 
        rgba(255, 69, 0, 0.2) 50%, 
        rgba(255, 20, 147, 0.15) 75%, 
        rgba(138, 43, 226, 0.2) 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    animation: shimmer 10s ease-in-out infinite;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animated border gradient */
.info-card[onclick="viewPromotion()"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #ffd700, #ff8c00, #340077, #b200f8, 
        #8a2be2, #4b0082, #0000ff, hsl(133, 100%, 33%), 
        #ffff00, #ffd700);
    background-size: 400% 400%;
    border-radius: 12px;
    padding: 1px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: borderShimmer 8s linear infinite;
    z-index: -1;
}

@keyframes borderShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced hover effect for promotion card */
.info-card[onclick="viewPromotion()"]:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 165, 0, 0.25) 25%, 
        rgba(255, 69, 0, 0.3) 50%, 
        rgba(255, 20, 147, 0.25) 75%, 
        rgba(138, 43, 226, 0.3) 100%);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Glowing text effect for promotion card */
.info-card[onclick="viewPromotion()"] .info-content h3 {
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500, #ff1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 8s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced icon glow for promotion card */
.info-card[onclick="viewPromotion()"] .info-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: iconPulse 6s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}

/* Arrow glow effect */
.info-card[onclick="viewPromotion()"] .info-arrow {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: arrowGlow 6s ease-in-out infinite;
}

@keyframes arrowGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
}

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

.account-section .info-cards .info-card .info-icon i {
    font-size: 1.1rem;
    color: #065f46;
}

.custom-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Warna asli untuk masing-masing gambar ikon - menggunakan warna default */

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0rem;
    color: white;
}

.info-content p {
    font-size: 0.75rem;
    opacity: 0.7;
}

.info-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}





/* Logout Section */
.logout-section {
    background: linear-gradient(135deg, #14532d 0%, #064e3b 100%);
    border-radius: 16px;
    padding: 1.2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.logout-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff7ed; /* warm off-white */
    display: flex;
    justify-content: space-around;
    padding: 0.28rem 0.35rem;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.08), 0 -1px 0 #f5d0b5 inset;
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid #f5d0b5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    color: #7c2d12; /* warm dark orange for inactive */
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    padding: 0.42rem 0.55rem;
    border-radius: 12px;
    min-width: 64px;
    flex: 1;
    position: relative;
}

.nav-item:hover { color: #7c2d12; background: #ffe8d6; transform: translateY(-1px); }

.nav-item.active { color: #b45309; background: #ffffff; box-shadow: 0 6px 14px rgba(0,0,0,0.08), inset 0 0 0 1px #f5d0b5; }

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #b45309;
    border-radius: 999px;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1px; line-height: 1; }

/* Image icons for bottom navigation */
.nav-item .nav-icon { width: 22px; height: 22px; object-fit: contain; opacity: 0.9; transition: opacity 180ms ease, transform 180ms ease; }
.nav-item.active .nav-icon { opacity: 1; transform: translateY(-1px); }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-bottom: 70px;
    }
    

    
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: center;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .profile-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 0.8rem;
        align-items: center;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .profile-info h2 {
        font-size: 1.1rem;
    }
    
    .member-since {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
    }
    
    .level-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
        gap: 0.3rem;
    }
    
    .level-badge i {
        font-size: 0.8rem;
    }
    
    .user-level {
        gap: 0.4rem;
        margin-top: 0.25rem;
    }
    
    .profile-stats {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        justify-content: space-between;
        padding-left: 0;
        padding-right: 0;
        margin-top: 1rem;
    }
    
    .profile-stats::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 0.25rem);
        padding: 0.8rem 0.5rem;
        border-radius: 12px;
        white-space: nowrap;
        text-align: center;
        box-sizing: border-box;
    }
    
    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0rem;
        line-height: 1.05;
        display: block;
    }
    
    .stat-label {
        font-size: 0.7rem;
        display: block;
    }
    
    .info-card {
        padding: 0.7rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logout-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .profile-card {
        padding: 1.2rem;
    }
}

/* Match full-bleed margins to container paddings on breakpoints */
@media (max-width: 768px) {
    .account-section {
        margin-left: -10px;
        margin-right: -10px;
    }
}

@media (max-width: 320px) {
    .account-section {
        margin-left: -6px;
        margin-right: -6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 0.6rem;
        align-items: center;
    }
    
    .profile-avatar {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .member-since {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
        border-radius: 10px;
    }
    
    .level-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        gap: 0.25rem;
    }
    
    .level-badge i {
        font-size: 0.75rem;
    }
    
    .user-level {
        gap: 0.3rem;
        margin-top: 0.2rem;
    }
    
    .profile-stats {
        gap: 0.3rem;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0.6rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 0.15rem);
        padding: 0.6rem 0.3rem;
        box-sizing: border-box;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .info-card {
        padding: 0.6rem;
    }
    
    .info-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .logout-btn {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .profile-card {
        padding: 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .profile-stats {
        gap: 0.6rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 0.6rem 0.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stat-item {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Very small screens (iPhone SE, small Android) */
@media (max-width: 320px) {
    .container {
        padding: 6px;
        padding-bottom: 70px;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        align-items: center;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .member-since {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
        border-radius: 8px;
    }
    
    .level-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        border-radius: 10px;
        gap: 0.2rem;
    }
    
    .level-badge i {
        font-size: 0.7rem;
    }
    
    .user-level {
        gap: 0.3rem;
        margin-top: 0.15rem;
    }
    
    .profile-stats {
        gap: 0.3rem;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0.6rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 0.15rem);
        padding: 0.6rem 0.3rem;
        box-sizing: border-box;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .profile-info h2 {
        font-size: 1rem;
    }
    
    .profile-info p {
        font-size: 0.8rem;
    }
    
    .profile-card {
        padding: 0.8rem;
    }
}

/* Gift Code Popup Styles */
.gift-code-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.gift-code-popup.show {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #14532d 0%, #064e3b 100%);
    border-radius: 25px;
    padding: 0;
    width: calc(100% - 40px);
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popupSlideIn 0.4s ease forwards;
    overflow: hidden;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-sizing: border-box;
}

.popup-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 1rem;
    text-align: left;
    position: relative;
    color: white;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.popup-header h3 i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-body {
    padding: 1rem;
    color: white;
}

.input-group {
    margin-bottom: 1rem;
    text-align: center;
}

.input-group .btn-primary {
    margin-top: 1rem;
    width: 100%;
    max-width: none;
}

.gift-chest-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: block;
    animation: chestBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes chestBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.05);
    }
    50% {
        transform: translateY(-4px) scale(1.02);
    }
    75% {
        transform: translateY(-6px) scale(1.03);
    }
}

.gift-chest-icon:hover {
    animation: chestShake 0.5s ease-in-out;
    cursor: pointer;
}

@keyframes chestShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-3px) rotate(-2deg);
    }
    50% {
        transform: translateX(3px) rotate(2deg);
    }
    75% {
        transform: translateX(-2px) rotate(-1deg);
    }
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: white;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.input-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.gift-description {
    text-align: left;
    margin-bottom: 1rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 0.2rem 0.7rem;
}

.gift-description p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.gift-description p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fbbf24;
    margin-bottom: 0.8rem;
}

.gift-description p:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.telegram-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.telegram-icon {
    color: #0088cc;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.telegram-info p {
    margin: 0;
    line-height: 1.3;
}

.telegram-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.telegram-link:hover {
    color: #16a34a;
    border-bottom-color: #16a34a;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.popup-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

/* Convert popup sizing on small screens to match gift popup spacing */
#convertPopup .popup-content { width: calc(100% - 40px); max-width: 400px; }
#convertPopup .popup-body { padding: 1rem; }
#convertPopup .popup-actions { padding: 0.2rem 1.2rem 1.0rem; }
#convertPopup .btn-primary {
    padding: 0.8rem 2rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}
@media (max-width: 480px) {
    /* Center like gift popup: no margin, use left:50% + translate */
    #convertPopup .popup-content { width: calc(100% - 30px); max-width: 350px; margin: 0; }
    #convertPopup .popup-body { padding: 1rem; }
    #convertPopup .popup-actions { padding: 0.2rem 1.0rem 1.0rem; }
    #convertPopup .btn-primary { padding: 0.7rem 1.8rem; font-size: 0.9rem; width: auto; max-width: 100%; }
}

/* Quantity controls for convert popup */
#convertPopup .convert-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.8rem;
    margin-bottom: 0.6rem; /* spacing before balances row */
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(16,185,129,0.35);
    border-radius: 12px;
    padding: 6px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
#convertPopup #convertAmount {
    width: 120px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid rgba(16,185,129,0.4);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-weight: 700;
    pointer-events: none; /* block manual input */
}
#convertPopup .qty-btn {
    background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(16,185,129,0.45));
    border: 1px solid rgba(16,185,129,0.6);
    color: #d1fae5;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16,185,129,0.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
#convertPopup .qty-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16,185,129,0.35); filter: brightness(1.05); }
#convertPopup .qty-btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(16,185,129,0.25); }
#convertPopup .convert-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
#convertPopup .convert-arrow {
    color: #e5e7eb;
    opacity: 0.9;
    font-size: 1.1rem;
    padding: 4px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
}
#convertPopup .convert-text { display: flex; flex-direction: column; line-height: 1; }
#convertPopup .convert-label { font-size: 0.72rem; opacity: 0.95; font-weight: 700; letter-spacing: .2px; margin: 0; }
#convertPopup .convert-value { font-size: 1rem; margin-top: 0; line-height: 1; }
#convertPopup .convert-summary { display: none; }

.btn-primary, .btn-secondary {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-telegram {
    background: transparent;
    color: #22c55e;
    border: 2px solid #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 100px;
    justify-content: center;
    margin-top: 0.4rem;
}

.btn-telegram:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}



/* Loading state for submit button */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Popup Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes popupSlideOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Ensure popup stays centered during animation */
.popup-content.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Landscape orientation on small screens */
@media (max-height: 500px) and (orientation: landscape) {
    .gift-code-popup {
        padding: 10px;
    }
    
    .popup-content {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .popup-header {
        padding: 1rem;
        text-align: left;
    }
    
    .popup-body {
        padding: 1rem;
    }
}

/* Responsive Design for Popup */
@media (max-width: 480px) {
    .gift-code-popup {
        padding: 15px;
    }
    
    .popup-content {
        width: calc(100% - 30px);
        max-width: 350px;
        margin: 0;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    .popup-header {
        padding: 0.8rem;
        text-align: left;
    }
    
    .popup-header h3 {
        font-size: 1.1rem;
        justify-content: flex-start;
    }
    
    .popup-body {
        padding: 0.8rem;
    }
    
    .gift-chest-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.6rem;
    }
    
    .input-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .input-group .btn-primary {
        margin-top: 0.8rem;
        max-width: 100%;
    }
    
    .gift-description {
        margin-bottom: 1rem;
        padding: 0.1rem 0.6rem;
    }
    
    .gift-description p:first-child {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .gift-description p:last-child {
        font-size: 0.85rem;
    }
    
    .telegram-info {
        gap: 0.4rem;
    }
    
    .telegram-icon {
        font-size: 1.1rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-telegram {
        width: 100%;
    }
    

}

/* Promo Code Notification */
.promo-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.promo-notification.show {
    top: 20px;
}

.promo-notification .notification-icon {
    margin-right: 8px;
    font-size: 16px;
}

.promo-notification .notification-text {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .promo-notification {
        min-width: 280px;
        padding: 10px 20px;
        font-size: 13px;
        top: -80px;
    }
    
    .promo-notification.show {
        top: 15px;
    }
}

@media (max-width: 480px) {
    .promo-notification {
        min-width: 260px;
        padding: 8px 16px;
        font-size: 12px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
    }
}

/* Upgrade card inside profile card */
.profile-card .upgrade-card {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.25) 0%, 
        rgba(255, 165, 0, 0.2) 25%, 
        rgba(255, 69, 0, 0.25) 50%, 
        rgba(255, 20, 147, 0.2) 75%, 
        rgba(138, 43, 226, 0.25) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 0.6rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    z-index: 2;
    animation: cardPulse 2s ease-in-out infinite;
}

/* Animated border gradient for upgrade card */
.profile-card .upgrade-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700, #ff8c00, #340077, #b200f8, 
        #8a2be2, #4b0082, #0000ff, hsl(133, 100%, 33%), 
        #ffff00, #ffd700);
    background-size: 400% 400%;
    border-radius: 15px;
    z-index: -1;
    animation: borderShimmer 8s ease-in-out infinite;
}

/* Enhanced hover effect for upgrade card */
.profile-card .upgrade-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.35) 0%, 
        rgba(255, 165, 0, 0.3) 25%, 
        rgba(255, 69, 0, 0.35) 50%, 
        rgba(255, 20, 147, 0.3) 75%, 
        rgba(138, 43, 226, 0.35) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

/* Enhanced text styling for upgrade card */
.profile-card .upgrade-card .info-content h3 {
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500, #ff1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 8s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 1rem;
    margin-bottom: 0.1rem;
    line-height: 1.1;
}

.profile-card .upgrade-card .info-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 0rem;
    line-height: 1.1;
}

/* Enhanced icon styling for upgrade card */
.profile-card .upgrade-card .info-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    animation: iconPulse 6s ease-in-out infinite;
}

/* Enhanced arrow styling for upgrade card */
.profile-card .upgrade-card .info-arrow {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: arrowGlow 6s ease-in-out infinite;
    font-size: 1.1rem;
}

/* Responsive adjustments for upgrade card */
@media (max-width: 768px) {
    .profile-card .upgrade-card {
        padding: 0.5rem;
        margin-top: 0.4rem;
    }
    
    .profile-card .upgrade-card .info-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }
    
    .profile-card .upgrade-card .info-content p {
        font-size: 0.8rem;
        margin-top: 0rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .profile-card .upgrade-card {
        padding: 0.4rem;
        margin-top: 0.3rem;
    }
    
    .profile-card .upgrade-card .info-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }
    
    .profile-card .upgrade-card .info-content p {
        font-size: 0.75rem;
        margin-top: 0rem;
        line-height: 1.1;
    }
}

/* Keyframes for card pulse animation */
@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    }
}

/* PWA Install Popup Styles */
.pwa-install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-install-popup.show {
    display: flex;
    opacity: 1;
}

.pwa-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.pwa-popup-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    margin: auto;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pwa-install-popup.show .pwa-popup-content {
    transform: scale(1);
}

.pwa-popup-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 25px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.pwa-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.pwa-popup-body {
    padding: 25px 20px;
    text-align: center;
}

.pwa-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pwa-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    flex: 1;
    max-width: 120px;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-later-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.pwa-later-btn:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-2px);
}

.pwa-later-btn:active {
    transform: translateY(0);
}

.pwa-install-btn i,
.pwa-later-btn i {
    margin-right: 6px;
}

/* Mobile Responsive for PWA Popup */
@media (max-width: 480px) {
    .pwa-popup-content {
        max-width: 320px;
        width: 95%;
    }
    
    .pwa-popup-header {
        padding: 20px 15px;
    }
    
    .pwa-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .pwa-popup-header h3 {
        font-size: 16px;
    }
    
    .pwa-popup-body {
        padding: 20px 15px;
    }
    
    .pwa-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .pwa-popup-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .pwa-install-btn,
    .pwa-later-btn {
        max-width: none;
        flex: 1;
        font-size: 13px;
        padding: 10px 16px;
    }
}


