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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e2329;
    line-height: 1.6;
    background: #f8f9fa;
}

/* Navigation */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #eff2f5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 16px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e2329;
}

.nav-left a {
    text-decoration: none;
    color: #1e2329;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-left a:hover {
    color: #3861fb;
}

.btn-watchlist, .btn-portfolio {
    background: transparent;
    border: 1px solid #eff2f5;
    color: #1e2329;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-watchlist:hover, .btn-portfolio:hover {
    background: #eff2f5;
}

.btn-login {
    background: transparent;
    border: none;
    color: #1e2329;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-login:hover {
    color: #3861fb;
}

.btn-signup {
    background: #3861fb;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-signup:hover {
    background: #2952e8;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, #3861fb 0%, #7c3aed 100%);
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.promo-icon {
    margin-right: 8px;
}

/* Stats Bar */
.stats-bar {
    background: #ffffff;
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 16px 24px;
    border-bottom: 1px solid #eff2f5;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.stat-label {
    color: #808a9d;
    font-weight: 500;
}

.stat-value {
    color: #1e2329;
    font-weight: 600;
}

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

.stat-change.positive {
    color: #16c784;
}

.stat-change.negative {
    color: #ea3943;
}

/* Main Content */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 24px;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e2329;
    margin-bottom: 8px;
}

.content-header p {
    font-size: 16px;
    color: #808a9d;
}

/* Crypto Table */
.crypto-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table thead {
    background: #f8f9fa;
}

.crypto-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #808a9d;
    text-transform: uppercase;
    border-bottom: 1px solid #eff2f5;
}

.crypto-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eff2f5;
    font-size: 14px;
    color: #1e2329;
}

.crypto-table tbody tr {
    transition: background 0.2s;
}

.crypto-table tbody tr:hover {
    background: #f8f9fa;
}

.rank {
    color: #808a9d;
    font-weight: 600;
}

.name-col {
    min-width: 200px;
}

.coin-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7931a 0%, #f7931a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.coin-icon.eth {
    background: linear-gradient(135deg, #627eea 0%, #8c9eff 100%);
}

.coin-icon.usdt {
    background: linear-gradient(135deg, #26a17b 0%, #50af95 100%);
}

.coin-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
}

.coin-icon.sol {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}

