/* ========================================
   UNPChain Secure Database — Main Styles
   Beautiful dark theme with glass morphism
   ======================================== */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;

    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a0e1a 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

    --sidebar-width: 260px;
    --header-height: 64px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== ANIMATED BACKGROUND ========== */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== TYPOGRAPHY ========== */
h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; }
code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-glass);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-cyan);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    max-width: 100%;
    overflow: hidden;
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}
.btn:active::after {
    opacity: 1;
    transition: opacity 0s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass-hover);
}
.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}
.btn-icon:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ========== INPUTS ========== */
.input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}
.input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.input::placeholder { color: var(--text-muted); }

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
select.input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

textarea.input { resize: vertical; min-height: 60px; }

.form-group { margin-bottom: 16px; overflow: hidden; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.input-row .input { flex: 1; min-width: 200px; }
.input-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
    width: 20px; height: 20px;
    border: 2px solid var(--border-glass-hover);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--accent-blue);
}
.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* ========== CONNECT / LANDING ========== */
#page-connect {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
}

.connect-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.connect-logo {
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}
.brand-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}
.connect-logo .logo-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 130px; height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.3);
    animation: spin 8s linear infinite;
}
.connect-logo .logo-ring.ring-2 {
    width: 150px; height: 150px;
    border-color: rgba(139, 92, 246, 0.2);
    animation-duration: 12s;
    animation-direction: reverse;
}

.connect-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.connect-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.connect-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 500;
}
.feature-card i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

#btn-connect-wallet {
    font-size: 1.1rem;
    padding: 16px 40px;
}

.connect-chain-info {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.chain-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ========== APP SHELL ========== */
#app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========== SIDEBAR ========== */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    z-index: 50;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-brand-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.nav-links {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}
.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}
.nav-item.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.12);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 24px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
}
.wallet-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.wallet-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient-accent);
    flex-shrink: 0;
}
.wallet-info {
    flex: 1;
    min-width: 0;
}
.wallet-addr {
    display: block;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wallet-chain {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========== MAIN CONTENT ========== */
#main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    min-height: 100vh;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

/* Pages */
.page { display: none; min-width: 0; overflow-x: hidden; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
#page-connect.active { display: flex; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-header h2 i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
}
.header-actions { display: flex; gap: 8px; }

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
}
.card-section {
    padding: 20px;
}
.card-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}
.card-section h3 i { color: var(--accent-purple); }

/* Activity List */
.activity-list, .tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.activity-item, .tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}
.activity-item:hover, .tx-item:hover { background: rgba(0,0,0,0.35); }
.activity-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.activity-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.activity-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.activity-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.activity-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }
.activity-text { flex: 1; }
.activity-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.tx-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}
.tx-item a:hover { text-decoration: underline; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p { font-size: 0.9rem; margin-bottom: 20px; }

/* ========== GRID LIST (contracts, templates) ========== */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.grid-list .empty-state { grid-column: 1 / -1; }

.list-card {
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.list-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.list-card:hover::before { opacity: 1; }

.list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.list-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.list-card-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-draft { background: rgba(245,158,11,0.15); color: var(--accent-orange); }
.badge-published { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge-encrypted { background: rgba(139,92,246,0.15); color: var(--accent-purple); }

.list-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.list-card-meta i { margin-right: 4px; }
.list-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

/* ========== BUILDER PANEL ========== */
.builder-panel {
    padding: 24px;
    margin-top: 16px;
    animation: slideUp 0.4s ease;
}
.builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}
.builder-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.builder-header h3 i { color: var(--accent-cyan); }
.builder-body { margin-bottom: 20px; }
.builder-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* ========== SECTIONS & ITEMS ========== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-header-row h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}
.section-header-row h4 i { color: var(--accent-purple); }

.sections-list { display: flex; flex-direction: column; gap: 16px; }

.section-block {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}
.section-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}
.section-block-header:hover { background: rgba(0,0,0,0.3); }
.section-block-header .section-drag {
    color: var(--text-muted);
    cursor: grab;
}
.section-block-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
}
.section-block-header input::placeholder { color: var(--text-muted); }
.section-collapse-icon {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}
.section-block.collapsed .section-collapse-icon { transform: rotate(-90deg); }
.section-block.collapsed .section-block-body { display: none; }

