/* General Styles for All Pages */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --card-bg: #ffffff;
    --card-radius: 12px;
    --input-radius: 8px;
    --input-border: #e5e7eb;
    --input-bg: #f9fafb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.header {
    width: 100vw;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0;
    box-sizing: border-box;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    border-bottom: 2px solid var(--primary-light);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 1rem 2rem;
    display: inline-block;
    letter-spacing: 0.5px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    min-height: 70px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* --- Login/Register/Auth Page UI Enhancements --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #cffafe 100%);
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid var(--primary-light);
}
.auth-logo {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}
.auth-subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-subtitle a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}
    color: #27ae60;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}
.auth-title {
    text-align: center;
    font-size: 1.7rem;
    color: #222;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
    font-weight: 600;
}
.password-field {
    display: flex;
    align-items: center;
    position: relative;
}
.password-field input {
    flex: 1;
}
.password-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    margin-left: -2.2rem;
    margin-right: 0.5rem;
    z-index: 2;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: #27ae60;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.checkbox-group label {
    font-size: 0.97rem;
    line-height: 1.4;
    margin: 0;
}
.checkbox-group .forgot-password {
    margin-left: auto;
}
.forgot-password {
    margin-left: auto;
}
.forgot-password a {
    color: #27ae60;
    text-decoration: none;
    font-size: 0.97rem;
}
.forgot-password a:hover {
    text-decoration: underline;
}
.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.alert-error {
    background: #fee8e8;
    color: #ef4444;
    border: 1px solid #fca5a5;
}
.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}
.alert-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}
.alert-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}
.auth-footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.97rem;
}
.auth-footer a:hover {
    color: #27ae60;
}
@media (max-width: 600px) {
    .auth-card {
        padding: 1.2rem 0.5rem;
    }
}

/* --- Dashboard Card Components --- */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-light);
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.card-body {
    color: var(--text-primary);
}
.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-light);
    text-align: right;
}
.stat-card {
    background: linear-gradient(135deg, var(--primary-light), #cffafe);
    border-left-color: var(--primary);
}
.stat-card .card-title {
    color: var(--primary-dark);
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.profile-card h2 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}
.profile-card label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    color: var(--text-primary);
}
.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card input[type="password"],
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1.7px solid var(--border-color);
    border-radius: 9px;
    font-size: 1.05rem;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.25s, box-shadow 0.25s;
    margin: 0 0 1rem 0;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: var(--primary-light);
}

table tbody td {
    padding: 1rem;
    color: var(--text-primary);
}

table tbody tr:last-child {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}
@media (max-width: 700px) {
    .profile-card { padding: 1.5rem; }
}
@media (max-width: 600px) {
    .profile-card { padding: 1rem; }
}

