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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at top, #12203a 0%, #0b1220 60%, #090f1a 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 48px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar Social Link Styles */
.sidebar-social {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.3);
}

.sidebar-social-link:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
    color: #1da1f2;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.3);
}

.sidebar-social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .sidebar-social {
        left: 12px;
    }
    
    
    .sidebar-social-link {
        width: 44px;
        height: 44px;
    }
    
    .sidebar-social-link svg {
        width: 20px;
        height: 20px;
    }
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid #1f2a44;
    z-index: 100;
}

.header {
    background: #0f172a;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* .header-actions visible — buttons and counters display */

.header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-btn:active {
    transform: translateY(0);
}

.wallet-menu-wrap {
    position: relative;
    display: inline-block;
}

button.admin-btn.wallet-menu-trigger {
    font-family: inherit;
}

.wallet-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    padding: 6px;
    background: #0f172a;
    border: 1px solid #1f2a44;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.65);
    z-index: 3000;
}

.wallet-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.wallet-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #fff;
}

a.wallet-dropdown-item {
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.wallet-dropdown-divider {
    height: 1px;
    margin: 6px 8px;
    background: rgba(148, 163, 184, 0.25);
}

/* Account page — /cabinet */
.wallet-cabinet-page-card {
    max-width: 560px;
    margin: 0 auto 32px;
    padding: 24px 26px 28px;
    background: #0f172a;
    border: 1px solid #1f2a44;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.55);
}

.wallet-cabinet-page-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #93c5fd;
}

.wallet-cabinet-admin-note {
    margin: 0 0 16px;
    font-size: 12px;
    color: #94a3b8;
}

.wallet-cabinet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #1f2a44;
    padding-bottom: 10px;
}

.wallet-cabinet-tab {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.wallet-cabinet-tab:hover {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.6);
}

.wallet-cabinet-tab.active {
    color: #e2e8f0;
    background: rgba(139, 92, 246, 0.35);
}

.wallet-cabinet-tab-panel {
    display: none;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.wallet-cabinet-tab-panel.active {
    display: block;
}

.wallet-cabinet-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
}

.wallet-cabinet-dl dt {
    margin: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wallet-cabinet-dl dd {
    margin: 0;
    word-break: break-all;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

.wallet-cabinet-quest-total {
    font-size: 2rem;
    font-weight: 700;
    color: #a78bfa;
    margin: 8px 0 12px;
}

.wallet-cabinet-quest-hint {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 13px;
}

.wallet-cabinet-quest-placeholder {
    padding: 20px;
    text-align: center;
    border: 1px dashed #334155;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
}

.wallet-cabinet-layout {
    max-width: 720px;
}

.wallet-cabinet-page-card.filters {
    margin-left: auto;
    margin-right: auto;
}

.wallet-cabinet-page-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.wallet-cabinet-page-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.wallet-cabinet-page-icon {
    width: 28px;
    height: 28px;
    color: #a5b4fc;
}

.wallet-cabinet-page-head-text {
    min-width: 0;
}

.wallet-cabinet-page-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.header-actions {
    flex-direction: column;
    align-items: flex-end;
}

.header h1 {
    color: #93c5fd;
    margin-bottom: 0;
    font-size: 28px;
    text-align: center;
    flex: 1;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    font-size: 12px;
    color: #cbd5f5;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #10b981;
}

.live-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filters {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
}

.filters h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
    font-size: 16px;
}

.wallet-watch {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #0b1526;
    border: 1px solid #1f2a44;
}

.wallet-alert-controls {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.wallet-alert-controls .volume-slider {
    width: 100%;
    max-width: 250px;
}

.wallet-alert-controls label {
    font-size: 12px;
    color: #94a3b8;
}

.wallet-alert-controls select,
.wallet-alert-controls input[type="range"] {
    width: 100%;
}

.wallet-alert-controls select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #1f2a44;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
}

/* Custom sound dropdown */
.custom-sound-select {
    position: relative;
    width: 100%;
}

.custom-sound-select-button {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #1f2a44;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.custom-sound-select-button:hover {
    background: #1e293b;
    border-color: #334155;
}

.custom-sound-select-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.custom-sound-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #0f172a;
    border: 1px solid #1f2a44;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-sound-select-dropdown.open {
    display: block;
}

