@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0f111a;
    --bg-card: rgba(25, 28, 41, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #ff0844;
    --accent-glow: rgba(255, 8, 68, 0.5);
    --text-main: #f8f9fa;
    --text-muted: #a0aabf;
    --success: #00b09b;
    --warning: #f2c94c;
    --bottom-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 600; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container { padding: 20px; max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-accent {
    background: linear-gradient(135deg, #ff0844, #ffb199);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:active { transform: scale(0.97); }

/* Form Elements */
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(0,0,0,0.4); }
.form-control::placeholder { color: hsla(0,0%,100%,0.3); }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 25%;
}
.nav-item i { font-size: 1.5rem; margin-bottom: 4px; transition: all 0.3s ease; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-4px); color: var(--primary); filter: drop-shadow(0 2px 8px var(--primary)); }

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
}
.logo-text { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.header-wallet { display: flex; align-items: center; background: var(--bg-glass); border: 1px solid var(--border-glass); padding: 6px 14px; border-radius: 20px; font-weight: 600; color: var(--warning); }
.header-wallet i { margin-right: 6px; }

/* Ad/Offer Cards */
.reward-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.reward-card:active { transform: scale(0.98); }
.reward-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
    color: var(--primary);
    margin-right: 15px;
}
.reward-info { flex: 1; }
.reward-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.reward-coins { color: var(--warning); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; }
.reward-coins i { margin-right: 4px; }
.reward-action i { font-size: 1.5rem; color: var(--text-muted); }

/* Banners - Auto Slider */
.banner-slider {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(25, 28, 41, 0.5);
}
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: block;
    position: relative;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Dots indicator */
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.banner-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* Alerts / Modals */
.alert { padding: 15px; border-radius: 12px; margin-bottom: 15px; font-size: 0.9rem; border: 1px solid transparent; }
.alert-danger { background: rgba(255, 8, 68, 0.1); border-color: rgba(255, 8, 68, 0.3); color: #ff4a6e; }
.alert-success { background: rgba(0, 176, 155, 0.1); border-color: rgba(0, 176, 155, 0.3); color: #00d2b6; }

/* Spinner */
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-glass); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Video Ad Modal Overlay */
#adOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: none; flex-direction: column; align-items: center; justify-content: center;
}
#adTimer { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; }
#adClose { position: absolute; top: 20px; left: 20px; font-size: 1.5rem; display: none; color: #fff; text-decoration: none;}
