/* Full viewport background fix */
html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* Use ::before for full background image */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    user-select: none;
    background: transparent;
    position: relative;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("https://saeed.my.id/ghop/images/page_bg.png") no-repeat center center / cover;
    background-attachment: fixed;
    background-color: #000; /* fallback if image fails */
}

/* Header transparent so bg shows through */
.header-gradient {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Wave effects stay on top */
.wave-container { 
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: wave 3s linear infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 1s; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); }
.wave3 { animation-delay: 2s; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); }

@keyframes wave {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Transparent cards with subtle shadow */
.balance-card-fixed, .task-item, .team-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Task items hover effect */
.task-item:hover {
    border-color: rgba(245,158,11,0.3);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Buttons transparent with gradient */
button, .premium-button {
    background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(217,119,6,0.9));
    border: none;
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

button:hover, .premium-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(217,119,6,1), rgba(180,83,9,1));
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Withdraw button float animation */
.withdraw-btn {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Navigation buttons transparent */
.nav-button, .nav-icon-home, .nav-icon-team {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active nav states */
.nav-icon-home.active, .nav-icon-team.active {
    background: rgba(31,41,55,0.8) !important;
    border-radius: 0.5rem !important;
}

.nav-text-home.active, .nav-text-team.active {
    color: white !important;
    font-weight: 600 !important;
}

/* Inactive nav text */
.nav-text-home, .nav-text-team {
    color: #ccc !important;
    font-weight: normal !important;
}

/* Fixed bottom nav transparency */
.fixed-bottom-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

/* Modal transparency */
#withdrawalModal .bg-white, #postModal .bg-white {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Remove all focus outlines */
*, *:focus, *:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .max-w-md { max-width: 100vw; width: 100vw; }
}

@media (max-width: 375px) {
    .text-xl { font-size: 1.125rem; }
    .text-lg { font-size: 1rem; }
}