.custom-sound-select-option {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    color: #e2e8f0;
    font-size: 13px;
}

.custom-sound-select-option:hover {
    background: #1e293b;
}

.custom-sound-select-option.selected {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.custom-sound-select-option svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.wallet-alert-controls input[type="range"] {
    accent-color: #34d399;
}

/* Custom volume slider */
.volume-slider {
    --slider-width: 70%;
    --slider-height: 4px;
    --slider-bg: rgba(31, 42, 68, 0.8);
    --slider-border-radius: 999px;
    --level-color: #60a5fa;
    --level-transition-duration: .1s;
    --icon-margin: 10px;
    --icon-color: #94a3b8;
    --icon-size: 18px;
}

.volume-slider {
    cursor: pointer;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
}

.volume-slider .volume-icon {
    display: inline-block;
    vertical-align: top;
    margin-right: var(--icon-margin);
    color: var(--icon-color);
    width: var(--icon-size);
    height: var(--icon-size);
    flex-shrink: 0;
}

.volume-slider .level {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--slider-width);
    max-width: 200px;
    height: var(--slider-height);
    background: var(--slider-bg);
    overflow: hidden;
    border-radius: var(--slider-border-radius);
    transition: height var(--level-transition-duration);
    cursor: inherit;
    flex: 0 0 auto;
}

.volume-slider .level::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    box-shadow: -200px 0 0 200px var(--level-color);
}

.volume-slider .level::-moz-range-thumb {
    -moz-appearance: none;
    width: 0;
    height: 0;
    box-shadow: -200px 0 0 200px var(--level-color);
}

.volume-slider:hover .level {
    height: calc(var(--slider-height) * 2);
}

.volume-slider:hover .volume-icon {
    color: #60a5fa;
}


.wallet-watch label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.wallet-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wallet-watch input,
.wallet-watch textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #1f2a44;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.wallet-watch input::placeholder,
.wallet-watch textarea::placeholder {
    color: #64748b;
}

.wallet-watch input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #1f2a44;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
}