.section-block-body {
    padding: 12px 16px 16px;
}

.items-list { display: flex; flex-direction: column; gap: 8px; }

.item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    animation: fadeIn 0.25s ease;
}
.item-row:hover { border-color: var(--border-glass-hover); }
.item-drag { color: var(--text-muted); cursor: grab; font-size: 0.8rem; }

.item-row .input { padding: 7px 10px; font-size: 0.85rem; }
.item-row select.input { min-width: 0; flex: 1 1 0; }
.item-label-input { flex: 1 1 0 !important; }
.item-row .btn-icon { width: 28px; height: 28px; font-size: 0.8rem; }

.add-item-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Nested items */
.nested-items {
    margin-left: 28px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid rgba(139, 92, 246, 0.2);
}
.nested-items .item-row {
    background: rgba(139, 92, 246, 0.05);
}

/* ========== FILL FORM ========== */
.fill-options { padding: 20px; margin-bottom: 16px; }
.fill-form-card { padding: 24px; }
.fill-form-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}
.fill-form-header h3 { margin-bottom: 4px; }
.fill-form-header p { color: var(--text-muted); font-size: 0.9rem; }

.fill-section {
    margin-bottom: 20px;
}
.fill-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
    color: var(--accent-cyan);
}
.fill-section-title i { font-size: 0.9rem; }

.fill-field {
    margin-bottom: 14px;
}
.fill-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.fill-field label .required-star { color: var(--accent-red); }

.fill-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}
.encrypt-options { margin-bottom: 16px; }
.share-section { margin-bottom: 16px; }
.share-section label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ========== DECRYPTED VIEW ========== */
.decrypted-content {
    padding: 20px;
}
.submission-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}
.submission-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    animation: slideUp 0.3s ease forwards;
}
.submission-meta-item:hover {
    border-color: var(--border-glass-hover);
    background: rgba(0,0,0,0.25);
}
.submission-meta-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.submission-meta-icon.m-cyan { background: rgba(6,182,212,0.12); color: var(--accent-cyan); }
.submission-meta-icon.m-purple { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
.submission-meta-icon.m-blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.submission-meta-icon.m-green { background: rgba(16,185,129,0.12); color: var(--accent-green); }
.submission-meta-icon.m-pink { background: rgba(236,72,153,0.12); color: var(--accent-pink); }
.submission-meta-text {
    flex: 1;
    min-width: 0;
}
.submission-meta-text .meta-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.submission-meta-text .meta-value {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.submission-meta-text .meta-value a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}
.submission-meta-text .meta-value a:hover { text-decoration: underline; }

.submission-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
}
.submission-section-title i { font-size: 0.85rem; }

.submission-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.decrypted-field {
    padding: 14px 16px;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: slideUp 0.35s ease forwards;
    opacity: 0;
}
.decrypted-field:nth-child(1) { animation-delay: 0.05s; }
.decrypted-field:nth-child(2) { animation-delay: 0.1s; }
.decrypted-field:nth-child(3) { animation-delay: 0.15s; }
.decrypted-field:nth-child(4) { animation-delay: 0.2s; }
.decrypted-field:nth-child(5) { animation-delay: 0.25s; }
.decrypted-field:nth-child(6) { animation-delay: 0.3s; }
.decrypted-field:nth-child(7) { animation-delay: 0.35s; }
.decrypted-field:nth-child(8) { animation-delay: 0.4s; }
.decrypted-field::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.decrypted-field:hover {
    border-color: var(--border-glass-hover);
    background: rgba(0,0,0,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.decrypted-field:hover::before { opacity: 1; }
.decrypted-field .field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.decrypted-field .field-label i {
    font-size: 0.65rem;
    opacity: 0.6;
    color: var(--accent-purple);
}
.decrypted-field .field-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}
.decrypted-field .field-value .empty-val {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.submission-empty-values {
    text-align: center;
    padding: 32px 20px;
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    animation: slideUp 0.4s ease;
}
.submission-empty-values i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
    opacity: 0.6;
}
.submission-empty-values h4 {
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.submission-empty-values p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.submission-raw-toggle {
    margin-top: 16px;
    text-align: right;
}

/* ========== SUBMISSIONS PAGE COMPONENTS ========== */

/* Stats Strip */
.sub-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.sub-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.sub-stat-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.sub-stat-card:hover::before { opacity: 1; }
.sub-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.sub-stat-card:hover .sub-stat-icon { transform: scale(1.1) rotate(-5deg); }
.sub-stat-info {
    display: flex;
    flex-direction: column;
}
.sub-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.sub-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Lookup Card */
.sub-lookup-card {
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.sub-lookup-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.5;
}
.sub-lookup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.sub-lookup-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(6,182,212,0.12);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}
.sub-lookup-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.sub-lookup-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Submissions List Header */
.sub-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sub-list-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub-list-header h3 i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}
.sub-list-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(6,182,212,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(6,182,212,0.12);
}

