@charset "UTF-8";


:root {
    
    color-scheme: dark;

    --bg-body: #0B0B0F;
    --bg-surface: #131318;
    --bg-input: #1A1A20;
    --bg-elevated-soft: rgba(19, 19, 24, 0.72);
    --bg-header: rgba(17, 17, 20, 0.72);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-row-hover: rgba(255, 255, 255, 0.03);
    --bg-control: rgba(255, 255, 255, 0.07);
    --bg-control-hover: rgba(255, 255, 255, 0.10);
    --bg-control-active: rgba(255, 255, 255, 0.14);
    --bg-overlay: rgba(0, 0, 0, 0.62);
    --bg-row-alt: rgba(255, 255, 255, 0.015);

    --text-main: #F5F5F7;
    --text-muted: rgba(245, 245, 247, 0.68);
    --text-subtle: rgba(245, 245, 247, 0.52);

    --primary: #0A84FF;
    --primary-hover: #3395FF;
    --primary-soft: rgba(10, 132, 255, 0.18);
    --danger: #FF453A;
    --success: #32D74B;
    --warning: #FF9F0A;

    
    --border-color-subtle: rgba(255, 255, 255, 0.12);
    --border-color-strong: rgba(255, 255, 255, 0.18);
    --border: 1px solid var(--border-color-subtle);

    
    --radius: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-card: 0 18px 55px rgba(0, 0, 0, 0.48);
    --shadow-hover: 0 24px 70px rgba(0, 0, 0, 0.58);
    --ring: 0 0 0 3px rgba(10, 132, 255, 0.35);

    --chart-text: rgba(245, 245, 247, 0.88);
    --chart-grid: rgba(255, 255, 255, 0.11);
    --chart-tooltip-bg: rgba(18, 18, 22, 0.94);
    --chart-tooltip-border: rgba(255, 255, 255, 0.14);

    --scrollbar-track: rgba(255, 255, 255, 0.06);
    --scrollbar-thumb: rgba(255, 255, 255, 0.18);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);

    
    --sidebar-width: 260px;
    --content-max-width: 1400px;
    --header-height: 64px;

    
    --space-1: 0.25rem; 
    --space-2: 0.5rem;  
    --space-3: 0.75rem; 
    --space-4: 1rem;    
    --space-5: 1.5rem;  
    --space-6: 2rem;    

    
    --font-sans: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
}


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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    word-break: break-word;
}

body.authenticated {
    background-color: var(--bg-body);
}

body.unauthenticated {
    background-color: var(--bg-body);
}

::selection {
    background: var(--primary);
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

i[data-feather],
svg[data-feather],
svg.feather {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-16 { width: 16px !important; height: 16px !important; }
.icon-18 { width: 18px !important; height: 18px !important; }
.icon-md { width: 20px !important; height: 20px !important; }
.icon-24 { width: 24px !important; height: 24px !important; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

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

input,
select,
textarea {
    font-variant-numeric: tabular-nums;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    box-shadow: 0 0 0 100px var(--bg-input) inset !important;
    -webkit-box-shadow: 0 0 0 100px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    caret-color: var(--text-main);
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-gray-400 { color: var(--text-muted); }
.text-sm-gray-500 { color: var(--text-muted); font-size: 0.85rem; }
.text-error { color: var(--danger); }
.text-sm { font-size: 0.85rem; }
.font-monospace { font-family: var(--font-mono); }
.nowrap-cell { white-space: nowrap; }

.flex-col { display: flex; flex-direction: column; gap: 0.25rem; }
.flex-center-gap-10 { display: inline-flex; align-items: center; gap: 0.625rem; }
.flex-gap-sm { display: flex; gap: 0.75rem; }

.gap-3 { gap: var(--space-3); }

.mobile-only { display: none !important; }
.desktop-only { display: inline-flex; }


#app {
    min-height: 100vh;
    background: var(--bg-body);
}

#page-dashboard-users .actions-col {
    text-align: center;
}

#page-dashboard-users td.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

.app-shell__content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    max-height: 100vh;
    background: var(--bg-surface);
    border-right: var(--border);
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.55);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
}

