/* DomainUI Discover uses the active Control homepage dashboard system. */
:root {
    --dui-header-bg: #2E8A8D;
    --dui-header-bg-mobile: #227577;
    --dui-page-bg: #f3f4f6;
    --dui-card-bg: #ffffff;
    --dui-card-soft: #f8fafc;
    --dui-border: #e5e7eb;
    --dui-border-soft: #eef2f7;
    --dui-border-strong: #cbd5e1;
    --dui-text: #0f172a;
    --dui-text-body: #333333;
    --dui-muted: #64748b;
    --dui-muted-light: #9ca3af;
    --dui-primary: #0d9488;
    --dui-primary-hover: #0f766e;
    --dui-success: #10B981;
    --dui-success-hover: #059669;
    --dui-warning: #f59e0b;
    --dui-danger: #ef4444;
    --dui-header-height: 60px;
    --dui-container: 1520px;
    --dui-header-search: 320px;
    --dui-left-col: 250px;
    --dui-right-col: 280px;
    --dui-gap: 18px;
    --dui-radius-card: 16px;
    --dui-radius-tile: 16px;
    --dui-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.05);
    --dui-shadow-tile: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.05);
    --dui-shadow-dropdown: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--dui-header-height);
    overflow-x: hidden;
    background: var(--dui-page-bg);
    color: var(--dui-text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.65);
    outline-offset: 2px;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    top: 8px;
    left: 8px;
    z-index: 10001;
    width: auto;
    height: auto;
    clip: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--dui-text);
    box-shadow: var(--dui-shadow-dropdown);
}

#domainui-global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--dui-header-height);
    background: var(--dui-header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--dui-container);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.logo-section,
.header-right,
.main-nav,
.header-search-form,
.header-search-wrap {
    display: flex;
    align-items: center;
}

.logo-section {
    gap: 12px;
    min-width: 190px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    height: 30px;
    display: block;
}

.header-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.header-search {
    flex: 1;
    max-width: var(--dui-header-search);
    margin: 0 16px;
}

.header-search-wrap {
    position: relative;
    width: 100%;
}

.header-search-icon {
    position: absolute;
    left: 10px;
    z-index: 1;
    color: #9CA3AF;
    font-size: 11px;
    pointer-events: none;
}

.header-search-input {
    width: 100%;
    padding: 6px 46px 6px 30px;
    border: 1px solid var(--dui-border);
    border-radius: 8px;
    background: #fff;
    color: #1F2937;
    font-size: 12px;
    outline: none;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.header-search-input::placeholder {
    color: #9CA3AF;
}

.header-search-input:focus {
    border-color: var(--dui-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.header-search-go {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: var(--dui-success);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    opacity: .9;
}

.header-search-go:hover {
    background: var(--dui-success-hover);
    opacity: 1;
}

.header-right {
    gap: 8px;
    min-width: 0;
}

.main-nav {
    gap: 4px;
    margin-right: 12px;
}

.nav-item,
.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.nav-item {
    padding: 8px 14px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, .75);
}

.nav-item:hover,
.nav-item.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.nav-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.header-action-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
}

.header-action-btn:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.header-inbox-btn,
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    cursor: pointer;
}

.header-inbox-btn:hover,
.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
}

.user-dropdown {
    position: relative;
}

.user-dropdown summary {
    list-style: none;
}

.user-dropdown summary::-webkit-details-marker {
    display: none;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    font-size: 13px;
    transition: background .2s, border-color .2s;
}

.user-dropdown-btn:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .18);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.chevron-icon {
    font-size: 10px;
    opacity: .7;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10000;
    display: none;
    min-width: 200px;
    padding: 4px;
    border: 1px solid var(--dui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--dui-shadow-dropdown);
}

.user-dropdown[open] .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
}

.dropdown-menu a i {
    width: 16px;
    color: var(--dui-muted-light);
    text-align: center;
    font-size: 13px;
}

.dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background: #f3f4f6;
}

