/* design system tokens & variables */
:root {
    --bg-base: #0a0d14;
    --bg-card: rgba(18, 22, 35, 0.65);
    --bg-card-hover: rgba(28, 33, 53, 0.85);
    --filter-surface-solid: #050912;
    --filter-surface-hover: #151d2a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 229, 255, 0.2);

    /* Text colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Brand accents */
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --success: #10b981;
    --danger: #ef4444;

    /* Axie Class Colors */
    --color-beast: #ffb812;
    --color-bug: #ff2a44;
    --color-aquatic: #00b5ff;
    --color-plant: #00d856;
    --color-reptile: #dc12ec;
    --color-bird: #ff5f8c;
    --color-mech: #879ca8;
    --color-dusk: #129bba;
    --color-dawn: #8c46ff;

    /* Font families */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
}

/* global resets and layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Glassmorphic background blur effects */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(140, 70, 255, 0.08) 0%, transparent 50%);
}

/* layout container */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Header style */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: visible;
    position: relative;
    z-index: 200;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    background: rgba(18, 22, 35, 0.5);
    padding: 2px;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.fa-spin-slow {
    animation: fa-spin 8s linear infinite;
}

.brand-text h1 {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-text h1 span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.25rem;
}



/* Controls section (glassmorphic card) */
.controls-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
    overflow: visible;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.control-group select,
.control-group input {
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.season-select,
.class-control select,
.breed-control select,
.evolved-filter-header,
.evolved-filter-body {
    max-width: 230px;
}

.price-control input {
    max-width: 150px;
}

.control-group select:focus,
.control-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--border-glow);
}

.season-control {
    order: 1;
    grid-column: span 3;
}

.class-control {
    order: 2;
    grid-column: span 3;
}

.evolved-control {
    order: 5;
    grid-column: span 3;
}

.breed-control {
    order: 3;
    grid-column: span 3;
}

.price-control {
    order: 4;
    grid-column: span 3;
}

.sound-control {
    order: 8;
    grid-column: span 3;
}

.special-collection-control {
    order: 6;
    grid-column: span 3;
    gap: 0.5rem;
}

.special-collection-control .special-filter-header,
.evolved-control .evolved-filter-header,
.evolved-control .evolved-filter-body {
    max-width: 100%;
}

.meta-only-control {
    order: 7;
    grid-column: span 3;
}

.meta-only-season-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-select {
    position: relative;
    width: 100%;
}

.selected-season {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.selected-season:hover,
.selected-season:focus,
.season-select.open .selected-season {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
    outline: none;
}

.selected-season:disabled {
    cursor: wait;
    opacity: 0.7;
}

.selected-season-name {
    flex: 1;
    min-width: 0;
}

.season-chevron {
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.season-select.open .season-chevron {
    transform: rotate(180deg);
}

.season-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 9px currentColor;
}

.season-indicator.final {
    color: #f04f5f;
    background: currentColor;
}

.season-indicator.mystic {
    color: #8057d9;
    background: currentColor;
}

.season-indicator.epic {
    color: #2997f5;
    background: currentColor;
}

.season-indicator.rare {
    color: #38bd4b;
    background: currentColor;
}

.season-indicator.season {
    color: #f04f5f;
    background: currentColor;
}

.season-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 1200;
    overflow: hidden;
    background: #121620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.season-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.season-option:last-child {
    border-bottom: 0;
}

.season-option:hover,
.season-option.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.045);
    padding-left: 1.15rem;
}

.season-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

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

.season-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.season-check {
    color: var(--success);
    font-size: 0.75rem;
    opacity: 0;
}

.season-option.active .season-check {
    opacity: 1;
}

.special-collection-control label,
.evolved-control label {
    text-transform: none;
    letter-spacing: 0;
}

.special-filter-header,
.evolved-filter-header {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(10, 13, 20, 0.8);
    color: var(--text-primary);
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.special-filter-header:hover,
.special-filter-header:focus,
.evolved-filter-header:hover,
.evolved-filter-header:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--border-glow);
    outline: none;
}

.special-filter-header span:first-child,
.evolved-filter-header span:first-child {
    margin-right: auto;
}

.special-filter-header i,
.evolved-filter-header i {
    color: #64748b;
    transition: transform 0.2s ease;
}

.special-collection-control:not(.special-collection-collapsed) .special-filter-header > i,
.evolved-control:not(.evolved-control-collapsed) .evolved-filter-header > i {
    transform: rotate(180deg);
}

.special-filter-count,
.evolved-filter-count {
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ff8a3d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.special-filter-header,
.special-filter-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
}

.evolved-control {
    gap: 0.5rem;
}

.evolved-filter-header span:first-child {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.evolved-filter-body {
    padding-top: 0.2rem;
}

.evolved-filter-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(42px, 1fr));
    gap: 0.45rem;
}

.evolved-filter-option {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.35rem;
    justify-content: center;
    min-height: 38px;
    padding: 0.4rem 0.35rem;
}

.evolved-filter-option:hover {
    border-color: rgba(0, 229, 255, 0.34);
    color: var(--text-primary);
}

.evolved-filter-check {
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 4px;
    flex: 0 0 auto;
    height: 13px;
    width: 13px;
}

.evolved-filter-option input {
    display: none;
}

.evolved-filter-option input:checked + .evolved-filter-check {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.28);
}

.evolved-filter-option:has(input:checked) {
    background: rgba(0, 229, 255, 0.11);
    border-color: rgba(0, 229, 255, 0.36);
    color: var(--primary);
}

.special-filter-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.35rem;
}

.special-filter-body[hidden] {
    display: none !important;
}

.special-filter-subtitle {
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0.1rem;
}

.special-filter-any,
.special-filter-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    color: #ff8a3d;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.special-collection-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.special-filter-any .special-filter-check {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    flex: 0 0 auto;
}

.special-filter-any .special-filter-check::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    transform: translateY(-50%);
    transition: transform 0.2s ease, background 0.2s ease;
}

.special-filter-any input:checked+.special-filter-check {
    background: rgba(255, 138, 61, 0.18);
    border-color: rgba(255, 138, 61, 0.35);
}

.special-filter-any input:checked+.special-filter-check::before {
    background: #ff8a3d;
    transform: translate(12px, -50%);
}

.special-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(135px, 1fr));
    gap: 0.65rem 1.4rem;
}

.special-filter-option .special-filter-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(10, 13, 20, 0.65);
    border: 1px solid rgba(156, 163, 175, 0.35);
    flex: 0 0 auto;
}

.special-filter-option input:checked+.special-filter-check {
    background: rgba(255, 138, 61, 0.35);
    border-color: rgba(255, 138, 61, 0.62);
    box-shadow: 0 0 8px rgba(255, 138, 61, 0.18);
}

.special-filter-option input:checked+.special-filter-check::before {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    margin: 4px 0 0 3px;
    border-left: 2px solid #ff8a3d;
    border-bottom: 2px solid #ff8a3d;
    transform: rotate(-45deg);
}

.special-filter-option input:disabled+.special-filter-check+.collection-chip {
    opacity: 0.42;
}

.collection-chip {
    position: relative;
    min-height: 18px;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.collection-chip-img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex: 0 0 auto;
}

.collection-chip-symbol,
.collection-chip-symbol::before,
.collection-chip-symbol::after {
    position: absolute;
    content: '';
    display: block;
}

.collection-chip-symbol {
    left: 0.42rem;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
}

.collection-chip--mystic {
    background: #7a35bd;
}

.collection-chip--origin {
    background: #ef402b;
}

.collection-chip--shiny {
    background: #168fb3;
}

.collection-chip--nightmare {
    background: #9700a8;
}

.collection-chip--summer {
    background: #009c7d;
}

.collection-chip--xmas {
    background: #14971f;
}

.collection-chip--japanese {
    background: #a46633;
}

.collection-chip--agamogenesis {
    background: #e83673;
}

.collection-chip--meo {
    background: #3e84bd;
}

.collection-chip--mystic .collection-chip-symbol,
.collection-chip--shiny .collection-chip-symbol {
    background: #ffd31a;
    clip-path: polygon(50% 0, 64% 35%, 100% 50%, 64% 65%, 50% 100%, 36% 65%, 0 50%, 36% 35%);
}

.collection-chip--shiny .collection-chip-symbol {
    background: #bafaff;
}

.collection-chip--origin .collection-chip-symbol {
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcf34 0 48%, #e69716 49% 100%);
}

.collection-chip--nightmare .collection-chip-symbol {
    width: 13px;
    height: 13px;
    background: url("https://cdn.axieinfinity.com/marketplace-website/asset-icon/icon-nightmare.png") center / contain no-repeat;
}

.collection-chip--nightmare .collection-chip-symbol::before {
    display: none;
}

.collection-chip--summer .collection-chip-symbol {
    border-radius: 50%;
    background: #ffd02a;
    box-shadow:
        0 -5px 0 -2px #ffd02a,
        0 5px 0 -2px #ffd02a,
        5px 0 0 -2px #ffd02a,
        -5px 0 0 -2px #ffd02a;
}

.collection-chip--xmas .collection-chip-symbol {
    background: #ff342f;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.collection-chip--japanese .collection-chip-symbol {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.collection-chip--japanese .collection-chip-symbol::before {
    inset: 3px;
    border-radius: 50%;
    background: #ff3b2f;
}

.collection-chip--agamogenesis .collection-chip-symbol {
    background: #ffffff;
}

.collection-chip--agamogenesis .collection-chip-symbol::before {
    left: 0;
    top: 50%;
    width: 9px;
    height: 3px;
    background: #2ee6a8;
    transform: translateY(-50%);
}

.collection-chip--meo .collection-chip-symbol {
    background: #ffffff;
    clip-path: polygon(0 0, 30% 0, 50% 35%, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 42%, 50% 72%, 30% 42%, 30% 100%, 0 100%);
}

@media (max-width: 900px) {

    .season-control,
    .class-control,
    .evolved-control,
    .breed-control,
    .price-control,
    .special-collection-control,
    .meta-only-control,
    .sound-control {
        grid-column: 1 / -1;
    }

    .season-select,
    .class-control select,
    .breed-control select,
    .price-control input,
    .evolved-filter-header,
    .evolved-filter-body {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .special-filter-options {
        grid-template-columns: 1fr;
    }
}

.toggle-group {
    justify-content: space-between;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .3s;
}

input:checked+.slider {
    background-color: rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
}

input:checked+.slider:before {
    background-color: var(--primary);
    transform: translateX(24px);
    box-shadow: 0 0 8px var(--primary-glow);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Icon Buttons */
.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-mono);
    margin-left: 0.25rem;
}

.current-filter-stat {
    min-width: min(100%, 280px);
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.current-filter-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-floor-stat {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.1rem 1.1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(13, 25, 31, 0.96), rgba(9, 16, 24, 0.96));
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
}

.market-floor-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #6ee7b7, #10b981);
}

.market-floor-stat.hidden {
    display: none;
}

.market-floor-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(110, 231, 183, 0.18);
    border-radius: 10px;
}

.market-floor-live-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 9px;
    height: 9px;
    background: #34d399;
    border: 2px solid #0d191f;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.market-floor-content {
    width: 100%;
    min-width: 0;
}

.market-floor-header,
.market-floor-prices,
.market-floor-row {
    display: flex;
    align-items: center;
}

.market-floor-header {
    width: 100%;
    gap: 0.75rem;
}

.market-floor-heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.market-floor-label {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-floor-collection {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 210px;
    padding: 0.12rem 0.4rem;
    overflow: hidden;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.14);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

a.market-floor-collection:hover {
    color: #ecfdf5;
    border-color: rgba(110, 231, 183, 0.4);
}

.market-floor-prices {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    padding-left: 0.7rem;
    text-align: right;
}

.market-floor-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.market-floor-row {
    min-width: 0;
    justify-content: space-between;
    min-height: 72px;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9px;
}

.market-floor-identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.market-floor-detail {
    display: block;
    max-width: 210px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-floor-stat .stat-value {
    margin: 0;
    color: #ecfdf5;
    font-size: 1.04rem;
    line-height: 1.3;
}

.market-floor-usd {
    color: #6ee7b7;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 800;
}

.market-floor-stat .stat-subvalue {
    display: block;
    margin-top: 0.12rem;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-floor-updated {
    display: inline-block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.64rem;
    white-space: nowrap;
}

.market-floor-refresh {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.16);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.stats-bar .clear-btn {
    margin-left: auto;
}

.market-floor-refresh:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(110, 231, 183, 0.38);
    transform: translateY(-1px);
}

.market-floor-refresh:disabled {
    cursor: wait;
    opacity: 0.65;
}

.market-floor-stat.is-refreshing .market-floor-refresh i {
    animation: market-floor-spin 0.8s linear infinite;
}

.market-floor-stat.is-unavailable {
    border-color: rgba(148, 163, 184, 0.2);
}

.market-floor-stat.is-unavailable::before {
    background: var(--text-muted);
}

.market-floor-stat.is-unavailable .market-floor-live-dot {
    background: var(--text-muted);
    box-shadow: none;
}

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

.stat-subvalue {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-sans);
}

.clear-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

/* Main content header */
.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.grid-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge {
    background: var(--primary);
    color: var(--bg-base);
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.active-filters-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
}

/* Axies Grid Layout */
.axies-grid-wrap {
    min-height: 180px;
    position: relative;
}

.axies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.axies-grid-wrap.loading .axies-grid {
    filter: saturate(0.65);
    opacity: 0.32;
    pointer-events: none;
}

.listing-loading {
    align-items: center;
    background: rgba(10, 13, 20, 0.82);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.65rem;
    left: 50%;
    padding: 0.8rem 1rem;
    position: absolute;
    top: 72px;
    transform: translateX(-50%);
    z-index: 20;
}

.listing-loading.hidden {
    display: none;
}

.listing-loading i {
    color: var(--primary);
}

.axie-pagination {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.25rem 0 0.25rem;
}

.pagination-btn {
    align-items: center;
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.85rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #f59e0b;
    color: #fbbf24;
}

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

.pagination-status {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    min-width: 170px;
    text-align: center;
}

.floating-pagination {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(7, 10, 16, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    bottom: 0;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.32);
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
    left: 0;
    min-height: 48px;
    padding: 0.45rem 1rem;
    position: fixed;
    right: 0;
    z-index: 90;
}

.floating-pagination.hidden {
    display: none;
}

.floating-page-list {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.floating-page-btn,
.floating-page-ellipsis {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    min-width: 32px;
}

.floating-page-btn {
    background: rgba(10, 13, 20, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 0.55rem;
}

.floating-page-btn:hover:not(:disabled) {
    border-color: #f59e0b;
    color: #fbbf24;
}

.floating-page-btn.active {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: default;
}

.floating-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.floating-page-ellipsis {
    color: var(--text-muted);
    min-width: 18px;
}
/* Premium Axie Card Design */
.axie-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hover effects */
.axie-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Glowing class border indicator */
.axie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--class-color, var(--text-muted));
    z-index: 2;
}

/* Glow animation for NEW listings */
.axie-card.new-listing {
    animation: borderGlow 2.5s ease-out;
}

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-mono);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    letter-spacing: 1px;
}

/* Class Tag at top right */
.class-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 13, 20, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--class-color, var(--text-primary));
    z-index: 10;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
}

