.dashboard-header-shell {
    padding-top: 1.25rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(8, 18, 32, 0.92);
    box-shadow: var(--shadow-xl);
}

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

.dashboard-brand strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

.homelogo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.soft-pill,
.ghost-action,
.primary-header-action,
.danger-action,
.section-cta,
.sidebar-link,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.soft-pill {
    background: var(--brand-tint);
    border: 1px solid rgba(172, 93, 208, 0.24);
    color: #f0d8fa;
}

.security-pill.is-protected {
    background: rgba(121, 231, 182, 0.14);
    border-color: rgba(121, 231, 182, 0.22);
    color: #d6ffec;
}

.security-pill.is-unprotected {
    background: rgba(255, 209, 102, 0.12);
    border-color: rgba(255, 209, 102, 0.2);
    color: #ffe5a4;
}

.ghost-action {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.primary-header-action,
.primary-action,
.section-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    color: #130a18;
    border: 0;
}

.danger-action {
    background: rgba(255, 140, 140, 0.12);
    border: 1px solid rgba(255, 140, 140, 0.18);
    color: #ffd6d6;
}

.primary-header-action:hover,
.danger-action:hover,
.section-cta:hover,
.sidebar-link:hover,
.primary-action:hover {
    transform: translateY(-1px);
}

.dashboard-page {
    padding: 2rem 0 3rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.5rem;
}

.page-hero,
.overview-layout,
.section-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.page-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.page-hero-copy,
.hero-summary-card,
.panel-card,
.area-card,
.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow-xl);
}

.page-hero-copy,
.hero-summary-card,
.panel-card {
    padding: 1.7rem;
}

.page-hero-copy h1,
.hero-summary-card strong,
.panel-card h2,
.section-heading h2,
.section-main-card h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.page-hero-copy h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.06;
    margin-bottom: 0.75rem;
}

.page-hero-copy p,
.hero-summary-card p,
.section-copy,
.activity-copy span,
.module-summary,
.summary-row span,
.detail-row span,
.detail-metric-card span,
.stat-card span,
.health-meter p,
.health-meter-head span,
.sidebar-link,
.link-email-form label,
.email-state p {
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-summary-card {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.hero-summary-label,
.section-kicker,
.module-eyebrow,
.overview-card-top p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-soft);
}

.hero-summary-card strong {
    font-size: 1.35rem;
    color: var(--text-main);
}

.hero-summary-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-summary-meta span {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

.section-navbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(8, 18, 32, 0.72);
    box-shadow: var(--shadow-xl);
}

.section-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-nav-link:hover,
.section-nav-link.is-active {
    background: rgba(172, 93, 208, 0.16);
    color: var(--text-main);
    transform: translateY(-1px);
}

.stats-grid,
.area-grid,
.detail-metrics-grid,
.sanctions-grid {
    display: grid;
    gap: 1rem;
}

