/* ============================================================
   MoltChain Wallet — wallet.css
   Wallet-specific styles only. Base styles provided by:
     - shared-base-styles.css (reset, vars, .btn, .nav, etc.)
     - shared-theme.css (extra vars, .card, .btn overrides)
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. WALLET-SPECIFIC EXTRAS (not in shared CSS)
   ──────────────────────────────────────────────────────────── */

/* Danger button */
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    filter: brightness(1.1);
}

/* Small buttons */
.btn-small,
.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Icon button (small round) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    font-size: 1rem;
}
.btn-icon:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* Circle button (e.g. copy in receive modal) */
.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.btn-circle:hover {
    background: rgba(255, 107, 53, 0.25);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.25);
}

/* Form inputs */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    box-sizing: border-box;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12), 0 0 20px rgba(255, 107, 53, 0.06);
}
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: help;
    margin-left: 0.4rem;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}
.tooltip-icon:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary);
}


/* ────────────────────────────────────────────────────────────
   2. WELCOME SCREEN
   ──────────────────────────────────────────────────────────── */

.wallet-body {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* ── Unlock / Lock Screen ───────────────────────────────────── */
.unlock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.5s ease-out;
}
.unlock-card .welcome-logo {
    margin-bottom: 0.6rem;
}
.unlock-greeting {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}
.unlock-form {
    margin-bottom: 1.5rem;
    text-align: left;
}
.unlock-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}
.unlock-input {
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
    text-align: center;
    letter-spacing: 0.1em;
}
.unlock-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 14px;
}
.unlock-logout {
    margin-top: 1.2rem;
}
.unlock-logout .btn-danger {
    font-size: 0.78rem;
    padding: 0.45rem 1rem;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.unlock-logout .btn-danger:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .unlock-card {
        margin: 0 0.75rem;
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }
    .unlock-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Welcome overrides on top of .wallet-screen / .wallet-container */
.welcome-screen {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255, 107, 53, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(247, 127, 0, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 214, 160, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    background-size: 200% 200%, 200% 200%, 100% 100%, 100% 100%;
    animation: pulse-bg 12s ease-in-out infinite alternate;
}
.welcome-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.3) 100%);
    pointer-events: none;
}

.welcome-container {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.7s ease-out;
}

.welcome-logo {
    margin-bottom: 1.8rem;
}
.welcome-logo .logo-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.35));
    animation: fadeIn 0.8s ease-out 0.2s both;
}
.welcome-logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: fadeIn 0.8s ease-out 0.35s both;
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* ── Welcome Carousel ── */
.welcome-carousel {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    height: 180px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 127, 0, 0.04) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.carousel-icon {
    font-size: 2.2rem;
    color: var(--primary, #FF6B35);
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.4));
}

.carousel-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.carousel-card p {
    font-size: 0.88rem;
    color: var(--text-secondary, #a0a0a0);
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary, #FF6B35);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}
.welcome-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1rem;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.welcome-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.06);
}
.welcome-feature .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    display: block;
}
.welcome-feature h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: var(--text-primary);
}
.welcome-feature p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.75s both;
}
.welcome-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    min-width: 0;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}


/* ────────────────────────────────────────────────────────────
   3. WALLET FLOWS — Create / Import
   ──────────────────────────────────────────────────────────── */

.wallet-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.wallet-container {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    flex: 1;
}

.wallet-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}
.wallet-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}
.wallet-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}
.wallet-header .btn-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.wallet-footer {
    text-align: center;
    padding: 1.5rem;
}
.wallet-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: opacity 0.2s;
}
.wallet-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Wizard steps progress */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}
.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.wizard-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--border);
    transition: background 0.4s;
}
.wizard-step-item.completed:not(:last-child)::after {
    background: var(--primary);
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.35s ease;
    margin-bottom: 0.45rem;
}
.wizard-step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 107, 53, 0.35);
}
.wizard-step-item.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}
.wizard-step-item.active .step-label {
    color: var(--primary);
}
.wizard-step-item.completed .step-label {
    color: var(--success);
}