/* Price filter (SOL) — warm brass / slate; no browser blue on focus/spinners */
.price-filter-block {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #101820 0%, #0a0e14 100%);
    border: 1px solid rgba(74, 64, 48, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

.price-filter-block__title {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #d4c4a8;
    letter-spacing: 0.02em;
}

.price-filter-block__title svg {
    width: 16px;
    height: 16px;
    color: #b8a88c;
    flex-shrink: 0;
}

.price-filter-grid {
    display: grid;
    gap: 10px;
}

.price-filter-field label {
    font-size: 11px;
    color: #9a9080;
    display: block;
    margin-bottom: 6px;
}

.price-filter-field input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(74, 64, 48, 0.5);
    background: linear-gradient(180deg, #080c12 0%, #0d1219 100%);
    color: #f0ebe0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.price-filter-field input[type="number"]::-webkit-outer-spin-button,
.price-filter-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-filter-field input[type="number"]:focus {
    border-color: rgba(196, 163, 90, 0.65);
    box-shadow: 0 0 0 2px rgba(196, 163, 90, 0.18);
}

.price-filter-field input[type="number"]::placeholder {
    color: #6b6558;
}

.price-filter-clear {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(74, 64, 48, 0.55);
    background: linear-gradient(180deg, #2a2418 0%, #1a1610 100%);
    color: #c4b8a8;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.price-filter-clear:hover {
    border-color: rgba(196, 163, 90, 0.65);
    color: #f0ebe0;
    box-shadow: 0 0 16px rgba(196, 163, 90, 0.12);
}

.price-filter-clear:focus-visible {
    outline: none;
    border-color: rgba(196, 163, 90, 0.65);
    box-shadow: 0 0 0 2px rgba(196, 163, 90, 0.18);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* Transaction block width options (change value below) */
:root {
    --transactions-width: 1200px; /* Options: 500px, 600px, 700px, 800px, 900px, 1000px, 1200px */
}

/* Legacy main-layout kept for compatibility */
.main-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--transactions-width)) 350px;
    gap: 20px;
    align-items: start;
}

.main-layout .settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-layout .filters {
    margin-bottom: 0;
    padding: 14px;
}

.main-layout .filters-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.main-layout .filter-item {
    padding: 6px;
}

/* transactions-layout styles */
.transactions-layout .filters {
    margin-bottom: 0;
    padding: 14px;
}

.transactions-layout .filters-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.transactions-layout .filter-item {
    padding: 6px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.filter-item:hover {
    background: #1b2a4a;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #60a5fa;
}

.filter-item label {
    cursor: pointer;
    font-size: 14px;
    color: #cbd5f5;
    user-select: none;
}

.stat-card {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
}

.stat-card h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #93c5fd;
}

.transactions {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
    max-height: 760px;
    max-width: var(--transactions-width);
    overflow-y: auto;
}

.transactions h2 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.transaction-item {
    border-left: 4px solid #1f2a44;
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: #111c2f;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    will-change: background-color;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.transaction-image {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    background: #1f2a44;
    border: 2px solid #2d3b52;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-item:hover {
    background-color: #15223b;
}

.transaction-item.wallet-activity {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6), 0 0 16px rgba(16, 185, 129, 0.25);
    border-left-color: #10b981;
}

.transaction-item.listing {
    border-left-color: #f59e0b;
}

.transaction-item.offer {
    border-left-color: #3b82f6;
}

.transaction-item.buy {
    border-left-color: #10b981;
}

.transaction-item.sell {
    border-left-color: #ef4444;
}

.transaction-item.amm-update {
    border-left-color: #3b82f6;
}

.transaction-item.cancel-listing, .transaction-item.cancel-offer, .transaction-item.delisting {
    border-left-color: #ef4444;
}

.transaction-item.zero {
    border-left-color: #6b7280;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.marketplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 10px;
    color: #c4b5fd;
    font-weight: 500;
}

.marketplace-badge img {
    width: 14px;
    height: 14px;
    display: block;
}

.marketplace-badge.amm {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.marketplace-badge.newmp {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: #7dd3fc;
}

/* NFT type badge (next to marketplace logo) */
.nft-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.nft-type-badge svg {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}

.nft-type-badge .nft-type-label {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.nft-type-badge.cnft {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.nft-type-badge.pnft {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c4b5fd;
}

.nft-type-badge.core {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.3);
    color: #fdba74;
}

.nft-type-badge.standard {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.transaction-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type.listing {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.transaction-type.offer {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.transaction-type.buy {
    background: rgba(16, 185, 129, 0.18);
    color: #86efac;
}

.transaction-type.sell {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.transaction-type.amm-update {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.transaction-type.cancel-listing, .transaction-type.cancel-offer, .transaction-type.delisting {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.transaction-type.zero {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.transaction-signature {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #94a3b8;
    word-break: break-all;
}

.transaction-details {
    margin-top: 8px;
    font-size: 14px;
    color: #cbd5f5;
}

.transaction-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.transaction-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.transaction-collection {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.transaction-collection a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s;
}

.transaction-collection a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.transaction-price {
    font-size: 14px;
    font-weight: 600;
    color: #86efac;
    white-space: nowrap;
}

.transaction-link {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #1f2a44;
}

.transaction-link a {
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.2s;
}

.transaction-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.transaction-wallets {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #1f2a44;
}

.transaction-wallet-item {
    font-size: 13px;
    font-family: monospace;
    margin: 2px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.transaction-wallet-label {
    color: #94a3b8;
    font-weight: 500;
    margin-right: 6px;
}

.transaction-wallet-address {
    font-weight: 600;
    font-size: 14px;
}

.collection-link {
    color: #93c5fd;
    text-decoration: none;
}

.collection-link:hover {
    text-decoration: underline;
}

.transaction-details div {
    margin: 4px 0;
}

.price {
    color: #86efac;
    font-weight: 600;
}

.timestamp {
    color: #94a3b8;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Tab styles */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1f2a44;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab:hover {
    color: #cbd5f5;
    background: rgba(59, 130, 246, 0.1);
}

.tab.active {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}

.tab-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.tab-content {
    display: none;
}

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

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #e2e8f0;
}

.faq-section h1 {
    color: #93c5fd;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.3);
}

.faq-item h2 {
    color: #60a5fa;
    font-size: 24px;
    margin-bottom: 16px;
    border-bottom: 2px solid #1f2a44;
    padding-bottom: 10px;
}

.faq-item h3 {
    color: #93c5fd;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.faq-item p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-item ul {
    color: #cbd5e1;
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-item li {
    margin-bottom: 8px;
}

.faq-item strong {
    color: #86efac;
}

/* Updated transactions page layout */
.transactions-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--transactions-width)) 450px;
    gap: 20px;
    align-items: start;
}

.transactions-layout-no-wallet {
    grid-template-columns: 220px minmax(0, var(--transactions-width));
}

.transactions-layout.admin-view {
    grid-template-columns: 220px minmax(0, var(--transactions-width)) 420px;
}

.top-collections-block {
    background: #0f172a;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
    position: sticky;
    top: 20px;
}

.top-collections-block h3 {
    margin-bottom: 12px;
    color: #60a5fa;
    font-size: 16px;
}

.top-collections-table-wrap {
    max-height: 400px;
    overflow-y: auto;
    font-size: 12px;
}

.top-collections-table {
    width: 100%;
    border-collapse: collapse;
    color: #cbd5e1;
}

.top-collections-table th,
.top-collections-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #1f2a44;
}

.top-collections-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-collections-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.top-collections-table th.sortable:hover {
    color: #60a5fa;
}

.top-collections-table th.sortable::after {
    content: ' ↕';
    opacity: 0.4;
    font-size: 10px;
}

.top-collections-table th.sort-desc::after {
    content: ' ▼';
    opacity: 1;
    color: #fca5a5;
}

.top-collections-table th.sort-asc::after {
    content: ' ▲';
    opacity: 1;
    color: #86efac;
}

.top-collections-table tbody tr:hover {
    background: #1e293b;
}

.top-collections-table .col-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-collections-table .col-num {
    text-align: right;
    color: #93c5fd;
    font-weight: 600;
    min-width: 50px;
}

.top-collections-table .empty-cell {
    text-align: center;
    color: #64748b;
}

.top-collections-link {
    color: #93c5fd;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: inline-block;
}

.top-collections-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.live-tab-content {
    display: none;
}

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

@media (max-width: 1400px) {
    .transactions-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    
    .transactions-layout .wallet-tracking-block {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
    
    .transactions-layout-no-wallet {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    
    .transactions-layout.admin-view {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    
    .transactions-layout.admin-view .top-collections-block {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

.wallet-tracking-block {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
    border: 1px solid #1f2a44;
    height: fit-content;
}

.wallet-tracking-block h3 {
    margin-bottom: 15px;
    color: #60a5fa;
    font-size: 16px;
}

/* Switch — skeuomorphic brass / bronze (matches site noir & metal UI) */
.switch {
    --switch-width: 52px;
    --switch-height: 26px;
    --circle-diameter: 20px;
    --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
    --switch-transition: all 0.22s cubic-bezier(0.27, 0.2, 0.25, 1.51);
    --circle-transition: var(--switch-transition);
    --icon-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
    --icon-cross-size: 6px;
    --icon-checkmark-size: 9px;
    --effect-width: calc(var(--circle-diameter) / 2);
    --effect-height: calc(var(--effect-width) / 2 - 1px);
    --effect-border-radius: 1px;
    --effect-transition: all 0.2s ease-in-out;
}

.switch input {
    display: none;
}

.switch {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.switch svg {
    transition: var(--icon-transition);
    position: absolute;
    height: auto;
}

/* Icons: dark bronze on gold knob (readable, not neon green) */
.switch .checkmark {
    width: var(--icon-checkmark-size);
    color: #2a2218;
    transform: scale(0);
}

.switch .cross {
    width: var(--icon-cross-size);
    color: #3d3220;
}

.slider {
    box-sizing: border-box;
    width: var(--switch-width);
    height: var(--switch-height);
    border-radius: 999px;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--switch-transition);
    cursor: pointer;
    /* Recessed track — antique bronze, “sunk” into panel */
    background: linear-gradient(180deg, #4a4030 0%, #2e2818 55%, #1a1610 100%);
    border: 1px solid #0f0d08;
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ON — warmer bronze glow in the groove */
.switch input:checked + .slider {
    background: linear-gradient(180deg, #7a6a4a 0%, #5e5438 42%, #352e1c 100%);
    border-color: #2a2418;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.45),
        inset 0 0 16px rgba(197, 163, 90, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.switch input:checked + .slider .checkmark {
    transform: scale(1);
}

.switch input:checked + .slider .cross {
    transform: scale(0);
}

/* Glint that slides with the knob */
.slider::before {
    content: "";
    position: absolute;
    width: var(--effect-width);
    height: var(--effect-height);
    left: calc(var(--switch-offset) + (var(--effect-width) / 2));
    background: linear-gradient(135deg, rgba(255, 230, 190, 0.35), rgba(120, 100, 65, 0.2));
    border-radius: var(--effect-border-radius);
    transition: var(--effect-transition);
    pointer-events: none;
}

.switch input:checked + .slider::before {
    left: calc(100% - var(--effect-width) - (var(--effect-width) / 2) - var(--switch-offset));
}

/* Brushed brass knob */
.circle {
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--circle-transition);
    z-index: 1;
    position: absolute;
    left: var(--switch-offset);
    background:
        radial-gradient(circle at 28% 26%, rgba(255, 245, 220, 0.55) 0%, transparent 40%),
        radial-gradient(circle at 78% 78%, rgba(0, 0, 0, 0.22) 0%, transparent 48%),
        linear-gradient(155deg, #ebe4d0 0%, #c4a35a 35%, #9a8550 100%);
    border: 1px solid rgba(75, 62, 48, 0.65);
    box-shadow:
        1px 3px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

.switch input:checked + .slider .circle {
    left: calc(100% - var(--circle-diameter) - var(--switch-offset));
    box-shadow:
        -1px 3px 6px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 3px rgba(0, 0, 0, 0.12);
}

.switch input:disabled + .slider {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.switch input:not(:disabled) + .slider {
    opacity: 1 !important;
}

.switch input:not(:disabled) + .slider .circle {
    opacity: 1;
}

/* Bot settings page layout */
.bot-settings-layout {
    max-width: 800px;
    margin: 0 auto;
}

/* Home page — warm accents (aligned with noir / brass, not blue) */
.home-page-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.home-hero {
    margin-bottom: 20px;
}

.home-hero-title {
    color: #f0ebe0;
    margin-bottom: 15px;
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-hero-lead {
    color: #b8b0a4;
    line-height: 1.65;
    margin-bottom: 20px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.home-feature-card h3 {
    color: #c4a35a;
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.home-feature-card h3 .home-icon {
    flex-shrink: 0;
    color: #c4a35a;
}

.home-feature-card ul {
    color: #b8b0a4;
    line-height: 1.8;
    padding-left: 20px;
}

.home-quick-start h3 {
    color: #c4a35a;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.home-quick-start h3 .home-icon {
    flex-shrink: 0;
    color: #c4a35a;
}

.home-quick-start-text {
    color: #b8b0a4;
    line-height: 1.8;
}

.home-quick-start-text p {
    margin-bottom: 10px;
}

.home-quick-start-text strong {
    color: #d4c4a8;
    font-weight: 600;
}

/* Nav links (page navigation) */
.nav-link { padding: 12px 24px; background: transparent; border-bottom: 3px solid transparent; color: #94a3b8; font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.2s; position: relative; bottom: -2px; display: inline-flex; align-items: center; gap: 8px; }

/* Shown only for admins via syncAdminOnlyNav() in walletHeader.js */
.nav-link.admin-only-nav {
    display: none;
}
.nav-link:hover { color: #cbd5f5; background: rgba(59, 130, 246, 0.1); }
.nav-link.active { color: #93c5fd; border-bottom-color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.nav-link .tab-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; }