.sidebar-brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.sidebar-brand__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sidebar-brand__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.sidebar-nav-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    padding: 1rem 0;
    width: calc(100% + 1.5rem);
    margin-left: -0.75rem;
}

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

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group:last-child {
    
    margin-bottom: 0.3px;
}

.nav-group:first-child {
    
    margin-top: 0.3px;
}

.nav-group + .nav-group {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color-subtle);
}

.nav-group-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.1rem;
    width: calc(100% - 1.5rem);
    margin-right: 0.75rem;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0.45rem;
    
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease-out;
    pointer-events: none;
    opacity: 0.9;
}

.nav-group .nav-item + .nav-item {
    margin-top: 0.4rem;
}

.nav-item svg,
.nav-item i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    transform: translateX(4px);
    text-decoration: none;
}

.nav-item:hover::before,
.nav-item:focus-visible::before,
.nav-item.active::before {
    transform: scaleX(1);
}

.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.28);
    transform: translateX(4px);
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color-subtle);
}

.sidebar-legal {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sidebar-legal-link {
    color: inherit;
    text-decoration: none;
}

.sidebar-legal-link:hover,
.sidebar-legal-link:focus-visible {
    text-decoration: underline;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sidebar-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.45), rgba(50, 215, 75, 0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-user__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sidebar-user__name {
    font-size: 0.95rem;
    font-weight: 600;
}

.sidebar-user__role {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 999;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .sidebar-overlay {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-header);
    border-bottom: var(--border);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .app-header {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.header-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-right {
    justify-content: flex-end;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.header-breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-root {
    font-weight: 500;
}

.breadcrumb-current {
    font-weight: 600;
    color: var(--text-main);
}

.breadcrumb-separator {
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.app-header svg,
.app-header i {
    color: var(--text-main);
    stroke: currentColor;
}

/* Language picker in header — fixed width, single-line, wider so native names fit. */
.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 240px;
}

.language-picker__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.language-picker__select {
    width: 180px;
    min-width: 180px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.language-picker__select:focus {
    outline: none;
    border-color: var(--accent, #6366f1);
}

.language-picker__select option {
    background-color: #16181d;
    color: var(--text-main);
    white-space: nowrap;
}

/* Login page variant — centered under the form, same fixed-width pill. */
.language-picker--login {
    margin-top: 24px;
    justify-content: center;
}

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

.maintenance-toggle__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--bg-control);
}

.maintenance-toggle__button.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.maintenance-toggle__label {
    font-weight: 600;
    color: var(--text-main);
}

.maintenance-toggle--sm .maintenance-toggle__button {
    padding: 0.2rem 0.55rem;
    gap: 0.6rem;
}

.maintenance-toggle--sm .maintenance-toggle__label {
    font-size: 0.88rem;
}

.maintenance-toggle__button input {
    display: none;
}

.maintenance-toggle__switch {
    width: 42px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--bg-control-active);
    position: relative;
    transition: background 0.18s ease;
}

.maintenance-toggle__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-main);
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.18s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.maintenance-toggle__button input:checked + span + .maintenance-toggle__switch {
    background: var(--primary);
}

.maintenance-toggle__button input:checked + span + .maintenance-toggle__switch .maintenance-toggle__thumb {
    transform: translateX(16px);
}


.content-area {
    flex: 1;
    padding: 4rem;
}

.page {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.page.active {
    display: block;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page.exiting {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.015em;
}

.page-header-actions,
.users-actions-row,
.queue-header-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section-gap {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 1.5rem;
}


.surface-card,
.glass-card,
.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: var(--border);
    box-shadow: var(--shadow-card);
    padding: 1.5rem 1.75rem;
    transition: box-shadow 0.18s ease, transform 0.16s ease, background 0.16s ease;
}

.glass-card {
    background: var(--bg-elevated-soft);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-card {
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-card {
        background: rgba(19, 19, 24, 0.92);
    }
}

.surface-card:hover,
.glass-card:hover,
.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.skeleton-card {
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(10, 132, 255, 0.18);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}

.stat-content h3 {
    font-size: 1.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stat-content p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-control);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px var(--border-color-subtle);
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    background: var(--bg-control-hover);
    box-shadow: inset 0 0 0 1px var(--border-color-strong), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn:active,
button:active {
    transform: scale(0.98);
    box-shadow: none;
}

.btn:disabled,
button:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 34px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 18px 45px rgba(10, 132, 255, 0.42);
}

.btn-primary:active {
    box-shadow: 0 12px 30px rgba(10, 132, 255, 0.28);
}

.btn-secondary {
    background: var(--bg-control);
    color: var(--text-main);
}

.btn-danger {
    background: rgba(255, 69, 58, 0.16);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn-danger:active {
    box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.3);
}

.sidebar .btn-logout {
    background: rgba(255, 69, 58, 0.16);
    color: var(--danger);
    box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.35);
}

.sidebar .btn-logout:hover {
    background: rgba(255, 69, 58, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.42), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sidebar .btn-logout i[data-feather],
.sidebar .btn-logout svg {
    color: var(--danger);
    stroke: var(--danger);
}

.btn-badge {
    padding-inline: 0.95rem;
}

.btn-large { padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn-small { padding: 0.4rem 0.95rem; font-size: 0.82rem; }

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    padding: 0;
    background: var(--bg-control);
}

.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--ring), inset 0 0 0 1px var(--border-color-strong);
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 0.9rem;
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--border-color-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.checkbox-item label {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-field,
.form-input,
textarea,
select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color-subtle);
    background: var(--bg-input);
    color: var(--text-main);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.input-field::placeholder,
.form-input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.input-field:focus,
.form-input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.input-field:disabled,
.form-input:disabled,
textarea:disabled,
select:disabled,
.input-field[disabled],
.form-input[disabled],
textarea[disabled],
select[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.input-field[readonly],
.form-input[readonly],
textarea[readonly] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.input-field[aria-invalid="true"],
.form-input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: rgba(255, 69, 58, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.18);
}

.select-min-w-sm { min-width: 120px; }
.select-min-w-md { min-width: 180px; }
.select-contrast { background: var(--bg-input); }

.search-box {
    position: relative;
}

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

.input-field-search {
    padding-left: 2.5rem;
}


.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-container.compact .data-table th,
.table-container.compact .data-table td {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.data-table thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.9rem 1rem;
    background: rgba(19, 19, 24, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
}

@supports (position: sticky) {
    .data-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
    }
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:nth-child(even) {
    background: var(--bg-row-alt);
}

.data-table tbody td {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-row-hover);
}

.table-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.table-empty-row td {
    padding: 2rem 1rem;
}


.status-badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge {
    gap: 0.4rem;
}

.status-badge i[data-feather],
.status-badge svg {
    width: 14px;
    height: 14px;
}

.status-badge.status-processing i[data-feather],
.status-badge.status-processing svg {
    animation: badge-spin 1.2s linear infinite;
}

.status-badge.status-pending {
    background: rgba(255, 149, 0, 0.12);
    color: var(--warning);
}

.status-badge.status-processing {
    background: rgba(10, 132, 255, 0.16);
    color: var(--primary);
}

.status-badge.status-completed,
.status-badge.status-success {
    background: rgba(52, 199, 89, 0.16);
    color: var(--success);
}

.status-badge.status-failed,
.status-badge.status-error {
    background: rgba(255, 59, 48, 0.12);
    color: var(--danger);
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color-subtle);
    background: var(--bg-control);
    color: var(--text-main);
    white-space: nowrap;
}

.provider-badge-icon,
.provider-badge-suffix-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    opacity: 0.92;
}

.provider-badge.provider-status-processing .provider-badge-suffix-icon {
    animation: badge-spin 1s linear infinite;
}

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

.provider-badge.provider-status-pending {
    border-color: rgba(255, 149, 0, 0.22);
    background: rgba(255, 149, 0, 0.08);
}

.provider-badge.provider-status-processing {
    border-color: rgba(10, 132, 255, 0.25);
    background: rgba(10, 132, 255, 0.10);
}

.provider-badge.provider-status-completed {
    border-color: rgba(52, 199, 89, 0.22);
    background: rgba(52, 199, 89, 0.08);
}

.provider-badge.provider-status-failed {
    border-color: rgba(255, 59, 48, 0.22);
    background: rgba(255, 59, 48, 0.06);
}

.worker-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.worker-status-online {
    background: rgba(52, 199, 89, 0.18);
    color: var(--success);
}

.worker-status-offline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.worker-status-busy {
    background: rgba(255, 149, 0, 0.16);
    color: var(--warning);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: var(--bg-control);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }

.pill-soft { background: var(--bg-control); color: var(--text-muted); }
.pill-success { background: rgba(50, 215, 75, 0.18); color: var(--success); }


.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: var(--bg-control);
    color: rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    margin: 0 auto 0.5rem;
}

