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

:root {
    /* GENXGAINS Color Palette - Professional Trading Platform */
    --primary: #3b82f6; /* Blue */
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #06b6d4; /* Cyan */
    --accent: #10b981; /* Green */
    --success: #10b981; /* Green */
    --success-dark: #059669;
    --warning: #f59e0b; /* Amber/Orange */
    --danger: #ef4444;
    --purple: #a855f7; /* Purple */
    --yellow: #eab308; /* Yellow */
    --orange: #f97316; /* Orange */
    
    /* Background Colors - Clean & Modern */
    --bg-primary: #0f172a; /* Rich dark blue */
    --bg-secondary: #1e293b; /* Slate blue */
    --bg-card: #1e293b; /* Card background */
    --bg-hover: #334155; /* Hover state */
    --bg-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1; /* Lighter gray */
    --text-muted: #94a3b8;
    
    /* Border & Shadow */
    --border: rgba(148, 163, 184, 0.15); /* Subtle borders */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #0f172a;
    background-image: 
        radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
}

/* Header */
.header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

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

.header-banners {
    width: 100%;
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-ai {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.logo h1 {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin: 0;
}

.logo h1 span {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 8px;
    background-color: rgba(245, 158, 11, 0.2);
    -webkit-text-fill-color: #f59e0b;
    margin-left: 8px;
    font-weight: 600;
}

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

.wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.wallet-info span:first-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-align: right;
}

.wallet-info span:last-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success);
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-wallet {
        width: 100%;
        justify-content: flex-start;
    }
    
    .wallet-info {
        align-items: flex-start;
    }
    
    .wallet-info span:first-child {
        text-align: left;
    }
    
    .plan-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plan-item {
        padding: 12px 14px;
    }
    
    .plan-content h3 {
        font-size: 0.85rem;
    }
    
    .plan-description {
        font-size: 0.8rem;
    }
    
    .plan-icon {
        font-size: 1.4rem;
    }
}

/* Plan Container - Now in Header Center */
.plan-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.plan-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-item:hover::before {
    opacity: 1;
}

.plan-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.plan-item.roi-plan {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.plan-item.binary-plan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}


.plan-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.plan-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.plan-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.plan-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.plan-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

