/* ============================================
   ColdVault - Multi Currency Cold Wallet
   Modern Dark Theme CSS
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1e2642;
    --bg-input: #0f1629;
    --bg-modal: #151c2f;

    --text-primary: #f0f2f5;
    --text-secondary: #8892a4;
    --text-muted: #565e6f;

    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --accent-gradient-hover: linear-gradient(135deg, #818cf8, #22d3ee);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --border-color: #1e293b;
    --border-focus: #6366f1;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(99,102,241,0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Network Colors */
    --eth-color: #627eea;
    --btc-color: #f7931a;
    --trx-color: #eb0029;
    --avax-color: #e84142;
    --ton-color: #0098ea;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    width: 100%;
    height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

@media (min-width: 481px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #050810;
    }
    #app {
        height: 90vh;
        max-height: 900px;
        border-radius: var(--radius-xl);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Screens */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

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

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

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

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
}

.logo-container {
    text-align: center;
    animation: scaleIn 0.6s ease;
}

/* Animated Logo */
.logo-animated {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 16px;
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.logo-animated .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(46, 213, 150, 0.4));
}

.logo-animated .logo-light {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.25) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: logoShine 3s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes logoShine {
    0% { transform: translate(-30%, -30%); }
    50% { transform: translate(30%, 30%); }
    100% { transform: translate(-30%, -30%); }
}

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

