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

body {
    background-image: url('images/login-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100%;
    line-height: 1;
    overflow: hidden;
}

/* Dashboard-specific additions: header, overlay, address cards, CTA, footer */
.page-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(14,34,55,0.9) 0%, rgba(3,12,24,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    padding-top: 8px;
    padding-bottom: 18px;
}

.header-nav {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.back-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

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

.crypto-logo { width: 36px; height: 36px; }
.vault-title { font-size: 28px; font-weight: 700; color: #ffffff; }

.total-vault-value { margin-top: 8px; margin-bottom: 18px; z-index: 2; position: relative; }
.vault-value-label { color: #c7d2e9; margin-bottom: 8px; }
.vault-value-amount { font-size: 36px; font-weight: 800; color: #ffffff; }

.addresses-section { z-index: 2; position: relative; }
.address-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.address-card {
    background: rgba(9, 20, 34, 0.6);
    border-radius: 10px;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.address-card-inner { display: flex; justify-content: space-between; align-items: center; }
.address-left { display: flex; gap: 12px; align-items: center; }
.crypto-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.04); padding: 6px; }
.address-meta { display: flex; flex-direction: column; }
.name-row { display: flex; gap: 8px; align-items: center; }
.crypto-name { font-size: 16px; font-weight: 600; color: #ffffff; }
.crypto-symbol.pill { background: rgba(255,255,255,0.06); color: #cdd6e8; padding: 4px 8px; border-radius: 999px; font-size: 12px; }

.address-card-content { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.address-text { color: #cbd5e1; font-size: 14px; }

.copy-button { background: transparent; border: none; color: #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; padding: 6px; border-radius: 6px; }
.copy-button svg { color: #cbd5e1; opacity: 0.95; }
.copy-button:hover { background: rgba(255,255,255,0.02); }

.address-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.crypto-balance { font-weight: 700; color: #ffffff; }
.crypto-amount { color: #c7d2e9; }

.info-section { margin-top: 18px; color: #cbd5e1; line-height: 1.6; }

.cta-wrapper { margin-top: 18px; display: flex; justify-content: center; }
.dashboard-btn-large {
    width: 100%;
    max-width: 520px;
    /* flattened, less-bright, solid color */
    background: #1666a8;
    color: #ffffff;
    padding: 14px 20px;
    /* square-ish corners (not rounded) */
    border-radius: 0;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    /* remove glow / box-shadow */
    box-shadow: none;
    transition: background-color 160ms ease;
}

.dashboard-btn-large:hover {
    /* subtle darker hover, no glow */
    background-color: #124f82;
}

.dashboard-btn-large:active {
    background-color: #0f416b;
}

.site-footer { margin-top: 40px; padding: 28px 0; color: #9fb0d1; z-index: 2; position: relative; }
.footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.footer-links a { color: #9fb0d1; text-decoration: none; }

/* make page content sit above the background overlay */
.vault-page, .addresses-section, .total-vault-value { position: relative; }

@font-face {
    font-family: 'Inter';
    src: url('cryptoimgs/19cfc7226ec3afaa-s.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('cryptoimgs/21350d82a1f187e9-s.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.vault-page {
    min-height: 100vh;
    padding: 20px;
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.nav-bar h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Landing Page */
.vault-hero {
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
}

.vault-hero .logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.vault-hero .logo-image {
    width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 96px 96px 96px 96px;
    margin: 0;
}

.vault-hero .content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.vault-hero .advanced-security {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.vault-hero h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: -1px;
}

.vault-hero .subtitle {
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.vault-hero .tagline {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.2px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Recovery modal styles to match the screenshot */
.recovery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* toggled by script */
    align-items: center;
    justify-content: center;
    background: rgba(2,6,12,0.65);
    z-index: 9999;
}

.recovery-modal {
    width: 560px;
    max-width: calc(100% - 40px);
    background: rgba(12,18,28,0.98);
    border-radius: 12px;
    padding: 18px 20px 14px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(3,8,20,0.7);
    color: #ffffff;
}

.recovery-modal-header { padding: 8px 0 6px 0; }
.recovery-modal-header h3 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0 12px 0;
}

.recovery-modal-content { padding: 6px 6px 12px 6px; color: #ffffff; }
.recovery-modal-subtitle { color: #ffffff; margin-bottom: 10px; font-weight: 600; }
.recovery-modal-list { margin-left: 18px; margin-bottom: 10px; color: #ffffff; }
.recovery-modal-list li { margin: 8px 0; color: #ffffff; line-height: 1.5; }
.recovery-modal-warning { margin-top: 6px; color: rgba(255,255,255,0.85); font-style: italic; }

.recovery-modal::after { content: ''; display: block; height: 1px; margin: 12px 0; background: rgba(255,255,255,0.04); }

.recovery-modal-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; padding-top: 6px; }
.recovery-modal .btn-secondary { border-color: rgba(10,120,220,0.95); color: #9fd0ff; background: transparent; padding: 10px 16px; border-radius: 8px; }
.recovery-modal .btn-secondary:hover { background: rgba(255,255,255,0.02); }

.recovery-modal .btn-primary { background: linear-gradient(180deg,#1284ff,#0a6ef0); color: #ffffff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(10,110,240,0.45); border: none; font-weight: 700; }
.recovery-modal .btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 18px rgba(10,110,240,0.36); }

/* Ensure text uses the heavier Inter font where appropriate */
.recovery-modal, .recovery-modal * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.recovery-modal h3, .recovery-modal .recovery-modal-subtitle { font-weight: 700; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

/* Forms */
.form-input {
    background: #1a1f2e;
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    width: 100%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #1e2741;
}

.form-input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Search input enhancements */
.search-input {
    background: #1a1f2e;
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 12px 16px 12px 40px;
    color: white;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #1e2741;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    background: #1a1f2e;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 16px 12px 40px;
    color: white;
    font-size: 14px;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
}

/* Crypto Grid */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.crypto-card {
    background: #1a1f2e;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crypto-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}

.crypto-card.selected {
    border-color: #007bff;
    background: #0f1929;
}

.crypto-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.crypto-symbol {
    color: #999999;
    font-size: 14px;
}

.crypto-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.crypto-card.selected .crypto-toggle {
    border-color: #007bff;
}

.crypto-toggle .checkmark {
    display: none;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 2px;
}

.crypto-card.selected .crypto-toggle .checkmark {
    display: block;
}

/* Selected Assets */
.selected-assets {
    margin-bottom: 32px;
    padding: 16px;
    background: #0f1929;
    border-radius: 12px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.selected-assets.empty {
    justify-content: center;
    color: #999999;
}

.asset-pill {
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.asset-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.asset-pill .remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Recovery Phrase */
.recovery-container {
    max-width: 800px;
    margin: 0 auto;
}

.recovery-header {
    text-align: center;
    margin-bottom: 32px;
}

.recovery-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recovery-header p {
    color: #999999;
    font-size: 14px;
}

.phrase-words {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.phrase-word {
    background: #1a1f2e;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: white;
}

.phrase-word-number {
    color: #007bff;
    font-size: 12px;
    margin-bottom: 4px;
}

.phrase-word-text {
    font-weight: 500;
}

.phrase-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 48px;
}

.total-balance h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #cccccc;
}

.total-balance .amount {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.addresses-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #cccccc;
}

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

.address-card {
    background: #1a1f2e;
    border-radius: 12px;
    padding: 24px;
}

.address-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-card .icon {
    width: 24px;
    height: 24px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.address-card .address {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #999999;
    margin-bottom: 12px;
    word-break: break-all;
}

.address-card .balance {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a1128;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333333;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Desktop-focused responsive */
@media (max-width: 1200px) {
    .vault-hero h1 {
        font-size: 64px;
    }

    .vault-hero .subtitle {
        font-size: 28px;
    }

    .vault-hero .tagline {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .vault-hero {
        padding: 20px;
    }

    .vault-hero h1 {
        font-size: 56px;
    }

    .vault-hero .subtitle {
        font-size: 24px;
    }

    .vault-hero .tagline {
        font-size: 20px;
    }

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

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

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

@media (max-width: 480px) {
    .phrase-words {
        grid-template-columns: 1fr;
    }

    .vault-hero h1 {
        font-size: 48px;
    }

    .vault-hero .subtitle {
        font-size: 20px;
    }

    .vault-hero .tagline {
        font-size: 18px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.toast {
    background: #1a1f2e;
    border: 1px solid #007bff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-color: #28a745;
}

.toast.error {
    border-color: #dc3545;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

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

.modal {
    background: #1a1f2e;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 20px;
}

.modal p {
    color: #999999;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Setup Page Specific Styles */
.setup-header {
    padding: 20px;
    display: flex;
    align-items: center;
}

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

.crypto-logo {
    height: 32px;
    width: auto;
}

.vault-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.progress-container {
    padding: 0 20px 20px 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0066ff 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.setup-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.setup-main-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.setup-subtitle {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 24px;
}

.selected-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.selected-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.search-bar-container {
    margin-bottom: 24px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar .search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.search-input-new {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    flex: 1;
    outline: none;
}

.search-input-new::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.crypto-list {
    margin-bottom: 32px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* Custom scrollbar styling for crypto list */
.crypto-list::-webkit-scrollbar {
    width: 6px;
}

.crypto-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin: 4px 0;
}

.crypto-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.crypto-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.crypto-list::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar styling */
.crypto-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Global scrollbar override to ensure consistency */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: rgba(14, 34, 55, 0.9);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

@media (max-width: 768px) {
    .crypto-list {
        max-height: 300px;
        padding-right: 6px;
    }

    .crypto-list::-webkit-scrollbar {
        width: 4px;
    }
}

@media (max-width: 480px) {
    .crypto-list {
        max-height: 250px;
        padding-right: 4px;
    }

    .crypto-list::-webkit-scrollbar {
        width: 4px;
    }
}

.crypto-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.crypto-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.crypto-row:last-child {
    border-bottom: none;
}

.crypto-icon-container {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.crypto-details {
    flex: 1;
}

.crypto-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.crypto-symbol {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.add-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.crypto-row.added .add-button {
    background: #007bff;
    border-color: #007bff;
    transform: rotate(45deg);
}

.continue-container {
    text-align: center;
    padding-top: 20px;
}

.continue-button {
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.continue-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.continue-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hide original crypto grid styles when using new layout */
.crypto-grid {
    display: none;
}

.selected-assets {
    display: none;
}

.search-container {
    display: none;
}

/* Dashboard Page Specific Styles */
.dashboard-branding {
    padding: 20px;
    display: flex;
    align-items: center;
}

.total-vault-value {
    padding: 0 20px 40px 20px;
    text-align: center;
}

.vault-value-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.vault-value-amount {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.addresses-section {
    max-width: 800px;
    margin: 0 auto;
}

.addresses-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: left;
}

.address-list {
    margin-bottom: 32px;
}

.address-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.address-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.address-card:last-child {
    margin-bottom: 0;
}

.address-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    justify-content: space-between;
}

.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.crypto-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-right: 8px;
    flex: 1;
}

.crypto-symbol {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 12px;
}

.crypto-balance {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
}

.address-card-content {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.address-text {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
    word-break: break-all;
    margin-right: 12px;
}

.copy-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.crypto-amount {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

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

.info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-text:last-child {
    margin-bottom: 0;
}

.dashboard-actions {
    text-align: center;
}

.dashboard-btn {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Account Recovery Modal */
.recovery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.recovery-modal {
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.recovery-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.recovery-modal-header h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.recovery-modal-content {
    padding: 24px;
}

.recovery-modal-subtitle {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.recovery-modal-list {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.recovery-modal-list li {
    margin-bottom: 8px;
}

.recovery-modal-list li:last-child {
    margin-bottom: 0;
}

.recovery-modal-warning {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.recovery-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.recovery-modal-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
}

/* Hide old dashboard styles */
.nav-bar {
    display: none;
}

.dashboard-header {
    display: none;
}

.address-cards {
    display: none;
}

/* Additional dashboard improvements */
.dashboard-actions {
    text-align: center;
    margin-top: 32px;
}

.dashboard-btn {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-btn:hover {
    transform: translateY(-2px);
}

.info-section {
    margin: 32px 0;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* Phase 2: Loading Modal Styles */
.setup-loading-modal {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.loading-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 40px;
}

.loading-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 24px;
}

.animated-square {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0066ff 100%);
    border-radius: 8px;
    animation: squareResize 1.5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

@keyframes squareResize {
    0%, 100% {
        transform: scale(1);
        border-radius: 8px;
    }
    25% {
        transform: scale(1.2);
        border-radius: 12px;
    }
    50% {
        transform: scale(0.8);
        border-radius: 4px;
    }
    75% {
        transform: scale(1.1);
        border-radius: 10px;
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.info-section {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.info-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Progress bar segments for 3-phase system */
.progress-bar {
    display: flex;
    gap: 8px;
}

.progress-segment {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-segment.active {
    background: linear-gradient(90deg, #007bff 0%, #0066ff 100%);
}

.progress-segment.active .progress-fill {
    width: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0066ff 100%);
}

/* Recovery Page Specific Styles */
.recovery-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.recovery-main-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.recovery-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.recovery-phrase-container {
    margin-bottom: 32px;
}

.recovery-phrase-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.recovery-phrase-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    word-wrap: break-word;
    margin-right: 16px;
    font-family: monospace;
    letter-spacing: 1px;
}

.visibility-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.visibility-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.copy-section {
    margin: 24px 0;
    text-align: center;
}

.copy-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.warning-text {
    margin: 24px 0;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.warning-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.recovery-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.recovery-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

/* Hide old recovery styles */
.recovery-container {
    display: none;
}

.phrase-words {
    display: none;
}

.phrase-actions {
    display: none;
}

/* Network Selection Modal */
.network-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.network-modal {
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.network-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.network-modal-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.network-options {
    padding: 16px 0;
}

.network-option {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.network-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.network-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.network-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.network-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

/* Selected assets pills display */
.selected-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-display.has-selections {
    justify-content: flex-start;
}

.selected-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.selected-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.selected-pill .crypto-pill-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-pill .remove-pill {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 4px;
}

/* Crypto row selected state */
.crypto-row.selected {
    background: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
    padding-left: 13px;
}

.crypto-row.selected .add-button {
    background: #007bff;
    border-color: #007bff;
    transform: rotate(45deg);
}