.dropdown-logout,
.dropdown-logout i {
    color: var(--dui-danger) !important;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--dui-container);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.dash-hub {
    padding: 24px 0 0;
}

.dash-layout {
    display: grid;
    grid-template-columns: var(--dui-left-col) minmax(0, 1fr) var(--dui-right-col);
    gap: var(--dui-gap);
    min-height: calc(100vh - var(--dui-header-height) - 120px);
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 78px;
    align-self: start;
}

.dash-sidebar-tile,
.dash-command-card,
.dash-section-card,
.hero,
.feed-head,
.detail-panel,
.seller-profile,
.seller-inventory-head,
.domain-card,
.collection-card,
.request-card,
.seller-card,
.message-row,
.compact-domain-table,
.empty-state {
    background: #fff;
    border: 1px solid var(--dui-border);
    border-radius: var(--dui-radius-card);
    box-shadow: var(--dui-shadow-card);
}

.dash-sidebar-tile {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border-color: #e5e7eb;
    border-radius: var(--dui-radius-tile);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--dui-shadow-tile);
}

.dash-sidebar-tile::before {
    display: none;
}

.dash-sidebar-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dash-group-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.dash-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.dash-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-side-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dash-side-item:hover,
.dash-side-item.active {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    transform: translateX(2px);
}

.dash-side-item.active .dash-side-name {
    color: var(--dui-primary);
}

.dash-side-icon,
.dash-feed-icon,
.dash-insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-side-icon {
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 8px;
    font-size: 11px;
}