/* Submissions Grid */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}
.sub-grid .empty-state { grid-column: 1 / -1; }

/* Submission Card */
.sub-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all var(--transition-normal);
}
.sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sub-card-top {
    padding: 18px 20px 14px;
    position: relative;
}
.sub-card-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.sub-card:hover .sub-card-top::before { opacity: 1; }
.sub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sub-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sub-card-type-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.sub-card:hover .sub-card-type-icon { transform: scale(1.1); }
.sub-card-type-icon.enc { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.sub-card-type-icon.plain { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.sub-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sub-card-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.sub-card-meta i {
    margin-right: 4px;
    font-size: 0.7rem;
    opacity: 0.7;
}
.sub-card-meta .meta-tx {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.7rem;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
.sub-card-meta .meta-tx:hover { opacity: 1; }
.sub-card-actions {
    display: flex;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.08);
    border-top: 1px solid var(--border-glass);
}
.sub-card-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.sub-card:hover .sub-card-shimmer { left: 100%; }

/* Empty Submissions State */
.sub-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}
.sub-empty::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sub-empty-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(6,182,212,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    animation: float 5s ease-in-out infinite;
}
.sub-empty-icon i {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    opacity: 0.7;
}
.sub-empty h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.sub-empty p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .sub-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .sub-grid { grid-template-columns: 1fr; }
    .sub-lookup-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .sub-stats-strip { grid-template-columns: 1fr; }
}

    .sub-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .sub-grid { grid-template-columns: 1fr; }
    .sub-lookup-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .sub-stats-strip { grid-template-columns: 1fr; }
}

/* ========== SHARED PAGE COMPONENTS ========== */

/* Shared Stats */
.sh-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.sh-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.sh-stat::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.sh-stat:hover::before { opacity: 1; }
.sh-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.sh-stat:hover .sh-stat-icon { transform: scale(1.1) rotate(-5deg); }
.sh-stat-info { display: flex; flex-direction: column; }
.sh-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.sh-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Shared Lookup */
.sh-lookup {
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.sh-lookup::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    opacity: 0.5;
}
.sh-lookup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.sh-lookup-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(236,72,153,0.12);
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}
.sh-lookup-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.sh-lookup-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Shared List Header */
.sh-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sh-list-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sh-list-header h3 i { color: var(--accent-pink); font-size: 0.9rem; }
.sh-list-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(236,72,153,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(236,72,153,0.12);
}

/* Shared Grid */
.sh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

/* Shared Card */
.sh-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}
.sh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sh-card-top {
    padding: 18px 20px 14px;
    position: relative;
}
.sh-card-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.sh-card:hover .sh-card-top::before { opacity: 1; }
.sh-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sh-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sh-card-type-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(236,72,153,0.15);
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.sh-card:hover .sh-card-type-icon { transform: scale(1.1); }
.sh-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sh-card-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(236,72,153,0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(236,72,153,0.2);
}
.sh-badge-encrypted {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border-color: rgba(245,158,11,0.25);
}
.sh-badge-plain {
    background: rgba(16,185,129,0.1);
    color: var(--accent-green);
    border-color: rgba(16,185,129,0.25);
}
.sh-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.sh-card-meta i {
    margin-right: 4px;
    font-size: 0.7rem;
    opacity: 0.7;
}
.sh-card-actions {
    display: flex;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.08);
    border-top: 1px solid var(--border-glass);
}
.sh-card-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.sh-card:hover .sh-card-shimmer { left: 100%; }