.empty-state-icon i[data-feather] {
    width: 28px;
    height: 28px;
}

.empty-state-title {
    font-weight: 600;
    color: var(--text-main);
}


.pagination-pill-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-control);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.5rem;
}

.pagination-status,
.pagination-info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}


.queue-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.thumbnail-link {
    display: inline-flex;
    border-radius: 16px;
    overflow: hidden;
}

.queue-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.queue-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.queue-subtitle-divider {
    margin: 0 0.35rem;
    opacity: 0.8;
}

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

.queue-control {
    display: inline-flex;
    align-items: center;
}

.queue-control .input-field,
.queue-control .input-field-search {
    min-width: 220px;
}

.queue-status-meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.queue-status-error {
    color: rgba(255, 69, 58, 0.92);
}



.logs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.log-item {
    border-radius: var(--radius);
    border: var(--border);
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
}

.log-item.info { border-left: 3px solid var(--primary); }
.log-item.warning { border-left: 3px solid var(--warning); }
.log-item.error { border-left: 3px solid var(--danger); }
.log-item.success { border-left: 3px solid var(--success); }

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.log-type-badge {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-control);
}

.log-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.log-details {
    font-size: 0.9rem;
    color: var(--text-main);
}

.log-user {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .modal {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.close-modal i[data-feather],
.close-modal svg {
    width: 18px;
    height: 18px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: var(--border);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 1.75rem 1.5rem;
    max-width: 560px;
    width: 100%;
    overflow: visible;
}

.modal-content--narrow {
    max-width: 420px;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.012em;
}

.modal-header .close-modal {
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent;
}

.modal-header .close-modal:hover {
    background: var(--bg-control);
    box-shadow: inset 0 0 0 1px var(--border-color-subtle);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: min(72vh, 640px);
    overflow: auto;
    padding-right: 0.25rem;
}

.modal-actions,
.form-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-subtle);
}