.dash-sic-teal,
.dash-cic-teal { background: #f0fdfa; color: #0d9488; }
.dash-sic-blue,
.dash-cic-blue { background: #eff6ff; color: #2563eb; }
.dash-sic-purple { background: #faf5ff; color: #9333ea; }
.dash-sic-emerald { background: #ecfdf5; color: #059669; }
.dash-sic-amber,
.dash-cic-amber { background: #fffbeb; color: #d97706; }
.dash-sic-red { background: #fef2f2; color: #dc2626; }

.dash-side-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-side-name {
    color: var(--dui-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.dash-side-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--dui-muted);
    font-size: 9.5px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dash-centre {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-primary {
    min-width: 0;
}

.dash-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero,
.feed-head,
.detail-panel,
.seller-profile,
.seller-inventory-head {
    padding: 20px;
    margin-bottom: 14px;
}

.hero {
    display: grid;
    gap: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 58%, #f8fafc 100%);
    border-color: #dbe4ef;
}

.eyebrow,
.dash-command-eyebrow,
.dash-section-eyebrow {
    color: var(--dui-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.hero h1,
.feed-head h1,
.detail-panel h1,
.seller-profile-hero h1 {
    margin: 0;
    color: var(--dui-text);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.15;
}

.hero p,
.feed-head p,
.detail-panel p,
.seller-profile p {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.feed-head,
.seller-profile,
.seller-inventory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tabs a,
.view-controls a,
.quick-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--dui-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--dui-text);
    font-size: 12px;
    font-weight: 800;
}

.tabs a:hover,
.tabs a.active,
.view-controls a:hover,
.view-controls a.active,
.quick-filters a:hover {
    border-color: var(--dui-primary);
    color: var(--dui-primary);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.activity-notice,
.flash,
.schema-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
}

.schema-warning {
    display: grid;
    justify-content: stretch;
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flash-success {
    border-color: #a7f3d0;
    background: #d1fae5;
    color: #065f46;
}

.flash-error,
.flash-danger {
    border-color: #fecaca;
    background: #fee2e2;
    color: #991b1b;
}

.feed-list {
    display: grid;
    gap: 12px;
}

.domain-card,
.collection-card,
.request-card,
.seller-card,
.message-row {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.domain-card.featured {
    border-color: #dbe4ef;
}

.card-top,
.price-line,
.card-meta,
.card-actions,
.compact-actions,
.profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-top {
    justify-content: space-between;
    gap: 12px;
}

.domain-name,
.price {
    color: var(--dui-text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.domain-name:hover {
    color: var(--dui-primary);
}

.price {
    color: #059669;
}

.muted,
.view-note,
.card-meta {
    color: var(--dui-muted);
    font-size: 12px;
    line-height: 1.45;
}

.card-meta span + span::before {
    content: '·';
    margin-right: 8px;
    color: #cbd5e1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 800;
}

.badge-verified {
    background: #d1fae5;
    color: #065f46;
}

.badge-drop {
    background: #fee2e2;
    color: #991b1b;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.price-drop-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--dui-muted);
    font-size: 12px;
    font-weight: 700;
}

.price-drop-line .was {
    color: #94a3b8;
    text-decoration: line-through;
}

.btn,
.icon-btn,
.action-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--dui-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--dui-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn:hover,
.icon-btn:hover,
.action-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.btn-primary,
.action-form button {
    border-color: var(--dui-primary);
    background: var(--dui-primary);
    color: #fff;
}

.btn-primary:hover,
.action-form button:hover {
    background: var(--dui-primary-hover);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--dui-text);
}

.icon-btn {
    width: 34px;
    padding: 0;
}

.inline-action {
    display: inline-flex;
}

.filters,
.seller-domain-filters,
.action-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--dui-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--dui-shadow-card);
}

.filter-row,
.seller-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.filters input,
.filters select,
.seller-domain-filters input,
.seller-domain-filters select,
.action-form input,
.action-form select,
.action-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--dui-border);
    border-radius: 8px;
    background: #fff;
    color: #1F2937;
    font-size: 12px;
    outline: none;
}

.filters input:focus,
.filters select:focus,
.seller-domain-filters input:focus,
.seller-domain-filters select:focus,
.action-form input:focus,
.action-form select:focus,
.action-form textarea:focus {
    border-color: var(--dui-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .15);
}

.checkbox-row,
.filter-actions,
.seller-inventory-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-row label,
.action-form label {
    color: var(--dui-muted);
    font-size: 12px;
    font-weight: 700;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkbox-row input {
    width: auto;
    min-height: 0;
    accent-color: var(--dui-primary);
}

.action-form label {
    display: grid;
    gap: 5px;
}

.rail-card {
    padding: 14px;
}

.dash-feed-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dash-feed-icon,
.dash-insight-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 12px;
}

.dash-feed-label {
    flex: 1;
    margin: 0;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.rail-card dl {
    display: grid;
    gap: 7px;
}

.rail-card dl div,
.dash-stat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #f9fafb;
}

.rail-card dt {
    color: var(--dui-muted-light);
    font-size: 10px;
    font-weight: 700;
}

.rail-card dd {
    color: var(--dui-text);
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.dash-insight-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 4px;
    border-radius: 6px;
}

.dash-insight-row:hover {
    background: #f9fafb;
}

.dash-insight-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-insight-name {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.dash-insight-desc {
    color: var(--dui-muted-light);
    font-size: 10px;
    line-height: 1.3;
}

.rail-card h3,
.collection-card h2,
.request-card h2,
.seller-card h2,
.message-row strong {
    color: var(--dui-text);
    font-size: 13px;
    font-weight: 850;
}

.seller-profile {
    display: flex;
}

.seller-profile-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.seller-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #f0fdfa;
    color: var(--dui-primary);
    font-size: 22px;
    font-weight: 900;
}

.seller-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.seller-stat {
    padding: 11px;
    border: 1px solid var(--dui-border);
    border-radius: 12px;
    background: #f8fafc;
}

.seller-stat b {
    display: block;
    color: var(--dui-text);
    font-size: 16px;
    font-weight: 900;
}

.seller-stat span {
    color: var(--dui-muted);
    font-size: 10px;
    font-weight: 700;
}

.view-controls {
    display: inline-flex;
    gap: 6px;
}

.compact-domain-table {
    overflow-x: auto;
    margin-bottom: 14px;
}

.compact-domain-table table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12px;
}

.compact-domain-table th,
.compact-domain-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--dui-border-soft);
    text-align: left;
    white-space: nowrap;
}

.compact-domain-table th {
    color: var(--dui-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.compact-domain-table td {
    color: var(--dui-text);
    font-weight: 650;
}

.compact-domain {
    display: block;
    color: var(--dui-text);
    font-weight: 850;
}

.compact-domain:hover {
    color: var(--dui-primary);
}

.compact-domain + span {
    display: block;
    color: var(--dui-muted-light);
    font-size: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pagination span {
    color: var(--dui-muted);
    font-size: 12px;
    font-weight: 700;
}

.empty-state {
    padding: 34px 20px;
    text-align: center;
    color: var(--dui-muted);
}

.empty-state h2 {
    margin-bottom: 5px;
    color: var(--dui-text);
    font-size: 16px;
    font-weight: 850;
}

.empty-state p {
    margin: 0 auto;
    max-width: 460px;
    color: var(--dui-muted);
    font-size: 12px;
}

@media (max-width: 1200px) {
    .main-nav span,
    .header-action-btn span {
        display: none;
    }

    .main-nav {
        margin-right: 4px;
    }
}

@media (max-width: 1000px) {
    .dash-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        position: static;
    }

    .dash-sidebar-tile {
        min-width: 0;
    }

    .dash-sidebar-tile:first-child {
        grid-column: 1 / -1;
    }

    .dash-sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .dash-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dash-right .rail-card:first-child {
        grid-column: 1 / -1;
    }

    .seller-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-row,
    .seller-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 12px 40px;
    }

    .dash-hub {
        padding: 12px 0 0;
    }

    .dash-layout {
        gap: 14px;
    }

    .header-container {
        padding: 0 10px;
        gap: 8px;
    }

    .header-title,
    .header-search,
    .user-name,
    .chevron-icon {
        display: none;
    }

    .logo-section {
        gap: 8px;
        min-width: 0;
    }

    .logo-img {
        height: 26px;
    }

    .header-right {
        gap: 6px;
        margin-left: auto;
    }

    .main-nav {
        display: none;
    }

    .main-nav.mobile-open {
        position: fixed;
        top: var(--dui-header-height);
        left: 0;
        right: 0;
        z-index: 9998;
        display: flex;
        padding: 8px 16px;
        gap: 8px;
        background: var(--dui-header-bg-mobile);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    }

    .main-nav.mobile-open span {
        display: inline;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .user-dropdown-btn {
        padding: 3px;
        border: 0;
        background: transparent;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .header-action-btn {
        width: 36px;
        padding: 0;
    }

    .dash-sidebar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dash-sidebar-list {
        display: flex;
        flex-direction: column;
    }

    .dash-side-desc {
        display: none;
    }

    .dash-right {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero,
    .feed-head,
    .detail-panel,
    .seller-profile,
    .seller-inventory-head,
    .domain-card,
    .collection-card,
    .request-card,
    .seller-card,
    .message-row {
        padding: 14px;
        border-radius: 12px;
    }

    .feed-head,
    .seller-profile,
    .seller-inventory-head {
        flex-direction: column;
    }

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

    .card-actions,
    .profile-actions,
    .filter-actions {
        align-items: stretch;
    }

    .card-actions .btn,
    .profile-actions .btn,
    .filter-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .logo-img {
        height: 24px;
    }

    .nav-item.auth-link span,
    .header-inbox-btn {
        display: none;
    }

    .hero h1,
    .feed-head h1,
    .detail-panel h1,
    .seller-profile-hero h1 {
        font-size: 22px;
    }

    .domain-name,
    .price {
        font-size: 18px;
    }

    .filter-row,
    .seller-filter-row,
    .seller-stats {
        grid-template-columns: 1fr;
    }

    .tabs,
    .quick-filters,
    .view-controls {
        align-items: stretch;
    }

    .tabs a,
    .quick-filters a,
    .view-controls a {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