/* Shared Empty */
.sh-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}
.sh-empty::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sh-empty-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(236,72,153,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    animation: float 5s ease-in-out infinite;
}
.sh-empty-icon i { font-size: 1.8rem; color: var(--accent-pink); opacity: 0.7; }
.sh-empty h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.sh-empty p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .sh-stats { grid-template-columns: 1fr; }
    .sh-grid { grid-template-columns: 1fr; }
    .sh-lookup-header { flex-direction: column; align-items: flex-start; }
}

/* ========== EXPLORER PAGE COMPONENTS ========== */

/* Explorer Stats */
.exp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.exp-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.exp-stat::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.exp-stat:hover::before { opacity: 1; }
.exp-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.exp-stat:hover .exp-stat-icon { transform: scale(1.1) rotate(-5deg); }
.exp-stat-info { display: flex; flex-direction: column; }
.exp-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.exp-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Explorer Lookup */
.exp-lookup {
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.exp-lookup::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    opacity: 0.5;
}
.exp-lookup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.exp-lookup-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.12);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}
.exp-lookup-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.exp-lookup-header p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Explorer Result */
.exp-result {
    margin-bottom: 20px;
    overflow: hidden;
    animation: slideUp 0.35s ease;
}
.exp-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.exp-result-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(16,185,129,0.12);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.exp-result-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

/* Explorer History Header */
.exp-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.exp-history-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.exp-history-header h3 i { color: var(--accent-blue); font-size: 0.9rem; }
.exp-history-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(59,130,246,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.12);
}

/* Explorer TX List */
.exp-tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.exp-tx-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}
.exp-tx-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.exp-tx-card:hover::before { opacity: 1; }
.exp-tx-card.t-blue::before { background: var(--accent-blue); }
.exp-tx-card.t-purple::before { background: var(--accent-purple); }
.exp-tx-card.t-cyan::before { background: var(--accent-cyan); }
.exp-tx-card.t-green::before { background: var(--accent-green); }
.exp-tx-card.t-orange::before { background: #f59e0b; }
.exp-tx-card:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,0.04);
}
.exp-tx-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}
.exp-tx-card:hover .exp-tx-icon { transform: scale(1.1); }
.exp-tx-icon.blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.exp-tx-icon.purple { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
.exp-tx-icon.cyan { background: rgba(6,182,212,0.12); color: var(--accent-cyan); }
.exp-tx-icon.green { background: rgba(16,185,129,0.12); color: var(--accent-green); }
.exp-tx-icon.orange { background: rgba(245,158,11,0.12); color: #f59e0b; }
.exp-tx-info { flex: 1; min-width: 0; }
.exp-tx-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exp-tx-type {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.exp-tx-hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--accent-cyan);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}
.exp-tx-hash:hover { opacity: 1; text-decoration: underline; }
.exp-tx-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Explorer Empty */
.exp-empty {
    text-align: center;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
}
.exp-empty::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.exp-empty-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(59,130,246,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    animation: float 5s ease-in-out infinite;
}
.exp-empty-icon i { font-size: 1.8rem; color: var(--accent-blue); opacity: 0.7; }
.exp-empty h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.exp-empty p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .exp-stats { grid-template-columns: repeat(2, 1fr); }
    .exp-tx-card { flex-wrap: wrap; }
    .exp-tx-hash { width: 100%; margin-top: 4px; }
    .exp-lookup-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .exp-stats { grid-template-columns: 1fr; }
}

/* ========== SUBMISSION MODAL ========== */
.sub-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}
.sub-modal-overlay.hidden { display: none; }
.sub-modal {
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: subModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes subModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes subModalOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(20px) scale(0.97); }
}
.sub-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    flex-shrink: 0;
}
.sub-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), transparent);
}
.sub-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.sub-modal-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(6,182,212,0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sub-modal-title-group h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: var(--accent-green);
    background: rgba(16,185,129,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16,185,129,0.15);
    margin-top: 2px;
}
.sub-modal-badge i { font-size: 0.6rem; }
.sub-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sub-modal-body::-webkit-scrollbar { width: 5px; }
.sub-modal-body::-webkit-scrollbar-track { background: transparent; }
.sub-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}
.sub-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
.sub-modal .btn-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}
.sub-modal .btn-icon:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}
@media (max-width: 640px) {
    .sub-modal-overlay { padding: 12px; }
    .sub-modal { max-height: 92vh; }
    .sub-modal-header { padding: 16px 18px; }
    .sub-modal-body { padding: 18px; }
}