/* --- Withdraw Page UI Enhancements --- */
.withdraw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.withdraw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.withdraw-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 1.5rem;
    border-top: 3px solid var(--primary);
}
.withdraw-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}
.balance-info {
    background: linear-gradient(135deg, var(--primary-light), #cffafe);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}
.balance-item span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}
.balance-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}
    background: #219150;
}
.fee-calculation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 1.5rem 0;
}
.fee-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e5e9;
}
.fee-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.fee-item.total {
    border-top: 2px solid #27ae60;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    color: #27ae60;
    font-weight: 600;
}
.info-section {
    margin-bottom: 1.5rem;
}
.info-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}
.info-section ul {
    padding-left: 1.5rem;
    margin: 0;
}
.info-section li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: #666;
}
.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    color: #856404;
    font-size: 0.95rem;
    margin-top: 1rem;
}
.wallet-address-cell {
    font-family: monospace;
    font-size: 0.95rem;
}
.table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}
.table th, .table td {
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid #e1e5e9;
    text-align: left;
    font-size: 1rem;
}
.table th {
    background: #f8f9fa;
    color: #222;
    font-weight: 700;
}
.table tr:last-child td {
    border-bottom: none;
}
.status-badge {
    display: inline-block;
    padding: 0.3em 1em;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #27ae60;
}
.status-badge.status-pending { background: #fffbe6; color: #bfa100; border-color: #bfa100; }
.status-badge.status-completed { background: #eafaf1; color: #27ae60; border-color: #27ae60; }
.status-badge.status-rejected { background: #ffeaea; color: #e74c3c; border-color: #e74c3c; }
.status-badge.status-active { background: #e6f7ff; color: #007bff; border-color: #007bff; }
.status-badge.status-cancelled { background: #f8d7da; color: #721c24; border-color: #721c24; }
.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* --- Dashboard Page UI Enhancements --- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.dashboard-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
}
.dashboard-title {
    font-size: 2.2rem;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.welcome-text {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.wallet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.wallet-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.wallet-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: #e8f5e8;
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}
.wallet-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
}
.investment-progress {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.progress-title {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.progress-circle {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}
.progress-bg {
    fill: none;
    stroke: #e1e5e9;
    stroke-width: 12;
}
.progress-bar {
    fill: none;
    stroke: #27ae60;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}
.investment-details {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}
.detail-item:last-child {
    border-bottom: none;
}
.referral-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.referral-title {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.referral-link {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.btn-copy {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}
.btn-copy:hover {
    background: #219150;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.action-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}
.action-card:hover {
    transform: translateY(-5px);
}
.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.action-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}
.action-card p {
    color: #666;
    font-size: 0.9rem;
}
.table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}
.table th, .table td {
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid #e1e5e9;
    text-align: left;
    font-size: 1rem;
}
.table th {
    background: #f8f9fa;
    color: #222;
    font-weight: 700;
}
.table tr:last-child td {
    border-bottom: none;
}
.status-badge {
    display: inline-block;
    padding: 0.3em 1em;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #27ae60;
}
.status-badge.status-pending { background: #fffbe6; color: #bfa100; border-color: #bfa100; }
.status-badge.status-completed { background: #eafaf1; color: #27ae60; border-color: #27ae60; }
.status-badge.status-rejected { background: #ffeaea; color: #e74c3c; border-color: #e74c3c; }
.status-badge.status-active { background: #e6f7ff; color: #007bff; border-color: #007bff; }
.status-badge.status-cancelled { background: #f8d7da; color: #721c24; border-color: #721c24; }
.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* --- Dashboard Page UI Enhancements --- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.dashboard-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
}
.dashboard-title {
    font-size: 2.2rem;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.welcome-text {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.wallet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.wallet-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.wallet-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: #e8f5e8;
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}
.wallet-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
}
.investment-progress {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.progress-title {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.progress-circle {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}
.progress-bg {
    fill: none;
    stroke: #e1e5e9;
    stroke-width: 12;
}
.progress-bar {
    fill: none;
    stroke: #27ae60;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}
.investment-details {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}
.detail-item:last-child {
    border-bottom: none;
}
.referral-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.referral-title {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.referral-link {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.btn-copy {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}
.btn-copy:hover {
    background: #219150;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.action-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}
.action-card:hover {
    transform: translateY(-5px);
}
.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.action-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}
.action-card p {
    color: #666;
    font-size: 0.9rem;
}
.table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}
.table th, .table td {
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid #e1e5e9;
    text-align: left;
    font-size: 1rem;
}
.table th {
    background: #f8f9fa;
    color: #222;
    font-weight: 700;
}
.table tr:last-child td {
    border-bottom: none;
}
.status-badge {
    display: inline-block;
    padding: 0.3em 1em;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #27ae60;
}
.status-badge.status-pending { background: #fffbe6; color: #bfa100; border-color: #bfa100; }
.status-badge.status-completed { background: #eafaf1; color: #27ae60; border-color: #27ae60; }
.status-badge.status-rejected { background: #ffeaea; color: #e74c3c; border-color: #e74c3c; }
.status-badge.status-active { background: #e6f7ff; color: #007bff; border-color: #007bff; }
.status-badge.status-cancelled { background: #f8d7da; color: #721c24; border-color: #721c24; }
.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* --- Contact Page UI Enhancements --- */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.page-title {
    text-align: center;
    font-size: 2.2rem;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.contact-info, .contact-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
}
.contact-info h3, .contact-form h3 {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.contact-icon {
    font-size: 2rem;
    color: #27ae60;
    background: #e8f5e8;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-details h4 {
    margin: 0 0 0.2rem 0;
    color: #333;
    font-size: 1rem;
}
.contact-details p {
    margin: 0;
    color: #555;
    font-size: 0.98rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
    font-weight: 600;
}
.form-input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--input-border);
    border-radius: var(--input-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.form-input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: #27ae60;
    outline: none;
}
.btn-primary {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--input-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: #219150;
}
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.alert-error {
    background: #fee;
    color: var(--error);
    border: 1px solid #fcc;
}
.alert-success {
    background: #efe;
    color: var(--success);
    border: 1px solid #cfc;
}
.faq-section {
    background: #f8f9fa;
    padding: 3rem 0;
}
.faq-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    padding: 1.5rem;
    margin-bottom: 0;
}
.faq-item h4 {
    color: #27ae60;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.faq-item p {
    color: #444;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 0;
    }
    .faq-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 100%;
    }
    .faq-item {
        padding: 1rem;
        border-radius: 8px;
    }
    .faq-item h4 {
        font-size: 1rem;
    }
    .faq-item p {
        font-size: 0.95rem;
    }
}

/* --- Footer Styles --- */
.footer {
    background: #fff;
    border-top: 1.5px solid #e1e5e9;
    box-shadow: 0 -2px 16px rgba(44,62,80,0.06);
    padding: 2rem 0 0.5rem 0;
    margin-top: 2rem;
    width: 100%;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-section {
    flex: 1 1 250px;
    margin-bottom: 1rem;
}
.footer-section h3, .footer-section h4 {
    color: #27ae60;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-section p {
    color: #555;
    font-size: 0.98rem;
    margin: 0 0 0.5rem 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: #222;
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #27ae60;
}
.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
}
@media (max-width: 900px) {
    .container, .dashboard-container, .deposit-container, .earnings-container, .withdraw-container {
        padding: 1rem;
    }
    .wallet-cards, .quick-actions, .deposit-grid, .earnings-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .table-container {
        overflow-x: auto;
    }
    .action-card, .summary-card, .deposit-card, .withdraw-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .page-title {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .page-title, .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .page-subtitle, .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .contact-grid, .features-grid, .plans-grid, .steps-grid, .testimonials-grid, .faq-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .contact-info, .contact-form, .feature-card, .plan-card, .step-card, .testimonial-card, .faq-item, .footer-section {
        padding: 1.2rem;
        border-radius: 12px;
    }
    .form-input, .form-label, .btn-primary, .btn-secondary {
        font-size: 1rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 8px;
    }
    .footer-bottom {
        font-size: 0.95rem;
        padding-top: 1.2rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    .page-title, .section-title {
        font-size: 1.3rem;
    }
    .contact-info, .contact-form, .feature-card, .plan-card, .step-card, .testimonial-card, .faq-item, .footer-section {
        padding: 0.8rem;
        border-radius: 8px;
    }
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1rem;
    }
}

/* Ensure tables scroll on mobile */
.table-container {
    overflow-x: auto;
}

/* Button and input spacing for mobile */
.btn-primary, .btn-copy, .btn-full {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
}
.form-input {
    width: 100%;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Card and grid improvements for desktop */
@media (min-width: 901px) {
    .wallet-cards, .quick-actions, .deposit-grid, .earnings-summary {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .action-card, .summary-card, .deposit-card, .withdraw-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    .page-title {
        font-size: 2.5rem;
    }
}

/* --- Input, Select, and Textarea UI Improvements (Global) --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1.7px solid #e1e5e9;
    border-radius: 9px;
    font-size: 1.05rem;
    background: #f8f9fa;
    color: #222;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin: 0;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39,174,96,0.10);
    background: #fff;
}
select {
    cursor: pointer;
    min-height: 48px;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
::-webkit-input-placeholder { color: #aaa; opacity: 1; }
::-moz-placeholder { color: #aaa; opacity: 1; }
:-ms-input-placeholder { color: #aaa; opacity: 1; }
::placeholder { color: #aaa; opacity: 1; }

/* Mobile Dropdown Menu Styles */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #27ae60;
    cursor: pointer;
    z-index: 100;
}
@media (max-width: 900px) {
    .navbar {
        position: relative;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 16px rgba(44,62,80,0.08);
        border-radius: 0 0 12px 12px;
        padding: 1rem 0;
        z-index: 99;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    .nav-links.open {
        display: flex;
        max-height: 500px;
        overflow: auto;
    }
    .nav-links li {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    .nav-links a {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}

/* --- Profile Card Mobile Polish --- */
@media (max-width: 768px) {
    .container {
        padding: 0.2rem;
        width: 100vw;
        margin: 0;
        background: #fff;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 200;
        box-shadow: 0 2px 8px rgba(44,62,80,0.12);
        padding: 0.5rem 0.5rem;
    }
    .nav-links {
        flex-direction: column;
        width: 100vw;
        display: none;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 150;
        box-shadow: 0 4px 16px rgba(44,62,80,0.18);
        border-radius: 0 0 12px 12px;
        padding: 1rem 0.5rem;
    }
    .nav-links.open {
        display: flex !important;
    }
    .nav-links li {
        margin: 0.7rem 0;
        text-align: left;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
        border-radius: 8px;
        width: 100%;
        display: block;
    }
    .nav-links a.active,
    .nav-links a:hover {
        background: #eafaf1;
        color: #27ae60;
    }
    .mobile-menu-toggle {
        position: absolute;
        right: 1rem;
        top: 18px;
        z-index: 201;
        background: none;
        border: none;
        font-size: 2rem;
        color: #27ae60;
        cursor: pointer;
    }
    .profile-card {
        max-width: 100vw;
        width: 100%;
        margin: 1.2rem 0.2rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        font-size: 1.05rem;
        box-sizing: border-box;
        box-shadow: 0 6px 24px rgba(44,62,80,0.13);
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    .profile-card input,
    .profile-card button {
        font-size: 1.08rem;
        padding: 1rem;
        border-radius: 10px;
        width: 100%;
        margin-bottom: 1.2rem;
        box-sizing: border-box;
        border: 1px solid #e1e5e9;
        background: #f8f9fa;
    }
    .profile-card button {
        background: #27ae60;
        color: #fff;
        font-weight: 600;
        border: none;
        transition: background 0.2s;
    }
    .profile-card button:hover {
        background: #219150;
    }
    .profile-card h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: #27ae60;
    }
    .profile-card label {
        font-size: 1.08rem;
        margin-bottom: 0.5rem;
        display: block;
        color: #222;
        font-weight: 500;
    }
    .alert {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.2rem;
        font-size: 1rem;
        text-align: center;
    }
    .alert-success {
        background: #eafaf1;
        color: #27ae60;
        border: 1px solid #b2f0d6;
    }
    .alert-error {
        background: #ffeaea;
        color: #c0392b;
        border: 1px solid #f5b7b1;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0.05rem;
        width: 100vw;
        margin: 0;
        background: #f8f9fa;
    }
    .profile-card {
        max-width: 100vw;
        width: 100%;
        margin: 1rem 0.1rem;
        padding: 1rem 0.3rem;
        border-radius: 12px;
        font-size: 1rem;
        box-sizing: border-box;
        box-shadow: 0 4px 16px rgba(44,62,80,0.13);
        background: #fff;
        gap: 1rem;
    }
    .profile-card input,
    .profile-card button {
        font-size: 1rem;
        padding: 0.8rem;
        border-radius: 8px;
        width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
        border: 1px solid #e1e5e9;
        background: #f8f9fa;
    }
    .profile-card button {
        background: #27ae60;
        color: #fff;
        font-weight: 600;
        border: none;
        transition: background 0.2s;
    }
    .profile-card button:hover {
        background: #219150;
    }
    .profile-card h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
        text-align: center;
        color: #27ae60;
    }
    .profile-card label {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        display: block;
        color: #222;
        font-weight: 500;
    }
    .alert {
        padding: 0.8rem;
        border-radius: 7px;
        margin-bottom: 1rem;
        font-size: 0.97rem;
        text-align: center;
    }
    .alert-success {
        background: #eafaf1;
        color: #27ae60;
        border: 1px solid #b2f0d6;
    }
    .alert-error {
        background: #ffeaea;
        color: #c0392b;
        border: 1px solid #f5b7b1;
    }
}