.logo-animated.small { width: 56px; height: 56px; margin-bottom: 12px; }
.logo-animated.tiny {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    animation: none;
}
.logo-animated.tiny .logo-light {
    animation: logoShine 4s ease-in-out infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2ed596, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

.splash-loader {
    width: 200px;
}

.loader-bar {
    width: 100%;
    height: 3px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: loaderAnim 2s ease-in-out forwards;
}

@keyframes loaderAnim {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   SETUP SCREEN
   ============================================ */
.setup-container {
    flex: 1;
    padding: 40px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.setup-header {
    text-align: center;
    margin-bottom: 32px;
    animation: slideUp 0.4s ease;
}

.setup-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.setup-header p {
    color: var(--text-secondary);
}

.setup-step {
    display: none;
    animation: slideUp 0.4s ease;
}

.setup-step.active {
    display: block;
}

.setup-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setup-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    color: var(--text-primary);
    width: 100%;
}

.setup-option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.option-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
}

.option-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.option-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.option-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Mnemonic Display */
.mnemonic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mnemonic-word {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.mnemonic-word .word-num {
    color: var(--text-muted);
    font-size: 0.7rem;
    min-width: 18px;
}

.mnemonic-word .word-text {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

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

.warning-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.inline-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
}

/* Import */
.import-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.tab-content {
    display: none;
    margin-bottom: 16px;
}

.tab-content.active {
    display: block;
}

.network-select-import {
    margin-top: 12px;
}

.network-select-import label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Password */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toggle-password:hover { color: var(--text-primary); }
.toggle-password svg { width: 20px; height: 20px; }

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

/* ============================================
   LOCK SCREEN
   ============================================ */
.lock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    animation: scaleIn 0.4s ease;
}

.lock-container h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.lock-container p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.lock-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.error-text {
    color: var(--danger);
    font-size: 0.85rem;
    text-align: center;
}

.unlock-warning {
    margin-top: 4px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   INPUTS & BUTTONS
   ============================================ */
.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
    outline: none;
}

.input-field:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.select-sm {
    padding: 8px 32px 8px 12px;
    font-size: 0.8rem;
    width: auto;
    min-width: 100px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action .input-field {
    flex: 1;
}

.input-action-btn {
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.input-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.input-action-btn svg { width: 18px; height: 18px; }

.input-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper .input-field {
    padding-right: 60px;
}

.max-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: rgba(99,102,241,0.15);
    color: var(--accent-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.max-btn:hover {
    background: rgba(99,102,241,0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-gradient-hover);
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-danger {
    background: rgba(239,68,68,0.15);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239,68,68,0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-primary);
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-ghost:hover { background: rgba(99,102,241,0.1); }

.btn-full { width: 100%; }

.btn-lg { padding: 14px 24px; font-size: 1rem; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-icon { width: 18px; height: 18px; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;
    z-index: 10;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.network-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online { background: var(--success); box-shadow: 0 0 6px var(--success); }

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.icon-btn svg { width: 20px; height: 20px; }

/* ============================================
   PAGES
   ============================================ */
.page-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.page {
    display: none;
    padding: 0 16px 16px;
    animation: slideIn 0.25s ease;
}

.page.active { display: block; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 5;
}

.page-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover { background: var(--bg-card-hover); }
.back-btn svg { width: 20px; height: 20px; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    padding: 24px 0 16px;
    text-align: center;
}

.total-balance {
    margin-bottom: 24px;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 4px 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.balance-change .change-value {
    font-weight: 600;
}

.balance-change.positive { background: rgba(16,185,129,0.15); color: var(--success); }
.balance-change.negative { background: rgba(239,68,68,0.15); color: var(--danger); }

.balance-change .change-period {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 4px;
}

.quick-action-btn:hover { color: var(--text-primary); }

.action-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.quick-action-btn:hover .action-circle {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.quick-action-btn:hover .action-circle svg {
    color: white;
}

.action-circle svg { width: 20px; height: 20px; }

.quick-action-btn span { font-size: 0.75rem; }

/* Network Tabs */
.network-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.network-tabs::-webkit-scrollbar { display: none; }

.network-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.network-tab:hover {
    background: var(--bg-card-hover);
}

.network-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.network-dot.eth { background: var(--eth-color); }
.network-dot.btc { background: var(--btc-color); }
.network-dot.trx { background: var(--trx-color); }
.network-dot.avax { background: var(--avax-color); }
.network-dot.ton { background: var(--ton-color); }

/* Asset List */
.asset-list {
    margin-top: 8px;
}

.asset-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.assets-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 80px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.asset-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
    transform: translateX(4px);
}

.asset-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

/* Native token icon colors */
.asset-icon.native-ethereum { background: var(--eth-color); }
.asset-icon.native-bitcoin { background: var(--btc-color); }
.asset-icon.native-tron { background: var(--trx-color); }
.asset-icon.native-avalanche { background: var(--avax-color); }
.asset-icon.native-ton { background: var(--ton-color); }
.asset-icon.token { background: var(--accent-primary); }
.asset-icon.token-branded { font-weight: 800; font-size: 1rem; }

/* Icon wrapper with network badge */
.asset-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.asset-icon-wrapper .asset-icon {
    width: 40px;
    height: 40px;
}

.asset-network-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-card);
    line-height: 1;
}

.asset-info {
    flex: 1;
    min-width: 0;
}

.asset-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asset-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.token-standard-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.asset-network {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.asset-balance {
    text-align: right;
}

.asset-amount {
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

.asset-value-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.asset-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.asset-change {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

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

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-line.short { width: 60%; }

/* ============================================
   SEND PAGE
   ============================================ */
.send-form {
    padding-top: 8px;
}

.fee-info {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fee-row:last-child {
    color: var(--text-primary);
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

/* ============================================
   RECEIVE PAGE
   ============================================ */
.receive-content {
    padding-top: 8px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.qr-code {
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    display: inline-block;
}

.qr-code canvas {
    display: block;
}

.address-display {
    margin-bottom: 16px;
}

.address-display label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.address-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--text-primary);
}

.copy-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.copy-btn svg { width: 16px; height: 16px; }

.receive-token-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}

.receive-token-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
}

.receive-token-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.receive-token-name {
    font-weight: 700;
    color: var(--text-primary);
}

.receive-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ============================================
   HISTORY PAGE
   ============================================ */
.history-filter {
    margin-bottom: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 80px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-item:hover {
    background: var(--bg-card-hover);
}

.tx-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.tx-icon.sent {
    background: rgba(239,68,68,0.15);
    color: var(--danger);
}

.tx-icon.received {
    background: rgba(16,185,129,0.15);
    color: var(--success);
}

.tx-icon svg { width: 20px; height: 20px; }

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.tx-address {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.tx-amount-col {
    text-align: right;
}

.tx-amount {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.tx-amount.sent { color: var(--danger); }
.tx-amount.received { color: var(--success); }

.tx-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================
   TOKEN MANAGEMENT
   ============================================ */
.token-management {
    padding-top: 8px;
}

.token-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
}

.token-info-card {
    margin-bottom: 16px;
}

.token-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.token-info-row:last-child { border-bottom: none; }
.token-info-row span:first-child { color: var(--text-secondary); }

.token-list-section {
    margin-top: 24px;
}

.token-list-section h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.custom-token-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 80px;
}

.custom-token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.custom-token-info {
    flex: 1;
}

.custom-token-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-token-address {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.remove-token-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239,68,68,0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--danger);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.remove-token-btn:hover { background: rgba(239,68,68,0.2); }
.remove-token-btn svg { width: 16px; height: 16px; }

/* ============================================
   SETTINGS
   ============================================ */
.settings-list {
    padding-top: 8px;
    padding-bottom: 80px;
}

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

.settings-group-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-family: var(--font-main);
    text-align: left;
}

.settings-item:first-of-type { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.settings-item:last-of-type { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.settings-item:only-of-type { border-radius: var(--radius-md); }

.settings-item + .settings-item {
    border-top: none;
}

.settings-item:hover {
    background: var(--bg-card-hover);
}

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

.settings-item-left svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.settings-item.danger { color: var(--danger); }
.settings-item.danger svg { color: var(--danger); }

.danger-zone .settings-group-title { color: var(--danger); }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ============================================
   BOTTOM NAV
   ============================================ */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    min-height: 64px;
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.65rem;
    font-family: var(--font-main);
}

.nav-item:hover { color: var(--text-secondary); }

.nav-item.active { color: var(--accent-primary); }

.nav-item svg { width: 22px; height: 22px; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    background: var(--bg-modal);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@media (min-width: 481px) {
    .modal-overlay {
        align-items: center;
    }
    .modal-container {
        border-radius: var(--radius-xl);
        max-height: 70vh;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    position: sticky;
    top: 0;
    background: var(--bg-modal);
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.modal-close svg { width: 18px; height: 18px; }

.modal-body {
    padding: 12px 24px 24px;
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 200;
    transition: transform 0.3s ease;
    max-width: 400px;
    width: calc(100% - 32px);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
}

.notification.success .notification-content { border-color: var(--success); }
.notification.error .notification-content { border-color: var(--danger); }
.notification.warning .notification-content { border-color: var(--warning); }
.notification.info .notification-content { border-color: var(--info); }

.notification-icon {
    font-size: 1.1rem;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden { display: none !important; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Confirm send modal */
.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.9rem;
}

.confirm-row .label {
    color: var(--text-secondary);
}

.confirm-row .value {
    text-align: right;
    font-weight: 500;
    max-width: 60%;
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.confirm-password {
    margin-bottom: 16px;
}

.confirm-password label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Backup mnemonic modal */
.backup-mnemonic-display {
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    word-spacing: 4px;
    text-align: center;
}

/* Export keys modal */
.export-keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-key-item {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.export-key-network {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-key-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
}

/* ============================================
   PROMOTIONAL BANNER
   ============================================ */
.banner-container {
    padding: 0 0 12px;
}

.promo-banner {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    min-height: 100px;
    max-height: 250px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.banner-dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: all var(--transition-fast);
}

.banner-dismiss:hover {
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-primary);
}

.banner-dismiss svg {
    width: 14px;
    height: 14px;
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    display: block;
}

.banner-content {
    padding: 12px 14px;
}

.banner-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.banner-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.banner-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* ============================================
   WATCHED COINS LIST (Settings)
   ============================================ */
.watched-coins-list {
    display: flex;
    flex-direction: column;
}

.watched-coins-list .settings-item {
    border-top: 1px solid var(--border-color);
    padding-left: 16px;
}

.watched-coins-list .network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