.plan-description strong {
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .plan-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plan-item {
        padding: 12px 14px;
    }
    
    .plan-content {
        gap: 8px;
    }
    
    .plan-content h3 {
        font-size: 1.1rem;
    }
    
    .plan-description {
        font-size: 1rem;
    }
    
    .plan-icon {
        font-size: 2rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-wallet {
        width: 100%;
        justify-content: flex-start;
    }
    
    .wallet-info {
        align-items: flex-start;
    }
    
    .wallet-info span:first-child {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .plan-content h3 {
        font-size: 1rem;
    }
    
    .plan-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .plan-icon {
        font-size: 1.8rem;
    }
    
    .plan-details {
        gap: 10px;
    }
    
    .package-feature {
        font-size: 0.8rem !important;
    }
}

/* Binary Conditions Table */
.binary-conditions-section {
    margin-bottom: 30px;
}

.binary-conditions-table-wrapper {
    margin-top: 20px;
}

.binary-conditions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.binary-conditions-table thead {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.binary-conditions-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.binary-conditions-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.binary-conditions-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.binary-conditions-table tbody tr:last-child td {
    border-bottom: none;
}

.binary-conditions-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.condition-item {
    flex: 1;
    min-width: 200px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.condition-item strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .binary-conditions-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .binary-conditions-table th,
    .binary-conditions-table td {
        padding: 10px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .binary-conditions-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .condition-item {
        min-width: 100%;
    }
}

.stats-section {
    margin-bottom: 30px;
}

.stats-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--bg-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content h3 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-content p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .stat-card {
        padding: 12px;
        gap: 10px;
        min-height: 70px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .stat-content p {
        font-size: 1rem;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
}

/* History Grid - Side by side layout */
.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Referral Grid - Side by side layout */
.referral-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .history-grid,
    .referral-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.card h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

/* Investment Card */
.investment-card {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.investment-header {
    text-align: center;
    margin-bottom: 20px;
}

.investment-header h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.investment-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.package-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
}

.package-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.package-btn:hover::before {
    left: 100%;
}

.package-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.package-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.package-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 4px;
}

.package-btn.selected .package-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.package-badge.premium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.package-badge.elite {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.package-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 4px 0;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-btn.selected .package-price {
    -webkit-text-fill-color: white;
}

.package-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 2px 0;
}

.package-btn.selected .package-desc {
    color: rgba(255, 255, 255, 0.9);
}

.package-feature {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.package-btn.selected .package-feature {
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .package-btn {
        padding: 10px 8px;
        min-height: 90px;
    }
    
    .package-price {
        font-size: 1.2rem;
    }
    
    .package-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .package-desc {
        font-size: 0.7rem;
    }
    
    .package-feature {
        font-size: 0.65rem;
    }
}

/* Investment Form */
.investment-form {
    margin-top: 30px;
}

.form-section {
    background: rgba(21, 25, 50, 0.5);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.required {
    color: var(--danger);
    font-weight: 600;
}

.selected-package-group {
    position: relative;
}

.selected-package-display {
    position: relative;
}

.package-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.btn-invest {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-invest:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.status-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .form-section {
        padding: 20px;
    }
    
    .investment-header h2 {
        font-size: 1.5rem;
    }
}

.input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-hover);
}

.input:read-only {
    background: var(--bg-hover);
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #db2777 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
    min-width: 80px;
}

@media (max-width: 640px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
        width: 100%;
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.dashboard-item {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: var(--bg-hover);
}

.dashboard-item label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.dashboard-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 640px) {
    .dashboard-item {
        padding: 10px 12px;
        min-height: 65px;
    }
    
    .dashboard-item label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .dashboard-item p {
        font-size: 1rem;
    }
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Earning Sections */
.earning-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.earning-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    min-height: 70px;
    backdrop-filter: blur(10px);
}

.earning-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.earning-info {
    flex: 1;
}

.earning-info label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earning-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.earning-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .earning-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .earning-actions {
        width: 100%;
        gap: 8px;
    }
    
    .earning-actions .btn {
        flex: 1;
    }
    
    .earning-amount {
        font-size: 1.1rem;
    }
    
    .earning-info label {
        font-size: 0.65rem;
    }
}

/* Investment History Table */
.investment-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.investment-history-table th,
.investment-history-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.investment-history-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.investment-history-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.investment-history-table tbody tr {
    transition: all 0.2s ease;
}

.investment-history-table tbody tr:hover {
    background: var(--bg-hover);
}

.investment-history-table .status-active {
    color: var(--success);
    font-weight: 600;
}

.investment-history-table .status-inactive {
    color: var(--text-muted);
}

.investment-history-table .amount {
    font-weight: 600;
    color: var(--primary-light);
}

.investment-history-table .roi-earned {
    color: var(--success);
    font-weight: 600;
}

.duration-cell {
    white-space: nowrap;
}

.position-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-badge.left-position {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.position-badge.right-position {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .investment-history-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .investment-history-table th,
    .investment-history-table td {
        padding: 12px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .investment-history-table th,
    .investment-history-table td {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
}

/* Binary Earnings Table */
.binary-earnings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.binary-earnings-table th,
.binary-earnings-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.binary-earnings-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.binary-earnings-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.binary-earnings-table tbody tr {
    transition: all 0.2s ease;
}

.binary-earnings-table tbody tr:hover {
    background: var(--bg-hover);
}

.binary-earnings-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .binary-earnings-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .binary-earnings-table th,
    .binary-earnings-table td {
        padding: 12px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .binary-earnings-table th,
    .binary-earnings-table td {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
}

/* Referral Section */
.referral-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-display {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link-display .input {
    flex: 1;
    min-width: 200px;
}

.link-display .btn {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .link-display {
        flex-direction: column;
    }
    
    .link-display .input {
        min-width: 100%;
        width: 100%;
    }
    
    .link-display .btn {
        width: 100%;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 200px;
    max-width: 300px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

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

@media (max-width: 480px) {
    .toast {
        bottom: 20px;
        right: 10px;
        left: 10px;
        padding: 16px 20px;
        max-width: none;
    }
}

/* Network Badge */
.network-badge {
    background: linear-gradient(135deg, var(--warning) 0%, #dc2626 100%);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ========================================
   TITANFI-STYLE LAYOUT
   ======================================== */

/* Main Wrapper */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Header */
.nav-header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.btn-connect {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-connect:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

.wallet-balance {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-disconnect {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disconnect:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 0;
    flex: 1;
}

.hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    overflow: visible;
    word-break: normal;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-gradient);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    border: 4px solid var(--bg-primary);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.step-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Plans Section - TitanFi Style */
.plans-section {
    padding: 40px 0;
}

.plans-grid-titan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

.plan-card-titan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card-titan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card-titan:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.plan-card-titan:hover::before {
    opacity: 1;
}

.plan-header-titan {
    margin-bottom: 25px;
}

.plan-badge-titan {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.plan-badge-titan.premium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: var(--purple);
    color: var(--purple);
}

.plan-badge-titan.elite {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border-color: var(--orange);
    color: var(--orange);
}

.plan-body-titan {
    margin-bottom: 30px;
}

.plan-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.plan-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.plan-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.plan-value.highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.plan-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.plan-approve-btn,
.plan-invest-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-approve-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.plan-approve-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan-approve-btn:disabled {
    background: var(--success);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.plan-invest-btn {
    background: var(--bg-gradient);
    color: white;
}

.plan-invest-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.plan-invest-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Investment Form */
.investment-form-wrapper {
    max-width: 600px;
    margin: 50px auto 0;
}

.investment-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.investment-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Dashboard Modern Style */
.dashboard-section {
    padding: 40px 0;
}

.dashboard-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dashboard-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Earnings Grid */
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.earning-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.earning-header {
    margin-bottom: 25px;
}

.earning-header h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earning-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    letter-spacing: -0.5px;
    text-align: center;
}

.earning-actions {
    display: flex;
    gap: 15px;
}

.earning-actions .btn {
    flex: 1;
}

/* Binary Claim Box */
.binary-claim-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.binary-claim-box .earning-amount {
    margin: 0;
}

.binary-claim-box .earning-actions {
    width: 100%;
    max-width: 300px;
}

/* Mobile styles for earning-card */
@media (max-width: 768px) {
    .earning-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .earning-header {
        margin-bottom: 20px;
    }
    
    .earning-header h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .earning-amount {
        font-size: 1.8rem;
        margin: 12px 0;
    }
    
    .earning-subtitle {
        font-size: 0.8rem !important;
    }
    
    .earning-subtitle div {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
        margin-bottom: 3px !important;
    }
    
    /* Volume display container */
    .volume-display-container {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .volume-item {
        width: 100% !important;
        text-align: center !important;
        padding: 12px;
        background: rgba(59, 130, 246, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
}

@media (max-width: 480px) {
    .earning-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .earning-header {
        margin-bottom: 16px;
    }
    
    .earning-header h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .earning-amount {
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    .binary-claim-box {
        padding: 16px;
        margin: 12px 0;
        gap: 12px;
        border-radius: 12px;
    }
    
    .binary-claim-box .earning-amount {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .binary-claim-box .earning-actions {
        max-width: 100%;
    }
    
    .earning-subtitle {
        font-size: 0.75rem !important;
    }
    
    .earning-subtitle div {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        margin-bottom: 2px !important;
    }
    
    .volume-display-container {
        gap: 12px !important;
    }
    
    .volume-item {
        padding: 10px !important;
    }
    
    .earning-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .earning-actions .btn {
        width: 100%;
    }
}

/* History Tabs */
.history-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Referral Section */
.referral-section {
    padding: 40px 0;
}

.referral-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.referral-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
}

.referral-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.referral-info-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ref-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.ref-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ref-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.referral-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.referral-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.referral-link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.link-input-group {
    display: flex;
    gap: 15px;
}

.input-link {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.btn-copy {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

/* Team Section */
.team-section {
    padding: 40px 0;
}

.team-view-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.team-view-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.team-view-table thead {
    background: var(--bg-secondary);
}

.team-view-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.team-view-table td {
    padding: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.team-view-table tbody tr:hover {
    background: var(--bg-secondary);
}

.team-view-table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 30px 0 20px;
}

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

.footer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-stat-item:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.footer-stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.footer-stat-content {
    flex: 1;
    min-width: 0;
}

.footer-stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-stat-value {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-link {
    margin-top: 10px;
}

.footer-link a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Keep platform-stat classes for backward compatibility with JavaScript */
.platform-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.platform-stat-icon {
    font-size: 3rem;
}

.platform-stat-content {
    flex: 1;
}

.platform-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-stat-value {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .plans-grid-titan {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-header {
        position: relative;
        padding: 10px 0;
    }
    
    .nav-container {
        flex-wrap: wrap;
        position: relative;
        padding-top: 45px;
        min-height: 50px;
    }
    
    .logo {
        position: absolute;
        top: 10px;
        left: 20px;
        z-index: 10;
        gap: 8px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .wallet-section {
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 10;
    }
    
    .wallet-info-nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    
    .wallet-balance {
        font-size: 0.85rem;
        text-align: right;
        white-space: nowrap;
    }
    
    .btn-disconnect {
        padding: 6px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plans-grid-titan {
        grid-template-columns: 1fr;
    }
    
    .referral-links-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earnings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding: 0 15px;
    }
    
    .nav-header {
        padding: 8px 0;
    }
    
    .nav-container {
        padding-top: 40px;
        min-height: 45px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .logo {
        top: 8px;
        left: 15px;
        gap: 6px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .wallet-section {
        top: 8px;
        right: 15px;
    }
    
    .wallet-balance {
        font-size: 0.8rem;
    }
    
    .btn-disconnect {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .plans-section,
    .dashboard-section,
    .referral-section,
    .team-section {
        padding: 30px 0;
    }
    
    .main-footer {
        margin-top: 60px;
        padding: 40px 0 25px;
    }
    
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .dashboard-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .investment-form-card {
        padding: 25px;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-stat-item {
        padding: 15px;
    }
    
    .footer-stat-icon {
        font-size: 1.5rem;
    }
    
    .footer-stat-value {
        font-size: 1.1rem;
    }
}