.special-collection-tag {
    position: absolute;
    top: 48px;
    right: 12px;
    max-width: calc(100% - 24px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.meta-tag {
    position: absolute;
    top: 78px;
    right: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: help;
}

.meta-tag-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.meta-tag-primary {
    white-space: nowrap;
}

.meta-tag-secondary {
    margin-top: 0.12rem;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0.9;
}

.meta-tag--meta {
    color: #151821;
    background: linear-gradient(135deg, #facc15, #22d3ee);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.28);
}

.meta-tag--all-meta {
    color: #061116;
    background: linear-gradient(135deg, #34d399, #facc15);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.28);
}

.meta-tag--not-meta {
    color: var(--text-secondary);
    background: rgba(10, 13, 20, 0.68);
}

.meta-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(290px, calc(100vw - 32px));
    padding: 0.7rem;
    border-radius: 8px;
    background: rgba(9, 12, 18, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 30;
}

.meta-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: rgba(9, 12, 18, 0.96);
    border-left: 1px solid rgba(148, 163, 184, 0.24);
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    transform: rotate(45deg);
}

.meta-tag:hover .meta-tooltip,
.meta-tag:focus .meta-tooltip,
.meta-tag:focus-within .meta-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.meta-tooltip-title {
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.meta-tooltip-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.55rem;
    padding: 0.42rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.meta-tooltip-era {
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 800;
}

.meta-tooltip-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.45rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
}

.meta-tooltip-status {
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 900;
}

.meta-tooltip-status--yes {
    color: #052e1b;
    background: #34d399;
}

.meta-tooltip-status--no {
    color: #d1d5db;
    background: rgba(148, 163, 184, 0.2);
}

.meta-tooltip-status--pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}

.special-collection-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.special-collection-icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.special-collection-symbol,
.special-collection-symbol::before,
.special-collection-symbol::after {
    position: absolute;
    content: '';
    display: block;
}

.special-collection-symbol {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.special-collection-icon--mystic {
    background: #7a35bd;
}

.special-collection-icon--mystic .special-collection-symbol {
    width: 14px;
    height: 14px;
    background: #ffd31a;
    transform: translate(-50%, -50%) rotate(45deg);
    clip-path: polygon(50% 0, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0 50%, 34% 34%);
}

.special-collection-icon--origin {
    background: #c52b1a;
}

.special-collection-icon--origin .special-collection-symbol {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcf34 0 42%, #efa315 43% 58%, #f6bd1e 59% 100%);
    transform: translate(-50%, -50%) rotate(-32deg);
}

.special-collection-icon--shiny {
    background: #078da8;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(7, 141, 168, 0.32);
}

.special-collection-icon--shiny .special-collection-symbol {
    width: 15px;
    height: 15px;
    background: #bafaff;
    clip-path: polygon(50% 0, 63% 31%, 96% 34%, 72% 57%, 79% 90%, 50% 73%, 21% 90%, 28% 57%, 4% 34%, 37% 31%);
}

.special-collection-icon--nightmare {
    background: url("https://cdn.axieinfinity.com/marketplace-website/asset-icon/icon-nightmare.png") center / contain no-repeat;
}

.special-collection-icon--nightmare .special-collection-symbol {
    display: none;
}

.special-collection-icon--nightmare .special-collection-symbol::before {
    display: none;
}

.special-collection-icon--nightmare .special-collection-symbol::after {
    display: none;
}

.special-collection-icon--meo {
    width: 38px;
    border-radius: 14px;
    background: #2a2f3a;
}

.special-collection-icon--meo .special-collection-symbol {
    top: 50%;
    left: 8px;
    width: 13px;
    height: 13px;
    background: #ffffff;
    transform: translateY(-50%);
    clip-path: polygon(0 0, 32% 0, 50% 34%, 68% 0, 100% 0, 100% 100%, 68% 100%, 68% 42%, 50% 72%, 32% 42%, 32% 100%, 0 100%);
}

.special-collection-icon--meo::before,
.special-collection-icon--meo::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3px;
    height: 13px;
    background: #ffffff;
    transform: translateY(-50%);
}

.special-collection-icon--meo::before {
    left: 26px;
}

.special-collection-icon--meo::after {
    left: 31px;
}

.special-collection-icon--xmas {
    background: #087909;
}

.special-collection-icon--xmas .special-collection-symbol {
    top: auto;
    left: 50%;
    width: 15px;
    height: 11px;
    background: #ff342f;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    bottom: 6px;
    transform: translateX(-50%);
}

.special-collection-icon--xmas .special-collection-symbol::before {
    left: -1px;
    bottom: -2px;
    width: 17px;
    height: 4px;
    border-radius: 999px;
    background: #ffffff;
}

.special-collection-icon--xmas .special-collection-symbol::after {
    top: -4px;
    left: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.special-collection-icon--japanese {
    background: #8b572b;
}

.special-collection-icon--japanese .special-collection-symbol {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
}

.special-collection-icon--japanese .special-collection-symbol::before {
    inset: 4px;
    border-radius: 50%;
    background: #ff3b2f;
}

.special-collection-icon--agamogenesis {
    width: 38px;
    border-radius: 14px;
    background: #e83673;
}

.special-collection-icon--agamogenesis .special-collection-symbol {
    width: 18px;
    height: 12px;
    background: #ffffff;
}

.special-collection-icon--agamogenesis .special-collection-symbol::before {
    left: 0;
    top: 50%;
    width: 18px;
    height: 4px;
    background: #2ee6a8;
    transform: translateY(-50%);
}

.special-collection-icon--summer {
    background: #009c7d;
}

.special-collection-icon--summer .special-collection-symbol {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd02a;
    box-shadow:
        0 -7px 0 -3px #ffd02a,
        0 7px 0 -3px #ffd02a,
        7px 0 0 -3px #ffd02a,
        -7px 0 0 -3px #ffd02a,
        5px 5px 0 -3px #ffd02a,
        -5px 5px 0 -3px #ffd02a,
        5px -5px 0 -3px #ffd02a,
        -5px -5px 0 -3px #ffd02a;
}

.special-collection-icon--default {
    background: #5f35b4;
}

.special-collection-icon--default .special-collection-symbol {
    width: 14px;
    height: 14px;
    background: #ffd31a;
    clip-path: polygon(50% 0, 63% 34%, 100% 50%, 63% 66%, 50% 100%, 37% 66%, 0 50%, 37% 34%);
}

.special-collection-icon--mystic,
.special-collection-icon--origin,
.special-collection-icon--shiny,
.special-collection-icon--nightmare,
.special-collection-icon--meo,
.special-collection-icon--xmas,
.special-collection-icon--japanese,
.special-collection-icon--agamogenesis,
.special-collection-icon--summer {
    width: auto;
    height: auto;
    min-width: 24px;
    min-height: 24px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.special-collection-icon--mystic .special-collection-symbol,
.special-collection-icon--origin .special-collection-symbol,
.special-collection-icon--shiny .special-collection-symbol,
.special-collection-icon--nightmare .special-collection-symbol,
.special-collection-icon--meo .special-collection-symbol,
.special-collection-icon--xmas .special-collection-symbol,
.special-collection-icon--japanese .special-collection-symbol,
.special-collection-icon--agamogenesis .special-collection-symbol,
.special-collection-icon--summer .special-collection-symbol,
.special-collection-icon--meo::before,
.special-collection-icon--meo::after {
    display: none;
}

.special-collection-badge-img {
    display: block;
    width: auto;
    height: 16px;
}

.special-collection-icon--mystic,
.special-collection-icon--origin {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.special-collection-icon--mystic {
    background: #7a35bd;
}

.special-collection-icon--origin {
    background: #c52b1a;
}

.special-collection-icon--mystic .special-collection-badge-img,
.special-collection-icon--origin .special-collection-badge-img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.special-collection-icon--shiny {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background: #078da8;
    border-radius: 50%;
    overflow: hidden;
}

.special-collection-icon--shiny .special-collection-badge-img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.special-collection-icon--nightmare {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background: #9700a8;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(151, 0, 168, 0.35);
}

.special-collection-icon--nightmare .special-collection-badge-img {
    width: auto;
    height: 12px;
    object-fit: contain;
}

.special-collection-icon--xmas {
    align-items: center;
    background: #168b16;
    border-radius: 8px;
    display: inline-flex;
    height: 20px;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    overflow: hidden;
    width: 20px;
}

.special-collection-icon--xmas .special-collection-badge-img {
    height: 12px;
    object-fit: contain;
    width: 12px;
}

.special-collection-icon--summer {
    align-items: center;
    background: #00a486;
    border-radius: 50%;
    display: inline-flex;
    height: 20px;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    overflow: hidden;
    width: 20px;
}

.special-collection-icon--summer .special-collection-badge-img {
    height: 12px;
    object-fit: contain;
    width: 12px;
}

/* Axie Image Section */
.axie-image-wrapper {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    overflow: hidden;
}

.axie-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.axie-card:hover .axie-img {
    transform: scale(1.08) translateY(-4px);
}

/* Info container */
.axie-info {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.axie-header {
    margin-bottom: 1rem;
}

.axie-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.axie-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Price Panel */
.price-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.not-for-sale-panel {
    justify-content: center;
}

.not-for-sale-label {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.not-for-sale-label i {
    color: var(--text-muted);
}

.price-details {
    display: flex;
    flex-direction: column;
}

.price-eth {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-eth i {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-usd {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.time-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Metadata (Breed & Genes) */
.metadata-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.breed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

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

.breed-progress {
    display: flex;
    gap: 3px;
}

.breed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-color);
}

.breed-dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

.evo-progress {
    gap: 3px;
}

.evo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-color);
}

.evo-dot.active {
    background-color: #f5c542;
    box-shadow: 0 0 6px rgba(245, 197, 66, 0.6);
}

.genes-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.genes-label {
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.genes-value {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: var(--primary);
}

/* Card Button */
.buy-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
    color: var(--bg-base);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

.buy-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

.buy-btn i {
    font-size: 0.85rem;
}

/* General Footer */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 0px var(--primary-glow);
        border-color: var(--primary);
    }

    30% {
        box-shadow: 0 0 25px var(--primary-glow);
        border-color: var(--primary);
        background: rgba(0, 229, 255, 0.05);
    }

    100% {
        box-shadow: 0 0 0px transparent;
        border-color: var(--border-color);
    }
}

/* Responsive adjustment */
@media (max-width: 1200px) {
    .market-floor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }


    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-floor-stat {
        width: 100%;
        max-width: none;
    }

    .clear-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-bar .clear-btn {
        margin-left: 0;
    }
}

/* Dashboard Layout and Custom Filter/Alert Styling */
.dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 1.25rem 1rem;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .main-content {
        order: 1;
        min-width: 0;
    }

    .sidebar {
        order: 2;
    }

    .controls-card,
    .sidebar-card {
        padding: 1.1rem;
        border-radius: 12px;
    }

    .alerts-card {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 1rem 0.75rem;
    }

    .market-floor-stat {
        align-items: stretch;
        margin: 1rem 0 1.25rem;
        padding: 0.85rem;
    }

    .market-floor-icon {
        display: none;
    }

    .market-floor-list {
        grid-template-columns: 1fr;
    }

    .market-floor-row {
        min-height: 0;
    }

    header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .brand {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .brand-logo {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 10px;
    }

    .brand-text h1 {
        font-size: 1.45rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.78rem;
        max-width: 240px;
    }


    .controls-card,
    .sidebar-card {
        padding: 0.9rem;
    }

    .controls-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .view-options {
        width: 100%;
    }

    .active-filters-info {
        display: block;
        max-width: 100%;
    }

    .filter-form-actions {
        flex-direction: column;
    }

    .filter-form-actions .submit-filter-btn,
    .cancel-edit-btn {
        width: 100%;
    }

    .axie-info {
        padding: 1rem;
    }

    .price-panel {
        align-items: flex-start;
        gap: 0.7rem;
    }

    .breed-row {
        gap: 0.65rem;
    }

    .meta-tooltip {
        right: auto;
        left: 50%;
        transform: translate(-50%, -4px);
    }

    .meta-tooltip::before {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
    }

    .meta-tag:hover .meta-tooltip,
    .meta-tag:focus .meta-tooltip,
    .meta-tag:focus-within .meta-tooltip {
        transform: translate(-50%, 0);
    }
}

body.mobile-sheet-open {
    overflow: hidden;
}

.mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(3, 7, 18, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}

.mobile-sheet {
    position: relative;
    width: min(100%, 460px);
    max-height: min(78vh, 560px);
    overflow-y: auto;
    background: rgba(13, 17, 28, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px 18px 12px 12px;
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.48);
    padding: 1rem;
    animation: sheetIn 0.18s ease-out;
}

.mobile-sheet-handle {
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.36);
    margin: 0 auto 0.9rem;
}

.mobile-sheet-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-sheet-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    padding-right: 3rem;
}

.mobile-sheet-content .meta-tooltip-title {
    display: none;
}

.mobile-sheet-content .meta-tooltip-row {
    grid-template-columns: 56px 1fr;
    padding: 0.75rem 0;
}

.mobile-sheet-content .meta-tooltip-era {
    font-size: 0.9rem;
}

.mobile-sheet-content .meta-tooltip-detail {
    font-size: 0.82rem;
    gap: 0.4rem 0.55rem;
}

.mobile-drawer-backdrop,
.mobile-filter-bar,
.mobile-action-bar {
    display: none;
}

@keyframes sheetIn {
    from {
        transform: translateY(18px);
        opacity: 0.7;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (hover: none),
(pointer: coarse),
(max-width: 760px) {

    button,
    .buy-btn,
    .global-filter-btn,
    .submit-filter-btn,
    .cancel-edit-btn,
    .clear-btn,
    .clear-alerts-btn,
    .icon-btn,
    .edit-filter-btn,
    .delete-filter-btn,
    .special-filter-header,
    .special-filter-any,
    .special-filter-option,
    .filter-item,
    .alert-item {
        min-height: 44px;
    }

    .control-group select,
    .control-group input,
    .input-group input {
        min-height: 44px;
        font-size: 16px;
    }

    .filter-actions {
        gap: 0.35rem;
    }

    .edit-filter-btn,
    .delete-filter-btn,
    .icon-btn {
        width: 44px;
        height: 44px;
    }

    .special-filter-option {
        width: 100%;
    }

    .meta-tag {
        min-height: 36px;
        cursor: pointer;
    }

    .meta-tag .meta-tooltip {
        display: none;
    }

    .axie-card:active,
    .filter-item:active,
    .alert-item:active,
    .buy-btn:active,
    .global-filter-btn:active,
    .submit-filter-btn:active,
    .clear-btn:active,
    .clear-alerts-btn:active,
    .icon-btn:active,
    .edit-filter-btn:active,
    .delete-filter-btn:active,
    .special-filter-option:active,
    .special-filter-header:active {
        transform: scale(0.985);
        filter: brightness(1.08);
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 78px;
    }

    body.mobile-drawer-open {
        overflow: hidden;
    }

    .mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 850;
        display: block;
        background: rgba(3, 7, 18, 0.62);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .sidebar {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        z-index: 900;
        max-height: min(84vh, 680px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 0 76px;
        transform: translateY(calc(100% + 1.5rem));
        transition: transform 0.22s ease;
    }

    body.mobile-drawer-open .sidebar {
        transform: translateY(0);
    }

    .sidebar-card {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    }

    .sidebar-card+.sidebar-card {
        margin-top: 1rem;
    }

    .mobile-action-bar {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
        padding: 0.45rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 16px;
        background: rgba(10, 13, 20, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    }

    .mobile-action-btn {
        min-height: 52px;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-secondary);
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 800;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.24rem;
        cursor: pointer;
    }

    .mobile-action-btn i {
        font-size: 1rem;
    }

    .mobile-action-btn.active {
        color: var(--primary);
        background: rgba(0, 229, 255, 0.12);
    }

    .mobile-action-btn:active {
        transform: scale(0.97);
        filter: brightness(1.12);
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.sidebar-card h3 i {
    color: var(--primary);
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--border-glow);
}

.submit-filter-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #00b5ff 100%);
    color: var(--bg-base);
    border: none;
    padding: 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.submit-filter-btn.editing {
    background: linear-gradient(135deg, #f5c542 0%, #ffb020 100%);
    color: #121827;
}

.submit-filter-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 12px var(--primary-glow);
}

.filter-form-actions {
    display: flex;
    gap: 0.6rem;
}

.filter-form-actions .submit-filter-btn {
    flex: 1;
}

.cancel-edit-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.cancel-edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none !important;
}

.global-filter-btn {
    width: 100%;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.18);
    color: var(--text-primary);
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.global-filter-btn i {
    color: var(--primary);
}

.global-filter-btn:hover,
.global-filter-btn.active {
    background: rgba(0, 229, 255, 0.14);
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

/* Filters List */
.filters-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 174px;
    overflow-y: auto;
    padding-right: 2px;
}

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

.filters-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.no-filters-msg,
.no-alerts-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem 0;
}

.filter-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
}

.filter-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-item-criteria {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.edit-filter-btn,
.delete-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.2rem 0.4rem;
}

.edit-filter-btn:hover {
    color: var(--primary);
}

.delete-filter-btn:hover {
    color: var(--danger);
}

/* Alerts History Card */
.alerts-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 480px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.alerts-header h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.clear-alerts-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clear-alerts-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.alerts-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 2px;
}

.alerts-log::-webkit-scrollbar {
    width: 4px;
}

.alerts-log::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.alert-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0.8rem;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.alert-item.new {
    border-left-color: var(--success);
}

.alert-item.price_drop {
    border-left-color: #ff9800;
}

.alert-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.alert-type-badge {
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.alert-item.new .alert-type-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-item.price_drop .alert-type-badge {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.alert-msg {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

.alert-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    align-self: flex-end;
}

/* Tabs Navigation */
.tabs-wrapper {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.navigation-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.navigation-tabs::-webkit-scrollbar {
    height: 4px;
}

.navigation-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.65rem 1.2rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 230px;
}

.tab-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--bg-card);
    margin-bottom: -3px;
    box-shadow: 0 -4px 10px rgba(0, 229, 255, 0.05);
}

/* Efeito visual de oscilação nos cards */
.price-drop-glow {
    animation: priceDropAlert 3s ease-out;
}

@keyframes priceDropAlert {
    0% {
        box-shadow: 0 0 0px transparent;
        border-color: #ff9800;
    }

    30% {
        box-shadow: 0 0 25px rgba(255, 152, 0, 0.3);
        border-color: #ff9800;
        background: rgba(255, 152, 0, 0.05);
    }

    100% {
        box-shadow: 0 0 0px transparent;
        border-color: var(--border-color);
    }
}

/* Mobile refinements kept at the end so they win the cascade without changing desktop. */
@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 1.25rem 1rem;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .main-content {
        order: 1;
        min-width: 0;
    }

    .sidebar {
        order: 2;
    }

    .controls-card,
    .sidebar-card {
        padding: 1.1rem;
        border-radius: 12px;
    }

    .alerts-card {
        max-height: none;
    }

    body {
        padding-bottom: 148px;
    }

    .mobile-filter-bar {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 5.35rem;
        z-index: 940;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.45rem;
        padding: 0.45rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 16px;
        background: rgba(10, 13, 20, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
    }

    .mobile-filter-btn {
        min-width: 0;
        min-height: 48px;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-secondary);
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        cursor: pointer;
    }

    .mobile-filter-btn i {
        color: var(--text-muted);
        font-size: 0.86rem;
        flex: 0 0 auto;
    }

    .mobile-filter-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-filter-btn.active,
    .mobile-filter-btn.selected {
        color: var(--primary);
        background: rgba(0, 229, 255, 0.12);
        box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.2);
    }

    .mobile-filter-btn.active i,
    .mobile-filter-btn.selected i {
        color: var(--primary);
    }

    .mobile-filter-btn.active.selected {
        background: rgba(0, 229, 255, 0.17);
        box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.38), 0 0 18px rgba(0, 229, 255, 0.12);
    }

    .mobile-filter-btn:active {
        transform: scale(0.97);
        filter: brightness(1.12);
    }

    body.mobile-drawer-open .mobile-filter-bar,
    body.mobile-sheet-open .mobile-filter-bar,
    body.mobile-sheet-open .mobile-action-bar {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 1rem 0.75rem;
    }

    header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .brand {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .brand-logo {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 10px;
    }

    .brand-text h1 {
        font-size: 1.45rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.78rem;
        max-width: 240px;
    }


    .controls-card,
    .sidebar-card {
        padding: 0.9rem;
    }

    .controls-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .view-options {
        width: 100%;
    }

    .active-filters-info {
        display: block;
        max-width: 100%;
    }

    .filter-form-actions {
        flex-direction: column;
    }

    .filter-form-actions .submit-filter-btn,
    .cancel-edit-btn {
        width: 100%;
    }

    .axie-info {
        padding: 1rem;
    }

    .price-panel {
        align-items: flex-start;
        gap: 0.7rem;
    }

    .breed-row {
        gap: 0.65rem;
    }

    .meta-tooltip {
        right: auto;
        left: 50%;
        transform: translate(-50%, -4px);
    }

    .meta-tooltip::before {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
    }

    .meta-tag:hover .meta-tooltip,
    .meta-tag:focus .meta-tooltip,
    .meta-tag:focus-within .meta-tooltip {
        transform: translate(-50%, 0);
    }
}

