/* Reset and Base Styles */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 50%, #4a148c 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-address {
    background: rgba(255, 107, 157, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #ff6b9d;
    border: 1px solid rgba(255, 107, 157, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.network-status {
    margin-bottom: 5px;
}

.network-indicator {
    background: linear-gradient(135deg, #00d4aa, #00a8cc);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Styles */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: rgba(30, 30, 30, 0.9);
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.btn-secondary:hover:not(:disabled) {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00d4aa, #00a8cc);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

/* Main Content */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Banner */

.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.2), rgba(248, 181, 0, 0.2));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid rgba(255, 107, 157, 0.3);
    backdrop-filter: blur(10px);
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

/* Section Styles */

section {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dashboard Styles */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1), rgba(248, 181, 0, 0.1));
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-info p {
    color: #cccccc;
    font-size: 14px;
}

/* Investment Plans */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.7));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: rgba(255, 107, 157, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

.plan-header {
    text-align: center;
    margin-bottom: 15px;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.plan-amount {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    color: #cccccc;
    font-weight: 500;
}

.detail-item span:last-child {
    color: #ffffff;
    font-weight: 600;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Claim & Rejoin Section */

.claim-info {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1));
    border-radius: 15px;
    padding: 25px;
}

.claim-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.claim-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.claim-stat span:first-child {
    color: #cccccc;
    font-weight: 500;
}

.claim-stat span:last-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.claim-actions {
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 15px;
    min-width: 200px;
}

/* Seed Income */

.seed-info {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 15px;
    padding: 25px;
}

.seed-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.seed-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seed-stat span:first-child {
    color: #cccccc;
    font-weight: 500;
}

.seed-stat span:last-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.seed-actions {
    text-align: center;
}

/* Team Structure */

.team-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(30, 136, 229, 0.1));
    border-radius: 15px;
    padding: 25px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.team-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-stat span:first-child {
    color: #cccccc;
    font-weight: 500;
}

.team-stat span:last-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.referral-link {
    margin-top: 20px;
}

.referral-link label {
    display: block;
    margin-bottom: 10px;
    color: #cccccc;
    font-weight: 500;
}

.link-container {
    display: flex;
    gap: 10px;
}

.link-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(30, 30, 30, 0.9);
    color: #ffffff;
}

.link-container input:focus {
    outline: none;
    border-color: #ff6b9d;
}

/* System Stats */

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.system-stat {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1), rgba(248, 181, 0, 0.1));
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.system-stat span:first-child {
    color: #cccccc;
    font-weight: 500;
}

.system-stat span:last-child {
    color: #ffffff;
    font-weight: 600;
}

/* Loading Overlay */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hide contract balance */
.system-stat:has(#systemContractBalance) {
    display: none !important;
}

/* Small Banner Styles */
.small-banner {
    background: linear-gradient(135deg, #2a2a4e 0%, #3a3a6e 50%, #4a4a8e 100%);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

.small-banner h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.small-banner p {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* Simple Banner Styles */
.simple-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.simple-banner h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.simple-banner p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin: 0;
}



/* Header Layout */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

/* Wallet Info Section */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Responsive Design for Coming Soon */
@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 2.5rem;
    }
    
    .coming-soon-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .email-input {
        min-width: auto;
    }
}

/* Header Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
        margin: 0;
        order: 2;
    }
    
    .wallet-info {
        justify-content: center;
        order: 3;
    }
    
    .logo {
        justify-content: center;
        order: 1;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .wallet-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive Design */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .info-grid,
    .claim-stats,
    .seed-stats,
    .team-stats,
    .system-grid {
        grid-template-columns: 1fr;
    }
    .link-container {
        flex-direction: column;
    }
    .toast {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 25px 20px;
    }
    .welcome-content h1 {
        font-size: 1.8rem;
    }
    .welcome-content p {
        font-size: 1rem;
    }
    .plan-card {
        padding: 15px;
    }
    section {
        padding: 20px;
    }
    .stat-card {
        padding: 15px;
    }
    .claim-stat {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .claim-stat span:first-child {
        font-size: 12px;
    }
    .claim-stat span:last-child {
        font-size: 14px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
        min-width: 180px;
    }
}

/* Utility Classes */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Animation Classes */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}