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

/* Mobile Performance Optimizations */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Smooth scrolling for mobile */
body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

/* Prevent text size adjustment on mobile */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

:root {
    --primary-blue: #0052FF;
    --dark-blue: #0A1F44;
    --light-blue: #E8F1FF;
    --accent-blue: #1652F0;
    --success-green: #05B169;
    --warning-yellow: #F4B942;
    --error-red: #DF5F67;
    --text-primary: #050F19;
    --text-secondary: #5B6871;
    --text-muted: #9FA4A8;
    --border-light: #E6EBEF;
    --border-medium: #D6DCE0;
    --white: #FFFFFF;
    --bg-light: #F8FAFB;
    --bg-medium: #F2F4F6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A1F44 0%, #050F19 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

.spinner-ring:nth-child(2) {
    width: 50px;
    height: 50px;
    border-top-color: #627EEA;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    border-top-color: #14F195;
    animation-duration: 2s;
}

.loading-text {
    margin-top: 80px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Skeleton Loading States */
.skeleton-text {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

.skeleton-badge {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    color: transparent !important;
}

.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer-card 2s infinite;
}

.skeleton-ticker {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    padding: 8px 16px;
}

.skeleton-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shimmer-card {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #0A1F44 0%, #050F19 100%);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 82, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(98, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Market Overview Header */
.market-overview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
}

.market-stats {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Crypto Ticker */
.crypto-ticker {
    background: rgba(0, 82, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 12px 0;
}

.ticker-track {
    display: flex;
    gap: 32px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.ticker-item img {
    width: 20px;
    height: 20px;
}

.ticker-symbol {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.ticker-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.ticker-change.positive {
    color: #05B169;
    background: rgba(5, 177, 105, 0.1);
}

.ticker-change.negative {
    color: #DF5F67;
    background: rgba(223, 95, 103, 0.1);
}

.login-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 32px;
    background: linear-gradient(90deg, #FFFFFF, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.market-cards-section {
    margin-top: 48px;
}

/* Market Cards */
.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.market-card:nth-child(1) { animation-delay: 0.1s; }
.market-card:nth-child(2) { animation-delay: 0.2s; }
.market-card:nth-child(3) { animation-delay: 0.3s; }

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

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #627EEA, #14F195);
    opacity: 0;
    transition: opacity 0.3s;
}

.market-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 82, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 82, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.market-card:hover::before {
    opacity: 1;
}

.market-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.market-card-header img {
    width: 40px;
    height: 40px;
}

.market-card-header h3 {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.market-card-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.market-card-price .price {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
}

.market-card-price .change {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.market-card-price .change.positive {
    color: #05B169;
    background: rgba(5, 177, 105, 0.15);
}

.market-card-price .change.negative {
    color: #DF5F67;
    background: rgba(223, 95, 103, 0.15);
}

.market-card-chart {
    height: 80px;
    margin-bottom: 16px;
}

.market-card-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.market-card-stats .stat {
    display: flex;
    flex-direction: column;
}

.market-card-stats .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.market-card-stats .value {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 480px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #627EEA, #14F195);
}

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

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.crypto-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.security-badge svg {
    opacity: 0.6;
}

.whitelist-badge {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    margin-left: 8px;
    color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 82, 255, 0.3);
    display: inline-block;
}

.price-ticker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0 32px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
}

.price-item img {
    width: 32px;
    height: 32px;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.login-form {
    margin-top: 32px;
}

.login-form h2 {
    font-size: 24px;
    margin-bottom: 28px;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.login-form h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #627EEA);
    border-radius: 2px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label svg {
    opacity: 0.6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
}

.form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--border-medium);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 4px rgba(0, 82, 255, 0.1),
        0 4px 12px rgba(0, 82, 255, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 82, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--white);
    border: 1.5px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.error-message {
    display: none;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1.5px solid var(--error-red);
    border-radius: 8px;
    color: var(--error-red);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.info-text {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.username {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-weight: 500;
}

/* Dashboard */
/* Dashboard Body */
.dashboard-body {
    background: linear-gradient(135deg, #F8FAFB 0%, #E8F1FF 100%);
    min-height: 100vh;
}

/* Dashboard Ticker */
.dashboard-ticker {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ticker-scroll {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-scroll .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.ticker-scroll .ticker-item img {
    width: 18px;
    height: 18px;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

/* Market Stats Grid */
.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border: none;
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-change {
    color: #FFFFFF !important;
}

.stat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-content .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-content .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-content .stat-change {
    font-size: 13px;
    font-weight: 600;
}

.stat-content .stat-change.positive {
    color: var(--success-green);
}

.stat-content .stat-change.negative {
    color: var(--error-red);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-refresh {
    padding: 8px 16px;
    background: var(--white);
    border: 1.5px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Advanced Crypto Cards */
.crypto-cards-advanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crypto-card-advanced {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.crypto-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.crypto-card-advanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.crypto-card-advanced:hover::before {
    opacity: 1;
}

.crypto-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.crypto-info-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon-large {
    width: 48px;
    height: 48px;
}

.crypto-info-advanced h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.crypto-info-advanced .crypto-symbol {
    font-size: 13px;
    color: var(--text-muted);
}

.crypto-price-info {
    text-align: right;
}

.crypto-price-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-change-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.price-change-badge.positive {
    background: rgba(5, 177, 105, 0.1);
    color: var(--success-green);
}

.price-change-badge.negative {
    background: rgba(223, 95, 103, 0.1);
    color: var(--error-red);
}

.crypto-mini-chart {
    height: 60px;
    margin: 16px 0;
}

.crypto-balance-section {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.balance-row:last-child {
    margin-bottom: 0;
}

.balance-row .balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.balance-row .balance-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.balance-row .balance-usd-large {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.crypto-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-mini .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-mini .value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.crypto-actions-advanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-action-advanced {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-action-advanced .btn-icon {
    font-size: 16px;
}

.btn-action-advanced.btn-deposit {
    background: linear-gradient(135deg, var(--success-green), #04A05D);
    color: var(--white);
}

.btn-action-advanced.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 177, 105, 0.4);
}

.btn-action-advanced.btn-withdraw {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-action-advanced.btn-withdraw:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
}

/* Chart Cards */
.chart-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-tabs {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tab:hover {
    background: var(--bg-medium);
}

.chart-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.chart-container-small {
    height: 280px;
}

.chart-container-large {
    height: 340px;
}

/* Market Movers */
.movers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.2s;
}

.mover-item:hover {
    background: var(--bg-medium);
}

.mover-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mover-info img {
    width: 32px;
    height: 32px;
}

.mover-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mover-details span {
    font-size: 12px;
    color: var(--text-muted);
}

.mover-change {
    text-align: right;
}

.mover-change .change-value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mover-change .change-value.positive {
    color: var(--success-green);
}

.mover-change .change-value.negative {
    color: var(--error-red);
}

.mover-change .change-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.wallet-section h2,
.charts-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Notifications Section */
.notifications-section {
    margin-bottom: 32px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: var(--light-blue);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.notification-item:hover {
    box-shadow: var(--shadow-sm);
}

.notification-item.unread {
    background: var(--white);
    border-left: 4px solid var(--primary-blue);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
}

.notification-icon.info {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.notification-icon.success {
    background: #E8F9F0;
    color: var(--success-green);
}

.notification-icon.warning {
    background: #FEF9E8;
    color: var(--warning-yellow);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.total-balance {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    padding: 40px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 82, 255, 0.2);
}

.balance-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
}

.crypto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.crypto-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.crypto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-info img {
    width: 40px;
    height: 40px;
}

.crypto-info h3 {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-symbol {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.crypto-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.price-change.positive {
    color: var(--success-green);
}

.price-change.negative {
    color: var(--error-red);
}

.crypto-balance {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.balance-amount {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.balance-usd {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.crypto-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-deposit {
    background: var(--primary-blue);
    color: white;
}

.btn-deposit:hover {
    background: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.btn-withdraw {
    background: var(--white);
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
}

.btn-withdraw:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.charts-section {
    margin-top: 48px;
}

.chart-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    height: 450px;
    box-shadow: var(--shadow-sm);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Admin Panel */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
    background: var(--white);
}

.admin-section {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.admin-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-form {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.user-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.user-balances {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}

.balance-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.balance-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-preview {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-preview:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0.95;
}

.btn-preview svg {
    flex-shrink: 0;
}

.btn-edit {
    padding: 10px 20px;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.btn-delete {
    padding: 10px 20px;
    background: var(--white);
    border: 1.5px solid var(--error-red);
    border-radius: 8px;
    color: var(--error-red);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: var(--error-red);
    color: var(--white);
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 15, 25, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
    box-shadow: var(--shadow-lg);
}

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

.modal-large {
    max-width: 800px;
}

.modal-preview {
    max-width: 1200px;
    width: 95vw;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.preview-header h2 {
    color: white;
}

.preview-header p strong {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.preview-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.preview-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.preview-close-btn svg {
    color: white;
}

.preview-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(0, 82, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

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

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-content .withdrawal-message {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.modal-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.modal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary-blue);
    font-weight: 600;
}

.address-display {
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: var(--text-primary);
    margin-top: 8px;
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--white);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: none;
    animation: slideInRight 0.3s;
    z-index: 2000;
    min-width: 300px;
}

@keyframes slideInRight {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

.notification.show {
    display: block;
}

.notification.success {
    border-left: 4px solid var(--success-green);
}

.notification.error {
    border-left: 4px solid var(--error-red);
}

.notification.info {
    border-left: 4px solid var(--primary-blue);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-change {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success-green);
}

.stat-change.negative {
    color: var(--error-red);
}

/* Responsive */
/* Tablet Optimization */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .market-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-container {
        padding: 20px;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }
    
    .nav-left {
        width: 100%;
        justify-content: center;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .username {
        font-size: 13px;
    }
    
    /* Dashboard Ticker */
    .dashboard-ticker {
        padding: 8px 0;
    }
    
    .ticker-scroll .ticker-item {
        font-size: 12px;
    }
    
    .ticker-scroll .ticker-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Market Stats */
    .market-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .market-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .stat-content .stat-value {
        font-size: 20px;
    }
    
    .stat-content .stat-label {
        font-size: 11px;
    }
    
    /* Dashboard Container */
    .dashboard-container {
        padding: 12px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .btn-refresh {
        width: 100%;
        padding: 10px 16px;
    }
    
    /* Crypto Cards Advanced */
    .crypto-card-advanced {
        padding: 16px;
    }
    
    .crypto-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .crypto-info-advanced {
        width: 100%;
    }
    
    .crypto-icon-large {
        width: 40px;
        height: 40px;
    }
    
    .crypto-info-advanced h3 {
        font-size: 16px;
    }
    
    .crypto-price-info {
        width: 100%;
        text-align: left;
    }
    
    .crypto-price-large {
        font-size: 20px;
    }
    
    .crypto-mini-chart {
        height: 50px;
        margin: 12px 0;
    }
    
    .crypto-balance-section {
        padding: 12px;
    }
    
    .balance-row .balance-amount {
        font-size: 14px;
    }
    
    .balance-row .balance-usd-large {
        font-size: 18px;
    }
    
    .crypto-stats-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .stat-mini .label {
        font-size: 10px;
    }
    
    .stat-mini .value {
        font-size: 12px;
    }
    
    .crypto-actions-advanced {
        gap: 8px;
    }
    
    .btn-action-advanced {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Chart Cards */
    .chart-card {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .chart-header h3 {
        font-size: 16px;
    }
    
    .chart-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .chart-tab {
        flex: 1;
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .chart-container-small {
        height: 220px;
    }
    
    .chart-container-large {
        height: 260px;
    }
    
    /* Market Movers */
    .mover-item {
        padding: 10px;
    }
    
    .mover-info img {
        width: 28px;
        height: 28px;
    }
    
    .mover-details h4 {
        font-size: 13px;
    }
    
    .mover-details span {
        font-size: 11px;
    }
    
    .mover-change .change-value {
        font-size: 14px;
    }
    
    .mover-change .change-price {
        font-size: 12px;
    }
    
    /* Login Page Mobile */
    .market-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .market-card {
        padding: 16px;
    }
    
    .market-card-header img {
        width: 32px;
        height: 32px;
    }
    
    .market-card-header h3 {
        font-size: 16px;
    }
    
    .market-card-price .price {
        font-size: 24px;
    }
    
    .market-card-price .change {
        font-size: 14px;
    }
    
    .market-card-chart {
        height: 60px;
    }
    
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        margin-bottom: 32px;
    }
    
    .login-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .market-cards-section {
        margin-top: 32px;
    }
    
    .security-badge {
        font-size: 11px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-section h1 {
        font-size: 20px;
    }
    
    /* Old Crypto Cards */
    .crypto-cards {
        grid-template-columns: 1fr;
    }
    
    .price-ticker {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    /* Admin Container */
    .admin-container {
        padding: 16px;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-value {
        font-size: 32px;
    }
    
    .user-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .user-actions {
        margin-top: 12px;
        width: 100%;
        gap: 8px;
    }
    
    .user-actions button {
        flex: 1;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Modals */
    .modal-content {
        padding: 24px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .close {
        right: 16px;
        top: 16px;
        font-size: 24px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-action {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Notifications */
    .notification-item {
        padding: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-time {
        font-size: 11px;
    }
    
    /* Tabs */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Small Mobile Optimization (iPhone SE, small devices) */
@media (max-width: 480px) {
    /* Extra compact for very small screens */
    .dashboard-container {
        padding: 8px;
    }
    
    .market-stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-content .stat-value {
        font-size: 18px;
    }
    
    .stat-content .stat-label {
        font-size: 10px;
    }
    
    .crypto-card-advanced {
        padding: 12px;
    }
    
    .crypto-icon-large {
        width: 36px;
        height: 36px;
    }
    
    .crypto-info-advanced h3 {
        font-size: 15px;
    }
    
    .crypto-price-large {
        font-size: 18px;
    }
    
    .price-change-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .balance-row .balance-amount {
        font-size: 13px;
    }
    
    .balance-row .balance-usd-large {
        font-size: 16px;
    }
    
    .crypto-stats-row {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        padding: 12px;
    }
    
    .chart-header h3 {
        font-size: 15px;
    }
    
    .chart-container-small {
        height: 200px;
    }
    
    .chart-container-large {
        height: 240px;
    }
    
    .btn-action-advanced {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-action-advanced .btn-icon {
        font-size: 14px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .whitelist-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .modal-content {
        padding: 20px 16px;
    }
    
    .login-card {
        padding: 24px 16px;
    }
    
    .market-card {
        padding: 12px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .dashboard-container {
        padding: 12px 16px;
    }
    
    .market-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crypto-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chart-container-small {
        height: 200px;
    }
    
    .chart-container-large {
        height: 240px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile */
    .btn-primary,
    .btn-secondary,
    .btn-action,
    .btn-action-advanced {
        min-height: 44px;
        min-width: 44px;
    }
    
    .chart-tab {
        min-height: 40px;
    }
    
    .tab {
        min-height: 44px;
    }
    
    .crypto-card-advanced,
    .chart-card,
    .stat-card {
        -webkit-tap-highlight-color: rgba(0, 82, 255, 0.1);
    }
    
    /* Disable hover effects on touch devices */
    .crypto-card-advanced:hover,
    .chart-card:hover,
    .stat-card:hover {
        transform: none;
    }
    
    /* Add active states for touch feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-action:active,
    .btn-action-advanced:active {
        transform: scale(0.98);
    }
    
    .crypto-card-advanced:active,
    .stat-card:active {
        transform: scale(0.99);
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.success {
    background: #E8F9F0;
    color: var(--success-green);
}

.badge.pending {
    background: #FEF9E8;
    color: var(--warning-yellow);
}

.badge.error {
    background: #FEF2F2;
    color: var(--error-red);
}

.badge.info {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Rich Text Editor */
.rte-textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 0 !important;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.rte-toolbar-group {
    display: flex;
    gap: 4px;
    padding-right: 8px;
    border-right: 1px solid var(--border-light);
}

.rte-toolbar-group:last-child {
    border-right: none;
}

.rte-btn {
    padding: 6px 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.rte-btn:hover {
    background: var(--bg-medium);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.rte-btn:active {
    transform: translateY(0);
}

.rte-btn svg {
    display: block;
}

.rte-shortcuts {
    margin-top: 8px;
    font-size: 12px;
}

.rte-shortcuts details {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 12px;
}

.rte-shortcuts summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

.rte-shortcuts summary:hover {
    color: var(--primary-blue);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.shortcuts-grid div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.rte-shortcuts kbd {
    padding: 2px 6px;
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rte-shortcuts code {
    padding: 2px 6px;
    background: var(--bg-medium);
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--primary-blue);
}

.rte-preview {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-height: 100px;
    margin-top: 12px;
}

.rte-preview h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.rte-preview h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.rte-preview h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.rte-preview code {
    padding: 2px 6px;
    background: var(--bg-light);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-blue);
}

.rte-preview a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.rte-preview a:hover {
    color: var(--accent-blue);
}

.rte-preview hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 16px 0;
}

.rte-preview ul {
    list-style: disc;
    padding-left: 24px;
    margin: 8px 0;
}

.rte-preview li {
    margin: 4px 0;
    color: var(--text-primary);
}

/* Notification Templates */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.template-btn {
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.template-btn:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.template-btn-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-btn-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Bulk Actions */
.bulk-actions-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 8px;
    margin-bottom: 16px;
    color: white;
    animation: slideDown 0.3s ease-out;
}

.bulk-actions-bar.active {
    display: flex;
}

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

.bulk-actions-bar .count {
    font-weight: 700;
}

.bulk-actions-bar button {
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bulk-actions-bar button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* User Filters */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

.filter-bar select {
    min-width: 150px;
}

/* Info Grid (Account Tab) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Icon Buttons */
.btn-icon-sm {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.1);
}

/* Activity Logs */
.activity-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-log-item {
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.activity-log-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.1);
}

.activity-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.activity-log-action {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
}

.activity-log-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-log-details {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.activity-log-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Password visibility styles */
.password-hidden {
    letter-spacing: 2px;
}

.password-visible {
    letter-spacing: normal;
}

/* Success message for password creation */
.password-created-alert {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}

.password-created-alert strong {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.password-created-alert code {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}
