:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff6b00;
    --bg-dark: #0a0e1a;
    --bg-card: #141824;
    --bg-elevated: #1a1f2e;
    --text-primary: #ffffff;
    --text-secondary: #8b92a8;
    --success: #00ff88;
    --warning: #ffd700;
    --danger: #ff4757;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-2: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Header */
.header {
    padding: 20px 20px 10px;
    animation: slideDown 0.6s ease-out;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Page Content */
.page-content {
    padding: 0 20px 20px;
    animation: fadeIn 0.5s ease-out;
}

.page-content.active {
    display: block;
}

/* Dashboard */
.greeting {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.greeting span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.balance-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.balance-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.stat-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.5s both; }
.stat-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.6s both; }

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.transactions-section {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.transaction-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: var(--bg-elevated);
    border-color: rgba(0, 212, 255, 0.3);
}

.transaction-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.transaction-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* Auction Page */
.auction-timer {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auction-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
}

.session-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--secondary);
    margin: 20px 0;
    letter-spacing: 4px;
}

.session-info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    text-align: center;
}

.info-item .label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.purchase-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.shares-info {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.shares-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.shares-info strong {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
}

.btn-purchase {
    width: 100%;
    padding: 18px;
    background: var(--gradient-2);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

.btn-purchase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Team Page */
.referral-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.referral-code {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 2px dashed var(--primary);
}

.referral-code .code {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
}

.btn-copy {
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.level-progress {
    margin-top: 30px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.current-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-reward {
    font-size: 14px;
    color: var(--success);
    font-weight: 600;
}

.progress-bar {
    background: var(--bg-elevated);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    transition: width 1s ease-out;
    animation: progressFill 1.5s ease-out 0.5s both;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 30px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.reward-item {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.reward-item.unlocked {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.reward-item:hover {
    transform: translateY(-4px);
}

.reward-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.reward-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.reward-value {
    color: var(--text-secondary);
    font-size: 12px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Profile Page */
.profile-header {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-1);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    font-weight: 900;
    border: 4px solid var(--bg-dark);
}

.profile-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 12px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 12px;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-elevated);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from { width: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .greeting { font-size: 24px; }
    .balance-amount { font-size: 36px; }
    .timer-display { font-size: 40px; }
    .nav-label { font-size: 10px; }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--primary);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.auth-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Referral Link Styling */
.referral-link-box {
    border: 2px solid var(--primary);
    border-style: solid;
}

.referral-link-box .referral-link {
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    word-break: break-all;
    color: var(--primary);
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid var(--success);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Social Proof Toast Notifications */
.social-proof-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.social-proof-toast {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    max-width: 380px;
    animation: socialProofSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.social-proof-toast.toast-exit {
    animation: socialProofSlideOut 0.4s ease-in forwards;
}

.social-proof-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.social-proof-content {
    flex: 1;
}

.social-proof-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.social-proof-action {
    font-size: 13px;
    color: var(--text-secondary);
}

.social-proof-action .amount {
    color: var(--success);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.social-proof-action .action-deposit { color: var(--success); }
.social-proof-action .action-bid { color: var(--secondary); }
.social-proof-action .action-profit { color: var(--primary); }
.social-proof-action .action-withdraw { color: var(--warning); }

.social-proof-time {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 2px;
}

.social-proof-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes socialProofSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes socialProofSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Real-time UI Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shares-updated {
    animation: sharesPulse 0.5s ease-out;
}

@keyframes sharesPulse {
    0% {
        transform: scale(1);
        color: var(--primary);
    }
    50% {
        transform: scale(1.1);
        color: var(--success);
    }
    100% {
        transform: scale(1);
        color: var(--primary);
    }
}

/* How it Works Card */
.how-it-works-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255, 107, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.how-it-works-card .section-title {
    color: var(--secondary);
    margin-bottom: 20px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive for social proof */
@media (max-width: 768px) {
    .social-proof-container {
        left: auto;
        right: 10px;
        top: 70px;
    }
    
    .social-proof-toast {
        min-width: auto;
        max-width: 300px;
    }
    
    .toast-container {
        left: auto;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 300px;
    }
}

