* {
    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: #630084;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Profile Hero Banner - Same as invite page */
.profile-hero {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 20;
    border-radius: 0;
    overflow: hidden;
}

.profile-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
}

/* Avatar + name overlay in hero banner */
.profile-hero-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem; /* tighter spacing */
    pointer-events: none; /* hero itself not interactive */
}

.profile-hero-overlay .profile-avatar {
    pointer-events: auto; /* allow future interactions on avatar */
}

.hero-username {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1; /* tighter line height */
    /* Outline effect using outer shadows so stroke tidak menimpa isi teks */
    -webkit-text-stroke: 0;
    text-stroke: 0;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}

/* Pastikan teks nama tidak turun baris dan terpotong rapi */
#heroUserNameText {
    display: inline-block;
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified badge beside username */
.hero-verified-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .hero-verified-badge {
        width: 16px;
        height: 16px;
        margin-left: 4px;
    }
}

.hero-level {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: #e5e7eb;
    line-height: 1.1;
}

.hero-level-label {
    font-weight: 500;
    /* Tambah outline hitam tipis agar terbaca */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.hero-level-value {
    font-weight: 700;
    color: #fbbf24;
    /* Outline hitam di luar teks agar tetap terbaca */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

@media (max-width: 768px) {
    .profile-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .profile-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* Curved Background - Removed */
.curved-bg {
    display: none;
    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: 4px 15px 70px 15px;
}

/* 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, #ff4500 0%, #f97316 45%, #fbbf24 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(214, 188, 110, 0.85);
    border-radius: 20px;
    padding: 1rem;
    color: #fff7d6;
    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(255, 69, 0, 0.78) 0%, rgba(249, 115, 22, 0.82) 60%, rgba(251, 191, 36, 0.8) 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;
}

.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(145deg, #fff7e6 0%, #fde68a 55%, #fcd34d 100%);
    border: 1px solid rgba(202, 138, 4, 0.6);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(202, 138, 4, 0.18);
}

/* 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, #d94800 0%, #f27316 45%, #fbbf24 100%);
    border-color: rgba(180, 83, 9, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Red-orange gradient background for coin and diamond stat boxes */
.stat-item.coin-stat {
    background: linear-gradient(145deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
    border: 1px solid rgba(220, 38, 38, 0.75);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.18);
}

.stat-item.diamond-stat {
    background: linear-gradient(145deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
    border: 1px solid rgba(220, 38, 38, 0.75);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.18);
}

.stat-item.coin-stat:hover {
    background: linear-gradient(145deg, #b91c1c 0%, #dc2626 45%, #f97316 100%);
    border-color: rgba(220, 38, 38, 0.95);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.24);
}

.stat-item.diamond-stat:hover {
    background: linear-gradient(145deg, #b91c1c 0%, #dc2626 45%, #f97316 100%);
    border-color: rgba(220, 38, 38, 0.95);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.24);
}

.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(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
    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: #fde68a;
    margin-bottom: 0rem;
    line-height: 1.05;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 10px rgba(184, 141, 60, 0.4);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #fff7d6;
    font-weight: 600;
    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, #16a34a 0%, #22c55e 100%);
    color: #ffffff;
    border: 2px solid rgba(34, 197, 94, 0.5);
    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(254, 108, 81, 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(34, 197, 94, 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: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-radius: 20px;
    overflow: visible;
    padding: 0.2rem 0.1rem;
    perspective: 1400px;
}

.info-card {
    background: linear-gradient(135deg, #ffeca2 0%, #ffe479 60%, #ffa200 100%);
    border-radius: 16px;
    padding: 0.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    border: 4.5px solid rgba(126, 0, 109, 0.85);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-width: 120px;
    flex: 1 1 calc(50% - 0.5rem);
    transform: translateZ(0);
}

/* Make info cards inside account-section transparent */
.account-section .info-cards .info-card {
    background: linear-gradient(135deg, #fff7d6 0%, #fef3c7 60%, #f5d399 100%);
    border: 1px solid rgba(214, 188, 110, 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 0.6rem 0.7rem;
    gap: 0.15rem;
}

.account-section .info-cards .info-card:last-child {
    border-bottom: none;
}

.account-section .info-cards .info-card:hover {
    background: linear-gradient(135deg, #fef08a 0%, #f5d399 60%, #fbbf24 100%);
    transform: none;
}

/* Light blue title and description for dark cards */
.account-section .info-cards .info-card .info-content h3 {
    color: #b45309;
    text-shadow: none;
    margin: 0;
    line-height: 1.2;
    font-size: 0.85rem;
}

.account-section .info-cards .info-card .info-content p {
    color: #a16207;
    opacity: 0.95;
    text-shadow: none;
    margin: 0;
    line-height: 1.2;
    font-size: 0.75rem;
}

/* Arrow color */
.account-section .info-cards .info-card .info-arrow {
    color: #b45309;
    text-shadow: none;
    font-size: 1rem;
}

.info-card:hover {
    transform: translateY(-6px) scale(1.02) rotateX(2deg);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 140, 0, 0.95);
}

/* 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: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    color: #b45309;
    box-shadow: none;
    margin-bottom: 0.1rem;
}

.creator-icon {
    background: transparent;
    border-radius: 12px;
    border: none;
    color: #4b5563;
    box-shadow: none;
}

.creator-icon i {
    font-size: 1.05rem;
}

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

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

.info-content {
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

.info-content h3 {
    font-size: 0.85rem;
    margin: 0;
    color: #b45309;
    font-weight: 700;
    line-height: 1.2;
}

.info-content p {
    display: none;
    margin: 0;
    line-height: 1.2;
}

.info-card .info-arrow {
    display: none;
}

.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: -6px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #c43a00 0%, #e35a0f 45%, #f59e0b 100%);
    display: flex;
    justify-content: space-around;
    padding: 0.18rem 0.35rem;
    box-shadow: 0 -6px 18px rgba(196, 58, 0, 0.35), 0 -1px 0 rgba(249, 191, 36, 0.3) inset;
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid rgba(180, 83, 9, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    color: rgba(255, 247, 214, 0.9);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    padding: 0.42rem 0.55rem;
    border-radius: 24px;
    min-width: 64px;
    flex: 1;
    position: relative;
}

.nav-item:hover { color: #fff7d6; background: rgba(0, 0, 0, 0.18); transform: translateY(-1px); }

.nav-item.active { color: #fff7d6; background: rgba(0,0,0,0.22); box-shadow: 0 6px 14px rgba(196, 58, 0, 0.35), inset 0 0 0 1px rgba(180, 83, 9, 0.65); }

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #fde68a;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(249, 191, 36, 0.65);
}

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

.nav-item span { display: none; }

/* Enlarge nav icons to match home */
.nav-item .nav-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 180ms ease, transform 180ms ease;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.65));
}

/* Image icons for bottom navigation */
.nav-item .nav-icon { 
    width: 44px; 
    height: 44px; 
    object-fit: contain; 
    opacity: 0.7; 
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease; 
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.65)) grayscale(0.6); 
}
.nav-item.active .nav-icon { 
    opacity: 1; 
    transform: translateY(-1px);
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.65)) grayscale(0);
}

/* Kecilkan ikon navigasi selain profile */
.nav-item:not([data-page="profile"]) .nav-icon {
    width: 38px;
    height: 38px;
}

/* 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-cards {
        gap: 0.4rem;
        padding: 0.2rem 0;
    }
    
    .info-card {
        padding: 0.35rem 0.45rem;
        min-width: 110px;
        flex: 1 1 calc(50% - 0.4rem);
        gap: 0.1rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin-bottom: 0.05rem;
    }
    
    .info-content h3 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .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.5rem;
        gap: 0.1rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin-bottom: 0.05rem;
    }
    
    .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, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    border-radius: 25px;
    padding: 0;
    width: calc(100% - 40px);
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.4);
    animation: popupSlideIn 0.4s ease forwards;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.5);
    box-sizing: border-box;
}

.popup-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 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;
    color: #fff7d6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-header h3 i {
    color: #fbbf24;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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: #6b240a;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
}

.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: auto;
    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));
    object-fit: contain;
}

@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: #6b240a;
    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(249, 115, 22, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b240a;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.input-wrapper input::placeholder {
    color: rgba(107, 36, 10, 0.5);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #f97316;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

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

.input-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.6);
}

.gift-description {
    text-align: left;
    margin-bottom: 1rem;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    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: 700;
    font-size: 1.1rem;
    color: #ea580c;
    margin-bottom: 0.8rem;
}

.gift-description p:last-child {
    font-size: 0.9rem;
    color: #6b240a;
    font-weight: 500;
}

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

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

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

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

.telegram-link:hover {
    color: #dc2626;
    border-bottom-color: #dc2626;
    text-shadow: 0 0 8px rgba(234, 88, 12, 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;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
@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, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.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: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 2px solid #f97316;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    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(249, 115, 22, 0.2);
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    color: #dc2626;
}



/* 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 */
.upgrade-card {
    background: linear-gradient(135deg, #fff7d6 0%, #fef3c7 60%, #f5d399 100%);
    border: 1px solid rgba(214, 188, 110, 0.45);
    border-radius: 16px;
    padding: 0.9rem 0.8rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    z-index: 2;
    animation: none;
}

.upgrade-card::before {
    content: none;
}

.upgrade-card:hover {
    background: linear-gradient(135deg, #fef08a 0%, #f5d399 60%, #fbbf24 100%);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.upgrade-card .info-content h3 {
    color: #b45309;
    text-shadow: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    line-height: 1.1;
}

.upgrade-card .info-content p {
    display: none;
}

.upgrade-card .info-icon {
    filter: none;
    animation: none;
}

.upgrade-card .info-arrow {
    display: none;
}

/* 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, #3b82f6 0%, #2563eb 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, #3b82f6 0%, #2563eb 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(59, 130, 246, 0.3);
    flex: 1;
    max-width: 120px;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 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;
    }
}