.coin-icon.usdc {
    background: linear-gradient(135deg, #2775ca 0%, #4a90e2 100%);
}

.coin-icon.xrp {
    background: linear-gradient(135deg, #23292f 0%, #346aa9 100%);
}

.coin-icon.ada {
    background: linear-gradient(135deg, #0033ad 0%, #0d47a1 100%);
}

.coin-icon.doge {
    background: linear-gradient(135deg, #c2a633 0%, #d5b94a 100%);
}

.coin-icon.trx {
    background: linear-gradient(135deg, #eb0029 0%, #ff4757 100%);
}

.coin-icon.avax {
    background: linear-gradient(135deg, #e84142 0%, #ff5757 100%);
}

.coin-icon.shib {
    background: linear-gradient(135deg, #ffa409 0%, #ffb84d 100%);
    font-size: 16px;
}

.coin-icon.link {
    background: linear-gradient(135deg, #2a5ada 0%, #375bd2 100%);
}

.coin-icon.dot {
    background: linear-gradient(135deg, #e6007a 0%, #ff1a8d 100%);
}

.coin-icon.matic {
    background: linear-gradient(135deg, #8247e5 0%, #9d5eff 100%);
}

.coin-icon.dai {
    background: linear-gradient(135deg, #f5ac37 0%, #ffc107 100%);
}

.coin-icon.ltc {
    background: linear-gradient(135deg, #345d9d 0%, #4a74b8 100%);
}

.coin-icon.uni {
    background: linear-gradient(135deg, #ff007a 0%, #ff4d9d 100%);
    font-size: 16px;
}

.coin-icon.atom {
    background: linear-gradient(135deg, #2e3148 0%, #5064fb 100%);
}

.coin-icon.etc {
    background: linear-gradient(135deg, #328332 0%, #3ab03a 100%);
}

.coin-title {
    font-weight: 600;
    display: block;
    color: #1e2329;
}

.coin-symbol {
    font-size: 12px;
    color: #808a9d;
    display: block;
}

.price {
    font-weight: 600;
    font-size: 15px;
}

.positive {
    color: #16c784;
    font-weight: 600;
}

.negative {
    color: #ea3943;
    font-weight: 600;
}

.neutral {
    color: #808a9d;
    font-weight: 600;
}

.chart-col {
    text-align: right;
}

.mini-chart {
    width: 120px;
    height: 40px;
    display: inline-block;
    background: linear-gradient(to top, transparent 0%, transparent 50%, #16c784 50%, #16c784 100%);
    opacity: 0.3;
    position: relative;
}

.mini-chart.positive {
    background: linear-gradient(135deg, #16c784 0%, #00b8a9 100%);
    opacity: 0.15;
    clip-path: polygon(0% 70%, 15% 65%, 30% 50%, 45% 55%, 60% 40%, 75% 30%, 90% 25%, 100% 20%, 100% 100%, 0% 100%);
}

.mini-chart.neutral {
    background: linear-gradient(135deg, #808a9d 0%, #a0aec0 100%);
    opacity: 0.15;
    clip-path: polygon(0% 50%, 100% 50%, 100% 55%, 0% 55%);
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #eff2f5;
    padding: 48px 24px 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e2329;
}

.footer-column a {
    display: block;
    color: #808a9d;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #3861fb;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #eff2f5;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #808a9d;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-bar {
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-left, .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-bar {
        flex-direction: column;
        gap: 12px;
    }

    .crypto-table-container {
        overflow-x: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Update Dialog Styles */
.update-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

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

.update-dialog {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

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

.dialog-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #eff2f5;
    gap: 16px;
    background: #f8f9fa;
}

.browser-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.browser-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dialog-title h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #1e2329;
}

.dialog-title p {
    font-size: 13px;
    color: #808a9d;
    margin: 0;
    font-weight: 400;
}

.dialog-content {
    padding: 24px;
    background: white;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.update-step {
    text-align: left;
}

.update-step.hidden {
    display: none;
}

.step-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

.update-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e2329;
}

.update-step p {
    font-size: 14px;
    color: #58667e;
    margin-bottom: 16px;
    line-height: 20px;
}

.update-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0 20px 0;
    border: 1px solid #eff2f5;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eff2f5;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row span:first-child {
    color: #808a9d;
    font-size: 13px;
}

.info-row span:last-child {
    color: #1e2329;
    font-weight: 600;
    font-size: 13px;
}

.dialog-btn-primary {
    background: #3861fb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s ease;
    min-width: 120px;
}

.dialog-btn-primary:hover:not(:disabled) {
    background: #2952e8;
}

.dialog-btn-primary:active:not(:disabled) {
    background: #1e40c8;
}

.dialog-btn-primary:disabled {
    background: #eff2f5;
    color: #b1b5c3;
    cursor: not-allowed;
}

.timer-text {
    font-size: 12px;
    color: #808a9d;
    margin-top: 12px;
    text-align: center;
}

.timer-text span {
    font-weight: 600;
    color: #3861fb;
}

/* Progress Bar */
.progress-container {
    margin: 24px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eff2f5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3861fb 0%, #7c3aed 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e2329;
    margin-bottom: 8px;
}

.progress-detail {
    font-size: 13px;
    color: #808a9d;
}

/* Installing Animation */
.installing-animation {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eff2f5;
    border-top-color: #3861fb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.install-steps {
    margin-top: 24px;
    text-align: left;
}

.install-item {
    padding: 10px 0;
    font-size: 13px;
    color: #58667e;
    border-bottom: 1px solid #eff2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Instruction Box */
.important-notice {
    font-size: 14px;
    color: #1e2329;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.instruction-box {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eff2f5;
    padding: 20px;
    margin: 16px 0;
    text-align: left;
}

.instruction-step {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #3861fb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 14px;
}

.step-content {
    flex: 1;
    padding-top: 2px;
}

.step-content strong {
    display: block;
    font-size: 14px;
    color: #1e2329;
    margin-bottom: 4px;
    font-weight: 600;
}

.step-content p {
    font-size: 12px;
    color: #808a9d;
    margin: 4px 0 8px 0;
    line-height: 16px;
}

.command-box {
    background: #1e2329;
    border: 1px solid #373d47;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    display: flex;
    align-items: start;
    gap: 8px;
    position: relative;
}

.command-box code {
    flex: 1;
    color: #16c784;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 18px;
    word-break: break-all;
}

.copy-btn {
    background: #3861fb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: #2952e8;
}

.copy-btn:active {
    background: #1e40c8;
}

.warning-box {
    background: #fff4e6;
    border: 1px solid #ffa726;
    border-left: 4px solid #ffa726;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
}

.warning-box strong {
    color: #1e2329;
    font-size: 13px;
    font-weight: 600;
}

/* Responsive for dialog */
@media (max-width: 768px) {
    .update-dialog {
        width: 95%;
        border-radius: 12px;
    }

    .dialog-header {
        padding: 20px;
    }

    .dialog-content {
        padding: 20px;
    }

    .browser-icon {
        width: 44px;
        height: 44px;
    }

    .dialog-title h2 {
        font-size: 18px;
    }

    .command-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }
}