/* ========== CODE BLOCK ========== */
.code-block {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal {
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    animation: slideUp 0.3s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ========== TX PENDING OVERLAY ========== */
.tx-pending-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.tx-pending-card {
    text-align: center;
    padding: 40px;
    max-width: 420px;
    width: 90%;
}
.tx-spinner {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-purple);
    animation: spin 1.5s linear infinite;
}
.tx-spinner i {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    animation: pulse 2s infinite;
}
.tx-spinner-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}
.tx-pending-card h3 { margin-bottom: 8px; }
.tx-pending-card p { color: var(--text-secondary); font-size: 0.9rem; }

.tx-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}
.tx-progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
}

.tx-hash-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
    margin: 12px 0;
}

/* ========== TOAST ========== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.toast:hover { transform: translateX(-4px); }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

.toast-icon {
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast.success .toast-icon { background: rgba(16,185,129,0.2); color: var(--accent-green); }
.toast.error .toast-icon { background: rgba(239,68,68,0.2); color: var(--accent-red); }
.toast.info .toast-icon { background: rgba(59,130,246,0.2); color: var(--accent-blue); }
.toast.warning .toast-icon { background: rgba(245,158,11,0.2); color: var(--accent-orange); }

.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.toast-message { font-size: 0.8rem; color: var(--text-muted); }

/* ========== PULSE GLOW ========== */
.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* ========== LOADING SCREEN ========== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loading-logo {
    width: 140px;
    height: auto;
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite, loadingGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.5));
}
.loading-bar {
    width: 220px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}
.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out forwards;
}
.loading-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    animation: pulse 2s infinite;
}
@keyframes loadingProgress {
    0% { width: 0%; }
    30% { width: 50%; }
    60% { width: 75%; }
    100% { width: 100%; }
}
@keyframes loadingGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.7)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3)); }
}

/* ========== HIDDEN ========== */
.hidden { display: none !important; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(100px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.3); }
    50% { box-shadow: 0 0 40px rgba(59,130,246,0.6), 0 0 60px rgba(139,92,246,0.3); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-up {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    #sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    #sidebar.open { transform: translateX(0); }
    #main-content { margin-left: 0; padding: 16px; max-width: 100vw; }
    .connect-features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .grid-list { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .input-row { flex-direction: column; }
    .input-row .input { min-width: 100%; }
    .input-separator { display: none; }
    .page-hero { padding: 20px; }
    .page-hero-icon { width: 50px; height: 50px; font-size: 1.3rem; }
    .page-hero h2 { font-size: 1.3rem; }
    .page-hero-desc { font-size: 0.8rem; }
    .page-decor-orb { display: none; }
    .quick-actions-grid { grid-template-columns: 1fr; }
    .how-it-works { grid-template-columns: 1fr; }
    .feature-banner { flex-direction: column; text-align: center; }
    .feature-banner-icon { width: 50px; height: 50px; font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 1.4rem; }
    .page-hero-icon { width: 40px; height: 40px; font-size: 1rem; }
}

/* ========== PAGE HERO HEADER ========== */
.page-hero {
    position: relative;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08), rgba(6,182,212,0.05));
    border: 1px solid var(--border-glass);
    margin-bottom: 24px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60%; left: -10%;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.page-hero-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}
.page-hero-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); box-shadow: 0 0 20px rgba(59,130,246,0.15); }
.page-hero-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); box-shadow: 0 0 20px rgba(139,92,246,0.15); }
.page-hero-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-cyan); box-shadow: 0 0 20px rgba(6,182,212,0.15); }
.page-hero-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); box-shadow: 0 0 20px rgba(16,185,129,0.15); }
.page-hero-icon.pink { background: rgba(236,72,153,0.15); color: var(--accent-pink); box-shadow: 0 0 20px rgba(236,72,153,0.15); }
.page-hero-text h2 {
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px;
}
.page-hero-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}
.page-hero .header-actions {
    margin-left: auto;
}

