:root {
    --bg: #07111f;
    --bg-elevated: #0c1628;
    --surface: rgba(12, 22, 40, 0.88);
    --surface-strong: #111f35;
    --surface-soft: #162742;
    --surface-highlight: rgba(84, 143, 255, 0.12);
    --border: rgba(138, 174, 255, 0.16);
    --border-strong: rgba(124, 169, 255, 0.28);
    --text-primary: #f4f8ff;
    --text-secondary: #98aacf;
    --text-muted: #6f84ac;
    --accent: #5a8cff;
    --accent-strong: #86a9ff;
    --accent-soft: rgba(90, 140, 255, 0.18);
    --success: #2fd0a4;
    --warning: #f5b85b;
    --danger: #ef6678;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    background:
        radial-gradient(circle at top, rgba(58, 99, 197, 0.24), transparent 28%),
        linear-gradient(180deg, #08111e 0%, #07101c 100%);
    color: var(--text-primary);
}

body.has-modal-open {
    overflow: hidden;
}

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

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

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px 14px;
    border-right: 1px solid var(--border);
    background: rgba(6, 14, 26, 0.78);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(12, 22, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    cursor: default;
}

.sidebar-logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 0;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.sidebar-brand:hover .sidebar-logo-mark {
    transform: scale(0.92);
}

.sidebar-brand-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-transform: none;
}

.sidebar-brand-subtitle,
.sidebar-section-label,
.metric-meta,
.panel-kicker,
.table-subtle,
.eyebrow,
.empty-state p,
.sidebar-card p {
    color: var(--text-muted);
}

.eyebrow {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.sidebar-section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(14, 28, 48, 0.86);
    border-color: var(--border);
    color: var(--text-primary);
}

