/* Updated style.css - Complete Styles with Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #fff0f5 0%, #ffe4ed 100%);
    min-height: 100vh;
    color: #4a2b3a;
    overflow-x: hidden;
}

:root {
    --primary-pink: #ff80ab;
    --deep-pink: #f06292;
    --soft-pink: #ffb7c5;
    --gold: #ffd700;
    --glass-bg: rgba(255, 245, 248, 0.85);
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 20px rgba(240, 98, 146, 0.12);
    --border-radius: 32px;
}

.app-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 250, 252, 0.6);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 128, 171, 0.1);
}

@media (min-width: 768px) {
    .app-wrapper {
        max-width: 550px;
        margin: 1.5rem auto;
        border-radius: 48px;
        background: rgba(255, 245, 248, 0.95);
        box-shadow: 0 20px 40px rgba(240, 98, 146, 0.2);
        min-height: calc(100vh - 3rem);
    }
    body {
        background: linear-gradient(135deg, #ffd9e6, #ffc0d0);
        padding: 0;
    }
}

/* Animations */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #f06292; }
    100% { box-shadow: 0 0 20px #f06292; }
}

.page {
    display: none;
    padding: 24px 20px 90px;
    animation: fadeSlide 0.35s ease-out;
}

.active-page {
    display: block;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 248, 250, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255, 128, 171, 0.3);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.02);
    z-index: 20;
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 550px;
        left: auto;
        right: auto;
        border-radius: 32px 32px 28px 28px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #b28497;
    transition: 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
}

.nav-item i {
    font-size: 24px;
    transition: transform 0.2s;
}

.nav-item.active {
    color: #f06292;
    transform: translateY(-3px);
}

.nav-item.active i {
    transform: scale(1.1);
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,240,0.6);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(240, 98, 146, 0.2);
}

/* Buttons */
.btn-pink {
    background: linear-gradient(95deg, #ff80ab, #f06292);
    border: none;
    padding: 14px 20px;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-pink:active {
    transform: scale(0.97);
}

.btn-pink::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-pink:active::after {
    width: 100%;
    height: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f06292;
    color: #f06292;
}

.btn-gold {
    background: linear-gradient(95deg, #ffd700, #ffb347);
    color: #333;
}

/* Inputs */
input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 60px;
    border: 1.5px solid #ffc0d0;
    background: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    margin-bottom: 16px;
}

input:focus {
    border-color: #f06292;
    box-shadow: 0 0 0 3px rgba(240,98,146,0.2);
    transform: scale(1.01);
}

/* Auth Container */
.auth-container {
    padding: 20px;
}

.auth-card {
    text-align: center;
    padding: 32px 24px;
}

.hidden {
    display: none;
}

/* Profile Section */
.profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-photo {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffb7c5, #ff9bb0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: white;
    box-shadow: 0 6px 14px rgba(240,98,146,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.balance-big {
    font-size: 2rem;
    font-weight: 800;
    color: #c94f7c;
}

/* Option List */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.option-item {
    background: white;
    border-radius: 60px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ffe0e8;
}

.option-item:hover {
    transform: translateX(8px);
    background: #fff5f8;
}

.option-item i {
    width: 26px;
    color: #f06292;
}

.option-item.logout {
    color: #e74c3c;
}

.option-item.logout i {
    color: #e74c3c;
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: #2c2c2c;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 40px;
    z-index: 999;
    animation: fadeUp 0.3s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Referral Card */
.referral-card {
    background: linear-gradient(135deg, #ffe6f0, #ffd9e6);
    border-radius: 20px;
    padding: 15px;
    margin-top: 10px;
}

.referral-link {
    background: white;
    border-radius: 40px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.copy-btn {
    background: #f06292;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 30px;
    cursor: pointer;
}

/* KYC Section */
.kyc-status {
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    margin-top: 10px;
}

.kyc-pending { background: #fff3cd; color: #856404; }
.kyc-verified { background: #d4edda; color: #155724; }
.kyc-rejected { background: #f8d7da; color: #721c24; }

/* Spin Wheel */
.spin-wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.spin-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #f06292;
    z-index: 10;
}

.spin-btn {
    margin-top: 20px;
    animation: pulse 1s infinite;
}

/* Daily Check-in */
.checkin-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.checkin-day {
    text-align: center;
    padding: 10px 5px;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.checkin-day.claimed {
    background: #d4edda;
    color: #155724;
}

.checkin-day.today {
    border: 2px solid #f06292;
    animation: pulse 1s infinite;
}

/* Investment Plans */
.investment-plan {
    background: linear-gradient(135deg, #fff, #ffeef4);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.investment-plan:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(240,98,146,0.2);
}

.plan-return {
    font-size: 20px;
    font-weight: bold;
    color: #f06292;
}

/* Live Chat */
.chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 100;
    display: none;
}

.chat-container.open {
    display: block;
    animation: fadeSlide 0.3s;
}

.chat-header {
    background: #f06292;
    color: white;
    padding: 12px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    margin-bottom: 0;
    margin-right: 8px;
}

.chat-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f06292;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 99;
    animation: bounce 2s infinite;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideInRight 0.3s;
    border-left: 5px solid #f06292;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin Dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h4 {
    font-size: 0.85rem;
    color: #b28497;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #f06292;
}

.users-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th, .users-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ffe0e8;
}

/* Responsive */
@media (max-width: 480px) {
    .spin-wheel-container {
        width: 200px;
        height: 200px;
    }
    
    .checkin-grid {
        gap: 5px;
    }
    
    .checkin-day {
        font-size: 10px;
        padding: 8px 3px;
    }
}