.modal .form-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-subtle);
}

.modal .btn,
.modal button,
.modal input[type="submit"],
.modal input[type="button"] {
    box-shadow: none;
}

.modal .btn:hover,
.modal button:hover,
.modal input[type="submit"]:hover,
.modal input[type="button"]:hover {
    box-shadow: none;
}

.modal-message {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0.25rem 0 0.5rem;
}

.modal .surface-card:hover,
.modal .glass-card:hover,
.modal-content:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

@media (max-width: 520px) {
    .modal-content {
        border-radius: 18px;
        padding: 1.25rem 1.25rem 1.1rem;
    }

    .modal-actions,
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}


.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 70;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
    padding-right: 2.6rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--bg-control);
    font-size: 1.1rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.toast-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.8;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.toast-close:hover {
    background: var(--bg-control);
    opacity: 1;
    color: var(--text-main);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info .toast-icon {
    color: var(--primary);
}


.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-radius: 999px;
    animation: shimmer 1.4s infinite;
}

.skeleton-text { height: 12px; }
.skeleton-text-sm { width: 60%; }
.skeleton-text-lg { height: 20px; width: 80%; }
.skeleton-circle { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-bar { height: 10px; width: 100%; }

.skeleton-width-xs { width: 30%; }
.skeleton-width-sm { width: 45%; }
.skeleton-width-md { width: 60%; }
.skeleton-width-lg { width: 80%; }
.w-90 { width: 90%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }


.noscript-banner {
    width: 100%;
    text-align: center;
    background: rgba(255, 59, 48, 0.12);
    color: var(--danger);
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.login-container {
    padding: 0;
}

.login-container > .legal-page,
.login-container > .utility-page {
    padding: 2.25rem 1.5rem;
}

@media (min-width: 768px) {
    .login-container > .legal-page,
    .login-container > .utility-page {
        padding: 3rem 2.25rem;
    }
}

.legal-page .surface-card,
.utility-page .surface-card {
    padding: 1.75rem 1.9rem;
}

.legal-page h3 {
    margin: 1.35rem 0 0.6rem;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.legal-page p {
    margin: 0.7rem 0;
}

.legal-page ul {
    margin: 0.6rem 0 0.9rem;
    padding-left: 1.15rem;
    color: var(--text-muted);
}

.legal-page li {
    margin: 0.35rem 0;
}

.utility-page .form-actions {
    margin-top: 1.5rem;
}

.login-split-container {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(10, 132, 255, 0.18), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(50, 215, 75, 0.12), transparent 45%),
        radial-gradient(circle at 70% 18%, rgba(255, 159, 10, 0.10), transparent 42%),
        var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem 1.5rem;
}

.login-footer {
    width: min(1400px, 96%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    background: var(--bg-header);
    border: 1px solid var(--border-color-subtle);
    color: var(--text-muted);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-footer {
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
}

.login-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover,
.login-footer a:focus-visible {
    color: var(--text-main);
    text-decoration: underline;
}

.login-split {
    width: min(1400px, 96%);
    min-height: 80vh;
    display: flex;
    border-radius: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.login-pane {
    flex: 0 0 35%;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-color-subtle);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 3.25rem;
}

.login-pane__content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.login-pane__headings--center {
    text-align: center;
}

.login-pane h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.login-pane__logo {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
}

@media (min-width: 1024px) {
    .login-pane__logo {
        width: 96px;
        height: 96px;
        margin-bottom: 1rem;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.login-form .form-input {
    background: var(--bg-input);
    border-radius: 18px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.login-submit-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: 0 22px 50px rgba(10, 132, 255, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.login-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 28px 60px rgba(10, 132, 255, 0.46);
}

.login-separator {
    position: relative;
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-separator::before,
.login-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.login-separator::before {
    left: 0;
}

.login-separator::after {
    right: 0;
}

.login-discord-btn {
    border-radius: 20px;
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-main);
    background: var(--bg-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-discord-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-discord-btn:hover {
    background: var(--bg-control-hover);
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.35);
    color: var(--danger);
}

.login-pricing {
    flex: 0 0 65%;
    background: radial-gradient(circle at top left, rgba(10, 132, 255, 0.2), transparent 60%),
        radial-gradient(circle at bottom right, rgba(50, 215, 75, 0.12), transparent 55%),
        #0F0F14;
    padding: 3.25rem 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.pricing-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pricing-eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--text-subtle);
}

.pricing-header h2 {
    font-size: 1.75rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    border-radius: 16px;
    background: rgba(19, 19, 24, 0.9);
    border: 1px solid var(--border-color-subtle);
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card--featured {
    border: 2px solid var(--primary);
}

.pricing-card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.pricing-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 1rem;
}

.pricing-price span {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.18);
    color: var(--primary);
}

.pricing-footer {
    color: var(--text-muted);
    font-size: 0.95rem;
}


.server-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-control);
    border: 1px solid var(--border-color-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.server-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--bg-control);
    font-size: 0.8rem;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-control);
    border: 1px solid var(--border-color-subtle);
    font-weight: 600;
}

.avatar-placeholder-sm {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.user-cell--compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

.user-id-code {
    font-size: 0.85rem;
    color: var(--text-muted);
}


.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-secondary {
    background: var(--bg-control);
    color: var(--text-main);
}

.badge-outline {
    border: 1px solid var(--border-color-strong);
    color: var(--text-main);
    background: transparent;
}

.muted-italic {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
}


.queue-guild-pill {
    border-radius: 999px;
    background: var(--bg-control);
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
}

.queue-moderator-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-assigned-guilds {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.queue-assigned-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.queue-assigned-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.queue-assigned-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--warning);
}


.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.collapsible-header .collapse-icon {
    transition: transform 0.25s ease;
}

.collapsible-header .collapse-icon.is-collapsed {
    transform: rotate(-90deg);
}

.collapsible-content.is-collapsed {
    display: none;
}


@keyframes slideUpFade {
    from {
        transform: translateY(15px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-entry {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: fadeUp 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


@media (max-width: 1200px) {
    .content-area {
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 248px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .app-shell__content {
        margin-left: 0;
    }

    .app-header {
        margin-left: 0;
    }

    .header-content {
        padding-inline: 1.5rem;
    }

    .content-area {
        padding: 1.75rem 1.5rem 2.5rem;
    }

    .mobile-only { display: inline-flex !important; }
    .desktop-only { display: none !important; }

    .login-split {
        flex-direction: column;
        width: min(95%, 100%);
    }

    .login-pane,
    .login-pricing {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 2.75rem 2.25rem;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .content-area {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .page {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .queue-header-primary,
    .users-actions-row,
    .logs-filter,
    .worker-controls {
        flex-direction: column !important;
        align-items: stretch;
    }

    .queue-controls {
        justify-content: flex-start;
    }

    .queue-control .input-field,
    .queue-control .input-field-search {
        min-width: 100%;
    }


		    .stats-grid,
		    .pricing-grid {
		        grid-template-columns: 1fr !important;
		    }

    .nowrap-cell {
        white-space: normal;
        word-break: break-word;
    }

    .login-split-container {
        padding: 1.5rem;
    }

    
    .table-container {
        width: 100%;
        overflow-x: visible;
    }

    .table-container table,
    .data-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-container thead,
    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .table-container table,
    .table-container table tbody,
    .table-container table tr,
    .table-container table td,
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

	    .table-container tbody tr,
	    .data-table tbody tr {
        display: flex;
        flex-direction: column;
	        margin-bottom: 1rem;
	        border-radius: 12px;
	        border: 1px solid var(--border-color-subtle);
	        background: var(--bg-surface);
	        padding: 1rem;
	        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
	    }

    .table-container td,
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }

    .table-container td:last-child,
    .data-table td:last-child {
        padding-bottom: 0;
    }

    .table-container td::before,
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.78rem;
        color: var(--text-muted);
        margin-right: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
}

@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .content-area {
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }

        .sidebar {
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }
    }
}

@media (max-width: 600px) {
    .login-split-container {
        padding: 1rem;
    }

    .login-split {
        width: 100%;
        border-radius: 0;
    }

    .login-pane,
    .login-pricing {
        padding: 2rem 1.5rem;
    }

}


@media (min-width: 1440px) {
    :root {
        --content-max-width: 1800px;
    }

    .header-content {
        padding: 0.75rem 4rem;
    }

    .content-area {
        padding: 2.5rem 4rem 3.5rem;
    }

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

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

@media (min-width: 1600px) {
    .login-split-container {
        padding: 3rem 4rem;
    }

    .login-split {
        width: min(1800px, 92%);
        min-height: 82vh;
    }

    .login-pane {
        flex: 0 0 36%;
        padding: 3.5rem 3.5rem;
        align-items: center;
        justify-content: center;
    }

    .login-pane__content {
        max-width: 500px;
    }

    .login-pricing {
        flex: 1 1 auto;
        padding: 3.5rem 4.5rem;
    }

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

@media (min-width: 2500px) {
    :root {
        --content-max-width: 2200px;
    }

    .header-content {
        padding: 0.75rem 5rem;
    }

    .content-area {
        padding: 3rem 5rem 4rem;
    }

    .login-split-container {
        padding-inline: 5rem;
    }

    .login-split {
        width: min(2200px, 88%);
    }
}