.sidebar-link.is-active {
    background: rgba(90, 140, 255, 0.1);
    border-color: rgba(90, 140, 255, 0.24);
    color: var(--text-primary);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(12, 22, 40, 0.5);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-footer-row i {
    width: 14px;
    text-align: center;
    color: var(--accent);
    font-size: 11px;
}

.sidebar-footer-row span {
    color: var(--text-secondary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 12px;
    transition: color 0.2s;
}

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

.btn-logout i {
    width: 14px;
    text-align: center;
    font-size: 11px;
}

.sidebar-card,
.metric-card,
.panel,
.table-shell,
.auth-card,
.hero-card,
.summary-card,
.list-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(12, 22, 40, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.sidebar-card {
    margin-top: auto;
    padding: 16px;
}

.sidebar-card-title,
.panel-title,
.summary-title,
.auth-card h2,
.hero-card h1,
.hero-card h2 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.auth-card h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.app-main {
    min-width: 0;
    padding: 20px 24px;
}

.app-content {
    display: grid;
    gap: 18px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h1,
.hero-card h1,
.auth-card h2 {
    margin-top: 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.topbar p,
.hero-card p,
.auth-card p,
.summary-copy,
.panel-copy {
    margin: 0;
    color: var(--text-secondary);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metrics-grid,
.grid-2,
.grid-3,
.shop-grid {
    display: grid;
    gap: 18px;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

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

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

.shop-grid {
    grid-template-columns: 240px minmax(0, 1fr);
}

.metric-card {
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.metric-icon,
.panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.metric-value {
    margin-top: 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.panel,
.summary-card,
.list-card {
    padding: 22px;
}

.panel-head,
.summary-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.btn,
.icon-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #4d7dff, #6796ff);
    color: #f8fbff;
    box-shadow: 0 16px 32px rgba(90, 140, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(90, 140, 255, 0.45), 0 0 0 1px rgba(134, 169, 255, 0.3);
}

.btn-secondary {
    border-color: var(--border);
    background: rgba(13, 24, 41, 0.82);
}

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}

.btn-danger {
    background: rgba(239, 102, 120, 0.12);
    border-color: rgba(239, 102, 120, 0.24);
    color: #ffb4be;
}

.btn:hover,
.icon-btn:hover,
.sidebar-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.icon-btn,
.sidebar-toggle {
    width: 44px;
    height: 44px;
    justify-content: center;
    background: rgba(12, 23, 40, 0.84);
    color: var(--text-primary);
    border-color: var(--border);
}

.sidebar-toggle {
    display: none;
}

.filters-card {
    position: sticky;
    top: 28px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.search-input {
    min-width: 180px;
    flex: 1 1 180px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(6, 14, 24, 0.68);
    color: var(--text-primary);
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(90, 140, 255, 0.14);
}

.segmented-control,
.crypto-grid,
.format-builder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.format-builder-grid .format-token {
    font-size: 0.75rem;
    padding: 6px 10px;
}
[data-format-output] {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

.segment,
.crypto-option {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(6, 14, 24, 0.68);
    color: var(--text-secondary);
    padding: 10px 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.segment:hover,
.segment.is-active,
.crypto-option:hover,
.crypto-option.is-active {
    border-color: var(--accent);
    background: rgba(90, 140, 255, 0.12);
    color: var(--text-primary);
}

.crypto-option {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.wallet-layout {
    align-items: start;
}

.wallet-crypto-grid .crypto-option {
    justify-content: space-between;
}

.wallet-crypto-grid .crypto-option strong {
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.wallet-address-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 176, 235, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 14px;
}

.wallet-address-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.wallet-address-code {
    min-height: 96px;
    margin: 0;
}

.compact-summary {
    padding: 16px;
}

.table-shell {
    overflow: hidden;
}

.table-toolbar {
    padding: 18px 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.table-wrap {
    overflow-x: auto;
    padding: 18px 22px 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 176, 235, 0.08);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

td {
    color: var(--text-primary);
}

tbody tr:hover {
    background: rgba(90, 140, 255, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.is-blue {
    background: rgba(90, 140, 255, 0.14);
    color: #a9c2ff;
}

.badge.is-green {
    background: rgba(47, 208, 164, 0.14);
    color: #9bf4da;
}

.badge.is-red {
    background: rgba(239, 102, 120, 0.14);
    color: #ffb2bd;
}

.badge.is-amber {
    background: rgba(245, 184, 91, 0.14);
    color: #ffd694;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(148, 176, 235, 0.08);
}

.cart-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cart-item-meta,
.stack {
    display: grid;
    gap: 6px;
}

.summary-list,
.detail-list {
    display: grid;
    gap: 12px;
}

.summary-row,
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-secondary);
}

.summary-row strong,
.detail-row strong {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: right;
}

.progress-list {
    display: grid;
    gap: 14px;
}

.progress-item {
    display: grid;
    gap: 8px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4d7dff, #56c2ff);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}

.auth-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: auth-orb-float 20s ease-in-out infinite;
}

.auth-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #4d7dff 0%, #3a63c5 100%);
    top: -200px;
    right: -100px;
}

.auth-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #56c2ff 0%, #4d7dff 100%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes auth-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.auth-grid-pattern {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hero-card {
    display: none;
}

.hero-copy {
    max-width: 560px;
}

.hero-copy h1 {
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(90, 140, 255, 0.12);
    border: 1px solid rgba(124, 169, 255, 0.2);
    color: #bed1ff;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: 48px 44px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: auth-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card-inner {
    width: 100%;
    display: grid;
    gap: 28px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: auth-card-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-logo-mark {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 0;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.auth-logo:hover .auth-logo-mark {
    transform: scale(0.92);
}

.auth-logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.link-accent {
    color: var(--accent);
    text-decoration: none;
}
.link-accent:hover {
    text-decoration: underline;
}

.auth-card-header {
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form .field {
    gap: 12px;
}

.captcha-panel {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.captcha-media {
    flex: 1;
    min-width: 0;
    height: 72px;
    border: 1px solid rgba(90, 140, 255, 0.28);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(4, 10, 22, 0.96) 0%, rgba(0, 20, 48, 0.92) 100%);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(90, 140, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(86, 194, 255, 0.15) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.captcha-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: invert(1);
    position: relative;
    z-index: 0;
}

.field-inline {
    position: relative;
}

.field-inline i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.field-inline .input {
    padding-left: 42px;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-meta span {
    cursor: default;
    user-select: none;
}

.form-status {
    min-height: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-status.is-error {
    color: #ffb2bd;
}

.form-status.is-success {
    color: #9bf4da;
}

.captcha-refresh-btn {
    flex-shrink: 0;
    width: 52px;
    height: 72px;
    border: 1px solid rgba(90, 140, 255, 0.28);
    border-radius: 14px;
    background: rgba(10, 20, 38, 0.8);
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 16px;
}

.captcha-refresh-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 140, 255, 0.85) 0%, rgba(86, 194, 255, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.captcha-refresh-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(90, 140, 255, 0.35);
}

.captcha-refresh-btn:hover::before {
    opacity: 1;
}

.captcha-refresh-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-refresh-btn:hover i {
    transform: rotate(180deg);
}

.form-status.is-error,
.form-status.is-success {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-status.is-error::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f071";
    font-size: 11px;
}

.form-status.is-success::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
    font-size: 11px;
}

.auth-form .btn {
    justify-content: center;
}

.auth-form .input {
    padding: 15px 16px;
    font-size: 15px;
}

.auth-form .field-inline .input {
    padding-left: 44px;
}

.auth-form .btn-primary {
    position: relative;
    box-shadow: 0 8px 28px rgba(90, 140, 255, 0.45);
    overflow: hidden;
}

.auth-form .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-form .btn-primary:hover::after {
    opacity: 1;
}

.auth-form .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(90, 140, 255, 0.6), 0 0 0 1px rgba(134, 169, 255, 0.4);
}

.text-link {
    color: #b1c7ff;
}

.token-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 18, 0.78);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.token-modal-box {
    width: min(100%, 520px);
    border: 1px solid rgba(138, 174, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(12, 22, 40, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    padding: 24px;
}

.token-modal-box h3 {
    margin: 6px 0 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.token-modal-box p {
    margin: 0 0 18px;
    color: var(--text-secondary);
}

.token-output {
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    background: rgba(90, 140, 255, 0.08);
    color: #dbe7ff;
    font-weight: 700;
    word-break: break-all;
}

.app-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    min-width: 240px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(10, 18, 31, 0.96);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.is-success {
    border-color: rgba(47, 208, 164, 0.28);
}

.app-toast.is-error {
    border-color: rgba(239, 102, 120, 0.28);
}

.empty-state {
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state h3,
.empty-state strong {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.toolbar-cluster {
    display: flex;
    gap: 12px;
    align-items: center;
}

.toolbar-cluster-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
}

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

.limit-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination-row > div {
    display: flex;
    gap: 10px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-pages {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-chip {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(13, 24, 41, 0.82);
    color: var(--text-secondary);
    transition: 0.2s ease;
}

.page-chip:hover,
.page-chip.is-active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(90, 140, 255, 0.12);
}

.page-chip.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.overlay-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 9, 18, 0.82);
    backdrop-filter: blur(10px);
}

.overlay-card {
    width: min(100%, 760px);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border: 1px solid rgba(138, 174, 255, 0.2);
    border-radius: var(--radius-xl);
    background: rgba(12, 22, 40, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    padding: 24px;
    display: grid;
    gap: 20px;
}

.overlay-card-wide {
    width: min(100%, 1120px);
}

.overlay-card-tall {
    max-height: calc(100vh - 40px);
}

.drawer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawer-grid > * {
    overflow: hidden;
    min-width: 0;
}
.drawer-grid .detail-row strong,
.drawer-grid .detail-value {
    word-break: break-all;
    overflow-wrap: anywhere;
}

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

.mini-list-item {
    padding: 14px;
    border: 1px solid rgba(148, 176, 235, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.admin-settings-form {
    height: 100%;
}

.chat-thread {
    min-height: 360px;
    max-height: 52vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(6, 14, 24, 0.52);
    display: grid;
    gap: 12px;
}

.message-bubble {
    max-width: min(82%, 720px);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 8px;
}

.message-bubble.is-admin {
    margin-left: auto;
    background: rgba(90, 140, 255, 0.16);
    border-color: rgba(124, 169, 255, 0.24);
}

.message-bubble.is-user {
    margin-right: auto;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.signal-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.signal-high {
    background: #ff5d73;
    box-shadow: 0 0 0 4px rgba(239, 102, 120, 0.12), 0 0 16px rgba(239, 102, 120, 0.4);
}

.signal-medium {
    background: #f5b85b;
    box-shadow: 0 0 0 4px rgba(245, 184, 91, 0.12), 0 0 16px rgba(245, 184, 91, 0.26);
}

.signal-low {
    background: #56c2ff;
    box-shadow: 0 0 0 4px rgba(86, 194, 255, 0.12), 0 0 16px rgba(86, 194, 255, 0.22);
}

.signal-clean {
    background: #2fd0a4;
    box-shadow: 0 0 0 4px rgba(47, 208, 164, 0.12), 0 0 16px rgba(47, 208, 164, 0.2);
}

.warning-banner {
    border: 1px solid rgba(239, 102, 120, 0.22);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    gap: 12px;
    background: rgba(239, 102, 120, 0.08);
}

.warning-banner strong {
    font-size: 15px;
}

.warning-banner p {
    margin: 0;
    color: var(--text-secondary);
}

.warning-banner.is-high {
    border-color: rgba(239, 102, 120, 0.26);
    background: rgba(239, 102, 120, 0.12);
}

.warning-banner.is-medium {
    border-color: rgba(245, 184, 91, 0.26);
    background: rgba(245, 184, 91, 0.12);
}

.warning-banner.is-low {
    border-color: rgba(86, 194, 255, 0.26);
    background: rgba(86, 194, 255, 0.1);
}

.warning-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.warning-source-list span {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 12px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

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

.preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 16px;
}

.preview-panel {
    border: 1px solid rgba(148, 176, 235, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    padding: 14px;
    display: grid;
    gap: 12px;
    min-height: 220px;
}

.code-scroll {
    margin: 0;
    min-height: 170px;
    max-height: 360px;
    overflow: auto;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 176, 235, 0.08);
    background: rgba(5, 11, 20, 0.78);
    color: #dbe7ff;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
}

.mt-section {
    margin-top: 18px;
}

.mb-0 {
    margin-bottom: 0;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.truncate-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1280px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-grid,
    .cart-layout,
    .preview-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1040px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 50;
        width: min(320px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .topbar {
        flex-direction: column;
    }
}

@media (max-width: 860px) {
    .grid-2,
    .grid-3,
    .form-grid.two-col,
    .drawer-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        padding: 24px 16px;
        gap: 24px;
    }

    .auth-card {
        padding: 36px 28px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .app-main {
        padding: 18px;
    }

    .pagination-bar,
    .toolbar-cluster,
    .toolbar-cluster-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: 0;
        width: 100%;
    }

    .overlay-modal {
        padding: 12px;
    }
}

/* News feed */
.news-feed {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.news-item {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.news-item.is-important {
    border-color: rgba(245, 184, 91, 0.36);
    background: rgba(245, 184, 91, 0.04);
}

.news-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.news-item-title {
    font-size: 16px;
    color: var(--text-primary);
}

.news-item-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* FAQ accordion */
.faq-list {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.faq-entry {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-entry[open] {
    border-color: var(--border-strong);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-entry[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    animation: faqSlideDown 0.25s ease;
}
@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.faq-question:hover {
    background: rgba(255,255,255,0.02);
}

.field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Upload progress bar */
.upload-progress {
    display: grid;
    gap: 6px;
}

.upload-progress-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--surface-strong);
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.upload-progress-fill.is-complete {
    background: var(--success);
}

.upload-progress-fill.is-error {
    background: var(--danger);
}

.upload-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

/* === Loader Overlay === */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.loader-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Custom Checkbox / Radio === */
.checkbox-custom, .radio-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    user-select: none;
}
.checkbox-custom input, .radio-custom input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.checkbox-custom .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.checkbox-custom input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-custom input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.radio-custom .radiomark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.radio-custom input:checked + .radiomark {
    border-color: var(--accent);
}
.radio-custom input:checked + .radiomark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* === Status Badges === */
.badge.is-active     { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.badge.is-review     { background: rgba(251, 191, 36, 0.14);  color: #fbbf24; }
.badge.is-paused     { background: rgba(156, 163, 175, 0.14); color: #9ca3af; }
.badge.is-rejected   { background: rgba(239, 68, 68, 0.14);   color: #f87171; }
.badge.is-pending    { background: rgba(251, 191, 36, 0.14);  color: #fbbf24; }
.badge.is-completed  { background: rgba(16, 185, 129, 0.14);  color: #34d399; }
.badge.is-failed     { background: rgba(239, 68, 68, 0.14);   color: #f87171; }
.badge.is-processing { background: rgba(99, 102, 241, 0.14);  color: #818cf8; }
/* Role badges */
.badge.is-admin  { background: rgba(239, 68, 68, 0.14);  color: #f87171; }
.badge.is-seller { background: rgba(99, 102, 241, 0.14); color: #818cf8; }
.badge.is-user   { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.badge.is-banned { background: rgba(239, 68, 68, 0.25);  color: #fca5a5; }

/* === Mobile / Tablet (below 860px) === */
@media (max-width: 600px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .form-grid.two-col { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: 1fr; }
    .overlay-card { margin: 16px; max-width: none; }
    .overlay-card-wide { max-width: none; }
    .table-wrap { font-size: 0.8rem; }
    .topbar-copy h1 { font-size: 1.25rem; }
    .filters-card .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .pagination-bar { flex-direction: column; gap: 8px; }
    .topbar-metrics { grid-template-columns: 1fr; }
    .summary-card { padding: 16px; }
}

/* === Scrollbar Styling === */
.table-wrap, .code-scroll, .chat-messages, .mini-list {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.table-wrap::-webkit-scrollbar,
.code-scroll::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.mini-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.table-wrap::-webkit-scrollbar-track,
.code-scroll::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb,
.code-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* === Misc fixes === */
::selection { color: #fff; background-color: var(--accent); }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* === Metric card hover === */
.metric-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.metric-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-1px); }

/* === Password toggle button positioning === */
.field-password { position: relative; }
.field-password .input { padding-right: 44px; }
.field-password [data-toggle-password] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
}
.field-password [data-toggle-password]:hover { color: var(--text-primary); }

/* === Drag-drop upload area === */
.upload-drop-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-drop-area:hover,
.upload-drop-area.is-dragover {
    border-color: var(--accent);
    background: rgba(90, 140, 255, 0.05);
}
.upload-drop-area i { font-size: 2rem; margin-bottom: 8px; display: block; color: var(--accent); }
.upload-drop-area p { margin: 4px 0; font-weight: 500; color: var(--text-primary); }
.upload-drop-filename {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--surface-strong);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === Clickable mini-list items === */
.mini-list-item[style*="cursor:pointer"]:hover,
.mini-list-item[data-user-base-link]:hover {
    background: rgba(90, 140, 255, 0.08);
    border-radius: var(--radius-sm);
}

/* === Format token active state === */
.format-token.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === Severity indicators === */
.is-high { color: var(--danger); border-color: var(--danger); }
.is-medium { color: var(--warning); border-color: var(--warning); }
.is-low { color: var(--success); border-color: var(--success); }
.warning-banner.is-high { background: rgba(239,102,120,0.1); border-color: var(--danger); }
.warning-banner.is-medium { background: rgba(245,184,91,0.1); border-color: var(--warning); }
.warning-banner.is-low { background: rgba(47,208,164,0.1); border-color: var(--success); }

/* === Truncate cell === */
.truncate-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Format Chips === */
.format-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    color: var(--chip-color, var(--accent));
    background: rgba(90, 140, 255, 0.1);
    border: 1px solid color-mix(in srgb, var(--chip-color, var(--accent)) 30%, transparent);
    cursor: default;
}
.format-chip i {
    font-size: 9px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.format-chip i:hover { opacity: 1; color: var(--danger); }

/* === Confirmation modal summary rows === */
.overlay-card-body .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.overlay-card-body .summary-row:last-child { border-bottom: none; }
.overlay-card-body .detail-label { color: var(--text-muted); }
.overlay-card-body .detail-value { color: var(--text-primary); font-weight: 500; }
.overlay-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

/* === Filter Group Accordion === */
.filter-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.filter-group[open] {
    border-color: var(--border-strong);
}
.filter-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    list-style: none;
    user-select: none;
}
.filter-group-title::-webkit-details-marker { display: none; }
.filter-group-title:hover { color: var(--text-primary); background: rgba(255,255,255,0.02); }
.filter-group-chevron {
    font-size: 10px;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.filter-group[open] .filter-group-chevron { transform: rotate(180deg); }
.filter-group-body {
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
    animation: faqSlideDown 0.2s ease;
}

/* === Custom Select Arrow === */
.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2398aacf' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* === Sidebar Cart Badge === */
.sidebar-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}
.sidebar-badge-new {
    background: var(--success, #2fd0a4);
}
.sidebar-badge-warn {
    background: var(--accent, #5a8cff);
}

/* === Support: unread row highlight === */
tr.has-unread {
    background: var(--accent-soft);
}
tr.has-unread td {
    font-weight: 600;
}
tr.has-unread td:nth-child(6) {
    color: var(--accent-strong);
}

/* === Shop table compact === */
.shop-grid .table-wrap {
    padding: 10px 12px 12px;
}
.shop-grid .table-toolbar {
    padding: 12px 12px 0;
}
.shop-grid table {
    font-size: 11.5px;
    font-weight: 400;
}
.shop-grid table th,
.shop-grid table td {
    padding: 5px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.shop-grid table th {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.shop-grid table td {
    color: var(--text-secondary);
}
/* Fixed-width short columns: BIN(1), Exp(2), ZIP(4), Valid(10), Price(12) */
.shop-grid table th:nth-child(1), .shop-grid table td:nth-child(1),
.shop-grid table th:nth-child(2), .shop-grid table td:nth-child(2),
.shop-grid table th:nth-child(4), .shop-grid table td:nth-child(4),
.shop-grid table th:nth-child(10), .shop-grid table td:nth-child(10),
.shop-grid table th:nth-child(12), .shop-grid table td:nth-child(12) {
    max-width: none;
    width: 1%;
}
/* Hide Info column(11) — same repetitive data for every row */
.shop-grid table th:nth-child(11),
.shop-grid table td:nth-child(11) {
    display: none;
}
/* Truncate long columns: Country(3), Bank(5), Base(6), Seller(7) */
.shop-grid table td:nth-child(3) { max-width: 78px; }
.shop-grid table td:nth-child(5) { max-width: 88px; }
.shop-grid table td:nth-child(6) { max-width: 68px; }
.shop-grid table td:nth-child(7) { max-width: 58px; }
/* Level(9) can be long too */
.shop-grid table td:nth-child(9) { max-width: 68px; }
.shop-grid table .badge {
    padding: 2px 5px;
    font-size: 9px;
    gap: 2px;
    font-weight: 600;
}
.shop-grid table .btn-sm {
    padding: 3px 6px;
    font-size: 10px;
    gap: 2px;
}
/* Action column: icon-only compact buttons */
.shop-grid table td:last-child {
    max-width: none;
    white-space: nowrap;
}
.shop-grid table td:last-child .btn-sm span {
    display: none;
}
.shop-grid table td:last-child .btn-sm {
    padding: 4px 6px;
}

.admin-autoboost-v5{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:12px}
.admin-autoboost-v5 .field{display:grid;gap:6px;min-width:160px}


/* === Topbar new-bases strip (non-clickable) === */
.topbar-newbases {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(47, 208, 164, 0.55);
    background: linear-gradient(135deg, rgba(47, 208, 164, 0.28), rgba(47, 208, 164, 0.12));
    color: #d8fff2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 0 0 1px rgba(47, 208, 164, 0.12), 0 8px 24px rgba(15, 40, 32, 0.35);
}
.topbar-newbases[hidden] {
    display: none !important;
}
.topbar-newbases i {
    color: #2fd0a4;
    font-size: 12px;
}
.topbar-newbases strong {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.topbar-newbases span {
    color: #e7fff7;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
}
.topbar-newbases em {
    color: rgba(216, 255, 242, 0.72);
    font-style: normal;
    font-weight: 600;
    font-size: 11px;
}
.topbar {
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .topbar-newbases {
        order: 3;
        width: 100%;
        margin: 8px 0 0;
        justify-content: center;
    }
}
