/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light theme variables */
    --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #7f8c8d;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --border-color: #dddddd;
    --nav-bg: #2c3e50;
    --nav-text: #ffffff;
    --error-bg: #ffebee;
    --error-text: #c62828;
    --error-border: #ef9a9a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #232526 0%, #414345 100%);
    --bg-secondary: #2d3748;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --accent-color: #4299e1;
    --accent-hover: #3182ce;
    --border-color: #4a5568;
    --nav-bg: #1a202c;
    --nav-text: #e2e8f0;
    --error-bg: #742a2a;
    --error-text: #fc8181;
    --error-border: #742a2a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --input-bg: #2d3748;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navigation Bar - Simplified for mobile */
.navbar {
    background-color: var(--nav-bg);
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--nav-text);
}

.logo-icon-img {
    height: 28px;
    width: 28px;
    margin-right: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 15px;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    margin-right: 15px;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px 25px;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

/* Form Styles */
.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn:active {
    transform: scale(0.98);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    font-size: 14px;
}

.auth-footer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .auth-box {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 14px;
    }
    
    .btn {
        padding: 15px;
    }
    
    .theme-toggle {
        margin-right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
    
    .nav-links {
        font-size: 13px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Dashboard specific styles */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.dashboard-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.dashboard-content {
    width: 100%;
}

.dashboard-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.dashboard-section h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.stat-card h3 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.profit-positive {
    color: #27ae60;
}

.profit-zero {
    color: var(--text-secondary);
}

/* Action grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.action-text {
    font-size: 14px;
    font-weight: 500;
}

/* Referral section */
.referral-link-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .referral-link-container {
        flex-direction: row;
    }
    
    .referral-link {
        flex: 1;
    }
}

.referral-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.referral-link {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.copy-btn {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    height: 42px; /* Match the input field height */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #45a049;
}

.copy-btn.copied {
    background-color: #2E7D32;
}

/* For even smaller button on mobile */
@media (max-width: 480px) {
    .copy-btn {
        padding: 6px 10px;
        font-size: 12px;
        height: 38px;
    }
}


.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.share-icon {
    font-size: 16px;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.referral-stat {
    text-align: center;
    padding: 15px 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* History page specific styles */
.history-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.tab-text {
    font-size: 12px;
    font-weight: 500;
}

.summary-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.summary-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.summary-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.amount-positive {
    color: #27ae60;
    font-weight: 700;
}

.amount-negative {
    color: #e74c3c;
    font-weight: 700;
}

.history-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.history-list {
    max-height: 60vh;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.history-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-date {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.history-amount {
    font-size: 16px;
    font-weight: 700;
}

.history-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-method {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-status {
    font-size: 12px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-completed, status-credited {
    background-color: #27ae60;
    color: white;
}

.status-failed, status-declined {
    background-color: #e74c3c;
    color: white;
}

.status-processing {
    background-color: #3498db;
    color: white;
}

.back-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
}

/* Responsive adjustments for history page */
@media (max-width: 480px) {
    .history-tabs {
        flex-direction: column;
    }
    
    .tab {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 12px 10px;
    }
    
    .tab-icon {
        margin-bottom: 0;
        font-size: 18px;
    }
    
    .history-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .history-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .history-amount {
        font-size: 15px;
    }
}

/* Empty state improvements */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 16px;
}

.empty-state-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    margin: 0 auto;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Deposit page specific styles */
.form-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.form-input, .form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.full-width-btn {
    width: 100%;
    margin-top: 10px;
}

.info-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.info-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.info-text {
    font-size: 14px;
    color: var(--text-primary);
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive adjustments for deposit page */
@media (max-width: 480px) {
    .form-container, .info-card {
        padding: 15px;
    }
    
    .form-input, .form-select {
        padding: 14px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-icon {
        font-size: 16px;
    }
    
    .info-text {
        font-size: 13px;
    }
}


/* Withdrawal page specific styles */
.balance-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.balance-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive adjustments for withdrawal page */
@media (max-width: 480px) {
    .balance-card {
        padding: 15px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .balance-card h3 {
        font-size: 16px;
    }
}

/* Success page styles */
.success-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.success-container h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.transaction-details {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-primary);
}

.detail-value {
    color: var(--text-secondary);
}

.status-pending {
    color: #f39c12;
    font-weight: 600;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.success-info {
    text-align: left;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.success-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-info ul {
    list-style-type: none;
    padding-left: 0;
}

.success-info li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.success-info li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 10px;
}

/* Responsive adjustments for success page */
@media (max-width: 480px) {
    .success-container {
        padding: 20px 15px;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .success-container h1 {
        font-size: 22px;
    }
    
    .transaction-details {
        padding: 12px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .success-info {
        padding: 15px;
    }
}

/* Registration page specific styles */
.register-form {
    margin-bottom: 20px;
}

.field-note {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* CAPTCHA styles */
.captcha-container {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
}

.captcha-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-captcha {
    color: var(--accent-color);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.refresh-captcha:hover {
    text-decoration: underline;
}

/* Date input styling */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
}

/* Readonly field styling */
input[readonly] {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Success message link styling */
.alert.success a {
    color: #2ecc71;
    text-decoration: underline;
    font-weight: 600;
}

.alert.success a:hover {
    color: #27ae60;
}

/* Responsive adjustments for registration page */
@media (max-width: 480px) {
    .captcha-container {
        padding: 12px;
    }
    
    .captcha-question {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .refresh-captcha {
        align-self: flex-end;
    }
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background-color: #e74c3c;
    width: 33%;
}

.strength-medium {
    background-color: #f39c12;
    width: 66%;
}

.strength-strong {
    background-color: #27ae60;
    width: 100%;
}


/* Password change specific styles */
.password-requirements {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.password-requirements li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
    font-size: 14px;
}

.password-requirements li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 10px;
}

/* Responsive adjustments for password change */
@media (max-width: 480px) {
    .password-requirements li {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 22px;
    }
}

/* Referral breakdown styles */
.referral-breakdown {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.referral-breakdown h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 16px;
}

.referral-breakdown p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.inactive-note {
    color: #e74c3c !important;
    font-size: 13px !important;
    font-style: italic;
}

/* Responsive adjustments for referral section */
@media (max-width: 480px) {
    .referral-breakdown {
        padding: 12px;
    }
    
    .referral-breakdown h4 {
        font-size: 15px;
    }
    
    .referral-breakdown p {
        font-size: 13px;
    }
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.eye-closed {
    display: none;
}

.password-input[type="text"] ~ .password-toggle .eye-open {
    display: none;
}

.password-input[type="text"] ~ .password-toggle .eye-closed {
    display: flex;
}