/* Axie Mementos */
.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

.header-actions .wallet-meta-nav-btn,
.header-actions .ronin-signin-btn,
.header-actions .ronin-user-btn {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
    white-space: nowrap;
}

.ronin-auth {
    align-items: center;
    display: flex;
    min-height: 42px;
    position: relative;
    z-index: 210;
}

.ronin-signin-btn,
.ronin-user-btn {
    border: 1px solid rgba(82, 255, 190, 0.42);
    background: linear-gradient(135deg, rgba(82, 255, 190, 0.14), rgba(20, 184, 166, 0.06));
    color: #7cffcf;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 46px;
    padding: 0.35rem 0.8rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease,
        transform 0.2s ease;
}

.ronin-signin-btn:hover,
.ronin-user-btn:hover,
.ronin-user-btn[aria-expanded="true"] {
    border-color: #52ffbe;
    background: linear-gradient(135deg, rgba(82, 255, 190, 0.19), rgba(20, 184, 166, 0.09));
    box-shadow: 0 0 0 3px rgba(82, 255, 190, 0.06), 0 10px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.ronin-signin-btn:disabled {
    cursor: progress;
    opacity: 0.72;
}

.ronin-user {
    position: relative;
}

.ronin-user-btn {
    max-width: min(320px, 42vw);
}

.ronin-user-icon {
    align-items: center;
    background: rgba(82, 255, 190, 0.14);
    border: 1px solid rgba(82, 255, 190, 0.2);
    border-radius: 9px;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
}

.ronin-user-btn #ronin-user-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ronin-user-caret {
    font-size: 0.68rem;
    margin-left: 0.15rem;
    transition: transform 0.2s ease;
}

.ronin-user-btn[aria-expanded="true"] .ronin-user-caret {
    transform: rotate(180deg);
}

.ronin-user-menu {
    animation: ronin-menu-reveal 0.18s ease-out;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: #080d16;
    background-image: linear-gradient(155deg, #111825, #080d16);
    border: 1px solid rgba(113, 235, 197, 0.23);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    display: grid;
    gap: 0.25rem;
    min-width: 280px;
    padding: 0.55rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    isolation: isolate;
    opacity: 1;
    z-index: 220;
}

.ronin-user-menu button {
    --ronin-menu-accent: #7cffcf;
    --ronin-menu-soft: rgba(82, 255, 190, 0.09);
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    gap: 0.7rem;
    min-height: 54px;
    padding: 0.45rem 0.65rem;
    text-align: left;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    width: 100%;
}

.ronin-user-menu .wallet-events-nav-btn {
    --ronin-menu-accent: #6ee7b7;
    --ronin-menu-soft: rgba(52, 211, 153, 0.11);
}

.ronin-user-menu .origin-events-nav-btn {
    --ronin-menu-accent: #b9a5ff;
    --ronin-menu-soft: rgba(155, 123, 255, 0.12);
}

.ronin-user-menu .bounty-nav-btn {
    --ronin-menu-accent: #f8c96d;
    --ronin-menu-soft: rgba(245, 158, 11, 0.1);
}

.ronin-user-menu .mementos-nav-btn {
    --ronin-menu-accent: #6ee7f2;
    --ronin-menu-soft: rgba(34, 211, 238, 0.1);
}

.ronin-user-menu .ronin-settings-btn {
    --ronin-menu-accent: #cbd5e1;
    --ronin-menu-soft: rgba(148, 163, 184, 0.09);
}

.ronin-menu-icon {
    align-items: center;
    background: var(--ronin-menu-soft);
    border: 1px solid color-mix(in srgb, var(--ronin-menu-accent) 22%, transparent);
    border-radius: 10px;
    color: var(--ronin-menu-accent);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.ronin-menu-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.ronin-menu-copy strong {
    color: #edf5f3;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.15;
}

.ronin-menu-copy small {
    color: #84918f;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0.18rem;
}

.ronin-menu-chevron {
    color: #5f6d6b;
    flex: 0 0 auto;
    font-size: 0.62rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.ronin-user-menu button:hover,
.ronin-user-menu button:focus-visible,
.ronin-user-menu button.active {
    background: var(--ronin-menu-soft);
    border-color: color-mix(in srgb, var(--ronin-menu-accent) 26%, transparent);
    color: var(--ronin-menu-accent);
    outline: none;
    transform: translateX(3px);
}

.ronin-user-menu button.active {
    box-shadow: 3px 0 0 var(--ronin-menu-accent) inset;
}

.ronin-user-menu button:hover .ronin-menu-copy strong,
.ronin-user-menu button:focus-visible .ronin-menu-copy strong,
.ronin-user-menu button.active .ronin-menu-copy strong,
.ronin-user-menu button:hover .ronin-menu-chevron,
.ronin-user-menu button:focus-visible .ronin-menu-chevron,
.ronin-user-menu button.active .ronin-menu-chevron {
    color: var(--ronin-menu-accent);
}

.ronin-user-menu button:hover .ronin-menu-chevron,
.ronin-user-menu button:focus-visible .ronin-menu-chevron {
    transform: translateX(2px);
}

.ronin-menu-separator {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
    height: 1px;
    margin: 0.25rem 0.4rem;
}

.ronin-user-menu #ronin-signout-btn {
    --ronin-menu-accent: #ff9a9f;
    --ronin-menu-soft: rgba(248, 113, 113, 0.1);
}

.ronin-user-menu #ronin-signout-btn .ronin-menu-copy strong {
    color: #ff9a9f;
}

@keyframes ronin-menu-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ronin-user-menu {
        animation: none;
    }

    .ronin-user-btn,
    .ronin-user-caret,
    .ronin-user-menu button,
    .ronin-menu-chevron {
        transition: none;
    }
}

.ronin-auth-message {
    background: rgba(12, 16, 26, 0.96);
    border: 1px solid rgba(82, 255, 190, 0.22);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 280px;
    padding: 0.55rem 0.7rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 31;
}

.ronin-auth-message.error {
    border-color: rgba(255, 112, 112, 0.35);
    color: #ffb4b4;
}

.ronin-auth-message.info {
    color: #c8fff0;
}

.mementos-nav-btn,
.mementos-back-btn,
.mementos-run-btn {
    border: 1px solid rgba(0, 229, 255, 0.24);
    background: rgba(0, 229, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mementos-nav-btn {
    min-height: 42px;
    padding: 0 1rem;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.mementos-nav-btn.active,
.mementos-nav-btn:hover,
.mementos-back-btn:hover,
.mementos-run-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.18);
}

.mementos-page {
    display: block;
}

body.mementos-view .dashboard-layout {
    display: none;
}

.mementos-toolbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.mementos-toolbar h2 {
    font-size: 1.8rem;
    line-height: 1;
}

.mementos-toolbar p {
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.mementos-back-btn {
    min-width: 96px;
    padding: 0.7rem 0.9rem;
}

.mementos-form,
.mementos-summary,
.mementos-results,
.mementos-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mementos-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 150px 150px;
    gap: 1rem;
    align-items: end;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.mementos-form label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.mementos-form input {
    width: 100%;
    min-height: 44px;
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    padding: 0 0.9rem;
}

.mementos-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--border-glow);
}

.mementos-run-btn {
    min-height: 44px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #001018;
    border-color: transparent;
}

.mementos-run-btn:disabled {
    cursor: wait;
    opacity: 0.75;
}