/* ========== DECORATIVE ORBS ========== */
.page-decor-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    filter: blur(1px);
}
.page-decor-orb.orb-1 {
    width: 6px; height: 6px;
    background: var(--accent-cyan);
    top: 18px; right: 60px;
    animation: floatOrb1 6s ease-in-out infinite;
}
.page-decor-orb.orb-2 {
    width: 4px; height: 4px;
    background: var(--accent-purple);
    top: 40px; right: 120px;
    animation: floatOrb2 8s ease-in-out infinite;
}
.page-decor-orb.orb-3 {
    width: 8px; height: 8px;
    background: var(--accent-blue);
    bottom: 14px; right: 80px;
    animation: floatOrb3 7s ease-in-out infinite;
}
.page-decor-orb.orb-4 {
    width: 5px; height: 5px;
    background: var(--accent-green);
    top: 30px; right: 200px;
    animation: floatOrb1 9s ease-in-out infinite reverse;
}
@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(-8px, -12px); opacity: 0.8; }
    50% { transform: translate(5px, -6px); opacity: 0.3; }
    75% { transform: translate(-3px, 8px); opacity: 0.7; }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(10px, -8px) scale(1.5); opacity: 0.7; }
    66% { transform: translate(-6px, 4px) scale(0.8); opacity: 0.5; }
}
@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(-12px, -10px); opacity: 0.6; }
}

/* ========== QUICK ACTIONS ========== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}
.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--qa-glow, rgba(59,130,246,0.08)), transparent 70%);
    transition: opacity var(--transition-normal);
    opacity: 0;
}
.quick-action-card:hover::before { opacity: 1; }
.quick-action-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform var(--transition-normal);
}
.quick-action-card:hover .quick-action-icon { transform: scale(1.1) rotate(-3deg); }
.quick-action-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.quick-action-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.quick-action-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }
.quick-action-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.quick-action-title {
    font-weight: 600;
    font-size: 0.9rem;
}
.quick-action-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.how-step {
    text-align: center;
    padding: 20px 12px;
    position: relative;
}
.how-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: var(--shadow-glow-blue);
}
.how-step-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
}
.how-step-icon.c-blue { color: var(--accent-blue); }
.how-step-icon.c-purple { color: var(--accent-purple); }
.how-step-icon.c-cyan { color: var(--accent-cyan); }
.how-step-icon.c-green { color: var(--accent-green); }
.how-step-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.how-step-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.how-step-arrow {
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0.3;
    font-size: 1rem;
}

/* ========== FEATURE BANNER ========== */
.feature-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(139,92,246,0.06));
    border: 1px solid var(--border-glass);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
}
.feature-banner::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(139,92,246,0.06), transparent 70%);
    pointer-events: none;
}
.feature-banner-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.feature-banner-text {
    flex: 1;
}
.feature-banner-text h4 { margin-bottom: 4px; font-size: 0.95rem; }
.feature-banner-text p { color: var(--text-muted); font-size: 0.82rem; }

/* ========== ANIMATED STAT CARD EXTRAS ========== */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--stat-glow, rgba(59,130,246,0.06)), transparent 70%);
    pointer-events: none;
    transition: all var(--transition-slow);
}
.stat-card:hover::after {
    transform: scale(1.5);
    opacity: 0.8;
}
.stat-card:hover .stat-icon {
    transform: scale(1.12) rotate(-5deg);
}
.stat-icon {
    transition: transform var(--transition-normal);
}

/* ========== BOUNCE-IN for page switch ========== */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.92) translateY(16px); }
    60% { opacity: 1; transform: scale(1.02) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}
.page.active { animation: bounceIn 0.45s ease; }

/* ========== SHINE EFFECT on cards ========== */
.list-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}
.list-card:hover::after {
    left: 120%;
}

/* ========== STAGGER CHILDREN ========== */
.stagger-children > * {
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