/* Wallet content card */
.wallet-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    animation: fadeInUp 0.45s ease-out;
}

.create-step {
    display: none;
    animation: fadeInUp 0.35s ease-out;
}
.create-step.active {
    display: block;
}
.step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

/* Seed phrase grid */
.seed-phrase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.seed-word {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    transition: border-color 0.2s;
}
.seed-word:hover {
    border-color: rgba(255, 107, 53, 0.3);
}
.seed-word-number {
    color: var(--text-muted);
    font-size: 0.72rem;
    min-width: 18px;
    font-weight: 600;
}

.seed-phrase-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Warning box */
.warning-box {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.warning-box .warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.warning-box p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.warning-box strong {
    color: var(--primary);
}

/* Import tabs */
.import-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.3rem;
}
.import-tab {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.import-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}
.import-tab.active {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.import-method {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}
.import-method.active {
    display: block;
}

.mnemonic-import-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mnemonic-import-grid .form-input {
    min-height: 40px;
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
}

.mnemonic-import-hint {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.78rem;
}

/* File upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    margin-bottom: 1rem;
}
.file-upload:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.04);
}
.file-upload .upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.file-upload p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}
.file-name {
    font-size: 0.82rem;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Seed confirm */
.seed-confirm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirm-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirm-section-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.confirm-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.confirm-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.6rem;
    text-align: center;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.confirm-slot.filled {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
    color: var(--text-primary);
}
.confirm-slot.correct {
    border-color: var(--success);
    background: rgba(6, 214, 160, 0.08);
}

.confirm-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}
.confirm-word:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}
.confirm-word.used {
    opacity: 0.35;
    pointer-events: none;
}

.seed-word-pool {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.slot-number {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

.confirm-slot.filled .slot-number {
    color: var(--primary);
}


/* ────────────────────────────────────────────────────────────
   4. DASHBOARD
   ──────────────────────────────────────────────────────────── */

.wallet-dashboard {
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Dashboard nav — explorer-style translucent fixed bar */
.wallet-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.wallet-nav .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
}

/* Left: logo */
.wallet-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
}
.wallet-nav .nav-logo .logo-icon {
    width: 32px;
    height: 32px;
}

/* Center: selectors */
.nav-selectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Wallet selector dropdown */
.wallet-selector {
    position: relative;
}
.wallet-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}
.wallet-selector-btn:hover {
    border-color: rgba(255, 107, 53, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.wallet-selector-btn .wallet-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.wallet-selector-btn .chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.wallet-selector.open .wallet-selector-btn .chevron {
    transform: rotate(180deg);
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1001;
    box-sizing: border-box;
}
.wallet-selector.open .wallet-dropdown,
.wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wallet-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
    font-size: 0.85rem;
}
.wallet-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.wallet-dropdown-item.active {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Network selector - native <select> matching explorer */
.network-selector {
    position: relative;
}
.network-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.8rem;
}
.network-select:focus {
    outline: none;
    border-color: var(--primary);
}
.network-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Right: nav actions */
.wallet-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Dashboard content — offset for fixed nav */
.dashboard-content {
    padding-top: 88px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
}
.dashboard-content .container {
    padding: 0;
}


/* ────────────────────────────────────────────────────────────
   5. BALANCE CARD
   ──────────────────────────────────────────────────────────── */

.balance-card {
    background: linear-gradient(135deg, #1a1f45 0%, #2a1a3e 40%, #1a2840 100%);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}
.balance-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.balance-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}
.balance-usd {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.balance-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
}
.action-btn:hover {
    background: rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.action-btn .action-icon {
    font-size: 1.3rem;
}


/* ────────────────────────────────────────────────────────────
   6. DASHBOARD TABS & TAB CONTENT
   ──────────────────────────────────────────────────────────── */

.dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.dashboard-tab {
    padding: 0.75rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
    font-family: inherit;
    position: relative;
}
.dashboard-tab:hover {
    color: var(--text-secondary);
}
.dashboard-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}
.tab-content.active {
    display: block;
}

/* Assets list */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.asset-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.asset-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 107, 53, 0.1);
}
.asset-item.asset-selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.asset-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.asset-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.asset-icon-molt { color: var(--accent, #ff6b35); }

.asset-info {
    flex: 1;
    min-width: 0;
}
.asset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.asset-symbol {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.asset-balance {
    text-align: right;
    flex-shrink: 0;
}
.asset-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.asset-value {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.activity-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.activity-icon.send {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);
}
.activity-icon.receive {
    background: rgba(6, 214, 160, 0.12);
    color: var(--success);
}

.activity-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.activity-type {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-type .activity-addr {
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.4rem;
    font-size: 0.82rem;
}
.activity-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.activity-amount {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    flex-shrink: 0;
}
.activity-amount.send {
    color: var(--primary);
}
.activity-amount.receive {
    color: var(--success);
}

/* NFTs grid */
.nfts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.nft-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}
.nft-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.nft-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.03);
}
.nft-info {
    padding: 0.75rem 0.85rem;
}
.nft-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nft-collection {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Staking content */
.staking-content {
    padding: 1rem 0;
}
.staking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.staking-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    opacity: 0.5;
}
.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}


