:root {
    --primary-color: #0A2A66;
    --secondary-color: #1a73e8;
    --accent-color: #ff4757;
    --success-color: #10b981;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --info-color: #1e90ff;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --muted-text: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --inner-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
}

.app-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.app-header {
    background: #ffffff;
    color: var(--dark-text);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.header-left { display: flex; align-items: center; gap: 1rem; }

/* Exact Logo Styling from User */
.humblearn-logo {
    font-size: 24px; /* Scaled down for header */
    font-weight: 500; /* Medium for Humbl */
    color: #1e293b; /* Deep Slate Blue */
    text-decoration: none;
    letter-spacing: -1px;
    display: inline-block;
    user-select: none;
    line-height: 1;
}

.humblearn-logo .earn {
    font-weight: 800; /* Extra Bold for Earn */
    color: #10b981; /* Mint Green */
}

.humblearn-logo .dot {
    color: #10b981;
    font-weight: 800;
}

.tagline {
    display: block;
    font-size: 8px; /* Scaled down for header */
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    font-weight: 500;
    line-height: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.back-btn, .logout-icon-btn, .notif-btn {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:active, .logout-icon-btn:active, .notif-btn:active { transform: scale(0.9); }

.gradient-text {
    background: linear-gradient(to right, #1e293b, #10b981, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.content-area { padding: 1.5rem; flex: 1; }

/* Stylish Boxes (Cards) */
.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-2px); }

.card-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Stylish Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, #1e293b 0%, #10b981 100%);
    color: #fff;
    border-radius: 28px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-wallet {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Stylish Grid Items */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.grid-item {
    background: #ffffff;
    padding: 1.75rem 1rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--dark-text);
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--inner-shadow);
}

.icon-tasks { background: #eff6ff; color: #2563eb; }
.icon-create { background: #ecfdf5; color: #059669; }
.icon-referral { background: #fffbeb; color: #d97706; }
.icon-profile { background: #fff1f2; color: #e11d48; }

/* Stylish Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #1e293b, #10b981);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.btn-outline {
    background: #fff;
    border: 2px solid #10b981;
    color: #10b981;
}

.btn:active { transform: scale(0.96); }

/* Stylish Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--muted-text);
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.nav-item.active { color: #10b981; transform: translateY(-5px); }
.nav-item i { font-size: 1.4rem; }
.nav-item span { font-size: 0.7rem; font-weight: 800; }

/* Stylish Lists */
.task-list-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--dark-text);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.task-list-item:hover {
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

/* Stylish Forms & Placeholders */
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--dark-text);
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

/* Floating Social Icons (Restored) */
.social-floating-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-floating-icons i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-floating-icons i:hover {
    transform: scale(1.2) rotate(10deg);
}

.floating-1 { animation: float 3s ease-in-out infinite; }
.floating-2 { animation: float 4s ease-in-out infinite; }
.floating-3 { animation: float 5s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.landing-footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    margin-top: 4rem;
    background: #f8fafc;
    border-radius: 32px 32px 0 0;
}