.tab-panels {
    display: grid;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: grid;
    gap: 1.5rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card,
.detail-metric-card {
    padding: 1.15rem;
}

.stat-card,
.detail-metric-card,
.summary-row,
.detail-row,
.activity-row,
.email-state,
.sidebar-link {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong,
.summary-row strong,
.detail-row strong,
.detail-metric-card strong,
.activity-copy p,
.email-state strong,
.panel-card h2,
.section-main-card h2 {
    color: var(--text-main);
}

.stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.3rem;
}

.emphasis-card {
    background: linear-gradient(135deg, rgba(172, 93, 208, 0.18), rgba(93, 208, 192, 0.1));
    border-color: rgba(172, 93, 208, 0.22);
}

.overview-layout {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.compact-head {
    margin-bottom: 1rem;
}

.health-meter {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.health-meter-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.health-track {
    width: 100%;
    height: 12px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 0;
}

.health-track::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.health-track::-webkit-progress-value,
.health-track::-moz-progress-bar {
    border-radius: 999px;
}

.health-excellent .health-track::-webkit-progress-value,
.health-excellent .health-track::-moz-progress-bar {
    background: linear-gradient(90deg, #79e7b6, #b7f5d8);
}

.health-good .health-track::-webkit-progress-value,
.health-good .health-track::-moz-progress-bar {
    background: linear-gradient(90deg, #68d3ff, #98e4ff);
}

.health-watch .health-track::-webkit-progress-value,
.health-watch .health-track::-moz-progress-bar {
    background: linear-gradient(90deg, #ffd166, #ffe39a);
}

.health-critical .health-track::-webkit-progress-value,
.health-critical .health-track::-moz-progress-bar {
    background: linear-gradient(90deg, #ff8c8c, #ffc1c1);
}

.summary-list,
.activity-feed,
.detail-list,
.sidebar-links,
.link-email-form {
    display: grid;
    gap: 0.85rem;
}

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

.summary-row,
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
}

.hero-summary-card .summary-row.keep-inline {
    align-items: center;
    flex-wrap: nowrap;
}

.hero-summary-card .summary-row.keep-inline span {
    font-size: 0.84rem;
}

.hero-summary-card .summary-row.keep-inline strong {
    font-size: 0.94rem;
    line-height: 1.2;
    white-space: nowrap;
}

.summary-row strong,
.detail-row strong,
.detail-metric-card strong,
.email-state strong {
    overflow-wrap: anywhere;
    text-align: right;
}

.activity-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-content: start;
    min-height: 178px;
}

.activity-card-head {
    display: grid;
    gap: 0.55rem;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(172, 93, 208, 0.14);
    color: #f0d8fa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-copy {
    display: grid;
    gap: 0.35rem;
}

.activity-card-head strong {
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.4;
}

.activity-copy p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
    color: #f8eefc;
    text-align: left;
}

.activity-copy span {
    font-size: 0.95rem;
    text-align: left;
}

.areas-section,
.section-main-card,
.sidebar-card {
    display: grid;
    gap: 1rem;
}

.section-sidebar {
    display: grid;
    gap: 1.25rem;
}

.split-heading,
.module-card-head,
.panel-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.module-card-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.area-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.area-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.35rem;
}

.area-card strong,
.overview-card-top + strong,
.module-summary,
.section-main-card h2 {
    color: var(--text-main);
}

.area-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.overview-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.section-cta {
    justify-self: start;
}

.section-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

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

.detail-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sanctions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sanction-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sanction-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.sanction-card h3 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sanction-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.sanction-field {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sanction-field span {
    color: var(--text-soft);
}

.sanction-field strong {
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.live-auctions-card {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.auctions-page {
    padding: 1.5rem 0 3rem;
}

.auctions-hero {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.25rem;
    border: 1px solid var(--border);
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auctions-hero h1 {
    margin: 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.auctions-hero p:last-child {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .auctions-hero {
        display: block;
    }

    .auctions-hero p:last-child {
        margin-top: 0.2rem;
    }
}

.auction-card {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    min-height: 170px;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-main);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auction-card:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 137, 229, 0.55);
    background: rgba(172, 93, 208, 0.12);
}

.auction-card-title {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.auction-card-seller {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-auctions-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.live-auctions-head h3 {
    margin: 0.4rem 0 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.live-auctions-state {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: var(--text-soft);
    background: rgba(172, 93, 208, 0.08);
    border: 1px solid rgba(172, 93, 208, 0.14);
}

.live-auctions-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 0.85rem;
    align-items: center;
}

.module-admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(230, 68, 88, 0.48);
    background: rgba(230, 68, 88, 0.14);
    color: #ffdfe4;
    font-size: 0.86rem;
    line-height: 1;
}

.module-admin-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #e64458;
}

.module-admin-toggle:hover {
    border-color: rgba(248, 96, 117, 0.7);
    background: rgba(230, 68, 88, 0.2);
}

.live-auctions-search {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.live-auctions-search i {
    color: var(--accent);
    font-size: 1rem;
}

.live-auctions-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
}

.live-auctions-search input::placeholder {
    color: var(--text-muted);
}

.live-auctions-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.live-auctions-browser {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.live-auctions-browser.live-auctions-browser-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.live-auctions-grid-shell {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    max-height: 560px;
    overflow-y: auto;
    padding: 1rem;
}

.live-auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
}

.auction-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 20, 0.65);
    backdrop-filter: blur(8px);
}

.auction-popup-backdrop.is-open {
    display: flex;
}

.auction-popup {
    width: min(100% - 2rem, 400px);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(8, 18, 32, 0.98);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.auction-popup-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s ease;
}

.auction-popup-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.auction-popup-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(172, 93, 208, 0.2);
    background: rgba(172, 93, 208, 0.07);
    margin-top: 3.1rem;
}

.auction-popup-icon-wrap {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auction-popup-icon-img {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
}

.auction-popup-head h3 {
    margin: 0.2rem 0 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.auction-popup-head-copy {
    min-width: 0;
    flex: 1 1 0;
}

.auction-popup-material {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-soft);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-popup-rows {
    display: grid;
    gap: 0.45rem;
}

.auction-popup-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    min-width: 0;
}

.auction-popup-row span {
    color: var(--text-soft);
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 68px;
}

.auction-popup-row strong {
    color: var(--text-main);
    text-align: right;
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.auction-popup-admin {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.2rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(80, 220, 170, 0.38);
    background: rgba(80, 220, 170, 0.06);
}

.auction-popup-admin-block {
    display: grid;
    gap: 0.35rem;
}

.auction-popup-admin-block p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auction-popup-admin-block textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 10, 20, 0.65);
    color: var(--text-main);
    padding: 0.55rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.3;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.auction-card {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    color: var(--text-main);
}

.auction-card:hover,
.auction-card.is-active {
    border-color: rgba(172, 93, 208, 0.45);
    background: rgba(172, 93, 208, 0.10);
    transform: translateY(-2px);
}

.auction-card .auction-item-icon {
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
}

.auction-card .auction-item-icon-fallback {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

.auction-card-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    min-height: 18px;
}

.auction-card-price .auction-currency-shell {
    gap: 0.25rem;
}

.auction-card-price .auction-currency-icon {
    width: 13px;
    height: 13px;
}

.live-auctions-table-shell {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    max-height: 560px;
    overflow: auto;
}

.live-auctions-list {
    max-height: 540px;
    overflow-y: auto;
    padding-right: 0.2rem;
    display: grid;
    gap: 0.65rem;
}

.auction-list-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 0.75rem 0.8rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    color: var(--text-main);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auction-list-item:hover,
.auction-list-item.is-active {
    border-color: rgba(172, 93, 208, 0.35);
    background: rgba(172, 93, 208, 0.12);
    transform: translateY(-1px);
}

.auction-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.auction-list-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.auction-list-copy strong {
    color: var(--text-main);
    font-size: 0.94rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-list-copy small {
    color: var(--text-soft);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-list-price {
    justify-self: end;
    white-space: nowrap;
}

.live-auction-detail {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.live-auction-detail-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.85rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-auction-detail-head > div:last-child {
    min-width: 0;
}

.live-auction-detail-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-auction-detail-head h3 {
    margin: 0.25rem 0 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.live-auction-detail .section-kicker {
    margin-bottom: 0.15rem;
}

.live-auction-detail-subtitle {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.live-auction-detail-rows {
    display: grid;
    gap: 0.75rem;
}

.live-auction-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.live-auction-detail-row span {
    color: var(--text-soft);
    flex-shrink: 0;
}

.live-auction-detail-row strong {
    color: var(--text-main);
    text-align: right;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

@media (max-width: 1320px) {
    .live-auctions-browser {
        grid-template-columns: 1fr;
    }

    .live-auctions-browser.live-auctions-browser-table {
        grid-template-columns: 1fr;
    }

    .live-auctions-browser.live-auctions-browser-grid {
        grid-template-columns: 1fr;
    }

    .live-auctions-list {
        max-height: 360px;
    }
}

.live-auctions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    display: none;
}

.live-auctions-table th,
.live-auctions-table td {
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.live-auctions-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(8, 18, 32, 0.96);
    color: var(--text-soft);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.live-auctions-table td {
    font-size: 0.95rem;
}

.live-auctions-table td:first-child,
.live-auctions-table th:first-child {
    width: 148px;
    text-align: center;
}

.auction-table-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.auction-table-row:hover,
.auction-table-row.is-active {
    background: rgba(172, 93, 208, 0.12);
}

.auction-table-title {
    color: var(--text-main);
    display: inline-block;
    line-height: 1.35;
}

.auction-cell-stack {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
}

.auction-row-price {
    display: inline-flex;
    justify-content: center;
    min-height: 20px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.live-auctions-empty-row .live-auctions-empty {
    text-align: center;
    padding: 1rem;
}

.auction-item-icon {
    width: 34px;
    height: 34px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.auction-item-icon-fallback {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.auction-currency-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auction-currency-icon {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.live-auctions-empty {
    text-align: center;
    color: var(--text-soft);
    font-weight: 600;
}

.live-auctions-empty.is-no-auctions {
    white-space: nowrap;
}

.detail-metric-card {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.detail-metric-card strong {
    text-align: left;
}

.detail-list {
    margin-top: 0.35rem;
}

.module-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-connected {
    background: rgba(172, 93, 208, 0.16);
    border: 1px solid rgba(172, 93, 208, 0.3);
    color: #f0d8fa;
}

.status-unconfigured {
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: #ffe5a4;
}

.status-error {
    background: rgba(255, 140, 140, 0.12);
    border: 1px solid rgba(255, 140, 140, 0.2);
    color: #ffd6d6;
}

.sidebar-link {
    justify-content: flex-start;
    color: var(--text-main);
}

.email-state {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
}

.state-dot {
    width: 12px;
    height: 12px;
    margin-top: 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.email-state.linked .state-dot {
    background: var(--brand);
    box-shadow: 0 0 0 6px rgba(172, 93, 208, 0.16);
}

.email-state.empty .state-dot {
    background: #ffd166;
    box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.1);
}

.panel-actions-row {
    display: flex;
    justify-content: flex-start;
}

.security-launch-action {
    width: 100%;
}

.panel-actions-stack,
.two-factor-setup-card,
.recovery-codes-card,
.recovery-codes-grid,
.security-note {
    display: grid;
    gap: 0.85rem;
}

.security-note {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.security-note i {
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.security-note p {
    margin: 0;
    color: inherit;
}

.success-note {
    background: rgba(121, 231, 182, 0.12);
    border: 1px solid rgba(121, 231, 182, 0.22);
    color: #d6ffec;
}

.error-note {
    background: rgba(255, 140, 140, 0.12);
    border: 1px solid rgba(255, 140, 140, 0.2);
    color: #ffd6d6;
}

.two-factor-setup-card,
.recovery-codes-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.two-factor-qr {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 18px;
    background: #fff;
}

.two-factor-qr svg {
    width: min(100%, 240px);
    height: auto;
}

.recovery-codes-card h3,
.recovery-codes-card p {
    margin: 0;
}

.recovery-codes-card p {
    color: var(--text-soft);
    line-height: 1.6;
}

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

.recovery-code-item {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.security-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
}

.security-modal.is-open {
    display: block;
}

.security-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 20, 0.74);
    backdrop-filter: blur(10px);
}

.security-modal-dialog {
    position: relative;
    width: min(100% - 2rem, 1080px);
    max-height: calc(100vh - 3rem);
    margin: 1.5rem auto;
    padding: 1.35rem;
    display: grid;
    gap: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(8, 18, 32, 0.97);
    box-shadow: var(--shadow-xl);
    overflow: auto;
}

.security-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.security-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-right: 3.5rem;
}

.security-modal-head h2,
.security-config-card h3,
.security-overview-top strong {
    margin: 0;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.security-modal-head p,
.security-config-card p,
.security-overview-top p {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.security-modal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: start;
}

.security-overview-card,
.security-config-card {
    display: grid;
    gap: 1rem;
}

.security-overview-card {
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.security-overview-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.security-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.35rem;
}

.security-icon.is-protected {
    background: rgba(121, 231, 182, 0.14);
    color: #d6ffec;
}

.security-icon.is-unprotected {
    background: rgba(255, 209, 102, 0.12);
    color: #ffe5a4;
}

.security-quick-stats,
.security-config-stack {
    display: grid;
    gap: 1rem;
}

.modal-setup-card {
    background: rgba(255, 255, 255, 0.03);
}

.email-input-shell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 58px;
    padding: 0 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.email-input-shell i {
    color: var(--accent);
    font-size: 1.2rem;
}

.email-input-shell input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
}

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

@media (max-width: 1100px) {
    .page-hero,
    .overview-layout,
    .section-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .dashboard-header {
        border-radius: 28px;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-brand,
    .dashboard-actions {
        justify-content: center;
    }

    .stats-grid,
    .area-grid,
    .detail-metrics-grid,
    .sanctions-grid,
    .sanction-fields {
        grid-template-columns: 1fr;
    }

    .split-heading,
    .module-card-head,
    .panel-card-head,
    .summary-row,
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-card-head-actions {
        justify-content: flex-start;
    }

    .summary-row strong,
    .detail-row strong {
        text-align: left;
    }

    .hero-summary-card .summary-row.keep-inline {
        flex-direction: row;
        align-items: center;
    }

    .hero-summary-card .summary-row.keep-inline strong {
        text-align: right;
    }

    .health-meter-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-modal-grid {
        grid-template-columns: 1fr;
    }

    .security-modal-head {
        flex-direction: column;
        padding-right: 0;
    }

    .live-auctions-head {
        flex-direction: column;
    }

    .live-auctions-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .live-auctions-browser {
        grid-template-columns: 1fr;
    }

    .live-auctions-grid-shell {
        max-height: 420px;
    }

    .live-auctions-table-shell {
        max-height: 420px;
    }

    .live-auctions-list {
        max-height: 360px;
    }

    .live-auction-detail-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-auction-detail-row strong {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .dashboard-page {
        padding-top: 1.2rem;
    }

    .dashboard-shell {
        gap: 1.15rem;
    }

    .page-hero-copy,
    .hero-summary-card,
    .panel-card,
    .stat-card,
    .area-card {
        padding: 1.35rem;
        border-radius: 24px;
    }

    .dashboard-brand {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-actions,
    .section-navbar {
        width: 100%;
    }

    .section-navbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }

    .activity-feed {
        grid-template-columns: 1fr;
    }

    .recovery-codes-grid {
        grid-template-columns: 1fr;
    }

    .security-modal-dialog {
        width: min(100% - 1rem, 1080px);
        margin: 0.5rem auto;
        max-height: calc(100vh - 1rem);
        padding: 1rem;
        border-radius: 24px;
    }

    .soft-pill,
    .ghost-action,
    .primary-header-action,
    .danger-action,
    .primary-action {
        width: 100%;
    }

    .section-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .activity-card {
        min-height: 0;
    }
}