/* ────────────────────────────────────────────────────────────
   7. MODALS (Send / Receive / Generic)
   ──────────────────────────────────────────────────────────── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 1rem;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
}
.modal-close:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.15);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Amount input */
.amount-input {
    position: relative;
}
.amount-input .form-input {
    padding-right: 4.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.amount-max {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}
.amount-max:hover {
    background: rgba(255, 107, 53, 0.2);
}

/* Fee estimate */
.fee-estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.82rem;
}
.fee-estimate .fee-label {
    color: var(--text-muted);
}
.fee-estimate .fee-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.send-available-balance {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.balance-breakdown {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────
   7a. NFT GALLERY
   ──────────────────────────────────────────────────────────── */

/* ── Shared Banner Base (all tabs use this pattern) ── */
.tab-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 127, 0, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1rem;
}
.tab-banner-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tab-banner-icon i { font-size: 1.35rem; }
.tab-banner-text h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.tab-banner-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Per-tab banner colors */
.tab-banner.nft     { background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(147, 51, 234, 0.10)); border-color: rgba(168, 85, 247, 0.18); }
.tab-banner.nft .tab-banner-icon { background: rgba(168, 85, 247, 0.15); }
.tab-banner.nft .tab-banner-icon i { color: #a855f7; }

.tab-banner.staking { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.10)); border-color: rgba(59, 130, 246, 0.18); }
.tab-banner.staking .tab-banner-icon { background: rgba(59, 130, 246, 0.15); }
.tab-banner.staking .tab-banner-icon i { color: #3b82f6; }

.tab-banner.validator { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.10)); border-color: rgba(245, 158, 11, 0.18); }
.tab-banner.validator .tab-banner-icon { background: rgba(245, 158, 11, 0.15); }
.tab-banner.validator .tab-banner-icon i { color: #f59e0b; }

.tab-banner.shield  { background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(13, 148, 136, 0.10)); border-color: rgba(20, 184, 166, 0.18); }
.tab-banner.shield .tab-banner-icon { background: rgba(20, 184, 166, 0.15); }
.tab-banner.shield .tab-banner-icon i { color: #14b8a6; }

/* ── Staking UI Classes ── */
.staking-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.staking-stat-card {
    background: var(--card-bg, var(--bg-card));
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.staking-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.staking-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}
.staking-stat-value.green  { color: #10b981; }
.staking-stat-value.amber  { color: #f59e0b; }
.staking-stat-value.purple { color: #a78bfa; }
.staking-tiers-heading {
    margin-bottom: 0.75rem;
    color: var(--text);
}
.staking-tiers-heading i { color: #a78bfa; }
.staking-tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.staking-tier-card {
    background: var(--card-bg, var(--bg-card));
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--border);
}
.staking-tier-card.active {
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}
.staking-tier-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.staking-tier-apy {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.staking-tier-apy span {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.staking-tier-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.staking-tier-active {
    font-size: 0.7rem;
    margin-top: 0.4rem;
    font-weight: 600;
}
/* Tier color variants */
.staking-tier-card.flexible .staking-tier-name { color: #94a3b8; }
.staking-tier-card.flexible.staking-tier-active { border-color: #94a3b8; box-shadow: 0 0 12px rgba(148, 163, 184, 0.2); }
.staking-tier-card.flexible .staking-tier-badge { color: #94a3b8; }
.staking-tier-card.lock30 .staking-tier-name { color: #60a5fa; }
.staking-tier-card.lock30.staking-tier-active { border-color: #60a5fa; box-shadow: 0 0 12px rgba(96, 165, 250, 0.2); }
.staking-tier-card.lock30 .staking-tier-badge { color: #60a5fa; }
.staking-tier-card.lock180 .staking-tier-name { color: #a78bfa; }
.staking-tier-card.lock180.staking-tier-active { border-color: #a78bfa; box-shadow: 0 0 12px rgba(167, 139, 250, 0.2); }
.staking-tier-card.lock180 .staking-tier-badge { color: #a78bfa; }
.staking-tier-card.lock365 .staking-tier-name { color: #f59e0b; }
.staking-tier-card.lock365.staking-tier-active { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.2); }
.staking-tier-card.lock365 .staking-tier-badge { color: #f59e0b; }
/* Fix: when used as class on the card div itself, override to behave as modifier */
div.staking-tier-card.staking-tier-active { font-size: inherit; }
.staking-tier-badge { font-size: 0.7rem; margin-top: 0.4rem; font-weight: 600; }
.staking-tier-apy-label { font-size: 0.7rem; color: var(--text-muted); }
.staking-tier-est { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }
/* Unstake item sub-elements */
.staking-unstake-amount { font-weight: 600; }
.staking-unstake-status { display: flex; align-items: center; gap: 0.5rem; }
.staking-unstake-timer { color: var(--text-muted); font-size: 0.85rem; }
.btn-claim {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    background: #10b981;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.btn-claim:hover { background: #059669; }
.btn-disabled { opacity: 0.5; cursor: not-allowed !important; }
/* Tab banner sub-text element */
.tab-banner-sub { font-size: 0.95rem; color: var(--text-muted); }
.staking-info-box {
    background: var(--card-bg, var(--bg-card));
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.staking-info-box i { color: #3b82f6; }
.staking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.staking-actions .btn { width: 100%; padding: 1rem; }
.staking-lock-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #f97316;
}
.staking-pending {
    margin-top: 1.5rem;
}
.staking-pending h4 { margin-bottom: 1rem; }
.staking-unstake-item {
    padding: 1rem;
    background: var(--card-bg, var(--bg-card));
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── NFT banner ── */
.nft-banner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(147, 51, 234, 0.06));
    border: 1px solid rgba(168, 85, 247, 0.12);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.nft-banner h3 {
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nft-banner h3 i { color: #a855f7; }
.nft-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nfts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.nfts-header-left {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nfts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.nft-card {
    background: var(--bg-card, #141830);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}
.nft-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.nft-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nft-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.3;
}
.nft-info {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.nft-collection {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.nft-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NFT empty state */
.nfts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 0.5rem;
}
.nfts-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(147, 51, 234, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #a855f7;
    margin-bottom: 0.5rem;
}
.nfts-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.nfts-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.nfts-empty-actions {
    margin-top: 1rem;
}

/* Receive modal specifics */
.receive-modal .modal-body {
    text-align: center;
}

/* Receive tabs */
.receive-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
}
.receive-tab {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.receive-tab:hover {
    color: var(--text-secondary);
}
.receive-tab.active {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);
    font-weight: 600;
}

/* Deposit cards */
.deposit-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}
.deposit-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.deposit-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.06);
}
.deposit-card.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.deposit-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.deposit-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.deposit-card-info strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}
.deposit-card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    margin: 0 auto 1.25rem;
    width: fit-content;
}
.qr-code canvas,
.qr-code img,
.qr-code svg {
    display: block;
    width: 200px !important;
    height: 200px !important;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}
.address-display .address-text {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
    text-align: left;
    line-height: 1.45;
}


/* ────────────────────────────────────────────────────────────
   8. SETTINGS MODAL
   ──────────────────────────────────────────────────────────── */

.settings-modal-content {
    max-width: 540px;
    max-height: 80vh;
    overflow: hidden;
}
.settings-modal-content .modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}
.settings-modal-body {
    overflow-y: visible;
}

.settings-modal-body::-webkit-scrollbar {
    width: 5px;
}
.settings-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.settings-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.settings-section {
    margin-bottom: 1.5rem;
}
.settings-section:last-child {
    margin-bottom: 0;
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.settings-card:last-child {
    margin-bottom: 0;
}
.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}
.settings-card-header > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.settings-card-header > div > i {
    font-size: 1.05rem;
    color: var(--accent);
    width: 1.2rem;
    text-align: center;
}
.settings-card-header h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.settings-card-header > p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.settings-card-body {
    padding: 1rem 1.2rem;
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    text-align: left;
    margin-bottom: 0.5rem;
}
.settings-btn:last-child {
    margin-bottom: 0;
}
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.settings-btn.danger {
    border-color: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}
.settings-btn.danger:hover {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.settings-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.settings-btn-content > i {
    font-size: 0.95rem;
    color: var(--text-muted);
    width: 1.2rem;
    text-align: center;
}
.settings-btn-content > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.settings-btn-content > div > strong {
    font-weight: 600;
    font-size: 0.85rem;
}
.settings-btn-content > div > span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.settings-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
}
.settings-info-box > i {
    flex-shrink: 0;
}
.settings-info-box.warning {
    background: rgba(255, 107, 53, 0.06);
    border-color: rgba(255, 107, 53, 0.2);
    color: #ff9a5c;
}

.settings-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.settings-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
}
.settings-info-item:last-child {
    border-bottom: none;
}
.settings-info-item .info-label {
    color: var(--text-muted);
}
.settings-info-item .info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.settings-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.settings-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}


/* ────────────────────────────────────────────────────────────
   9. PASSWORD MODAL
   ──────────────────────────────────────────────────────────── */

.password-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 1rem;
}
.password-modal.show {
    opacity: 1;
    visibility: visible;
}
.password-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s ease;
}
.password-modal.show .password-modal-content {
    transform: translateY(0) scale(1);
}
.password-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.password-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.password-modal-header h3 i {
    font-size: 1.05rem;
    color: var(--accent);
}
.password-modal-body {
    padding: 1.5rem;
}
.password-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 1.5rem;
}
.password-modal-actions .btn {
    flex: 1;
    white-space: nowrap;
    min-width: fit-content;
}


/* ────────────────────────────────────────────────────────────
   10. RESPONSIVE
   ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Welcome */
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .welcome-actions .btn {
        display: block;
        width: 100%;
        min-width: auto;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .welcome-logo h1 {
        font-size: 1.8rem;
    }

    /* Nav */
    .wallet-nav .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.8rem;
        padding: 0 1rem;
        height: 56px;
    }
    .logo-text {
        display: none;
    }
    .nav-selectors {
        gap: 0.5rem;
    }
    .wallet-selector-btn,
    .network-selector-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.78rem;
    }
    .wallet-selector-btn #currentWalletName {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-actions .btn span {
        display: none;
    }
    .nav-actions .btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    /* Dashboard */
    .dashboard-content {
        padding-top: 76px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Balance card */
    .balance-amount {
        font-size: 1.8rem;
    }
    .balance-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .action-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.72rem;
    }

    /* Seed phrase */
    .seed-phrase {
        grid-template-columns: repeat(2, 1fr);
    }
    .confirm-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .seed-word-pool {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Wallet content */
    .wallet-content {
        padding: 1.5rem 1.25rem;
    }
    .wallet-container {
        padding: 1.5rem 1rem 2rem;
    }

    /* NFTs */
    .nfts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Modals */
    .modal-content {
        max-width: none;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    .settings-modal-content {
        max-width: none;
    }

    /* Tabs */
    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dashboard-tab {
        padding: 0.65rem 0.9rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* Prevent iOS zoom on input focus */
    .form-input,
    .form-textarea,
    select,
    input[type="text"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px;
    }

    /* Welcome */
    .welcome-logo .logo-icon {
        width: 96px;
        height: 96px;
    }
    .welcome-logo h1 {
        font-size: 1.5rem;
    }
    .welcome-subtitle {
        font-size: 0.92rem;
    }

    /* Balance */
    .balance-card {
        padding: 1.4rem;
        border-radius: 18px;
    }
    .balance-amount {
        font-size: 1.5rem;
    }
    .balance-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Dashboard padding */
    .dashboard-content {
        padding-top: 68px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Modals go full width */
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    .modal-content {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    .modal.show .modal-content {
        transform: translateY(0);
    }

    /* Settings */
    .settings-modal-content {
        max-height: 92vh;
    }
    .settings-modal-content .modal-body {
        max-height: calc(92vh - 60px);
    }

    /* Nav */
    .wallet-nav .nav-container {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }
    .wallet-selector-btn .wallet-name,
    .wallet-selector-btn #currentWalletName {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .network-selector-btn #currentNetwork {
        display: none;
    }
    .network-selector-btn .fa-chevron-down {
        display: none;
    }

    /* NFTs */
    .nfts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Wizard */
    .step-label {
        font-size: 0.65rem;
    }
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    /* Seed phrase */
    .seed-phrase {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    .confirm-slots-grid,
    .seed-word-pool {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    .seed-word {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
    }
}


/* ────────────────────────────────────────────────────────────
   11. ANIMATIONS
   ──────────────────────────────────────────────────────────── */

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

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

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

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

@keyframes pulse-bg {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%, 0% 0%;
    }
    100% {
        background-position: 50% 50%, 50% 50%, 50% 50%, 0% 0%;
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease-out;
}
.animate-fade {
    animation: fadeIn 0.35s ease-out;
}


/* ────────────────────────────────────────────────────────────
   12. UTILITY / MISC
   ──────────────────────────────────────────────────────────── */

.hidden {
    display: none !important;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mono {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.status-badge.success {
    background: rgba(6, 214, 160, 0.12);
    color: var(--success);
}
.status-badge.pending {
    background: rgba(245, 166, 35, 0.12);
    color: #f5a623;
}
.status-badge.error {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast.success {
    border-color: rgba(6, 214, 160, 0.3);
}
.toast.error {
    border-color: rgba(231, 76, 60, 0.3);
}

.copied-feedback {
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 500;
    animation: fadeIn 0.2s ease-out;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 39, 0.8);
    border-radius: inherit;
    z-index: 10;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.label-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);
}

/* Strength meter (password) */
.strength-meter {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}
.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}
.strength-bar.active.weak { background: #e74c3c; }
.strength-bar.active.medium { background: #f5a623; }
.strength-bar.active.strong { background: var(--success); }
.strength-text {
    font-size: 0.72rem;
    margin-top: 0.25rem;
    font-weight: 500;
}
.strength-text.weak { color: #e74c3c; }
.strength-text.medium { color: #f5a623; }
.strength-text.strong { color: var(--success); }

/* Confirmation details (send modal summary) */
.confirm-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}
.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
}
.confirm-row:last-child {
    border-bottom: none;
}
.confirm-row .confirm-label {
    color: var(--text-muted);
}
.confirm-row .confirm-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

/* ============================================================================
   MoltyID Identity Tab
   ============================================================================ */

/* ── Banner ── */
.id-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 127, 0, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1rem;
}
.id-banner-compact {
    padding: 0.85rem 1.25rem;
}
.id-banner-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.id-banner-icon i { font-size: 1.35rem; color: var(--accent); }
.id-banner-text h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.id-banner-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ── Onboarding Steps (no identity) ── */
.id-onboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.id-onboard-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card, #141830);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}
.id-onboard-active {
    cursor: pointer;
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(247, 127, 0, 0.04));
}
.id-onboard-active:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(247, 127, 0, 0.08));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}
.id-onboard-locked {
    opacity: 0.4;
    pointer-events: none;
}
.id-onboard-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.id-onboard-locked .id-onboard-num {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.id-onboard-body { flex: 1; min-width: 0; }
.id-onboard-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.id-onboard-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.id-onboard-arrow {
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.id-onboard-active:hover .id-onboard-arrow { opacity: 1; }

/* ── Profile Strip (has identity) ── */
.id-profile-strip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card, #141830);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.id-strip-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    border: 2px solid;
    flex-shrink: 0;
}
.id-strip-info { flex: 1; min-width: 0; }
.id-strip-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.id-strip-molt {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary, #ff6b35);
    font-family: 'JetBrains Mono', monospace;
}
.id-strip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.id-strip-rep {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.15rem;
}

/* ── Grid Layout (has identity) ── */
.id-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
@media (max-width: 600px) {
    .id-grid { grid-template-columns: 1fr; }
}
.id-section-full { grid-column: 1 / -1; }

/* ── Section Cards ── */
.id-section {
    background: var(--bg-card, #141830);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.id-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.id-section-head i {
    font-size: 0.78rem;
    color: var(--primary, #ff6b35);
    margin-right: 0.4rem;
}
.id-section-counter {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.id-section-body {
    padding: 0.75rem 0.9rem;
    flex: 1;
}
.id-section-empty {
    text-align: center;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.id-section-empty p { margin: 0 0 0.15rem; }
.id-section-empty small { font-size: 0.75rem; opacity: 0.7; }
.id-section-foot {
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid var(--border);
}
.id-section-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

/* ── Link-style inline buttons ── */
.id-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
}
.id-link-btn:hover { color: var(--primary, #ff6b35); }
.id-link-btn i { font-size: 0.68rem; }
.id-link-danger:hover { color: #ef4444; }

/* ── Reputation ── */
.id-rep-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.id-rep-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.id-rep-max {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.id-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}
.id-progress-bar {
    height: 100%;
    border-radius: 100px;
    background: var(--primary);
    transition: width 0.4s ease;
    min-width: 2px;
}
.id-next-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tier steps */
.id-tier-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}
.id-tier-step {
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.45;
}
.id-tier-step.active { opacity: 1; }

/* ── .molt Name ── */
.id-name-display {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary, #ff6b35);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.3rem;
}
.id-name-expiry {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Skills ── */
.id-skill-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.id-skill-row:last-child { border-bottom: none; }
.id-skill-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.id-skill-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    min-width: 40px;
}
.id-skill-lvl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Vouches ── */
.id-vouch-counts {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.id-vouch-counts strong { color: var(--text); }

/* ── Pills, Chips, Badges (shared) ── */
.id-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.id-pill-success {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
}
.id-pill-muted { opacity: 0.5; }

.id-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.id-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.id-chip-muted { opacity: 0.5; }

.id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}
.id-badge i { font-size: 0.65rem; }
.id-badge-earned {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.id-badge-locked {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.4;
}

/* ── Agent Service ── */
.id-agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}
@media (max-width: 600px) {
    .id-agent-grid { grid-template-columns: 1fr; }
}
.id-agent-item { display: flex; flex-direction: column; gap: 0.15rem; }

/* ── KV labels (shared) ── */
.id-kv-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.id-kv-value {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}
.id-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

/* ── Action button (pencil icon) ── */
.id-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    transition: all 0.15s;
    flex-shrink: 0;
}
.id-action-btn:hover {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);
    border-color: rgba(255, 107, 53, 0.3);
}

/* ── Loading state ── */
.id-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Pricing table in modals ── */
.id-pricing-table {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}
.id-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.id-pricing-row:last-child { border-bottom: none; }
.id-pricing-row span:first-child { color: var(--text-muted); }
.id-pricing-row span:last-child {
    color: var(--primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}
.id-pricing-muted { opacity: 0.5; }
.id-pricing-muted em { font-size: 0.78em; color: var(--text-muted); }

/* ── Button utilities ── */
.btn-block { display: block; width: 100%; margin-top: 0.75rem; }
.btn-danger-outline {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.empty-state { text-align: center; padding: 2rem; color: var(--text-secondary, #888); }
.empty-state i { display: block; font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.5; }
.btn-block { width: 100%; }

/* ═══════════════ Shield Tab ═══════════════ */

.shield-status-msg { display: none; margin-bottom: 1rem; }
.shield-status-msg .shield-status-inner {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.shield-status-inner.pending  { background: rgba(255, 107, 53, 0.08); border: 1px solid rgba(255, 107, 53, 0.2); }
.shield-status-inner.error    { background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.2); }
.shield-status-inner.success  { background: rgba(6, 214, 160, 0.08); border: 1px solid rgba(6, 214, 160, 0.2); }
.shield-status-inner.pending i { color: var(--primary); }
.shield-status-inner.error i   { color: #f43f5e; }
.shield-status-inner.success i { color: var(--success); }

/* Shield Badge (Groth16 label) */
.shield-badge {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Shield Cards — match staking-stat-card / asset-item pattern */
.shield-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

/* Shield Balance */
.shield-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.shield-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.shield-balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}
.shield-balance-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.shield-balance-actions {
    display: flex;
    gap: 0.5rem;
}
.shield-transfer-btn {
    width: 100%;
    font-size: 0.9rem;
}

/* Shield Keys */
.shield-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}
.shield-section-title i { color: var(--accent); }
.shield-key-row {
    margin-bottom: 0.75rem;
}
.shield-key-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}
.shield-key-value {
    flex: 1;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    word-break: break-all;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}
.address-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.shield-info-box {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 107, 53, 0.06);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.12);
    margin-top: 0.5rem;
}
.shield-info-box i { color: var(--primary); margin-right: 0.35rem; }

/* Shield Stats — match staking-stats-grid */
.shield-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.shield-stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.shield-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.shield-stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

/* Shield Notes */
.shield-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.shield-notes-header .shield-section-title { margin-bottom: 0; }
.shield-note-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.shield-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}
.shield-empty-state i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}
.shield-empty-state p { margin: 0 0 0.25rem 0; }
.shield-empty-sub { font-size: 0.85rem; }

/* Shield Note Item — match asset-item pattern */
.shield-note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}
.shield-note-item:hover {
    border-color: rgba(255, 107, 53, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.shield-note-amount {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.shield-note-amount i {
    color: var(--accent);
    margin-right: 0.25rem;
}
.shield-note-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.shield-note-badge {
    background: rgba(6, 214, 160, 0.15);
    color: var(--success);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Shield Modal Info Boxes */
.shield-modal-info {
    background: rgba(255, 107, 53, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 107, 53, 0.12);
}
.shield-modal-info i { margin-right: 0.3rem; color: var(--primary); }
.shield-modal-info.unshield {
    background: rgba(6, 214, 160, 0.06);
    border-color: rgba(6, 214, 160, 0.12);
}
.shield-modal-info.unshield i { color: var(--success); }
.btn-shield {
    background: var(--gradient-1);
    color: #fff;
    border: none;
}
.btn-shield:hover {
    filter: brightness(1.1);
    color: #fff;
}
.btn-unshield {
    background: var(--gradient-3);
    color: #fff;
    border: none;
}
.btn-unshield:hover {
    filter: brightness(1.1);
    color: #fff;
}
.shield-vk-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.shield-vk-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.shield-vk-hint i { color: var(--primary); }

/* ────────────────────────────────────────────────────────────
   Chain Status Bar
   ──────────────────────────────────────────────────────────── */
.chain-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-secondary, #1a1d2e);
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.06));
    font-size: 0.75rem;
    color: var(--text-muted, #8b8ea3);
    z-index: 1000;
    font-family: 'JetBrains Mono', monospace;
}
.chain-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    transition: background 0.3s;
}
.chain-status-dot.connected {
    background: #06d6a0;
    box-shadow: 0 0 6px rgba(6, 214, 160, 0.5);
}
.chain-status-sep {
    opacity: 0.3;
}
