/* ApexTrade - Modern Crypto Investment Platform - Components */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
}
.nav-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.375rem;
    align-items: center;
}
.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
}
.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.nav-menu a.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}
.hamburger-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
}
.footer {
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.trader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.trader-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.trader-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.trader-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
.trader-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.trader-stats .stat {
    display: flex;
    flex-direction: column;
}
.trader-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.trader-stats .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    border: 1px solid var(--border);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.625rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.modal-body {
    padding: 1.75rem;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.75rem;
    border-top: 1px solid var(--border);
}
.modal-info {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.toast {
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    min-width: 300px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.toast-success {
    border-left: 4px solid var(--success);
}
.toast-success .toast-icon {
    color: var(--success);
}
.toast-error {
    border-left: 4px solid var(--danger);
}
.toast-error .toast-icon {
    color: var(--danger);
}
.toast-info {
    border-left: 4px solid var(--primary);
}
.toast-info .toast-icon {
    color: var(--primary);
}
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 3rem 0;
    /* Removed solid background to fix double background error */
    -ms-flex-align: center;
    -ms-flex-pack: center;
}

.auth-card {
    background: rgba(255,255,255,0.15);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

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

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

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.search-form {
    display: flex;
    gap: 0.875rem;
    flex: 1;
    max-width: 480px;
}
.filter-tabs {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9375rem;
}
.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}
.filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}
.landing-hero {
    padding: 6rem 2rem;
    text-align: center;
    background: -webkit-linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    background: -moz-linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    background: -o-linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
}
.landing-hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.landing-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.landing-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.landing-features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.landing-features h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.25rem;
}
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.landing-feature-card {
    background: var(--bg-card);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.landing-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.landing-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}
.landing-feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}
.landing-feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Wallet Components */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.wallet-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wallet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.wallet-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.wallet-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.375rem;
}
.wallet-card-body {
    margin-bottom: 1.25rem;
}
.wallet-balance {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.balance-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}
.balance-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}
.wallet-usd {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.wallet-card-footer {
    display: flex;
    gap: 0.75rem;
}
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.badge-info {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.text-small {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.data-table tbody tr:hover {
    background: var(--bg-secondary);
}
