/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #a0a0a0;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-info:hover {
    background: rgba(255, 255, 255, 0.15);
}

.profile-arrow {
    color: #b0b0b0;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.profile-balance {
    font-size: 12px;
    color: #00d4aa;
    font-weight: 600;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 20, 25, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.profile-menu-info {
    flex: 1;
}

.profile-menu-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.profile-menu-email {
    font-size: 0.875rem;
    color: #b0b0b0;
}

.profile-menu-items {
    padding: 0.75rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.profile-menu-item i {
    width: 16px;
    color: #b0b0b0;
}

.profile-menu-item:hover i {
    color: #667eea;
}

.profile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1.5rem;
}

    .logout-btn {
        color: #ff6b6b !important;
        background: rgba(255, 107, 107, 0.05) !important;
        border: 1px solid rgba(255, 107, 107, 0.2) !important;
    }
    
    .logout-btn:hover {
        background: rgba(255, 107, 107, 0.1) !important;
        color: #ff6b6b !important;
        transform: translateX(5px) !important;
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
    }
    
    .logout-btn:hover i {
        color: #ff6b6b !important;
        transform: scale(1.1) !important;
    }
    
    /* Mobile Profile Menu Enhanced Animations */
    .profile-menu-item {
        position: relative;
        overflow: hidden;
    }
    
    .profile-menu-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .profile-menu-item:hover::before {
        left: 100%;
    }
    
    /* Mobile Profile Menu Enhanced Styling */
    .profile-menu-item span {
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .profile-menu-item.logout-btn span {
        font-weight: 600;
        color: #ff6b6b;
    }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hide mobile menu button when user is logged in */
.user-profile:not([style*="display: none"]) ~ .mobile-menu-btn,
.user-profile[style*="display: flex"] ~ .mobile-menu-btn {
    display: none !important;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-menu-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 12px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trading-chart {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.chart-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.dot {
    width: 8px;
    height: 8px;
    background: #a0a0a0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    transform: scale(1.5);
}

.profit-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding: 0 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.about-feature i {
    color: #00d4aa;
    font-size: 18px;
}

.platform-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    background: #a0a0a0;
    border-radius: 50%;
    display: inline-block;
}

.preview-content {
    display: flex;
    gap: 1rem;
}

.preview-chart {
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.preview-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    font-size: 12px;
    color: #b0b0b0;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.stat-value.positive {
    color: #00d4aa;
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(15, 15, 35, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: #a0a0a0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

.account-credentials {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-credentials p {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.account-credentials strong {
    color: #ffffff;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard {
    padding: 120px 0 80px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.profile-card {
    grid-column: span 2;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.profile-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b0b0b0;
}

.detail-row i {
    color: #667eea;
    width: 20px;
}

.user-email {
    word-break: break-all;
}

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

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.balance-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.balance-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.balance-info {
    margin-bottom: 1.5rem;
}

.deposit-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #b0b0b0;
    font-size: 14px;
}

.profit-loss {
    display: flex;
    justify-content: space-around;
}

.profit, .loss {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.profit {
    color: #00d4aa;
}

.loss {
    color: #ff6b6b;
}

.mt5-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.mt5-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4aa;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a0a0a0;
}

.status-dot.connected {
    background: #00d4aa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.mt5-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.mt5-item .label {
    color: #b0b0b0;
    font-size: 14px;
}

.mt5-item .value {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.mt5-item .value.success {
    color: #00d4aa;
}

.stats-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stats-grid .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.stats-grid .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-grid .stat-value.success {
    color: #00d4aa;
}

.stats-grid .stat-value.danger {
    color: #ff6b6b;
}

.stats-grid .stat-label {
    font-size: 12px;
    color: #b0b0b0;
}

/* Transaction History Card */
.history-card {
    grid-column: span 2;
}

.transaction-history {
    margin-top: 1rem;
}

.no-transactions {
    text-align: center;
    padding: 2rem;
    color: #b0b0b0;
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transaction-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-type.deposit {
    color: #00d4aa;
}

.transaction-type.withdrawal {
    color: #ff6b6b;
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.transaction-amount.positive {
    color: #00d4aa;
}

.transaction-amount.negative {
    color: #ff6b6b;
}

.transaction-details {
    text-align: right;
    color: #b0b0b0;
    font-size: 0.85rem;
}

.transaction-method {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-date {
    opacity: 0.8;
}

.transaction-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-status.pending {
    color: #ffa726;
}

.transaction-status.completed {
    color: #00d4aa;
}

.transaction-item.pending {
    background: rgba(255, 167, 38, 0.1);
    border-left: 3px solid #ffa726;
}

.transaction-item.completed {
    background: rgba(0, 212, 170, 0.05);
}

/* ===== TRANSACTIONS SECTION ===== */
.transactions {
    padding: 120px 0 80px;
}

.transaction-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
    padding: 1rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.transaction-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #b0b0b0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-fields {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-wallets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-item label {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-address span {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 14px;
    word-break: break-all;
}

.balance-info {
    color: #00d4aa;
    font-size: 14px;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===== SETTINGS SECTION ===== */
.settings {
    padding: 120px 0 80px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.settings-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.settings-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.setting-item span {
    color: #ffffff;
    font-weight: 500;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle input:checked + .slider:before {
    transform: translateX(26px);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section a {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: rgba(15, 15, 35, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    border-left: 4px solid #00d4aa;
}

.notification.error {
    border-left: 4px solid #ff6b6b;
}

.notification.info {
    border-left: 4px solid #667eea;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        grid-column: span 1;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Enhanced Mobile Header Design */
    .nav-container {
        padding: 0.75rem 1rem;
        position: relative;
        min-height: 60px;
        align-items: center;
    }
    
    .nav-brand {
        gap: 8px;
        flex-shrink: 0;
        align-items: center;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .brand-title {
        font-size: 16px;
        white-space: nowrap;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .brand-subtitle {
        font-size: 10px;
        white-space: nowrap;
        opacity: 0.8;
        font-weight: 500;
    }
    
    /* Improved Mobile User Profile - COMPACT VERSION */
    .user-profile {
        margin-left: auto;
        position: relative;
    }
    
    /* Mobile Auth Buttons Enhancement */
    .auth-buttons {
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .auth-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 12px;
        border-radius: 8px;
        min-height: 36px;
        white-space: nowrap;
    }
    
    .auth-buttons .btn-outline {
        border-width: 1.5px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .auth-buttons .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    /* COMPACT Profile Info for Mobile */
    .profile-info {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        min-width: auto;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 140px;
    }
    
    .profile-avatar {
        width: 24px;
        height: 24px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .profile-details {
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }
    
    .profile-name {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
        line-height: 1.2;
        font-weight: 500;
    }
    
    .profile-balance {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
        line-height: 1.2;
        opacity: 0.9;
    }
    
    .profile-arrow {
        font-size: 10px;
        margin-left: 0.3rem;
        flex-shrink: 0;
    }
    
    /* Dashboard Grid Mobile Layout */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .profile-card {
        grid-column: span 1 !important;
    }
    
    .history-card {
        grid-column: span 1 !important;
    }
    
    .balance-card,
    .mt5-card,
    .stats-card {
        grid-column: span 1 !important;
    }
    
    /* Mobile Card Adjustments */
    .dashboard-card {
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    .profile-card .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-row {
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .mt5-details .mt5-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-grid .stat-item {
        padding: 0.75rem;
    }
    
    .stats-grid .stat-value {
        font-size: 1.25rem;
    }
    
    /* Mobile Dashboard Enhanced Layout */
    .dashboard-header {
        margin-bottom: 2rem;
    }
    
    .dashboard-header .section-title {
        font-size: 2rem;
    }
    
    .dashboard-header .section-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile Transaction History */
    .transaction-history {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .transaction-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
    }
    
    .transaction-info {
        gap: 0.25rem;
    }
    
    .transaction-type {
        font-size: 0.8rem;
    }
    
    .transaction-amount {
        font-size: 1rem;
    }
    
    .transaction-details {
        font-size: 0.75rem;
    }
    
    /* Enhanced Mobile Profile Menu - COMPACT DROPDOWN */
    .profile-menu {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.5rem;
        background: rgba(20, 20, 25, 0.95);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        min-width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .profile-dropdown.active .profile-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .profile-menu-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        position: relative;
    }
    
    .profile-menu-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.5;
        z-index: -1;
    }
    
    .profile-menu-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 3px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
        position: relative;
    }
    
    .profile-menu-avatar::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
        border-radius: 50%;
        z-index: -1;
        opacity: 0.5;
        animation: rotate 3s linear infinite;
    }
    
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    .profile-menu-items {
        width: 100%;
        max-width: none;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.01);
    }
    
    .profile-menu-item {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        position: relative;
        margin: 0 0.5rem;
        border-radius: 8px;
    }
    
    .profile-menu-item:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .profile-menu-item:last-child {
        border-bottom: none;
    }
    
    .profile-menu-item i {
        margin-right: 1rem;
        width: 20px;
        text-align: center;
        color: #667eea;
        transition: all 0.3s ease;
    }
    
    .profile-menu-item:hover i {
        color: #764ba2;
        transform: scale(1.1);
    }
    
    /* Mobile Header Responsiveness */
    .header {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-container {
        gap: 0.5rem;
        position: relative;
    }
    
    /* Mobile Header Background Enhancement */
    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
        z-index: -1;
    }
    
    /* Mobile Profile Dropdown Animation */
    .profile-dropdown.active .profile-info {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: scale(1.02);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .profile-dropdown.active .profile-arrow {
        color: #667eea;
        transform: rotate(180deg) scale(1.1);
    }
    
    /* Mobile Close Button for Profile Menu */
    .profile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .profile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }
    
    .profile-menu-close:active {
        transform: scale(0.95);
    }
    
    /* Mobile Profile Menu Backdrop */
    .profile-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(180deg, rgba(15, 15, 35, 0.98) 0%, rgba(15, 15, 35, 0.95) 100%);
        z-index: -1;
        backdrop-filter: blur(20px);
    }
    
    /* Mobile Profile Menu Enhanced Styling */
    .profile-menu-name {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }
    
    .profile-menu-email {
        font-size: 0.9rem;
        color: #b0b0b0;
        opacity: 0.8;
        font-weight: 400;
    }
    
    .profile-menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
        margin: 1rem 1.5rem;
        border-radius: 1px;
    }
    
    /* Mobile Profile Menu Enhanced Info */
    .profile-menu-info {
        text-align: center;
        width: 100%;
    }
    
    /* Mobile Profile Menu Enhanced Header */
    .profile-menu-header {
        position: relative;
        overflow: hidden;
    }
    
    .profile-menu-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 1px;
        opacity: 0.6;
    }
    
    /* Mobile Profile Menu Enhanced Items */
    .profile-menu-items {
        position: relative;
    }
    
    .profile-menu-items::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }
    
    /* Mobile Profile Menu Enhanced Transitions */
    .profile-menu-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .profile-menu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(8px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Profile Menu Enhanced Icons */
    .profile-menu-item i {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .profile-menu-item:hover i {
        transform: scale(1.2) rotate(5deg);
        color: #764ba2;
    }
    
    /* Mobile Profile Menu Enhanced Logout */
    .profile-menu-item.logout-btn:hover {
        background: rgba(255, 107, 107, 0.15) !important;
        border-color: rgba(255, 107, 107, 0.4) !important;
        transform: translateX(8px) scale(1.02) !important;
    }
    
    .profile-menu-item.logout-btn:hover i {
        transform: scale(1.2) rotate(-5deg) !important;
        color: #ff6b6b !important;
    }
    
    /* Mobile Profile Menu Enhanced Responsiveness */
    @media (max-height: 600px) {
        .profile-menu-header {
            padding: 1.5rem 1.5rem;
        }
        
        .profile-menu-avatar {
            width: 60px;
            height: 60px;
            font-size: 2rem;
            margin-bottom: 0.75rem;
        }
        
        .profile-menu-item {
            padding: 1rem 1.5rem;
        }
    }
    
    /* Mobile Profile Menu Enhanced Loading */
    .profile-menu.loading {
        opacity: 0.8;
        pointer-events: none;
    }
    
    .profile-menu.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid rgba(102, 126, 234, 0.3);
        border-top: 3px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
    
    /* Mobile Profile Menu Enhanced Accessibility */
    .profile-menu-item:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .profile-menu-close:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Mobile Profile Menu Enhanced Touch */
    @media (hover: none) and (pointer: coarse) {
        .profile-menu-item:hover {
            transform: none;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .profile-menu-item:active {
            background: rgba(255, 255, 255, 0.1);
            transform: scale(0.98);
        }
    }
    
    /* Mobile Profile Menu Enhanced Performance */
    .profile-menu {
        will-change: transform, opacity;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    .profile-menu-item {
        will-change: transform, background-color;
        backface-visibility: hidden;
    }
    
    /* Extra Small Mobile Devices */
    @media (max-width: 480px) {
        .nav-container {
            padding: 0.5rem 0.75rem;
            min-height: 56px;
        }
        
        .brand-icon {
            width: 28px;
            height: 28px;
            font-size: 14px;
        }
        
        .brand-title {
            font-size: 14px;
        }
        
        .brand-subtitle {
            font-size: 9px;
        }
        
        .auth-buttons .btn {
            padding: 0.4rem 0.6rem;
            font-size: 11px;
            min-height: 32px;
        }
        
        /* ULTRA COMPACT Profile for Small Phones */
        .profile-info {
            padding: 0.3rem 0.4rem;
            gap: 0.3rem;
            max-width: 120px;
        }
        
        .profile-avatar {
            width: 20px;
            height: 20px;
            font-size: 10px;
        }
        
        .profile-name {
            font-size: 8px;
            max-width: 50px;
            line-height: 1.1;
        }
        
        .profile-balance {
            font-size: 7px;
            max-width: 50px;
            line-height: 1.1;
        }
        
        .profile-arrow {
            font-size: 8px;
            margin-left: 0.2rem;
        }
        
        /* Dashboard Ultra Mobile Layout */
        .dashboard-grid {
            gap: 1rem;
        }
        
        .dashboard-card {
            padding: 1.25rem;
        }
        
        .profile-card .profile-header {
            gap: 0.75rem;
        }
        
        .profile-avatar-large {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }
        
        .profile-info h3 {
            font-size: 1.4rem;
        }
        
        .balance-amount {
            font-size: 1.75rem;
        }
        
        .mt5-details .mt5-item {
            padding: 0.4rem 0;
        }
        
        .stats-grid .stat-item {
            padding: 0.6rem;
        }
        
        .stats-grid .stat-value {
            font-size: 1.1rem;
        }
        
        /* Ultra Mobile Dashboard */
        .dashboard-header .section-title {
            font-size: 1.75rem;
        }
        
        .dashboard-header .section-subtitle {
            font-size: 0.9rem;
        }
        
        .transaction-history {
            max-height: 250px;
        }
        
        .transaction-item {
            padding: 0.6rem;
            margin-bottom: 0.4rem;
        }
        
        .transaction-type {
            font-size: 0.75rem;
        }
        
        .transaction-amount {
            font-size: 0.9rem;
        }
        
        .transaction-details {
            font-size: 0.7rem;
        }
        
        .profile-menu-header {
            padding: 1.5rem 1rem;
        }
        
        .profile-menu-avatar {
            width: 60px;
            height: 60px;
            font-size: 2rem;
        }
        
        .profile-menu-item {
            padding: 1rem 1.25rem;
            font-size: 1rem;
            margin: 0 0.25rem;
        }
        
        .profile-menu-close {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .trading-chart {
        width: 250px;
        height: 150px;
        padding: 1.5rem;
    }
}

/* ===== iOS AND ANDROID SPECIFIC IMPROVEMENTS ===== */
@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    .header {
        -webkit-backdrop-filter: blur(20px);
    }
    
    .modal-overlay {
        -webkit-backdrop-filter: blur(10px);
    }
    
    .btn {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    input, select {
        -webkit-appearance: none;
        border-radius: 10px;
    }
}

@supports not (-webkit-touch-callout: none) {
    /* Android specific styles */
    .header {
        background: rgba(15, 15, 35, 0.98);
    }
    
    .modal-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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