.mementos-message {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.mementos-message.error {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.mementos-message.warning {
    border-color: rgba(255, 184, 18, 0.45);
    color: #fde68a;
}

.mementos-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.memento-stat {
    border-right: 1px solid var(--border-color);
    min-width: 0;
    padding-right: 1rem;
}

.memento-stat:last-child {
    border-right: 0;
}

.memento-stat-label,
.memento-stat small,
.mementos-table small {
    color: var(--text-secondary);
    display: block;
}

.memento-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.memento-stat strong {
    color: var(--primary);
    display: block;
    font-family: var(--font-mono);
    font-size: 1.45rem;
}

.mementos-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.memento-class-card {
    background: rgba(18, 22, 35, 0.65);
    border: 1px solid var(--class-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.9rem;
    text-decoration: none;
}

.memento-class-card strong {
    color: var(--class-color);
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-top: 0.4rem;
}

.memento-class-name {
    align-items: center;
    color: var(--text-primary);
    display: flex;
    font-weight: 800;
    gap: 0.4rem;
}

.memento-class-card small {
    color: var(--text-secondary);
}

.mementos-results {
    overflow: hidden;
}

.mementos-results-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.mementos-results-header h3 {
    font-size: 1.15rem;
}

.mementos-results-header span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mementos-table-wrap {
    overflow-x: auto;
}

.mementos-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.mementos-table th,
.mementos-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.mementos-table th {
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mementos-table tr:last-child td {
    border-bottom: 0;
}

.memento-axie-cell {
    align-items: center;
    color: var(--text-primary);
    display: flex;
    gap: 0.7rem;
    min-width: 240px;
    text-decoration: none;
}

.memento-axie-cell img {
    height: 48px;
    object-fit: contain;
    width: 58px;
}

.memento-axie-cell strong {
    display: block;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memento-axie-cell small {
    color: var(--class-color);
}

.memento-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 360px;
}

.memento-distribution-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--class-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
}

.mementos-empty-row {
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 900px) {

    body.mementos-view .mobile-filter-bar,
    body.mementos-view .mobile-action-bar {
        display: none;
    }

    header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
        width: 100%;
    }

    .header-actions .wallet-meta-nav-btn,
    .header-actions .ronin-auth,
    .header-actions .ronin-signin-btn,
    .header-actions .ronin-user,
    .header-actions .ronin-user-btn {
        justify-content: center;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .ronin-user-menu,
    .ronin-auth-message {
        left: 0;
        min-width: 0;
        right: auto;
        width: min(280px, calc(100vw - 3rem));
    }



    .mementos-form,
    .mementos-summary {
        grid-template-columns: 1fr;
    }

    .memento-stat {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.8rem;
        padding-right: 0;
    }

    .memento-stat:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 560px) {
    .mementos-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions .ronin-auth {
        grid-column: 1 / -1;
    }

    .header-actions .wallet-meta-nav-btn,
    .header-actions .ronin-signin-btn,
    .header-actions .ronin-user-btn {
        font-size: 0.78rem;
        padding: 0 0.55rem;
    }
}

/* Premier Bounty */
.bounty-nav-btn,
.bounty-back-btn,
.bounty-primary-btn,
.bounty-secondary-btn {
    border: 1px solid rgba(255, 184, 18, 0.35);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 42px;
    padding: 0 1rem;
}

.bounty-nav-btn,
.bounty-back-btn,
.bounty-secondary-btn {
    background: rgba(255, 184, 18, 0.08);
    color: #ffd166;
}

.bounty-primary-btn {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #180d00;
}

.bounty-nav-btn:hover,
.bounty-nav-btn.active,
.bounty-back-btn:hover,
.bounty-secondary-btn:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.16);
}

body.bounty-view .dashboard-layout,
body.bounty-view .mementos-page {
    display: none;
}

.bounty-page {
    display: block;
}

.bounty-toolbar {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.bounty-toolbar h2 {
    font-size: 1.8rem;
    line-height: 1;
}

.bounty-toolbar p {
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.bounty-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 280px minmax(0, 1fr);
}

.bounty-wallet-panel,
.bounty-command-bar,
.bounty-summary,
.bounty-section,
.bounty-empty-selection {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.bounty-wallet-panel {
    align-self: start;
    min-height: 520px;
    overflow: hidden;
}

.bounty-panel-heading,
.bounty-section-heading {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.bounty-panel-heading h3,
.bounty-section-heading h3 {
    font-size: 1rem;
}

.bounty-section-heading span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.bounty-section-actions {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.bounty-checkbox-control {
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.45rem;
    white-space: nowrap;
}

.bounty-checkbox-control input {
    accent-color: #f59e0b;
    height: 16px;
    width: 16px;
}

.bounty-quest-expand-btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.7rem;
}

.bounty-quest-import-btn {
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 6px;
    color: #ffd166;
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.7rem;
}

.bounty-quest-import-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.bounty-quest-expand-btn:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--primary);
}

.bounty-wallet-form {
    border-bottom: 1px solid var(--border-color);
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
}

.bounty-wallet-form input,
.bounty-command-bar input,
.bounty-command-bar select,
.bounty-quest-form input,
.bounty-quest-form select,
.bounty-transaction-form input,
.bounty-transaction-form select {
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 40px;
    outline: none;
    padding: 0 0.75rem;
    width: 100%;
}

.bounty-wallet-form input:focus,
.bounty-command-bar input:focus,
.bounty-command-bar select:focus,
.bounty-quest-form input:focus,
.bounty-quest-form select:focus,
.bounty-transaction-form input:focus,
.bounty-transaction-form select:focus {
    border-color: #f59e0b;
}

.bounty-wallet-form button {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 40px;
}

.bounty-wallet-list {
    padding: 0.5rem;
}

.bounty-wallet-item {
    align-items: stretch;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    margin-bottom: 0.35rem;
}

.bounty-wallet-item.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.bounty-wallet-select {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex: 1;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.7rem;
    text-align: left;
}

.bounty-wallet-select i {
    color: #f59e0b;
}

.bounty-wallet-select span {
    min-width: 0;
}

.bounty-wallet-select strong,
.bounty-wallet-select small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bounty-wallet-select small {
    color: var(--text-secondary);
}

.bounty-wallet-delete,
.bounty-quest-delete {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.7rem;
}

.bounty-wallet-delete:hover,
.bounty-quest-delete:hover {
    color: var(--danger);
}

.bounty-main {
    min-width: 0;
}

.bounty-empty-selection {
    color: var(--text-secondary);
    padding: 5rem 1rem;
    text-align: center;
}

.bounty-empty-selection i {
    color: #f59e0b;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.bounty-command-bar {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(190px, 1fr) 190px 100px 140px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.bounty-command-bar label {
    color: var(--text-secondary);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.bounty-reward-input>div {
    align-items: center;
    display: flex;
    position: relative;
}

.bounty-reward-input span {
    color: #f59e0b;
    font-weight: 700;
    position: absolute;
    right: 0.75rem;
}

.bounty-reward-input input {
    padding-right: 3.2rem;
}

.bounty-message {
    background: rgba(18, 22, 35, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.bounty-message.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.bounty-message.success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.bounty-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.bounty-summary>div {
    border-right: 1px solid var(--border-color);
    min-width: 0;
    padding: 1rem;
}

.bounty-summary>div:last-child {
    border-right: 0;
}

.bounty-summary span,
.bounty-summary small {
    color: var(--text-secondary);
    display: block;
}

.bounty-summary span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bounty-summary strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    margin: 0.2rem 0;
}

.bounty-summary strong.positive {
    color: var(--success);
}

.bounty-summary strong.negative {
    color: var(--danger);
}

.bounty-section {
    margin-bottom: 1rem;
    overflow: hidden;
}

.bounty-icon-btn {
    align-items: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.bounty-quest-form,
.bounty-transaction-form {
    border-bottom: 1px solid var(--border-color);
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
}

.bounty-quest-form {
    grid-template-columns: minmax(220px, 1fr) 150px 90px 120px 100px;
}

.bounty-transaction-form {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.7fr) 120px 110px;
}

.bounty-quest-item,
.bounty-transaction-item {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.bounty-quest-item:last-child,
.bounty-transaction-item:last-child {
    border-bottom: 0;
}

.bounty-quest-item {
    grid-template-columns: 34px minmax(0, 1fr) 100px 34px;
}

.bounty-quest-list.compact {
    max-height: 264px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(0, 229, 255, 0.35) transparent;
    scrollbar-width: thin;
}

.bounty-quest-list.compact.expanded {
    max-height: none;
    overflow: visible;
}

.bounty-quest-list.compact::-webkit-scrollbar {
    width: 7px;
}

.bounty-quest-list.compact::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.25);
    border-radius: 10px;
}

.bounty-quest-list.compact::-webkit-scrollbar-track {
    background: transparent;
}

.bounty-quest-item.completed {
    opacity: 0.72;
}

.bounty-quest-status {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
}

.bounty-quest-item.completed .bounty-quest-status {
    color: var(--success);
}

.bounty-quest-copy>div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bounty-quest-copy small,
.bounty-quest-cost small,
.bounty-transaction-copy small,
.bounty-transaction-cost small {
    color: var(--text-secondary);
    display: block;
}

.bounty-difficulty {
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    text-transform: uppercase;
}

.bounty-difficulty.basic {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.bounty-difficulty.intermediate {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.bounty-difficulty.advanced {
    background: rgba(0, 229, 255, 0.14);
    color: #67e8f9;
}

.bounty-difficulty.master {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

.bounty-quest-cost,
.bounty-transaction-cost {
    text-align: right;
}

.bounty-transaction-item {
    grid-template-columns: 38px minmax(0, 1fr) 110px;
}

.bounty-transaction-icon {
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50%;
    color: #f59e0b;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.bounty-transaction-copy>div:first-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.bounty-transaction-copy a {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-decoration: none;
}

.bounty-transaction-copy p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.bounty-transaction-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.bounty-transaction-links span,
.bounty-unlinked {
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
}

.bounty-unlinked {
    border-color: var(--border-color);
    color: var(--text-muted);
    display: inline-block;
    margin-top: 0.35rem;
}

.bounty-transaction-link-form {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: minmax(180px, 1fr) 110px auto auto;
    margin-top: 0.55rem;
    max-width: 760px;
}

.bounty-unlink-control {
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.4rem;
    min-height: 34px;
    white-space: nowrap;
}

.bounty-unlink-control input {
    accent-color: #ef4444;
    height: 15px;
    width: 15px;
}

.bounty-transaction-link-form select {
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-width: 0;
    outline: none;
    padding: 0.4rem 0.5rem;
}

.bounty-transaction-link-form select:focus {
    border-color: #f59e0b;
}

.bounty-native-select-hidden {
    display: none !important;
}

.bounty-filter-select {
    min-width: 0;
    position: relative;
    width: 100%;
}

.bounty-filter-select-trigger {
    align-items: center;
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: space-between;
    min-height: 34px;
    min-width: 0;
    outline: none;
    padding: 0.4rem 0.5rem;
    text-align: left;
    width: 100%;
}

.bounty-filter-select-trigger:focus,
.bounty-filter-select.open .bounty-filter-select-trigger {
    border-color: #f59e0b;
}

.bounty-filter-select-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bounty-filter-select-trigger i {
    color: var(--text-secondary);
    flex: 0 0 auto;
    font-size: 0.76rem;
    transition: transform 0.16s ease;
}

.bounty-filter-select.open .bounty-filter-select-trigger i {
    transform: rotate(180deg);
}

.bounty-filter-select-panel {
    background: #090d15;
    border: 1px solid rgba(245, 158, 11, 0.36);
    border-radius: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    left: 0;
    margin-top: 0.25rem;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
}

.bounty-filter-select-search {
    background: rgba(15, 23, 42, 0.92);
    border: 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    outline: none;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.bounty-filter-select-search:focus {
    border-bottom-color: #f59e0b;
}

.bounty-filter-select-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 0.25rem;
}

.bounty-filter-select-option {
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    display: block;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    text-align: left;
    width: 100%;
}

.bounty-filter-select-option:hover,
.bounty-filter-select-option:focus {
    background: rgba(245, 158, 11, 0.12);
    outline: none;
}

.bounty-filter-select-option.selected {
    background: rgba(6, 182, 212, 0.14);
    color: #67e8f9;
}

.bounty-filter-select-empty {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.8rem 0.6rem;
    text-align: center;
}

.bounty-transaction-link-form button {
    padding: 0.4rem 0.65rem;
}

.bounty-list-empty {
    color: var(--text-secondary);
    padding: 1.5rem 1rem;
    text-align: center;
}

.bounty-hidden-tx-note {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0.7rem 1rem;
}

@media (max-width: 1050px) {
    .bounty-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .bounty-command-bar,
    .bounty-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bounty-summary>div:nth-child(2) {
        border-right: 0;
    }

    .bounty-summary>div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }

    .bounty-quest-form,
    .bounty-transaction-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bounty-transaction-link-form {
        grid-template-columns: minmax(160px, 1fr) 110px;
    }

    .bounty-transaction-link-form button,
    .bounty-unlink-control {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {

    body.bounty-view .mobile-filter-bar,
    body.bounty-view .mobile-action-bar {
        display: none;
    }

    .bounty-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .bounty-section-heading {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .bounty-checkbox-control {
        white-space: normal;
    }

    .bounty-quest-expand-btn span {
        display: none;
    }

    .bounty-quest-expand-btn,
    .bounty-quest-import-btn {
        justify-content: center;
        padding: 0;
        width: 34px;
    }

    .bounty-quest-import-btn span {
        display: none;
    }

    .bounty-layout {
        grid-template-columns: 1fr;
    }

    .bounty-wallet-panel {
        min-height: 0;
    }

    .bounty-command-bar,
    .bounty-summary,
    .bounty-quest-form,
    .bounty-transaction-form {
        grid-template-columns: 1fr;
    }

    .floating-pagination {
        bottom: calc(154px + env(safe-area-inset-bottom, 0px));
        overflow-x: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        z-index: 930;
    }

    body.mobile-drawer-open .floating-pagination,
    body.mobile-sheet-open .floating-pagination {
        display: none;
    }

    .floating-page-btn,
    .floating-page-ellipsis {
        height: 30px;
        min-width: 30px;
    }
    .axie-pagination {
        flex-wrap: wrap;
    }

    .pagination-status {
        flex: 1 0 100%;
        order: -1;
    }

    .bounty-summary>div {
        border-bottom: 1px solid var(--border-color);
        border-right: 0;
    }

    .bounty-summary>div:last-child {
        border-bottom: 0;
    }

    .bounty-quest-item {
        grid-template-columns: 30px minmax(0, 1fr) 80px;
    }

    .bounty-transaction-item {
        align-items: flex-start;
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .bounty-transaction-cost {
        grid-column: 2;
        text-align: left;
    }

    .bounty-transaction-link-form {
        grid-template-columns: 1fr;
    }

    .bounty-transaction-link-form button,
    .bounty-unlink-control {
        grid-column: auto;
    }

    .bounty-quest-delete {
        display: none;
    }
}

/* Wallet META */
.wallet-meta-nav-btn,
.wallet-meta-back-btn,
.wallet-meta-refresh-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.32);
    border-radius: 8px;
    color: #c4b5fd;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 42px;
    padding: 0 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wallet-meta-nav-btn:hover,
.wallet-meta-nav-btn.active,
.wallet-meta-back-btn:hover,
.wallet-meta-refresh-btn:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.wallet-meta-refresh-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

body.wallet-meta-view .dashboard-layout,
body.wallet-meta-view .bounty-page,
body.wallet-meta-view .mementos-page {
    display: none;
}

/* Wallet Eventos */
body.wallet-events-view .dashboard-layout,
body.wallet-events-view .origin-events-page,
body.wallet-events-view .bounty-page,
body.wallet-events-view .wallet-meta-page,
body.wallet-events-view .mementos-page {
    display: none !important;
}

.wallet-events-page {
    --wallet-events-accent: #34d399;
    --wallet-events-accent-strong: #10b981;
    --wallet-events-violet: #8b5cf6;
    --wallet-events-panel: rgba(12, 18, 29, 0.86);
    min-height: 72vh;
}

.wallet-events-toolbar {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 1.1rem;
}

.wallet-events-toolbar h2 {
    color: #f7fbff;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
}

.wallet-events-toolbar p {
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.wallet-events-back-btn,
.wallet-events-icon-btn {
    align-items: center;
    background: rgba(10, 16, 26, 0.75);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 10px;
    color: #dce9e6;
    cursor: pointer;
    display: inline-flex;
    font: 700 0.82rem var(--font-sans);
    gap: 0.45rem;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.85rem;
}

.wallet-events-icon-btn {
    min-width: 40px;
    padding: 0;
}

.wallet-events-back-btn:hover,
.wallet-events-icon-btn:hover {
    border-color: var(--wallet-events-accent);
    color: var(--wallet-events-accent);
}

.wallet-events-status {
    background: rgba(52, 211, 153, 0.11);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 999px;
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
}

.wallet-events-message {
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 10px;
    color: #bfdbfe;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
}

.wallet-events-message.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(52, 211, 153, 0.34);
    color: #a7f3d0;
}

.wallet-events-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(248, 113, 113, 0.36);
    color: #fecaca;
}

#wallet-events-root {
    min-height: 28rem;
    position: relative;
}

#wallet-events-root.is-loading::after {
    background: linear-gradient(90deg, transparent, var(--wallet-events-accent), transparent);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: -2px;
    animation: wallet-events-loading 1.2s linear infinite;
}

@keyframes wallet-events-loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.wallet-events-loading,
.wallet-events-empty {
    align-items: center;
    background: var(--wallet-events-panel);
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    text-align: center;
}

.wallet-events-loading i,
.wallet-events-empty > i {
    color: var(--wallet-events-accent);
    font-size: 2rem;
}

.wallet-events-loading strong,
.wallet-events-empty h4 {
    color: #effaf7;
    font-size: 1.05rem;
    margin: 0;
}

.wallet-events-empty p {
    margin: 0;
    max-width: 34rem;
}

.wallet-events-hero {
    align-items: center;
    background:
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.18), transparent 30%),
        linear-gradient(130deg, rgba(12, 24, 31, 0.95), rgba(13, 19, 32, 0.9));
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 18px;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2.3rem);
    position: relative;
}

.wallet-events-hero::after {
    border: 1px solid rgba(52, 211, 153, 0.12);
    border-radius: 50%;
    content: '';
    height: 16rem;
    position: absolute;
    right: -5rem;
    top: -7rem;
    width: 16rem;
}

.wallet-events-eyebrow {
    color: var(--wallet-events-accent);
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.wallet-events-hero h3,
.wallet-events-wallet-header h3,
.wallet-events-analysis-header h3 {
    color: #f5fbfa;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin: 0;
}

.wallet-events-hero p,
.wallet-events-wallet-header p,
.wallet-events-analysis-header p {
    color: var(--text-secondary);
    margin: 0.55rem 0 0;
}

.wallet-events-hero-actions,
.wallet-events-wallet-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.wallet-events-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font: 800 0.8rem var(--font-sans);
    gap: 0.45rem;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.95rem;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wallet-events-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.wallet-events-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.wallet-events-btn.primary {
    background: linear-gradient(135deg, var(--wallet-events-accent), var(--wallet-events-accent-strong));
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
    color: #03261b;
}

.wallet-events-btn.secondary {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
    color: #a7f3d0;
}

.wallet-events-btn.ghost {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--text-secondary);
}

.wallet-events-btn.wide {
    width: 100%;
}

.wallet-events-summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 1rem 0;
}

.wallet-events-summary-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallet-events-summary-grid.analysis-summary {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.wallet-events-summary-card {
    background: linear-gradient(160deg, rgba(18, 25, 39, 0.92), rgba(10, 15, 25, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    min-height: 7rem;
    padding: 0.9rem;
}

.wallet-events-summary-card > span {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.4rem;
}

.wallet-events-summary-card > span i {
    color: var(--wallet-events-accent);
}

.wallet-events-summary-card > strong {
    color: #f8fafc;
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-top: auto;
    overflow-wrap: anywhere;
}

.wallet-events-summary-card > small {
    color: #738095;
    font-size: 0.64rem;
    margin-top: 0.15rem;
}

.wallet-events-panel {
    background: var(--wallet-events-panel);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 15px;
    margin-top: 1rem;
    overflow: hidden;
}

.wallet-events-panel-heading {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    min-height: 4rem;
    padding: 0.75rem 1rem;
}

.wallet-events-panel-heading div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wallet-events-panel-heading span {
    color: #edf7f5;
    font-weight: 800;
}

.wallet-events-panel-heading strong {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
}

.wallet-events-wallet-list {
    display: flex;
    flex-direction: column;
}

.wallet-events-wallet-row {
    align-items: stretch;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    padding: 0.25rem 0.4rem;
}

.wallet-events-wallet-row:last-child {
    border-bottom: 0;
}

.wallet-events-wallet-main {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #e5eeed;
    cursor: pointer;
    display: grid;
    flex: 1;
    gap: 0.7rem;
    grid-template-columns: minmax(13rem, 1.7fr) repeat(3, minmax(6rem, 0.75fr)) minmax(7rem, auto);
    min-width: 0;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.wallet-events-wallet-main:hover {
    background: rgba(52, 211, 153, 0.05);
}

.wallet-events-wallet-main > span:not(.wallet-events-wallet-identity, .wallet-events-wallet-avatar, .wallet-events-status-pill) {
    display: flex;
    flex-direction: column;
}

.wallet-events-wallet-main > span > small {
    color: #748195;
    font-size: 0.63rem;
    margin-top: 0.15rem;
}

.wallet-events-wallet-avatar {
    align-items: center;
    background: linear-gradient(140deg, rgba(52, 211, 153, 0.18), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 8px;
    color: #6ee7b7;
    display: inline-flex;
    font-size: 0.78rem;
    height: 2.25rem;
    justify-content: center;
    min-width: 2.25rem;
    width: 2.25rem;
}

.wallet-events-wallet-avatar.large {
    border-radius: 14px;
    font-size: 1.35rem;
    height: 3.7rem;
    min-width: 3.7rem;
    width: 3.7rem;
}

.wallet-events-wallet-identity {
    align-items: center;
    display: grid;
    gap: 0 0.6rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.wallet-events-wallet-identity .wallet-events-wallet-avatar {
    grid-row: span 2;
}

.wallet-events-wallet-identity strong,
.wallet-events-wallet-identity small {
    grid-column: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-events-status-pill {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #b7c2d0;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 900;
    justify-content: center;
    padding: 0.3rem 0.5rem;
    text-transform: uppercase;
}

.wallet-events-wallet-main .wallet-events-status-pill {
    justify-self: start;
    padding: 0.22rem 0.5rem;
    width: auto;
}

.wallet-events-status-pill.success,
.wallet-events-status-pill.sincronizada {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(52, 211, 153, 0.24);
    color: #6ee7b7;
}

.wallet-events-status-pill.running {
    border-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

.wallet-events-status-pill.failed {
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

.wallet-events-row-actions {
    align-items: center;
    display: flex;
    gap: 0.1rem;
    padding: 0 0.3rem;
}

.wallet-events-row-actions button,
.wallet-events-modal header button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #8290a3;
    cursor: pointer;
    height: 1.75rem;
    width: 1.75rem;
}

.wallet-events-row-actions button {
    font-size: 0.75rem;
}

.wallet-events-modal header button {
    height: 2rem;
    width: 2rem;
}

.wallet-events-row-actions button:hover {
    background: rgba(52, 211, 153, 0.08);
    color: var(--wallet-events-accent);
}

.wallet-events-row-actions button.danger:hover {
    background: rgba(239, 68, 68, 0.09);
    color: #f87171;
}

.wallet-events-wallet-header,
.wallet-events-analysis-header {
    align-items: center;
    background: linear-gradient(130deg, rgba(14, 24, 31, 0.96), rgba(15, 19, 32, 0.9));
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 15px;
    display: flex;
    gap: 0.9rem;
    padding: 1rem;
}

.wallet-events-wallet-header > div:nth-of-type(1),
.wallet-events-analysis-header > div {
    flex: 1;
    min-width: 0;
}

.wallet-events-wallet-header p,
.wallet-events-analysis-header p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-events-wallet-header-actions {
    align-items: center;
}

.wallet-events-wallet-header-actions > span {
    display: flex;
    flex-direction: column;
    margin-right: 0.5rem;
    text-align: right;
}

.wallet-events-wallet-header-actions small {
    color: #748195;
    font-size: 0.62rem;
}

.wallet-events-wallet-header-actions strong {
    color: #dce7e5;
    font-size: 0.75rem;
}

.wallet-events-sync {
    align-items: center;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(13rem, 1fr) minmax(8rem, 2fr) auto;
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
}

.wallet-events-sync.done {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(52, 211, 153, 0.2);
}

.wallet-events-sync > div:first-child,
.wallet-events-sync > div:first-child span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wallet-events-sync > div:first-child span {
    align-items: center;
    color: #dce9f7;
    flex-direction: row;
    font-size: 0.78rem;
}

.wallet-events-sync small {
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.wallet-events-progress {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    height: 0.38rem;
    overflow: hidden;
}

.wallet-events-progress i {
    background: linear-gradient(90deg, #60a5fa, var(--wallet-events-accent));
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.35s ease;
}

.wallet-events-event-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1rem;
}

.wallet-events-event-card {
    background: rgba(19, 26, 41, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 13px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.wallet-events-event-card:hover {
    border-color: rgba(52, 211, 153, 0.42);
    transform: translateY(-2px);
}

.wallet-events-event-image {
    align-items: center;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(12, 18, 29, 0.9));
    display: flex;
    height: 9rem;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wallet-events-event-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wallet-events-event-placeholder {
    color: #a78bfa;
    font-size: 2.6rem;
}

.wallet-events-event-image > span:last-child {
    background: rgba(5, 12, 20, 0.84);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    bottom: 0.65rem;
    color: #6ee7b7;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 0.3rem 0.5rem;
    position: absolute;
    right: 0.65rem;
}

.wallet-events-event-body {
    padding: 0.85rem;
}

.wallet-events-event-body > small {
    color: var(--wallet-events-accent);
    font-size: 0.6rem;
    font-weight: 900;
}

.wallet-events-event-body h4 {
    color: #f1f7f6;
    font-size: 1rem;
    margin: 0.25rem 0;
}

.wallet-events-event-body p {
    color: var(--text-secondary);
    display: -webkit-box;
    font-size: 0.7rem;
    line-height: 1.45;
    min-height: 2.1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wallet-events-event-meta {
    display: flex;
    gap: 0.7rem;
    margin: 0.7rem 0;
}

.wallet-events-event-meta span {
    color: #8290a3;
    font-size: 0.62rem;
}

.wallet-events-event-meta i {
    color: #a78bfa;
    margin-right: 0.25rem;
}

.wallet-events-history-list {
    display: flex;
    flex-direction: column;
    padding: 0.45rem;
}

.wallet-events-history-list > div {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: #aeb9c7;
    display: grid;
    font-size: 0.7rem;
    gap: 0.75rem;
    grid-template-columns: 6.5rem 1.1fr 0.7fr 0.5fr 1.5fr;
    padding: 0.65rem;
}

.wallet-events-history-list > div:last-child {
    border-bottom: 0;
}

.wallet-events-history-list small {
    color: #748195;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-events-tabs {
    background: rgba(12, 18, 29, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 11px;
    display: flex;
    gap: 0.3rem;
    margin: 1rem 0;
    overflow-x: auto;
    padding: 0.35rem;
}

.wallet-events-tabs button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #8290a3;
    cursor: pointer;
    flex: 1;
    font: 800 0.72rem var(--font-sans);
    min-height: 36px;
    min-width: max-content;
    padding: 0 0.8rem;
}

.wallet-events-tabs button.active {
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
}

.wallet-events-filters {
    align-items: end;
    background: rgba(12, 18, 29, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 13px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(7, minmax(5.5rem, 1fr));
    padding: 0.85rem;
}

.wallet-events-filters label,
.wallet-events-modal label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.wallet-events-filters label > span,
.wallet-events-modal label > span {
    color: #8895a7;
    font-size: 0.62rem;
    font-weight: 800;
}

.wallet-events-filters input,
.wallet-events-filters select,
.wallet-events-modal input,
.wallet-events-modal textarea {
    background: rgba(6, 11, 19, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #e5eeed;
    font: 0.72rem var(--font-sans);
    min-height: 36px;
    outline: 0;
    padding: 0 0.65rem;
}

.wallet-events-modal textarea {
    padding: 0.65rem;
    resize: vertical;
}

.wallet-events-filters input:focus,
.wallet-events-filters select:focus,
.wallet-events-modal input:focus,
.wallet-events-modal textarea:focus {
    border-color: var(--wallet-events-accent);
}

.wallet-events-filters label.check,
.wallet-events-modal label.check {
    align-items: center;
    flex-direction: row;
    min-height: 36px;
}

.wallet-events-filters label.check input,
.wallet-events-modal label.check input {
    accent-color: var(--wallet-events-accent);
    min-height: auto;
}

.wallet-events-result-count {
    color: #8290a3;
    font-size: 0.7rem;
    margin: 0.8rem 0;
}

.wallet-events-result-count strong {
    color: #dce9e6;
}

.wallet-events-result-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-events-axie-card {
    background: linear-gradient(160deg, rgba(18, 25, 39, 0.94), rgba(9, 14, 23, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    overflow: hidden;
}

.wallet-events-axie-card.eligible {
    border-color: rgba(52, 211, 153, 0.26);
}

.wallet-events-axie-image {
    align-items: center;
    background: radial-gradient(circle at 50% 70%, rgba(52, 211, 153, 0.16), transparent 55%);
    display: flex;
    height: 13rem;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.wallet-events-axie-image > i {
    color: rgba(52, 211, 153, 0.55);
    font-size: 3rem;
}

.wallet-events-axie-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.wallet-events-rank,
.wallet-events-eligibility {
    background: rgba(5, 11, 18, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #c8d2dd;
    font-size: 0.62rem;
    font-weight: 900;
    left: 0.65rem;
    padding: 0.3rem 0.5rem;
    position: absolute;
    top: 0.65rem;
}

.wallet-events-eligibility {
    color: #6ee7b7;
    left: auto;
    right: 0.65rem;
}

.ineligible .wallet-events-eligibility {
    color: #fca5a5;
}

.wallet-events-eligibility i {
    margin-right: 0.3rem;
}

.wallet-events-axie-body {
    padding: 0.8rem;
}

.wallet-events-axie-body > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.wallet-events-axie-body > div:first-child span:first-child {
    display: flex;
    flex-direction: column;
}

.wallet-events-axie-body small {
    color: #748195;
    font-size: 0.58rem;
}

.wallet-events-axie-body strong {
    color: #edf7f5;
}

.wallet-events-class {
    background: rgba(139, 92, 246, 0.11);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    color: #c4b5fd;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.3rem 0.5rem;
}

.wallet-events-axie-properties {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0.7rem 0;
}

.wallet-events-axie-properties span {
    background: rgba(148, 163, 184, 0.05);
    border-radius: 7px;
    color: #8290a3;
    display: flex;
    flex-direction: column;
    font-size: 0.58rem;
    padding: 0.4rem;
}

.wallet-events-score-row {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
}

.wallet-events-score,
.wallet-events-chance {
    background: rgba(6, 11, 19, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    padding: 0.55rem;
}

.wallet-events-score strong,
.wallet-events-chance strong {
    font: 800 1.25rem var(--font-display);
}

.wallet-events-score.excellent strong { color: #6ee7b7; }
.wallet-events-score.good strong { color: #93c5fd; }
.wallet-events-score.medium strong { color: #fde68a; }
.wallet-events-score.low strong { color: #cbd5e1; }
.wallet-events-chance strong { color: #c4b5fd; }

.wallet-events-meta-projection {
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(14, 165, 233, 0.06));
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 10px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 0.7rem;
    padding: 0.6rem;
}

.wallet-events-meta-projection.potential {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.13), rgba(139, 92, 246, 0.1));
    border-color: rgba(52, 211, 153, 0.32);
}

.wallet-events-meta-projection.not-meta,
.wallet-events-meta-projection.unavailable {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.15);
}

.wallet-events-meta-projection.partial {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.22);
}

.wallet-events-meta-icon {
    align-items: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 9px;
    color: #c4b5fd;
    display: flex;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.wallet-events-meta-projection.potential .wallet-events-meta-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.wallet-events-meta-projection > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wallet-events-meta-projection > span:nth-child(2) strong {
    color: #d8ccff;
    font-size: 0.68rem;
}

.wallet-events-meta-projection.potential > span:nth-child(2) strong {
    color: #6ee7b7;
}

.wallet-events-meta-projection em {
    color: #9ba8ba;
    font-size: 0.57rem;
    font-style: normal;
    margin-top: 0.1rem;
}

.wallet-events-meta-assumption {
    color: #9ba8ba;
    display: flex;
    flex-direction: column;
    font-size: 0.58rem;
    max-width: 8rem;
    text-align: right;
}

.wallet-events-meta-assumption small {
    color: #c4b5fd;
    margin-top: 0.15rem;
}

.wallet-events-meta-chip {
    align-items: center;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 9px;
    color: #94a3b8;
    display: inline-flex;
    gap: 0.4rem;
    min-width: 10.5rem;
    padding: 0.42rem 0.5rem;
}

.wallet-events-meta-chip.potential {
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.wallet-events-meta-chip.partial {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.wallet-events-meta-chip > span {
    display: flex;
    flex-direction: column;
}

.wallet-events-meta-chip strong {
    color: inherit;
    font-size: 0.58rem;
}

.wallet-events-meta-chip small {
    color: #8290a3;
    margin-top: 0.1rem;
}

.wallet-events-meta-na {
    color: #66758a;
    font-size: 0.62rem;
}

.wallet-events-match-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.7rem;
}

.wallet-events-match-list > span {
    align-items: center;
    background: rgba(148, 163, 184, 0.04);
    border-radius: 7px;
    color: #aab5c4;
    display: flex;
    font-size: 0.62rem;
    gap: 0.3rem;
    padding: 0.4rem;
}

.wallet-events-match-list > span.common i { color: #60a5fa; }
.wallet-events-match-list > span.rare i { color: #c084fc; }
.wallet-events-match-list > span strong { margin-left: auto; }

.wallet-events-rule-warning {
    background: rgba(239, 68, 68, 0.08);
    border-radius: 7px;
    color: #fca5a5;
    font-size: 0.62rem;
    margin-top: 0.6rem;
    padding: 0.5rem;
}

.wallet-events-rule-warning i { margin-right: 0.35rem; }

.wallet-events-pagination {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    margin: 1rem 0;
}

.wallet-events-pagination button {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 8px;
    color: #6ee7b7;
    cursor: pointer;
    height: 2.2rem;
    width: 2.2rem;
}

.wallet-events-pagination button:disabled { cursor: not-allowed; opacity: 0.35; }
.wallet-events-pagination span { color: #8290a3; font-size: 0.7rem; }

.wallet-events-table-wrap {
    overflow-x: auto;
}

.wallet-events-table {
    border-collapse: collapse;
    min-width: 56rem;
    width: 100%;
}

.wallet-events-table th,
.wallet-events-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    color: #aeb9c7;
    font-size: 0.7rem;
    padding: 0.75rem;
    text-align: left;
}

.wallet-events-table th {
    color: #748195;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-events-table td:first-child {
    display: flex;
    flex-direction: column;
}

.wallet-events-chance-badge,
.wallet-events-rarity {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 999px;
    color: #6ee7b7;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 0.3rem 0.5rem;
}

.wallet-events-rarity.rare {
    background: rgba(139, 92, 246, 0.09);
    border-color: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
}

.wallet-events-statistics-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 1fr;
}

.wallet-events-statistics-grid .wallet-events-panel { margin-top: 0; }
.wallet-events-statistics-grid.history { grid-template-columns: 1fr 1fr; }

.wallet-events-bars {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
}

.wallet-events-bars > div {
    align-items: center;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 4rem 1fr 2rem;
}

.wallet-events-bars span,
.wallet-events-bars strong {
    color: #aeb9c7;
    font-size: 0.68rem;
}

.wallet-events-bars i {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 999px;
    height: 0.45rem;
    overflow: hidden;
}

.wallet-events-bars b {
    background: linear-gradient(90deg, var(--wallet-events-accent), var(--wallet-events-violet));
    display: block;
    height: 100%;
}

.wallet-events-top-axie > div:last-child {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
}

.wallet-events-top-axie img,
.wallet-events-top-axie > div:last-child > i {
    background: rgba(52, 211, 153, 0.08);
    border-radius: 10px;
    height: 4rem;
    object-fit: contain;
    width: 4rem;
}

.wallet-events-top-axie > div:last-child > i {
    align-items: center;
    color: var(--wallet-events-accent);
    display: flex;
    justify-content: center;
}

.wallet-events-top-axie span { display: flex; flex: 1; flex-direction: column; }
.wallet-events-top-axie span strong { color: #edf7f5; }
.wallet-events-top-axie span small { color: #748195; }
.wallet-events-top-axie b { color: #6ee7b7; font: 800 1.5rem var(--font-display); }

.wallet-events-modal-backdrop {
    align-items: center;
    background: rgba(2, 6, 12, 0.78);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 120;
}

.wallet-events-modal {
    background: #101722;
    border: 1px solid rgba(52, 211, 153, 0.26);
    border-radius: 15px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 32rem;
    padding: 1rem;
    width: 100%;
}

.wallet-events-modal header {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
}

.wallet-events-modal header div { display: flex; flex-direction: column; }
.wallet-events-modal header span { color: var(--wallet-events-accent); font-size: 0.65rem; font-weight: 900; text-transform: uppercase; }
.wallet-events-modal header strong { color: #eef7f5; margin-top: 0.2rem; }
.wallet-events-modal footer { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.25rem; }

@media (max-width: 1180px) {
    .wallet-events-summary-grid,
    .wallet-events-summary-grid.analysis-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wallet-events-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-events-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wallet-events-wallet-main { grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(5rem, 0.7fr)) minmax(7rem, auto); }
    .wallet-events-wallet-main > span:nth-of-type(4) { display: none !important; }
}

@media (max-width: 900px) {
    body.wallet-events-view .mobile-filter-bar,
    body.wallet-events-view .mobile-action-bar { display: none !important; }
    .wallet-events-toolbar { grid-template-columns: auto 1fr; }
    .wallet-events-status { grid-column: 2; justify-self: start; }
    .wallet-events-hero,
    .wallet-events-wallet-header,
    .wallet-events-analysis-header { align-items: flex-start; flex-wrap: wrap; }
    .wallet-events-hero-actions,
    .wallet-events-wallet-header-actions { width: 100%; }
    .wallet-events-wallet-header-actions > span { margin-right: auto; text-align: left; }
    .wallet-events-summary-grid,
    .wallet-events-summary-grid.compact,
    .wallet-events-summary-grid.analysis-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wallet-events-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-events-wallet-main { grid-template-columns: minmax(11rem, 1.5fr) 5rem minmax(6.5rem, auto); }
    .wallet-events-wallet-main > span:nth-of-type(3),
    .wallet-events-wallet-main > span:nth-of-type(4) { display: none !important; }
    .wallet-events-sync { grid-template-columns: 1fr auto; }
    .wallet-events-progress { grid-column: span 2; grid-row: 2; }
    .wallet-events-statistics-grid,
    .wallet-events-statistics-grid.history { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wallet-events-toolbar p { display: none; }
    .wallet-events-toolbar { align-items: start; }
    .wallet-events-hero-actions .wallet-events-btn,
    .wallet-events-wallet-header-actions .wallet-events-btn { flex: 1; }
    .wallet-events-summary-grid,
    .wallet-events-summary-grid.compact,
    .wallet-events-summary-grid.analysis-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-events-summary-card { min-height: 6.3rem; }
    .wallet-events-wallet-row { align-items: center; }
    .wallet-events-wallet-main { grid-template-columns: minmax(0, 1fr); }
    .wallet-events-wallet-main > span:not(.wallet-events-wallet-identity) { display: none !important; }
    .wallet-events-row-actions button:first-child { display: none; }
    .wallet-events-event-grid,
    .wallet-events-result-grid { grid-template-columns: 1fr; }
    .wallet-events-event-image { height: 8rem; }
    .wallet-events-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-events-filters .wallet-events-btn { width: 100%; }
    .wallet-events-axie-image { height: 12rem; }
    .wallet-events-meta-projection { grid-template-columns: auto minmax(0, 1fr); }
    .wallet-events-meta-assumption {
        grid-column: 1 / -1;
        max-width: none;
        text-align: left;
    }
    .wallet-events-history-list > div { grid-template-columns: 5.5rem 1fr; }
    .wallet-events-history-list > div > span:nth-of-type(n+2),
    .wallet-events-history-list > div > small { display: none; }
    .wallet-events-wallet-header .wallet-events-wallet-avatar { display: none; }
    .wallet-events-modal footer .wallet-events-btn { flex: 1; }
}

/* Eventos Origin */
body.origin-events-view .dashboard-layout,
body.origin-events-view .bounty-page,
body.origin-events-view .wallet-meta-page,
body.origin-events-view .mementos-page {
    display: none !important;
}

/* Controle de Acesso */
body.access-control-view .dashboard-layout,
body.access-control-view .origin-events-page,
body.access-control-view .wallet-events-page,
body.access-control-view .bounty-page,
body.access-control-view .wallet-meta-page,
body.access-control-view .mementos-page {
    display: none !important;
}

.access-control-page {
    padding: 20px 0 56px;
}

.access-control-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.access-control-toolbar h2,
.access-control-section h3 {
    margin: 0;
}

.access-control-toolbar p,
.access-section-heading p {
    margin: 5px 0 0;
    color: var(--text-secondary);
}

.access-control-back-btn,
.access-section-heading button,
.access-editor-card button {
    border: 1px solid rgba(139, 107, 255, .45);
    border-radius: 9px;
    background: rgba(124, 92, 255, .12);
    color: #d8cbff;
    min-height: 40px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 700;
}

.access-editor-card button.primary {
    background: #7c5cff;
    color: #fff;
}

.access-control-mode,
.access-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(124, 92, 255, .15);
    color: #c9baff;
    font-size: .72rem;
    font-weight: 800;
}

.access-status-active { background: rgba(24, 204, 150, .14); color: #32d9a5; }
.access-status-inactive,
.access-status-suspended { background: rgba(255, 76, 97, .13); color: #ff6a7d; }
.access-status-draft,
.access-status-needs_review,
.access-status-degraded { background: rgba(255, 183, 42, .13); color: #ffc34d; }

.access-control-message {
    margin: 12px 0;
    border-radius: 9px;
    padding: 11px 14px;
    background: rgba(69, 177, 255, .12);
    color: #89cfff;
}

.access-control-message.error { background: rgba(255, 76, 97, .12); color: #ff8796; }
.access-control-message.success { background: rgba(24, 204, 150, .12); color: #42dbad; }

.access-control-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px 0 14px;
}

.access-control-tabs button {
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 10px 13px;
    cursor: pointer;
}

.access-control-tabs button.active {
    border-color: #7c5cff;
    color: #fff;
    background: rgba(124, 92, 255, .18);
}

.access-control-tabs i { margin-right: 7px; }

.access-control-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.access-control-summary article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 9px;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--card-bg);
    padding: 13px;
}

.access-control-summary article i { color: #9a7fff; grid-row: span 2; }
.access-control-summary article span { color: var(--text-secondary); font-size: .72rem; text-transform: uppercase; }
.access-control-summary article strong { font-size: 1.35rem; }

.access-control-content {
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--card-bg);
    padding: 16px;
}

.access-section-heading,
.access-editor-card header,
.access-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.access-table-wrap { overflow-x: auto; margin-top: 15px; }
.access-table { width: 100%; border-collapse: collapse; }
.access-table th,
.access-table td { border-bottom: 1px solid var(--border-color); padding: 11px; text-align: left; }
.access-table th { color: var(--text-secondary); font-size: .73rem; text-transform: uppercase; }

.access-list-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, .65fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: rgba(4, 7, 18, .24);
    padding: 12px;
}

.access-list-controls-compact {
    grid-template-columns: minmax(260px, 1fr) auto auto;
}

.access-list-controls label {
    display: grid;
    gap: 5px;
    color: var(--text-secondary);
    font-size: .76rem;
    font-weight: 700;
}

.access-list-controls input,
.access-list-controls select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 0 11px;
}

.access-list-controls button,
.access-pagination button {
    min-height: 42px;
    border: 1px solid rgba(154, 127, 255, .45);
    border-radius: 8px;
    background: rgba(154, 127, 255, .15);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    padding: 0 14px;
}

.access-list-controls button.secondary {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, .04);
}

.access-category-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.access-category,
.access-permission-group {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(4, 7, 18, .22);
}

.access-category > header,
.access-permission-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(154, 127, 255, .07);
    padding: 10px 12px;
}

.access-category > header div,
.access-permission-group > header div {
    display: grid;
    gap: 2px;
}

.access-category > header span,
.access-permission-group > header span {
    color: var(--text-secondary);
    font-size: .78rem;
}

.access-count-badge {
    min-width: 34px;
    border: 1px solid rgba(154, 127, 255, .35);
    border-radius: 999px;
    color: #c9baff !important;
    font-weight: 800;
    padding: 3px 8px;
    text-align: center;
}

.access-category .access-table-wrap {
    margin-top: 0;
}

.access-permission-table td:first-child {
    min-width: 210px;
}

.access-permission-table td strong,
.access-permission-table td small {
    display: block;
}

.access-permission-table td small {
    margin-top: 3px;
    color: var(--text-secondary);
}

.access-empty-state {
    margin-top: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    padding: 28px;
    text-align: center;
}

.access-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: .82rem;
}

.access-pagination > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-pagination button {
    width: 42px;
    padding: 0;
}

.access-pagination button:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.access-editor-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.access-editor-card {
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: rgba(4, 7, 18, .28);
    padding: 14px;
}

.access-editor-card header div { display: grid; gap: 3px; }
.access-editor-card header span,
.access-editor-card p { color: var(--text-secondary); font-size: .84rem; }
.access-editor-card details { margin: 10px 0; }
.access-editor-card summary { color: #c9baff; cursor: pointer; font-weight: 700; margin-bottom: 9px; }

.access-role-permissions {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(4, 7, 18, .18);
}

.access-role-permissions > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 12px;
}

.access-role-permissions > summary::-webkit-details-marker {
    display: none;
}

.access-role-permissions > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.access-role-permissions > summary > strong {
    color: var(--text-secondary);
    font-size: .76rem;
}

.access-role-permissions[open] > summary {
    border-bottom: 1px solid var(--border-color);
}

.access-role-permission-groups {
    display: grid;
    gap: 10px;
    max-height: 65vh;
    overflow-y: auto;
    padding: 12px;
}

.access-permission-group > header {
    padding: 8px 10px;
}

.access-permission-group .access-check-grid {
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 10px;
}

.access-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0;
    border-top: 1px solid var(--border-color);
    background: rgba(11, 14, 26, .96);
    padding: 10px 12px;
}

.access-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 7px;
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}

.access-check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 8px;
}

.access-check-grid label span { display: grid; gap: 2px; min-width: 0; }
.access-check-grid label strong { overflow-wrap: anywhere; font-size: .78rem; }
.access-check-grid label small { color: var(--text-secondary); }
.access-card-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }
.access-editor-card select {
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 0 10px;
}

.access-loading { padding: 40px; text-align: center; color: var(--text-secondary); }

.ronin-user-menu .access-control-nav-btn {
    width: 100%;
}

@media (max-width: 900px) {
    .access-control-summary { grid-template-columns: repeat(2, 1fr); }
    .access-control-toolbar { grid-template-columns: 1fr auto; }
    .access-control-toolbar > div { grid-column: 1 / -1; grid-row: 1; }
    .access-list-controls,
    .access-list-controls-compact { grid-template-columns: 1fr 1fr; }
    body.access-control-view .mobile-filter-bar,
    body.access-control-view .mobile-action-bar { display: none !important; }
}

@media (max-width: 600px) {
    .access-list-controls,
    .access-list-controls-compact { grid-template-columns: 1fr; }
    .access-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .access-pagination > div { justify-content: space-between; }
    .access-role-permissions > summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.origin-events-page {
    --origin-accent: #9b7bff;
    --origin-accent-soft: rgba(155, 123, 255, 0.14);
    --origin-panel: rgba(15, 19, 31, 0.82);
    min-height: 70vh;
}

.origin-events-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.origin-events-toolbar h2 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
}

.origin-events-toolbar p,
.origin-command-bar span,
.origin-sidebar-heading span,
.origin-event-header > div > span {
    color: var(--text-secondary);
}

.origin-events-back-btn,
.origin-btn,
.origin-icon-btn,
.origin-sidebar-heading button,
.origin-row-actions button,
.origin-modal header button,
.origin-link-btn {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.origin-events-back-btn,
.origin-btn {
    min-height: 2.65rem;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
}

.origin-events-back-btn:hover,
.origin-btn:hover,
.origin-icon-btn:hover,
.origin-row-actions button:hover {
    border-color: rgba(155, 123, 255, 0.7);
    background: var(--origin-accent-soft);
    transform: translateY(-1px);
}

.origin-btn.primary {
    background: linear-gradient(135deg, #7857ef, #a379ff);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(120, 87, 239, 0.25);
}

.origin-btn.success {
    background: linear-gradient(135deg, #078a63, #10b981);
    border-color: transparent;
}

.origin-btn.danger,
.origin-icon-btn.danger,
.origin-row-actions .danger {
    color: #ff8a94;
    border-color: rgba(239, 68, 68, 0.28);
}

.origin-events-role {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(155, 123, 255, 0.35);
    border-radius: 999px;
    background: var(--origin-accent-soft);
    color: #c8b8ff;
    font: 700 0.72rem var(--font-mono);
    letter-spacing: 0.08em;
}

.origin-events-message {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
}

.origin-events-message.success {
    color: #75e9bd;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

.origin-events-message.error {
    color: #ff9ca4;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

#origin-events-root {
    position: relative;
}

#origin-events-root.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 30;
    cursor: progress;
    border-radius: 1rem;
    background: rgba(10, 13, 20, 0.38);
    backdrop-filter: blur(1px);
}

.origin-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(155, 123, 255, 0.09), rgba(0, 229, 255, 0.03));
}

.origin-command-bar h3 {
    margin-bottom: 0.15rem;
}

.origin-command-actions,
.origin-version-actions,
.origin-form-actions,
.origin-row-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.origin-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.origin-summary article {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--origin-panel);
}

.origin-summary article > i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    color: #bfaeff;
    background: var(--origin-accent-soft);
}

.origin-summary strong,
.origin-summary span {
    display: block;
}

.origin-summary strong {
    font: 700 1.25rem var(--font-mono);
}

.origin-summary span {
    color: var(--text-secondary);
    font-size: 0.76rem;
    white-space: nowrap;
}

.origin-layout {
    display: grid;
    grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.origin-event-sidebar,
.origin-event-main {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--origin-panel);
    overflow: hidden;
    min-height: 36rem;
}

.origin-sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.origin-sidebar-heading strong,
.origin-sidebar-heading span {
    display: block;
}

.origin-sidebar-heading span {
    font-size: 0.75rem;
}

.origin-sidebar-heading button,
.origin-icon-btn,
.origin-row-actions button,
.origin-modal header button {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
}

.origin-event-list {
    padding: 0.6rem;
    display: grid;
    gap: 0.4rem;
    max-height: 65vh;
    overflow: auto;
}

.origin-event-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
}

.origin-event-item:hover,
.origin-event-item.active {
    background: var(--origin-accent-soft);
    border-color: rgba(155, 123, 255, 0.3);
}

.origin-event-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    color: #bfaeff;
    background: rgba(155, 123, 255, 0.12);
}

.origin-event-item strong,
.origin-event-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.origin-event-item small {
    color: var(--text-secondary);
    margin-top: 0.12rem;
}

.origin-event-item .origin-status {
    grid-column: 2;
    justify-self: start;
}

.origin-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: #c9cfdb;
    background: rgba(156, 163, 175, 0.12);
    border: 1px solid rgba(156, 163, 175, 0.2);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.origin-status-published,
.origin-status-active {
    color: #76e7bb;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.23);
}

.origin-status-in-review,
.origin-status-upcoming {
    color: #74dff0;
    background: rgba(0, 181, 255, 0.1);
    border-color: rgba(0, 181, 255, 0.22);
}

.origin-status-approved {
    color: #d2c4ff;
    background: rgba(155, 123, 255, 0.12);
    border-color: rgba(155, 123, 255, 0.25);
}

.origin-status-archived,
.origin-status-finished {
    color: #a7adba;
}

.origin-welcome {
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    padding: 3rem;
}

.origin-welcome > i {
    font-size: 3rem;
    color: #9b7bff;
    margin-bottom: 1rem;
}

.origin-welcome p {
    max-width: 32rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.origin-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.origin-event-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.origin-event-title-row h3 {
    font-size: 1.3rem;
}

.origin-version-actions select {
    min-height: 2.35rem;
    min-width: 10rem;
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0 0.65rem;
    color: var(--text-primary);
    background: #141827;
}

.origin-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0.65rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-color);
}

.origin-tabs button {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 2.3rem;
    padding: 0 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
}

.origin-tabs button:hover,
.origin-tabs button.active {
    color: var(--text-primary);
    border-color: rgba(155, 123, 255, 0.25);
    background: var(--origin-accent-soft);
}

.origin-tab-panel {
    padding: 1rem;
}

.origin-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.origin-overview-grid > article {
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.origin-overview-hero {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(155, 123, 255, 0.15), rgba(0, 229, 255, 0.03)) !important;
}

.origin-overview-hero > span {
    color: #bfaeff;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.origin-overview-hero h3 {
    font: 700 1.6rem var(--font-mono);
    margin: 0.5rem 0;
}

.origin-overview-hero p {
    color: var(--text-secondary);
    max-width: 42rem;
    margin-bottom: 1rem;
}

.origin-overview-hero div {
    display: flex;
    gap: 0.4rem;
}

.origin-overview-stat i,
.origin-overview-stat strong,
.origin-overview-stat span {
    display: block;
}

.origin-overview-stat i {
    color: #bfaeff;
    margin-bottom: 0.6rem;
}

.origin-overview-stat strong {
    font: 700 1.5rem var(--font-mono);
}

.origin-overview-stat span {
    color: var(--text-secondary);
}

.origin-overview-details {
    grid-column: span 3;
}

.origin-overview-details dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.origin-overview-details dl > div {
    padding: 0.7rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
}

.origin-overview-details dt {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.origin-overview-details dd {
    margin-top: 0.2rem;
}

.origin-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.origin-resource-form {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 0.9rem;
}

.origin-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.origin-form-heading span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.origin-link-btn {
    border: 0;
    color: #bfaeff;
    background: transparent;
}

.origin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.origin-form-grid label:not(.origin-check) {
    display: grid;
    gap: 0.35rem;
}

.origin-form-grid label > span {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.origin-form-grid .wide {
    grid-column: 1 / -1;
}

.origin-form-grid input,
.origin-form-grid select,
.origin-form-grid textarea,
.origin-modal input,
.origin-modal select,
.origin-modal textarea {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
    color: var(--text-primary);
    background: #111522;
    font: inherit;
    resize: vertical;
}

.origin-form-grid select[multiple] {
    min-height: 7rem;
}

.origin-form-grid input:focus,
.origin-form-grid select:focus,
.origin-form-grid textarea:focus {
    outline: none;
    border-color: rgba(155, 123, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(155, 123, 255, 0.1);
}

.origin-check {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    align-self: end;
    min-height: 2.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.origin-check input {
    width: 1rem;
    min-height: auto;
}

.origin-form-actions {
    justify-content: flex-end;
    margin-top: 0.9rem;
}

.origin-resource-list {
    display: grid;
    gap: 0.55rem;
}

.origin-resource-list > article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.025);
}

.origin-resource-list > article strong,
.origin-resource-list > article span,
.origin-resource-list > article small {
    display: block;
}

.origin-resource-list > article span,
.origin-resource-list > article small {
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.origin-resource-list a {
    color: #77ddeb;
}

.origin-empty-list,
.origin-inline-warning,
.origin-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
}

.origin-inline-warning {
    color: #f7ce75;
    border-color: rgba(245, 158, 11, 0.3);
    margin-bottom: 0.8rem;
}

.origin-review > header {
    margin: 0 0 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
}

.origin-review > header span,
.origin-review > header strong {
    display: block;
}

.origin-review > header .valid {
    color: #75e9bd;
}

.origin-review > header .invalid {
    color: #ff9ca4;
}

.origin-validation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.origin-validation-list article {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.origin-validation-list article.passed > i {
    color: var(--success);
}

.origin-validation-list article.error > i {
    color: var(--danger);
}

.origin-validation-list article.warning > i {
    color: #f59e0b;
}

.origin-validation-list strong,
.origin-validation-list span {
    display: block;
}

.origin-validation-list strong {
    font-size: 0.75rem;
}

.origin-validation-list span {
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.origin-workflow {
    margin-top: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: rgba(155, 123, 255, 0.035);
}

.origin-workflow-track {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.origin-workflow-track span {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.origin-workflow-track span.active,
.origin-workflow-track span.done {
    color: #d8ceff;
    border-color: rgba(155, 123, 255, 0.5);
    background: var(--origin-accent-soft);
}

.origin-workflow-track span.done {
    color: #75e9bd;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.origin-workflow-track i {
    height: 1px;
    flex: 1;
    min-width: 0.6rem;
    background: var(--border-color);
}

.origin-definition-preview {
    max-height: 28rem;
    overflow: auto;
    margin-top: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    color: #bac5d9;
    background: #090c13;
    font: 0.72rem/1.55 Consolas, monospace;
}

.origin-audit-list {
    display: grid;
    gap: 0.55rem;
}

.origin-audit-list article {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-left: 2px solid rgba(155, 123, 255, 0.45);
    border-radius: 0 0.7rem 0.7rem 0;
    background: rgba(255, 255, 255, 0.025);
}

.origin-audit-list strong,
.origin-audit-list span,
.origin-audit-list small {
    display: block;
}

.origin-audit-list span,
.origin-audit-list small {
    color: var(--text-secondary);
}

.origin-audit-action {
    min-width: 6.5rem;
    color: #bfaeff !important;
    font: 700 0.72rem var(--font-mono);
}

.origin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(3, 5, 10, 0.78);
    backdrop-filter: blur(10px);
}

.origin-modal {
    width: min(48rem, 100%);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(155, 123, 255, 0.3);
    border-radius: 1rem;
    padding: 1.15rem;
    background: #101421;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.origin-modal > header {
    margin: 0 0 1rem;
    padding: 0 0 1rem;
}

.origin-modal header p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@media (max-width: 1180px) {
    .origin-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .origin-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    body.origin-events-view .mobile-filter-bar,
    body.origin-events-view .mobile-action-bar {
        display: none !important;
    }

    .origin-events-toolbar {
        grid-template-columns: auto 1fr;
    }

    .origin-events-role {
        grid-column: 2;
        justify-self: start;
    }

    .origin-command-bar,
    .origin-event-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .origin-command-actions,
    .origin-version-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .origin-command-actions .origin-btn {
        flex: 1;
    }

    .origin-layout {
        grid-template-columns: 1fr;
    }

    .origin-event-sidebar,
    .origin-event-main {
        min-height: 0;
    }

    .origin-event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 16rem;
    }

    .origin-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .origin-overview-details {
        grid-column: span 2;
    }

    .origin-overview-details dl,
    .origin-validation-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .origin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .origin-event-list,
    .origin-form-grid,
    .origin-overview-grid {
        grid-template-columns: 1fr;
    }

    .origin-form-grid .wide,
    .origin-overview-hero,
    .origin-overview-details {
        grid-column: 1;
    }

    .origin-tabs button span {
        display: none;
    }

    .origin-tabs button {
        width: 2.45rem;
        justify-content: center;
    }

    .origin-resource-list > article {
        align-items: flex-start;
    }

    .origin-row-actions {
        flex-direction: column;
    }

    .origin-workflow-track {
        align-items: stretch;
        flex-direction: column;
        gap: 0.35rem;
    }

    .origin-workflow-track i {
        width: 1px;
        height: 0.6rem;
        margin-left: 1rem;
    }
}

.wallet-meta-page {
    display: block;
}

.wallet-meta-toolbar {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.wallet-meta-toolbar h2 {
    font-size: 1.8rem;
    line-height: 1;
}

.wallet-meta-toolbar p {
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.wallet-meta-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 280px minmax(0, 1fr);
}

.wallet-meta-wallet-panel,
.wallet-meta-command-bar,
.wallet-meta-summary,
.wallet-meta-results,
.wallet-meta-empty-selection {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.wallet-meta-wallet-panel {
    align-self: start;
    min-height: 520px;
    overflow: hidden;
}

.wallet-meta-panel-heading {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.wallet-meta-panel-heading h3 {
    font-size: 1rem;
}

.wallet-meta-panel-heading span {
    align-items: center;
    background: rgba(139, 92, 246, 0.14);
    border-radius: 999px;
    color: #c4b5fd;
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 0.4rem;
}

.wallet-meta-form {
    border-bottom: 1px solid var(--border-color);
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
}

.wallet-meta-form input,
.wallet-meta-command-bar select {
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 40px;
    outline: none;
    padding: 0 0.75rem;
    width: 100%;
}

.wallet-meta-form input:focus,
.wallet-meta-command-bar select:focus {
    border-color: #8b5cf6;
}

.wallet-meta-form button {
    background: rgba(139, 92, 246, 0.13);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 6px;
    color: #c4b5fd;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 40px;
}

.wallet-meta-wallet-list {
    padding: 0.5rem;
}

.wallet-meta-list-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 1rem 0.5rem;
    text-align: center;
}

.wallet-meta-wallet-item {
    align-items: stretch;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    margin-bottom: 0.35rem;
}

.wallet-meta-wallet-item.active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(167, 139, 250, 0.32);
}

.wallet-meta-wallet-select {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex: 1;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.7rem;
    text-align: left;
}

.wallet-meta-wallet-select i {
    color: #a78bfa;
}

.wallet-meta-wallet-select span {
    min-width: 0;
}

.wallet-meta-wallet-select strong,
.wallet-meta-wallet-select small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-meta-wallet-select small {
    color: var(--text-secondary);
}

.wallet-meta-wallet-delete {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.7rem;
}

.wallet-meta-wallet-delete:hover {
    color: var(--danger);
}

.wallet-meta-main {
    min-height: 520px;
    min-width: 0;
    position: relative;
}

.wallet-meta-main.is-loading .wallet-meta-empty-selection,
.wallet-meta-main.is-loading .wallet-meta-workspace {
    pointer-events: none;
}

.wallet-meta-loading {
    align-items: center;
    background: rgba(10, 14, 24, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    min-height: 260px;
    padding: 1.25rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
}

.wallet-meta-loading.hidden {
    display: none;
}

.wallet-meta-loading-panel {
    align-items: center;
    background: rgba(18, 22, 35, 0.94);
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    max-width: 340px;
    padding: 1.35rem;
    text-align: center;
    width: min(100%, 340px);
}

.wallet-meta-loading-panel>i {
    color: #a78bfa;
    font-size: 1.6rem;
}

.wallet-meta-loading-panel strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.wallet-meta-loading-panel span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.wallet-meta-loading-bars {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
    width: 100%;
}

.wallet-meta-loading-bars span {
    animation: wallet-meta-loading-pulse 1.15s ease-in-out infinite;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    display: block;
    height: 8px;
    width: 100%;
}

.wallet-meta-loading-bars span:nth-child(2) {
    animation-delay: 0.12s;
    width: 82%;
}

.wallet-meta-loading-bars span:nth-child(3) {
    animation-delay: 0.24s;
    width: 64%;
}

@keyframes wallet-meta-loading-pulse {
    0%, 100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

.wallet-meta-empty-selection {
    color: var(--text-secondary);
    padding: 5rem 1rem;
    text-align: center;
}

.wallet-meta-empty-selection i {
    color: #a78bfa;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.wallet-meta-command-bar {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(130px, 0.75fr) repeat(4, minmax(125px, 1fr)) 125px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.wallet-meta-command-bar label,
.wallet-meta-active-wallet>span {
    color: var(--text-secondary);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.wallet-meta-active-wallet {
    min-width: 0;
}

.wallet-meta-active-wallet strong,
.wallet-meta-active-wallet small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-meta-active-wallet small {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.wallet-meta-message {
    background: rgba(18, 22, 35, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.wallet-meta-message.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.wallet-meta-message.warning {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

.wallet-meta-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.wallet-meta-summary>div {
    border-right: 1px solid var(--border-color);
    min-width: 0;
    padding: 1rem;
}

.wallet-meta-summary>div:last-child {
    border-right: 0;
}

.wallet-meta-summary span,
.wallet-meta-summary small {
    color: var(--text-secondary);
    display: block;
}

.wallet-meta-summary span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wallet-meta-summary strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    margin: 0.2rem 0;
}

.wallet-meta-summary strong.positive {
    color: var(--success);
}

.wallet-meta-summary strong.negative {
    color: var(--danger);
}

.wallet-meta-results {
    padding: 1rem;
}

.wallet-meta-tabs {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.4rem;
    margin: -1rem -1rem 1rem;
    padding: 0 1rem;
}

.wallet-meta-tabs>#wallet-meta-updated-at {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: auto;
}

.wallet-meta-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-weight: 700;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0 0.75rem;
}

.wallet-meta-tab:hover,
.wallet-meta-tab.active {
    border-bottom-color: #8b5cf6;
    color: #ddd6fe;
}

.wallet-meta-tab strong {
    align-items: center;
    background: rgba(139, 92, 246, 0.16);
    border-radius: 999px;
    color: #c4b5fd;
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 0.4rem;
}

.wallet-meta-results-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wallet-meta-results-heading h3 {
    font-size: 1rem;
}

.wallet-meta-results-heading span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.wallet-meta-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.wallet-meta-grid.loading {
    opacity: 0.45;
    pointer-events: none;
}

.wallet-meta-card-actions {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: auto;
}

.wallet-meta-card-actions .buy-btn,
.wallet-meta-simulator-btn {
    font-size: 0.78rem;
    letter-spacing: 0;
    min-height: 42px;
    min-width: 0;
    padding: 0.65rem 0.45rem;
}

.wallet-meta-simulator-btn {
    align-items: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.55);
    border-radius: 8px;
    color: #ddd6fe;
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wallet-meta-simulator-btn:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: #a78bfa;
}

.wallet-meta-empty-results {
    color: var(--text-secondary);
    padding: 3rem 1rem;
    text-align: center;
}

.wallet-meta-comps-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wallet-meta-comps-toolbar strong,
.wallet-meta-comps-toolbar span {
    display: block;
}

.wallet-meta-comps-toolbar span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.wallet-meta-comps-toolbar select {
    background: rgba(10, 13, 20, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    min-height: 38px;
    outline: none;
    padding: 0 0.75rem;
}

.wallet-meta-comps-toolbar select:focus {
    border-color: #8b5cf6;
}

.wallet-meta-comps-grid {
    display: grid;
    gap: 1rem;
}

.wallet-meta-comp-card {
    background: rgba(12, 15, 23, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.wallet-meta-comp-card.complete {
    border-color: rgba(16, 185, 129, 0.42);
}

.wallet-meta-comp-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    gap: 1rem;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    padding: 0.9rem 1rem;
}

.wallet-meta-comp-rank span {
    color: #c4b5fd;
    display: block;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
}

.wallet-meta-comp-rank small,
.wallet-meta-comp-player span {
    color: var(--text-secondary);
    display: block;
    font-size: 0.72rem;
}

.wallet-meta-comp-player strong {
    display: block;
}

.wallet-meta-comp-score {
    text-align: right;
}

.wallet-meta-comp-score>strong {
    color: #fbbf24;
    display: block;
    font-family: var(--font-mono);
}

.wallet-meta-comp-score>span {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    margin-top: 0.3rem;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
}

.wallet-meta-comp-score>span.complete {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}

.wallet-meta-comp-score>span.partial {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.wallet-meta-comp-team {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1rem;
}

.wallet-meta-comp-slot {
    background: rgba(17, 21, 31, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    min-width: 0;
    padding: 0.75rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.wallet-meta-comp-slot.owned:hover {
    border-color: rgba(139, 92, 246, 0.55);
    transform: translateY(-2px);
}

.wallet-meta-comp-slot.simulator-selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.22);
}

.wallet-meta-simulator-match {
    background: #8b5cf6;
    border-radius: 999px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.22rem 0.45rem;
    position: absolute;
    right: 0.55rem;
    top: 0.45rem;
    z-index: 3;
}

.wallet-meta-comp-slot.missing {
    background:
        radial-gradient(circle at 50% 38%, rgba(245, 158, 11, 0.08), transparent 48%),
        rgba(17, 21, 31, 0.9);
    border-style: dashed;
    border-color: rgba(245, 158, 11, 0.28);
}

.wallet-meta-comp-slot-number {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    left: 0.65rem;
    position: absolute;
    text-transform: uppercase;
    top: 0.55rem;
}

.wallet-meta-comp-image-wrap {
    height: 130px;
    margin: 0 auto 0.4rem;
    position: relative;
    width: min(100%, 190px);
}

.wallet-meta-comp-image-wrap img {
    height: 100%;
    object-fit: contain;
    position: relative;
    transition: filter 0.2s ease, opacity 0.2s ease;
    width: 100%;
    z-index: 1;
}

.wallet-meta-battle-image.is-loading {
    filter: saturate(0.7);
    opacity: 0.58;
}

.wallet-meta-battle-image-label {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(76, 29, 149, 0.78);
    border: 1px solid rgba(196, 181, 253, 0.28);
    border-radius: 999px;
    bottom: 3px;
    color: #ede9fe;
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 800;
    gap: 0.25rem;
    left: 50%;
    max-width: calc(100% - 42px);
    overflow: hidden;
    padding: 0.18rem 0.42rem;
    position: absolute;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.wallet-meta-battle-image-label i {
    color: #c4b5fd;
}

.wallet-meta-missing-image {
    align-items: center;
    display: flex;
    justify-content: center;
}

.wallet-meta-image-fallback {
    align-items: center;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: rgba(252, 211, 77, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 82px;
    justify-content: center;
    position: absolute;
    width: 82px;
}

.wallet-meta-image-fallback i {
    font-size: 1.45rem;
}

.wallet-meta-image-fallback span {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.wallet-meta-owned-icon,
.wallet-meta-missing-icon {
    align-items: center;
    border-radius: 50%;
    bottom: 4px;
    display: flex;
    height: 26px;
    justify-content: center;
    position: absolute;
    right: 4px;
    width: 26px;
}

.wallet-meta-owned-icon {
    background: var(--success);
    color: #04150f;
}

.wallet-meta-missing-icon {
    background: #f59e0b;
    color: #1f1300;
    z-index: 2;
}

.wallet-meta-comp-slot>strong,
.wallet-meta-comp-slot>small,
.wallet-meta-slot-status,
.wallet-meta-target-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-meta-comp-slot>small,
.wallet-meta-target-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.wallet-meta-slot-status {
    color: #c4b5fd;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.wallet-meta-comp-slot.missing .wallet-meta-slot-status {
    color: #fcd34d;
}

.wallet-meta-comp-slot.missing>strong {
    color: #fde68a;
}

.wallet-meta-target-label {
    margin-top: 0.2rem;
}

.wallet-meta-comp-footer {
    align-items: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding: 0.65rem 1rem;
}

.wallet-meta-comp-footer i {
    color: #a78bfa;
    margin-right: 0.25rem;
}

.wallet-meta-morph-selection {
    margin-bottom: 1rem;
}

.wallet-meta-morph-loading {
    align-items: center;
    background: rgba(10, 14, 24, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 220px;
    padding: 1.25rem;
}

.wallet-meta-morph-loading.hidden {
    display: none;
}

.wallet-meta-morph-loading-panel {
    align-items: center;
    background: rgba(18, 22, 35, 0.94);
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    max-width: 380px;
    padding: 1.35rem;
    text-align: center;
    width: min(100%, 380px);
}

.wallet-meta-morph-loading-panel>i {
    color: #a78bfa;
    font-size: 1.5rem;
}

.wallet-meta-morph-loading-panel strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.wallet-meta-morph-loading-panel span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.wallet-meta-tab-panel.is-loading .wallet-meta-morph-grid {
    pointer-events: none;
}

.wallet-meta-morph-selected {
    align-items: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: 8px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    padding: 0.75rem 1rem;
}

.wallet-meta-morph-selected>img {
    height: 62px;
    object-fit: contain;
    width: 72px;
}

.wallet-meta-morph-selected small,
.wallet-meta-morph-selected span {
    color: var(--text-secondary);
    display: block;
    font-size: 0.72rem;
}

.wallet-meta-morph-selected>div>strong {
    display: block;
    margin: 0.15rem 0;
}

.wallet-meta-morph-count {
    color: #c4b5fd;
    font-size: 0.8rem;
    white-space: nowrap;
}

.wallet-meta-morph-change {
    background: rgba(17, 21, 31, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    min-height: 38px;
    padding: 0 0.75rem;
}

.wallet-meta-morph-change:hover {
    border-color: #8b5cf6;
    color: #ddd6fe;
}

.wallet-meta-morph-error {
    color: #fca5a5;
    font-size: 0.78rem;
    padding: 0.65rem 0 0;
}

.wallet-owned-tag {
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .wallet-meta-command-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-meta-refresh-btn {
        width: 100%;
    }
}

@media (max-width: 920px) {
    .wallet-meta-layout {
        grid-template-columns: 1fr;
    }

    .wallet-meta-wallet-panel {
        min-height: 0;
    }

    .wallet-meta-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-meta-summary>div {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 760px) {

    body.wallet-meta-view .mobile-filter-bar,
    body.wallet-meta-view .mobile-action-bar {
        display: none;
    }

    .wallet-meta-nav-btn {
        width: 100%;
    }

    .wallet-meta-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .wallet-meta-command-bar,
    .wallet-meta-summary {
        grid-template-columns: 1fr;
    }

    .wallet-meta-summary>div {
        border-bottom: 1px solid var(--border-color);
        border-right: 0;
    }

    .wallet-meta-summary>div:last-child {
        border-bottom: 0;
    }

    .wallet-meta-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .wallet-meta-tabs {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .wallet-meta-tabs>#wallet-meta-updated-at {
        margin: 0 0 0.75rem;
        width: 100%;
    }

    .wallet-meta-tab {
        flex: 1 1 145px;
        justify-content: center;
        padding: 0 0.35rem;
    }

    .wallet-meta-comps-toolbar,
    .wallet-meta-comp-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .wallet-meta-comps-toolbar select {
        width: 100%;
    }

    .wallet-meta-comp-header {
        grid-template-columns: 1fr auto;
    }

    .wallet-meta-comp-player {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .wallet-meta-comp-team {
        grid-template-columns: 1fr;
    }

    .wallet-meta-morph-selected {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .wallet-meta-morph-selected>img {
        height: 52px;
        width: 58px;
    }

    .wallet-meta-morph-count,
    .wallet-meta-morph-change {
        width: 100%;
    }

    .wallet-meta-morph-count {
        white-space: normal;
    }
}

/* Main dashboard refinements */
.dashboard-layout.dashboard-expanded {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-layout.dashboard-expanded > .sidebar {
    display: none;
}

.main-content {
    min-width: 0;
}

.styled-filter-select {
    position: relative;
    width: 100%;
    max-width: 230px;
}

.filter-select-native {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
    pointer-events: none;
}

.selected-filter-option {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.selected-filter-option:hover,
.selected-filter-option:focus,
.styled-filter-select.open .selected-filter-option {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
    outline: none;
}

.selected-filter-name,
.filter-select-option-name {
    flex: 1;
    min-width: 0;
}

.filter-select-chevron {
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.styled-filter-select.open .filter-select-chevron {
    transform: rotate(180deg);
}

.filter-select-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 1300;
    max-height: 320px;
    overflow-y: auto;
    background: #121620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.filter-select-dropdown[hidden] {
    display: none !important;
}

.filter-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.filter-select-option:last-child {
    border-bottom: 0;
}

.filter-select-option:hover,
.filter-select-option.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.045);
    padding-left: 1.15rem;
}

.filter-select-check {
    color: var(--success);
    font-size: 0.75rem;
    opacity: 0;
}

.filter-select-option.active .filter-select-check {
    opacity: 1;
}

.filter-select-indicator {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b8ce, #ffb812 48%, #8f5bd6);
    box-shadow: 0 0 9px rgba(0, 229, 255, 0.28);
}

.styled-filter-select--class .filter-select-indicator[data-value="Beast"] { background: #ffb812; }
.styled-filter-select--class .filter-select-indicator[data-value="Bug"] { background: #ff5341; }
.styled-filter-select--class .filter-select-indicator[data-value="Aquatic"] { background: #00b8ce; }
.styled-filter-select--class .filter-select-indicator[data-value="Plant"] { background: #6cc000; }
.styled-filter-select--class .filter-select-indicator[data-value="Reptile"] { background: #8f5bd6; }
.styled-filter-select--class .filter-select-indicator[data-value="Bird"] { background: #ff7cac; }
.styled-filter-select--class .filter-select-indicator[data-value="Mech"] { background: #a8b4c6; }
.styled-filter-select--class .filter-select-indicator[data-value="Dusk"] { background: #6f55ad; }
.styled-filter-select--class .filter-select-indicator[data-value="Dawn"] { background: #9ddfff; }

.styled-filter-select--breed .filter-select-indicator {
    width: 11px;
    height: 14px;
    border-radius: 52% 52% 46% 46% / 62% 62% 38% 38%;
    background: #f7e8bd;
    box-shadow: inset -2px -2px 0 rgba(106, 76, 34, 0.22), 0 0 8px rgba(247, 232, 189, 0.2);
}

.evolved-control,
.special-collection-control {
    position: relative;
}

.evolved-control:not(.evolved-control-collapsed),
.special-collection-control:not(.special-collection-collapsed) {
    z-index: 1250;
}

.evolved-filter-body,
.special-filter-body {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 1250;
    width: min(340px, calc(100vw - 3rem));
    max-width: none;
    max-height: min(480px, 65vh);
    overflow-y: auto;
    padding: 0.85rem;
    background: #121620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.evolved-filter-body[hidden],
.special-filter-body[hidden] {
    display: none !important;
}

.evolved-filter-options {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
}

.toggle-group {
    justify-content: flex-start;
}

.toggle-group .toggle-wrapper {
    min-height: 46px;
    height: 46px;
}

@media (max-width: 900px) {
    .styled-filter-select {
        max-width: none;
    }

    .evolved-filter-body,
    .special-filter-body {
        width: min(380px, calc(100vw - 3rem));
    }
}

/* Opaque filter surfaces keep cards and page content from showing through. */
.selected-season,
.selected-filter-option,
.special-filter-header,
.evolved-filter-header {
    background: var(--filter-surface-solid);
}

.season-dropdown,
.filter-select-dropdown,
.evolved-filter-body,
.special-filter-body {
    background: var(--filter-surface-solid);
    background-image: none;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 255, 255, 0.025);
    opacity: 1 !important;
    isolation: isolate;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.season-option,
.filter-select-option {
    background: var(--filter-surface-solid);
}

.season-option:hover,
.season-option.active,
.filter-select-option:hover,
.filter-select-option.active {
    background: var(--filter-surface-hover);
}
