:root {
    --primary-color: #304FFE;
    --primary-dark: #2640e0;
    --secondary-color: #1a1a2e;
    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --bg-primary: #f8f8f8;
    --bg-secondary: #ffffff;
    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --error-color: #ff4757;
    --success-color: #2ed573;
    --google-blue: #4285F4;
    --facebook-blue: #1877F2;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: #f8f8f8;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

/* Header */
.header {
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between !important;
}

.logo-container {
    display: flex;
    align-items: center;
}

.language-switcher {
    position: relative;
}

/* Logo always on the right side for both languages - Force position */
body[dir="ltr"] .logo-container {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2 !important;
}

body[dir="rtl"] .logo-container {
    margin-right: auto !important;
    margin-left: 0 !important;
    order: 2 !important;
}

/* Language switcher always on the left side (visual left) */
body[dir="ltr"] .language-switcher {
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 1 !important;
}

body[dir="rtl"] .language-switcher {
    margin-right: 0 !important;
    margin-left: auto !important;
    order: 1 !important;
}

.logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}


/* Language Switcher - Always on the left side */

.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.globe-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.lang-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(48, 79, 254, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    width: auto;
    display: none;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

/* RTL: Open dropdown from right side to prevent text overflow */
body[dir="rtl"] .lang-dropdown {
    left: auto !important;
    right: 0 !important;
    min-width: 160px;
    width: auto;
    max-width: 200px;
    overflow: hidden;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

body[dir="rtl"] .lang-option {
    text-align: right;
    direction: rtl;
    justify-content: flex-start;
    flex-direction: row;
}

body[dir="rtl"] .lang-option span {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

body[dir="rtl"] .lang-option .check-icon {
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 0;
}

.lang-option:hover {
    background: rgba(48, 79, 254, 0.05);
    color: var(--primary-color);
}

.lang-option.active {
    background: rgba(48, 79, 254, 0.1);
    color: var(--primary-color);
}

.lang-option.active .check-icon {
    display: block !important;
}

.check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

/* Auth Forms */
.auth-forms {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #f8f8f8;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(48, 79, 254, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    background: transparent;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Auth Form */
.auth-form {
    display: none;
    padding: 40px;
}

.auth-form.active {
    display: block;
}

.form {
    width: 100%;
}

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

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(48, 79, 254, 0.1);
    background: #ffffff;
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

body[dir="ltr"] .password-input-wrapper input {
    padding-right: 16px;
    padding-left: 45px;
}

.toggle-password {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

body[dir="ltr"] .toggle-password {
    right: auto;
    left: 8px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password:focus {
    outline: none;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 79, 254, 0.3);
}

.btn-google {
    background: #ffffff;
    color: #333333;
    border: 1px solid var(--border-color);
}

.btn-google:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-facebook {
    background: var(--facebook-blue);
    color: #ffffff;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

body[dir="rtl"] .divider::before {
    margin-left: 10px;
}

body[dir="rtl"] .divider::after {
    margin-right: 10px;
}

body[dir="ltr"] .divider::before {
    margin-right: 10px;
}

body[dir="ltr"] .divider::after {
    margin-left: 10px;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-text {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-text.warning-text {
    color: #ffa726;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .auth-form {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .header-content {
        flex-direction: row !important;
        gap: 0;
        justify-content: space-between !important;
    }

    body[dir="ltr"] .logo-container {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 2 !important;
    }

    body[dir="rtl"] .logo-container {
        margin-right: auto !important;
        margin-left: 0 !important;
        order: 2 !important;
    }

    body[dir="ltr"] .language-switcher {
        margin-left: 0 !important;
        margin-right: auto !important;
        order: 1 !important;
    }

    body[dir="rtl"] .language-switcher {
        margin-right: 0 !important;
        margin-left: auto !important;
        order: 1 !important;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 0;
    }

    .auth-form {
        padding: 25px 15px;
    }

    .tab-btn {
        padding: 15px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    body[dir="ltr"] .logo-container {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 2 !important;
    }

    body[dir="rtl"] .logo-container {
        margin-right: auto !important;
        margin-left: 0 !important;
        order: 2 !important;
    }

    body[dir="ltr"] .language-switcher {
        margin-left: 0 !important;
        margin-right: auto !important;
        order: 1 !important;
    }

    body[dir="rtl"] .language-switcher {
        margin-right: 0 !important;
        margin-left: auto !important;
        order: 1 !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form.active {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

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

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group input.error {
    border-color: var(--error-color);
}

/* Success Messages */
.success-message {
    color: var(--success-color);
    font-size: 14px;
    padding: 12px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    width: calc(100% - 40px);
    pointer-events: none;
}

body[dir="rtl"] .toast-container {
    left: 50%;
    right: auto;
}

/* Toast Notification */
.toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-right: 4px solid var(--primary-color);
    min-height: 56px;
}

body[dir="rtl"] .toast {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

.toast.warning {
    border-color: #ffa726;
}

.toast.success {
    border-color: var(--success-color);
}

.toast.error {
    border-color: var(--error-color);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
}

.toast.warning .toast-icon {
    color: #ffa726;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.toast-close svg {
    width: 18px;
    height: 18px;
}

/* Toast Animation */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

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

/* Responsive Toast */
@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .toast {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* Auth Card (used on verify-otp, standalone auth pages) */
.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Secondary Button */
.btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(48, 79, 254, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 79, 254, 0.15);
}

/* Form Input (readonly, copy boxes) */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #f8f8f8;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

.form-input[readonly] {
    background: #f8f8f8;
    cursor: default;
}

/* OTP Resend Section */
.otp-resend {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.resend-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.resend-link:hover:not(:disabled) {
    color: var(--primary-dark);
}

.resend-link:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.6;
}

.resend-timer {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.otp-info-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

.otp-methods {
    margin-bottom: 24px;
}

.otp-form {
    margin-bottom: 16px;
}

.verification-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    direction: ltr;
    margin-bottom: 22px;
}

.otp-digit {
    display: block;
    width: 56px;
    height: 62px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    border: 1.5px solid #d6dbe8;
    border-radius: 12px;
    background: #ffffff;
    color: #1e2433;
    transition: all 0.22s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #3e64ff;
    box-shadow: 0 0 0 4px rgba(62, 100, 255, 0.14);
    transform: translateY(-1px);
}

#verifyBtn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 14px 22px;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #3053ff 0%, #4a73ff 100%);
    box-shadow: 0 10px 22px rgba(48, 83, 255, 0.24);
    font-weight: 700;
    transition: all 0.22s ease;
}

#verifyBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(48, 83, 255, 0.3);
}

#verifyBtn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 14px rgba(48, 83, 255, 0.16);
}

/* Dashboard Main */
.dashboard-main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 40px;
}

.wallet-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(48, 79, 254, 0.1);
    border: 1px solid rgba(224, 224, 224, 0.5);
}

.wallet-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wallet-actions .btn {
    width: auto;
    padding: 12px 32px;
    margin-bottom: 0;
    border-radius: 12px;
}

/* Bonus Section */
.bonus-section {
    margin-bottom: 40px;
}

.bonus-section .bonus-card {
    text-align: center;
}

.bonus-header-info {
    margin-bottom: 16px;
}

.bonus-balance {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #2ed573 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Affiliate Section */
.affiliate-section {
    margin-bottom: 40px;
}

.affiliate-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(48, 79, 254, 0.1);
    border: 1px solid rgba(224, 224, 224, 0.5);
    text-align: center;
}

.affiliate-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.affiliate-link-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.affiliate-link-box .form-input {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.affiliate-link-box .btn {
    width: auto;
    padding: 12px 24px;
    margin-bottom: 0;
    border-radius: 12px;
    white-space: nowrap;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    z-index: 1002;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
    height: 28px;
    width: auto;
}

.mobile-menu-close {
    background: rgba(48, 79, 254, 0.1);
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(48, 79, 254, 0.2);
}

.mobile-menu-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    display: block;
}

.mobile-nav-link:hover {
    background: rgba(48, 79, 254, 0.08);
    color: var(--primary-color);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary-color);
    border-color: rgba(48, 79, 254, 0.3);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 30px 0 60px;
    }

    .wallet-card,
    .affiliate-card,
    .bonus-section .bonus-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .balance-amount {
        font-size: 32px;
    }

    .wallet-actions {
        flex-direction: column;
    }

    .wallet-actions .btn {
        width: 100%;
    }

    .affiliate-link-box {
        flex-direction: column;
    }

    .affiliate-link-box .btn {
        width: 100%;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }

    .balance-amount {
        font-size: 28px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
}
