/*
 * Vynx UI foundation
 * Shadcn preset: b7948NP8ue (Sera / Neutral / Rose / Lime / Remix Icon)
 *
 * This stylesheet intentionally adapts shadcn design tokens to the existing
 * PHP + Bootstrap UI. It does not replace routing, forms, state, or scripts.
 */

:root {
    --radius: 0.625rem;
    --background: #fafafa;
    --foreground: #171717;
    --card: #ffffff;
    --card-foreground: #171717;
    --popover: #ffffff;
    --popover-foreground: #171717;
    --surface: #f7f7f8;
    --surface-foreground: #262626;
    --surface-hover: #f0f0f1;
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #262626;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #fff1f2;
    --accent-foreground: #9f1239;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --positive: #58CC02;
    --positive-hover: #46a302;
    --positive-foreground: #183b00;
    --success: var(--positive);
    --success-foreground: #245c00;
    --success-subtle: #eefde4;
    --success-border: #b7ef92;
    --warning: #d97706;
    --warning-foreground: #92400e;
    --warning-subtle: #fffbeb;
    --warning-border: #fde68a;
    --info: #2563eb;
    --info-foreground: #1e40af;
    --info-subtle: #eff6ff;
    --info-border: #bfdbfe;
    --border: #e5e5e5;
    --input: #d4d4d4;
    --ring: rgba(225, 29, 72, 0.24);
    --chart-1: var(--positive);
    --chart-2: #65a30d;
    --chart-3: #4d7c0f;
    --chart-4: #a3e635;
    --chart-5: #bef264;
    --sidebar: #ffffff;
    --sidebar-foreground: #262626;
    --sidebar-primary: #e11d48;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #f5f5f5;
    --sidebar-accent-foreground: #171717;
    --sidebar-border: #e5e5e5;
    --sidebar-ring: rgba(225, 29, 72, 0.22);
    --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.035);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);

    /* Bootstrap compatibility: presentation only. */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--foreground);
    --bs-body-bg: var(--background);
    --bs-primary: #e11d48;
    --bs-primary-rgb: 225, 29, 72;
    --bs-secondary: #525252;
    --bs-secondary-rgb: 82, 82, 82;
    --bs-success: var(--positive);
    --bs-success-rgb: 88, 204, 2;
    --bs-warning: #d97706;
    --bs-warning-rgb: 217, 119, 6;
    --bs-danger: #dc2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-info: #2563eb;
    --bs-info-rgb: 37, 99, 235;
    --bs-border-color: var(--border);
    --bs-border-radius: var(--radius);
    --bs-border-radius-sm: 0.4375rem;
    --bs-border-radius-lg: 0.75rem;
    --bs-link-color: #be123c;
    --bs-link-hover-color: #9f1239;
}

html:not([data-theme]),
html[data-theme="dark"],
html.dark {
    --background: oklch(0.145 0.006 285);
    --foreground: oklch(0.965 0.004 285);
    --card: oklch(0.185 0.007 285);
    --card-foreground: oklch(0.965 0.004 285);
    --popover: oklch(0.205 0.008 285);
    --popover-foreground: oklch(0.965 0.004 285);
    --surface: oklch(0.205 0.008 285);
    --surface-foreground: oklch(0.94 0.005 285);
    --surface-hover: oklch(0.235 0.009 285);
    --primary: oklch(0.645 0.246 16.439);
    --primary-hover: oklch(0.586 0.253 17.585);
    --primary-foreground: oklch(0.985 0.002 285);
    --secondary: oklch(0.225 0.008 285);
    --secondary-foreground: oklch(0.94 0.005 285);
    --muted: oklch(0.215 0.008 285);
    --muted-foreground: oklch(0.69 0.012 285);
    --accent: oklch(0.245 0.038 16);
    --accent-foreground: oklch(0.86 0.105 16);
    --destructive: oklch(0.62 0.238 25);
    --destructive-foreground: oklch(0.985 0.002 285);
    --positive: #58CC02;
    --positive-hover: #6bdd18;
    --positive-foreground: #12210a;
    --success: var(--positive);
    --success-foreground: #9bec6a;
    --success-subtle: #1c3210;
    --success-border: #365e1a;
    --warning: oklch(0.77 0.17 75);
    --warning-foreground: oklch(0.9 0.105 80);
    --warning-subtle: oklch(0.23 0.038 75);
    --warning-border: oklch(0.4 0.07 75);
    --info: oklch(0.72 0.13 245);
    --info-foreground: oklch(0.88 0.07 245);
    --info-subtle: oklch(0.23 0.034 245);
    --info-border: oklch(0.4 0.065 245);
    --border: oklch(0.285 0.01 285);
    --input: oklch(0.33 0.012 285);
    --ring: oklch(0.645 0.246 16.439 / 0.34);
    --chart-1: var(--positive);
    --chart-2: oklch(0.645 0.246 16.439);
    --chart-3: oklch(0.72 0.13 245);
    --chart-4: oklch(0.77 0.17 75);
    --chart-5: oklch(0.72 0.12 305);
    --sidebar: oklch(0.118 0.005 285);
    --sidebar-foreground: oklch(0.9 0.006 285);
    --sidebar-primary: oklch(0.645 0.246 16.439);
    --sidebar-primary-foreground: oklch(0.985 0.002 285);
    --sidebar-accent: oklch(0.185 0.012 285);
    --sidebar-accent-foreground: oklch(0.965 0.004 285);
    --sidebar-border: oklch(0.235 0.009 285);
    --sidebar-ring: oklch(0.645 0.246 16.439 / 0.34);
    --shadow-xs: none;
    --shadow-sm: none;
    --bs-body-color: var(--foreground);
    --bs-body-bg: var(--background);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 244, 63, 94;
    --bs-secondary: var(--muted-foreground);
    --bs-secondary-rgb: 161, 161, 170;
    --bs-success: var(--success);
    --bs-success-rgb: 88, 204, 2;
    --bs-warning: var(--warning);
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: var(--destructive);
    --bs-danger-rgb: 239, 68, 68;
    --bs-info: var(--info);
    --bs-info-rgb: 96, 165, 250;
    --bs-border-color: var(--border);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--accent-foreground);
}

html {
    color-scheme: dark;
    background: var(--background);
    scroll-behavior: smooth;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"],
html.dark {
    color-scheme: dark;
}

body {
    min-width: 320px;
    background: var(--background) !important;
    color: var(--foreground) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #ffe4e6;
    color: #881337;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid transparent !important;
    box-shadow: 0 0 0 3px var(--ring) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.card-title,
.modal-title {
    color: var(--foreground);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.018em;
}

h1,
.h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

h2,
.h2 {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
}

h3,
.h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

a {
    color: #be123c;
    text-underline-offset: 3px;
}

a:hover {
    color: #9f1239;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

/* Card */
.card {
    color: var(--card-foreground);
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-xs) !important;
    transform: none !important;
}

.card:hover {
    box-shadow: var(--shadow-xs) !important;
    transform: none !important;
}

.card-header,
.card-footer {
    background: transparent !important;
    border-color: var(--border) !important;
    padding: 0.875rem 1rem !important;
}

.card-body {
    padding: 1rem !important;
}

.card-title {
    margin-bottom: 0.25rem;
}

/* Keep the current homepage hero readable until its dedicated redesign phase. */
.card.welcome-banner {
    color: #fafafa !important;
    background: #18181b !important;
    border-color: #27272a !important;
    box-shadow: none !important;
}

.welcome-banner b,
.welcome-banner .badge-soft {
    color: #fb7185 !important;
}

.welcome-banner .badge-soft {
    background: rgba(225, 29, 72, 0.14) !important;
    border-color: rgba(251, 113, 133, 0.3) !important;
}

/* Button */
.btn {
    min-height: 2.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
}

.btn:hover,
.btn:active {
    transform: none !important;
}

.btn-sm {
    min-height: 2rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.8125rem;
}

.btn-lg {
    min-height: 2.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
}

.btn-primary {
    color: var(--primary-foreground) !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.show {
    color: var(--primary-foreground) !important;
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: #be123c !important;
    background: transparent !important;
    border-color: #fda4af !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #9f1239 !important;
    background: var(--accent) !important;
    border-color: #fb7185 !important;
}

.btn-secondary,
.btn-light {
    color: var(--secondary-foreground) !important;
    background: var(--secondary) !important;
    border-color: var(--border) !important;
}

.btn-secondary:hover,
.btn-light:hover {
    color: var(--foreground) !important;
    background: #e5e5e5 !important;
    border-color: #d4d4d4 !important;
}

.btn-outline-secondary {
    color: #404040 !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
}

.btn-outline-secondary:hover {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: #a3a3a3 !important;
}

.btn-danger {
    background: var(--destructive) !important;
    border-color: var(--destructive) !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

/* Existing auth controls mapped to the same shadcn button variants. */
.btn-login {
    min-height: 2.625rem;
    color: var(--primary-foreground) !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.google-login {
    color: #404040 !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
}

.google-login:hover,
.google-login:focus {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: #a3a3a3 !important;
}

/* Form controls */
.form-label {
    margin-bottom: 0.375rem;
    color: #404040;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 2.5rem;
    color: var(--foreground);
    background-color: var(--card);
    border-color: var(--input);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    box-shadow: none;
}

.form-control::placeholder {
    color: #a3a3a3;
}

.form-control:hover,
.form-select:hover {
    border-color: #a3a3a3;
}

.form-control:focus,
.form-select:focus {
    color: var(--foreground);
    background-color: var(--card);
    border-color: #fb7185;
    box-shadow: 0 0 0 3px var(--ring);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    color: var(--muted-foreground);
    background: var(--muted);
    opacity: 1;
}

.form-check-input {
    border-color: var(--input);
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 3px var(--ring);
}

.input-group > :not(:first-child) {
    margin-left: -1px;
}

/* Badge */
.badge {
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
}

.badge.bg-primary,
.badge-soft-primary,
.bg-light-primary {
    color: #9f1239 !important;
    background: var(--accent) !important;
    border-color: #fecdd3 !important;
}

.badge-soft-success,
.bg-light-success {
    color: #166534 !important;
    background: var(--success-subtle) !important;
    border-color: #bbf7d0 !important;
}

.badge-soft-warning,
.bg-light-warning {
    color: #92400e !important;
    background: var(--warning-subtle) !important;
    border-color: #fde68a !important;
}

.badge-soft-danger,
.bg-light-danger {
    color: #991b1b !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

/* Table */
.table-responsive {
    border-radius: var(--radius);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--foreground);
    --bs-table-border-color: var(--border);
    --bs-table-hover-bg: #fafafa;
    margin-bottom: 0;
    color: var(--foreground);
    font-size: 0.875rem;
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.875rem !important;
    border-bottom-color: var(--border) !important;
    vertical-align: middle;
}

.table thead th,
.table-premium th {
    color: #525252 !important;
    background: #fafafa !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    text-transform: uppercase;
}

.table tbody tr:hover > * {
    background: #fafafa !important;
}

/* Tabs, pagination, breadcrumbs */
.nav-tabs {
    gap: 0.25rem;
    border-bottom-color: var(--border);
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    padding: 0.625rem 0.75rem;
    color: var(--muted-foreground);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: var(--foreground);
    border-bottom-color: #d4d4d4;
}

.nav-tabs .nav-link.active {
    color: #be123c;
    background: transparent;
    border-bottom-color: var(--primary);
}

.page-link {
    min-width: 2.25rem;
    color: #404040;
    background: var(--card);
    border-color: var(--border);
    box-shadow: none !important;
}

.active > .page-link,
.page-link.active {
    color: var(--primary-foreground);
    background: var(--primary);
    border-color: var(--primary);
}

.breadcrumb {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

/* Alert */
.alert {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    font-size: 0.875rem;
}

.alert-primary,
.alert-info {
    color: #404040;
    background: #fafafa;
    border-color: var(--border);
}

.alert-success {
    color: #166534;
    background: var(--success-subtle);
    border-color: #bbf7d0;
}

.alert-warning {
    color: #92400e;
    background: var(--warning-subtle);
    border-color: #fde68a;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Overlay surfaces */
.dropdown-menu,
.modal-content,
.offcanvas,
.popover {
    color: var(--popover-foreground);
    background: var(--popover) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.dropdown-menu {
    padding: 0.375rem !important;
}

.dropdown-item {
    min-height: 2.25rem;
    padding: 0.5rem 0.625rem !important;
    color: #404040 !important;
    border-radius: 0.4375rem !important;
    font-size: 0.875rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    transform: none !important;
}

.dropdown-divider,
.modal-header,
.modal-footer {
    border-color: var(--border) !important;
}

.modal-header,
.modal-footer {
    padding: 0.875rem 1rem;
}

.modal-body {
    padding: 1rem !important;
}

.modal-backdrop.show,
.swal2-backdrop-show {
    background: rgba(10, 10, 14, 0.66) !important;
    backdrop-filter: blur(5px) saturate(1.05) !important;
}

.swal2-popup {
    width: min(430px, calc(100vw - 32px)) !important;
    padding: 1.65rem 1.45rem 1.35rem !important;
    color: var(--foreground) !important;
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
        var(--card) !important;
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--primary)) !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22) !important;
    font-family: var(--font-sans) !important;
}

.swal2-title {
    margin: 0.35rem 0 0 !important;
    padding: 0 !important;
    color: var(--foreground) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.swal2-html-container {
    margin: 0.7rem auto 0 !important;
    padding: 0 !important;
    color: var(--muted-foreground) !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    white-space: pre-line !important;
}

.swal2-actions {
    gap: 0.65rem !important;
    margin: 1.25rem 0 0 !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    min-width: 94px !important;
    min-height: 44px !important;
    padding: 0.68rem 1.35rem !important;
    border-radius: 0.85rem !important;
    box-shadow: none !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, background-color 160ms ease !important;
}

.swal2-confirm {
    color: var(--primary-foreground) !important;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 76%, var(--info))) !important;
    border: 1px solid color-mix(in srgb, var(--primary) 70%, #ffffff) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent) !important;
}

.swal2-cancel {
    color: var(--foreground) !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
}

.swal2-deny {
    color: var(--destructive-foreground) !important;
    background: var(--destructive) !important;
    border: 1px solid color-mix(in srgb, var(--destructive) 68%, #ffffff) !important;
}

.swal2-confirm:hover,
.swal2-cancel:hover,
.swal2-deny:hover {
    filter: brightness(1.04) !important;
    transform: translateY(-1px) !important;
}

.swal2-confirm:focus,
.swal2-cancel:focus,
.swal2-deny:focus {
    outline: 3px solid var(--ring) !important;
    outline-offset: 3px !important;
}

.swal2-loader {
    border-color: var(--primary) transparent var(--primary) transparent !important;
}

.swal2-container {
    z-index: 2147483646 !important;
}

body.swal2-shown .vynx-select,
body.swal2-shown .vynx-select__menu,
body.vynx-alert-open .vynx-select,
body.vynx-alert-open .vynx-select__menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.swal2-popup.vynx-billing-alert-popup {
    width: min(430px, calc(100vw - 32px)) !important;
}

.swal2-popup.vynx-billing-alert-popup .swal2-title.vynx-billing-alert-title {
    color: var(--foreground) !important;
}

.swal2-popup.vynx-billing-alert-popup .swal2-html-container.vynx-billing-alert-message {
    color: var(--muted-foreground) !important;
}

@media (max-width: 575.98px) {
    .swal2-popup {
        padding: 1.45rem 1.15rem 1.2rem !important;
        border-radius: 1rem !important;
    }

    .swal2-title {
        font-size: 1.18rem !important;
    }

    .swal2-html-container {
        font-size: 0.92rem !important;
    }

    .swal2-popup.vynx-billing-alert-popup {
        border-radius: 1rem !important;
    }

    .swal2-popup.vynx-billing-alert-popup .swal2-title.vynx-billing-alert-title {
        font-size: 1.18rem !important;
    }

    .swal2-popup.vynx-billing-alert-popup .swal2-html-container.vynx-billing-alert-message {
        font-size: 0.92rem !important;
    }
}

/* Sidebar + header ------------------------------------------------------- */
.pc-sidebar {
    width: 248px !important;
    color: var(--sidebar-foreground) !important;
    background: var(--sidebar) !important;
    border-right: 1px solid var(--sidebar-border) !important;
    box-shadow: none !important;
    transition: width 180ms ease, left 180ms ease !important;
}

.pc-sidebar .navbar-wrapper {
    width: 248px !important;
    background: var(--sidebar) !important;
}

.pc-sidebar .m-header {
    height: 64px !important;
    padding: 0 20px !important;
    justify-content: flex-start !important;
    background: var(--sidebar) !important;
    border-bottom: 1px solid var(--sidebar-border) !important;
}

.pc-sidebar .m-header .b-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pc-sidebar .m-header .vynx-console-logo-box {
    width: 118px;
    height: 36px;
    justify-content: center;
    padding: 3px 5px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
}

.pc-sidebar .m-header .vynx-console-logo-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none !important;
    object-fit: contain;
    filter: none !important;
}

.pc-sidebar .m-header img {
    width: auto;
    max-width: 152px;
    max-height: 38px !important;
    transform: none !important;
}

.pc-sidebar .navbar-content {
    height: calc(100vh - 64px) !important;
    padding: 10px !important;
}

.pc-sidebar .navbar-content::-webkit-scrollbar {
    width: 4px;
}

.pc-sidebar .navbar-content::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 99px;
}

.pc-sidebar .pc-navbar {
    padding: 0 !important;
}

.pc-sidebar .pc-item {
    margin: 2px 0 !important;
    overflow: visible;
    border-radius: 0.5rem !important;
}

.pc-sidebar .pc-caption {
    margin: 16px 0 5px !important;
    padding: 0 10px !important;
}

.pc-sidebar .pc-caption:first-child {
    margin-top: 5px !important;
}

.pc-sidebar .pc-caption label {
    color: #a3a3a3 !important;
    font-size: 0.65625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.085em !important;
    line-height: 1.25rem;
}

.pc-sidebar .pc-link {
    min-height: 40px;
    gap: 10px;
    padding: 8px 10px !important;
    color: #525252 !important;
    background: transparent !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transform: none !important;
    transition: color 150ms ease, background-color 150ms ease !important;
}

.pc-sidebar .pc-micon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    color: #737373 !important;
}

.pc-sidebar .pc-micon i {
    width: auto !important;
    color: inherit !important;
    font-size: 1.0625rem !important;
    line-height: 1;
}

.pc-sidebar .pc-item:not(.active):not(.pc-trigger) > .pc-link:hover,
.pc-sidebar .pc-link:hover {
    color: var(--sidebar-accent-foreground) !important;
    background: var(--sidebar-accent) !important;
    transform: none !important;
}

.pc-sidebar .pc-item.active > .pc-link,
.pc-sidebar .pc-item.pc-trigger > .pc-link {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    box-shadow: inset 2px 0 0 var(--sidebar-primary) !important;
}

.pc-sidebar .pc-item.active > .pc-link .pc-micon,
.pc-sidebar .pc-item.pc-trigger > .pc-link .pc-micon {
    color: var(--sidebar-primary) !important;
}

.pc-sidebar .pc-link::before,
.pc-sidebar .pc-link::after {
    display: none !important;
}

.pc-sidebar .pc-arrow {
    margin-left: auto;
    color: #a3a3a3;
    font-size: 1rem;
}

.pc-sidebar .pc-submenu {
    margin: 4px 0 6px 20px !important;
    padding: 2px 0 2px 12px !important;
    border-left: 1px solid var(--sidebar-border);
}

.pc-sidebar .pc-submenu .pc-item {
    margin: 1px 0 !important;
}

.pc-sidebar .pc-submenu .pc-link {
    min-height: 34px;
    padding: 6px 9px !important;
    font-size: 0.8125rem !important;
}

.pc-header {
    left: 248px !important;
    width: calc(100% - 248px) !important;
    min-height: 64px !important;
    height: 64px !important;
    color: var(--foreground) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: left 180ms ease, width 180ms ease !important;
}

.pc-header .header-wrapper {
    height: 64px !important;
    padding: 0 20px !important;
}

#mobile-collapse,
#sidebar-hide,
.pc-header .noti-link {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    padding: 0 !important;
    color: #525252 !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    transform: none !important;
}

#mobile-collapse i,
#sidebar-hide i,
.pc-header .noti-link i {
    font-size: 1.125rem !important;
}

#mobile-collapse:hover,
#sidebar-hide:hover,
.pc-header .noti-link:hover {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: #d4d4d4 !important;
    transform: none !important;
}

.pc-header .pc-h-item {
    margin: 0 0 0 8px;
}

.header-auth-actions .btn {
    border-radius: 0.5rem !important;
}

.header-badge-btn {
    min-height: 34px;
    padding: 6px 10px !important;
    gap: 6px !important;
    color: #525252 !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    transform: none !important;
}

.header-badge-btn.vps-btn,
.header-badge-btn.hosting-btn {
    color: #525252 !important;
    border-color: var(--border) !important;
}

.header-badge-btn.vps-btn:hover,
.header-badge-btn.hosting-btn:hover {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: #d4d4d4 !important;
    box-shadow: none !important;
    transform: none !important;
}

.header-badge-btn i {
    color: var(--primary);
    font-size: 1rem;
}

.header-wallet-pill {
    min-height: 36px;
    padding: 3px 3px 3px 10px !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
}

.header-wallet-pill .wallet-icon {
    margin-right: 6px !important;
    color: #737373 !important;
}

.header-wallet-pill .wallet-label {
    color: var(--muted-foreground) !important;
    font-size: 0.75rem !important;
}

.header-wallet-pill .wallet-amount {
    margin-right: 9px !important;
    color: var(--foreground) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.header-wallet-pill .deposit-btn {
    min-height: 28px;
    padding: 4px 9px !important;
    color: var(--primary-foreground) !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 0.375rem !important;
    box-shadow: none !important;
    font-size: 0.75rem !important;
    transform: none !important;
}

.header-wallet-pill .deposit-btn:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

.pc-header .user-avtar {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    transform: none !important;
}

.pc-header .dropdown-toggle:hover .user-avtar {
    border-color: #a3a3a3 !important;
    transform: none !important;
}

.pc-header .dropdown-menu {
    margin-top: 9px !important;
}

.noti-card {
    min-width: 280px;
}

.noti-card-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.noti-card-body {
    padding: 16px 12px;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

.header-profile-card,
.header-balance-card {
    background: #fafafa !important;
    border-radius: 0.5rem !important;
}

.pc-container {
    top: 64px;
    margin-left: 248px;
    min-height: calc(100vh - 112px);
    transition: margin-left 180ms ease !important;
}

.pc-container .pc-content {
    padding: 20px 28px 24px;
}

.pc-sidebar.pc-sidebar-hide ~ .pc-header {
    left: 0 !important;
    width: 100% !important;
}

.pc-sidebar.pc-sidebar-hide ~ .pc-container {
    margin-left: 0 !important;
}

@media (max-width: 1024px) {
    .pc-sidebar {
        left: -248px !important;
        width: 248px !important;
    }

    .pc-sidebar.mob-sidebar-active {
        left: 0 !important;
        box-shadow: 12px 0 32px rgba(0, 0, 0, 0.12) !important;
    }

    .pc-header {
        left: 0 !important;
        width: 100% !important;
    }

    .pc-container {
        margin-left: 0;
    }

    .pc-container .pc-content {
        padding: 14px;
    }
}

/* Homepage --------------------------------------------------------------- */
.vynx-home {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.vynx-home .vynx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fafafa !important;
    background:
        linear-gradient(116deg, rgba(225, 29, 72, 0.08), transparent 34%),
        linear-gradient(180deg, #18181b, #141416) !important;
    border: 1px solid #27272a !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
}

.vynx-home .vynx-hero::before,
.vynx-home .vynx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block !important;
    pointer-events: none;
}

.vynx-home .vynx-hero::before {
    background:
        linear-gradient(108deg, transparent 0%, transparent 38%, rgba(251, 113, 133, 0.13) 48%, rgba(255, 255, 255, 0.08) 52%, transparent 64%, transparent 100%);
    transform: translate3d(-125%, 0, 0) skewX(-10deg);
    animation: vynxConsoleHeroSweep 8.5s ease-in-out infinite;
}

.vynx-home .vynx-hero::after {
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.34;
    mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
    animation: vynxConsoleGridDrift 20s linear infinite;
}

.vynx-home .vynx-hero > .card-body {
    position: relative;
    z-index: 1;
    padding: 0 !important;
}

.vynx-hero-content {
    position: relative;
    z-index: 1;
    padding: 34px 38px;
}

.vynx-home .vynx-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px !important;
    color: #fda4af !important;
    background: rgba(225, 29, 72, 0.12) !important;
    border: 1px solid rgba(251, 113, 133, 0.26) !important;
    border-radius: 0.375rem !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.055em;
}

.vynx-home .vynx-hero h1 {
    max-width: 660px;
    margin: 0 0 12px;
    color: #fafafa !important;
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.vynx-home .vynx-hero .banner-desc {
    max-width: 680px;
    margin: 0;
    color: #d4d4d8 !important;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.vynx-home .vynx-hero .banner-desc b {
    color: #fda4af !important;
    font-weight: 600;
}

.vynx-home .grid-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    margin: 20px 0 22px !important;
    padding: 0 !important;
}

.vynx-home .grid-feature li {
    min-width: 0;
    gap: 8px;
    color: #e4e4e7 !important;
    font-size: 0.8125rem !important;
    line-height: 1.35;
}

.vynx-home .grid-feature li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    color: #fda4af !important;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    font-size: 0.875rem !important;
    box-shadow: 0 0 0 rgba(251, 113, 133, 0);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vynx-home .grid-feature li:hover i {
    border-color: rgba(251, 113, 133, 0.46);
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.18);
    transform: translateY(-1px);
}

.vynx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vynx-home .vynx-hero .btn {
    min-height: 36px;
    padding: 7px 12px !important;
    font-size: 0.8125rem !important;
}

.vynx-home .vynx-hero .btn-outline-light {
    color: #e4e4e7 !important;
    background: transparent !important;
    border-color: #52525b !important;
    box-shadow: none !important;
}

.vynx-home .vynx-hero .btn-outline-light:hover {
    color: #ffffff !important;
    background: #27272a !important;
    border-color: #71717a !important;
    transform: none !important;
}

.vynx-hero-visual {
    position: relative;
    display: flex;
    min-height: 320px;
    height: 100%;
    padding: 24px 28px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(251, 113, 133, 0.08), transparent 34%),
        #202023;
    border-left: 1px solid #2f2f33;
}

.vynx-hero-visual::before,
.vynx-hero-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.vynx-hero-visual::before {
    inset: 0;
    background: linear-gradient(100deg, transparent 8%, rgba(255, 255, 255, 0.09) 48%, transparent 72%);
    opacity: 0.5;
    transform: translate3d(-120%, 0, 0);
    animation: vynxConsoleVisualScan 7s ease-in-out infinite;
}

.vynx-hero-visual::after {
    inset: 18px;
    border: 1px solid rgba(251, 113, 133, 0.11);
    border-radius: 0.75rem;
    opacity: 0.72;
}

.vynx-hero-visual > img {
    position: relative;
    z-index: 1;
    width: min(100%, 260px);
    max-height: 215px;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
    animation: vynxConsoleFloat 5.5s ease-in-out infinite;
}

.vynx-hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    max-width: 330px;
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
}

.vynx-hero-metrics > div {
    display: flex;
    min-width: 0;
    padding: 8px 6px;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #3f3f46;
}

.vynx-hero-metrics > div:last-child {
    border-right: 0;
}

.vynx-hero-metrics strong {
    color: #fafafa;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.vynx-hero-metrics span {
    color: #a1a1aa !important;
    font-size: 0.6875rem;
}

.home-services {
    margin-top: 26px;
    scroll-margin-top: 84px;
}

.home-section-heading {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.085em;
}

.home-section-heading h2 {
    margin: 0 0 3px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.home-section-heading p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.vynx-home .service-switch-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px !important;
    margin: 0 !important;
    padding: 3px !important;
    background: var(--secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.625rem !important;
}

.vynx-home .service-switch-sm {
    min-height: 34px;
    padding: 6px 12px !important;
    gap: 6px !important;
    color: var(--muted-foreground) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0.4375rem !important;
    box-shadow: none !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    transform: none !important;
}

.vynx-home .service-switch-sm:hover {
    color: var(--foreground) !important;
}

.vynx-home .service-switch-sm.active {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow-xs) !important;
}

.vynx-home .service-switch-sm.active i {
    color: var(--primary);
}

.vynx-home .service-panel > .row {
    align-items: stretch;
}

.vynx-home .service-plan-card {
    position: relative;
    overflow: hidden;
    border-color: var(--border) !important;
    box-shadow: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
}

.vynx-home .service-plan-card:hover {
    background: color-mix(in srgb, var(--primary) 3%, var(--card)) !important;
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
    transform: none !important;
}

.vynx-home .service-plan-card > .card-body {
    position: relative;
    z-index: 1;
    padding: 15px !important;
}

.vynx-home .plan-header-horizontal {
    gap: 11px !important;
    margin-bottom: 0 !important;
}

.vynx-home .plan-icon-big,
.vynx-home .vps-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    border: 1px solid #fecdd3;
    border-radius: 0.5rem !important;
    transform: none !important;
}

.vynx-home .plan-icon-big i,
.vynx-home .vps-icon-wrapper i {
    color: var(--primary) !important;
    font-size: 1.0625rem !important;
    transform: none !important;
}

.vynx-home .vps-card:hover .vps-icon-wrapper {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    transform: none !important;
}

.vynx-home .plan-name,
.vynx-home .vps-name {
    margin: 0 0 2px !important;
    color: var(--foreground) !important;
    font-family: var(--font-heading);
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.012em;
}

.vynx-home .hosting-price,
.vynx-home .vps-price {
    color: var(--primary) !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    line-height: 1.25;
}

.vynx-home .hosting-price span,
.vynx-home .vps-price-period {
    color: var(--muted-foreground) !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
}

.vynx-home .card-divider {
    height: 1px;
    margin: 12px 0 !important;
    background: var(--border) !important;
}

.vynx-home .hosting-spec,
.vynx-home .vps-spec {
    margin: 0 0 14px !important;
}

.vynx-home .hosting-spec li,
.vynx-home .vps-spec li {
    min-height: 34px;
    padding: 7px 0 !important;
    color: #525252 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.8125rem !important;
    line-height: 1.35;
}

.vynx-home .spec-left,
.vynx-home .spec-label {
    min-width: 0;
    gap: 7px;
}

.vynx-home .spec-left i,
.vynx-home .spec-label i {
    color: #737373 !important;
    font-size: 0.9375rem !important;
}

.vynx-home .spec-check {
    color: var(--success) !important;
    font-size: 0.9375rem !important;
}

.vynx-home .spec-value {
    padding-left: 8px;
    color: var(--foreground) !important;
    font-size: 0.8125rem;
    font-weight: 600 !important;
    white-space: nowrap;
}

.vynx-home .service-plan-card .btn-primary,
.vynx-home .btn-vps-buy {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 36px;
    padding: 7px 11px !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-foreground) !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transform: none !important;
}

.vynx-home .service-plan-card .btn-primary:hover,
.vynx-home .btn-vps-buy:hover {
    color: var(--primary-foreground) !important;
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

@keyframes vynxConsoleHeroSweep {
    0%,
    46% {
        transform: translate3d(-125%, 0, 0) skewX(-10deg);
        opacity: 0;
    }

    58% {
        opacity: 1;
    }

    78%,
    100% {
        transform: translate3d(125%, 0, 0) skewX(-10deg);
        opacity: 0;
    }
}

@keyframes vynxConsoleGridDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 64px 0, 0 64px;
    }
}

@keyframes vynxConsoleVisualScan {
    0%,
    42% {
        transform: translate3d(-120%, 0, 0);
        opacity: 0;
    }

    58% {
        opacity: 0.55;
    }

    82%,
    100% {
        transform: translate3d(120%, 0, 0);
        opacity: 0;
    }
}

@keyframes vynxConsoleFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@media (max-width: 991.98px) {
    .vynx-hero-content {
        padding: 28px;
    }

    .vynx-hero-visual {
        min-height: 240px;
        border-top: 1px solid #2f2f33;
        border-left: 0;
    }

    .vynx-hero-visual > img {
        max-height: 155px;
    }
}

@media (max-width: 767.98px) {
    .vynx-hero-content {
        padding: 20px 18px;
    }

    .vynx-home .vynx-hero h1 {
        font-size: 1.625rem;
    }

    .vynx-home .grid-feature {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 10px;
        margin: 16px 0 18px !important;
    }

    .vynx-home .grid-feature li {
        font-size: 0.75rem !important;
    }

    .vynx-home .grid-feature li i {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .vynx-hero-visual {
        min-height: 150px;
        padding: 14px 16px;
        flex-direction: row;
        gap: 12px;
    }

    .vynx-home .vynx-hero::before {
        opacity: 0.5;
    }

    .vynx-home .vynx-hero::after {
        opacity: 0.2;
        animation-duration: 28s;
    }

    .vynx-hero-visual::before {
        opacity: 0.32;
    }

    .vynx-hero-visual > img {
        width: 38%;
        max-height: 118px;
    }

    .vynx-hero-metrics {
        width: 62%;
        margin-top: 0;
    }

    .vynx-hero-metrics > div {
        padding: 7px 3px;
    }

    .vynx-hero-metrics strong {
        font-size: 0.75rem;
    }

    .vynx-hero-metrics span {
        font-size: 0.59375rem;
    }

    .home-services {
        margin-top: 22px;
    }

    .home-section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .vynx-home .service-switch-wrap {
        width: 100%;
    }

    .vynx-home .service-switch-sm {
        flex: 1;
        justify-content: center;
    }
}

/* Service, billing, account, and support pages --------------------------- */
.vynx-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.vynx-page > .mb-4:first-child,
.vynx-page > .page-header:first-child {
    margin-bottom: 16px !important;
}

.vynx-page > .mb-4:first-child h3,
.vynx-page > .mb-4:first-child h4,
.vynx-page > .page-header:first-child h4,
.vynx-page .page-header-title h5 {
    margin-bottom: 3px !important;
    color: var(--foreground) !important;
    font-family: var(--font-heading);
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

.vynx-page .breadcrumb-item,
.vynx-page .breadcrumb-item a {
    color: var(--muted-foreground) !important;
    font-size: 0.8125rem;
    text-decoration: none;
}

.vynx-page .breadcrumb-item.active,
.vynx-page .breadcrumb-item[aria-current="page"] {
    color: #be123c !important;
}

.vynx-page .card,
.vynx-page .order-card,
.vynx-page .dashboard-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transform: none !important;
}

.vynx-page .card:hover,
.vynx-page .order-card:hover,
.vynx-page .dashboard-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Console/dashboard cards should stay calm. Keep decorative sweep effects only
   on the homepage hero and the separate landing page stylesheet. */
.pc-container .card:not(.vynx-hero)::before,
.pc-container .card:not(.vynx-hero)::after,
.pc-container :where(
    .dashboard-card,
    .order-card,
    .hosting-card,
    .service-plan-card,
    .plan-card,
    .profile-card,
    .history-card,
    .ticket-stat-card,
    .payment-details-card,
    .recharge-card,
    .stats-card,
    .theme-upload-card,
    .img-welcome-banner
)::before,
.pc-container :where(
    .dashboard-card,
    .order-card,
    .hosting-card,
    .service-plan-card,
    .plan-card,
    .profile-card,
    .history-card,
    .ticket-stat-card,
    .payment-details-card,
    .recharge-card,
    .stats-card,
    .theme-upload-card,
    .img-welcome-banner
)::after,
#page-container .card::before,
#page-container .card::after,
#page-container :where(
    .custom-card,
    .dashboard-card,
    .order-card,
    .stats-card,
    .search-card,
    .recharge-card,
    .theme-upload-card
)::before,
#page-container :where(
    .custom-card,
    .dashboard-card,
    .order-card,
    .stats-card,
    .search-card,
    .recharge-card,
    .theme-upload-card
)::after {
    display: none !important;
    content: none !important;
    background: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 0 !important;
}

.vynx-page .card-header {
    min-height: 52px;
    padding: 12px 16px !important;
    background: var(--card) !important;
    border-bottom: 1px solid var(--border) !important;
}

.vynx-page .card-header h5,
.vynx-page .card-header h6 {
    color: var(--foreground) !important;
    font-family: var(--font-heading);
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.vynx-page .card-header h5 > i,
.vynx-page .card-header h6 > i {
    color: var(--primary) !important;
}

.vynx-page .card-body {
    padding: 16px !important;
}

.vynx-page .mb-4 {
    margin-bottom: 1rem !important;
}

.vynx-page .form-control,
.vynx-page .form-select,
.vynx-page .input-group-text {
    min-height: 40px;
    padding: 8px 11px !important;
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-size: 0.875rem !important;
}

.vynx-page .form-control:focus,
.vynx-page .form-select:focus {
    border-color: #fb7185 !important;
    box-shadow: 0 0 0 3px var(--ring) !important;
}

.vynx-page .form-label {
    margin-bottom: 5px !important;
    color: #404040 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.vynx-page small.text-muted {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.75rem;
}

.vynx-page .btn {
    box-shadow: none !important;
    transform: none !important;
}

.vynx-page .btn:hover,
.vynx-page .btn:active {
    box-shadow: none !important;
    transform: none !important;
}

.vynx-page .text-primary {
    color: var(--primary) !important;
}

.vynx-page .bg-primary,
.vynx-page .text-bg-primary {
    background-color: var(--primary) !important;
}

.vynx-page .bg-light-primary,
.vynx-page .text-bg-primary-light,
.vynx-page .bg-primary-transparent {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
}

.vynx-page .border-primary {
    border-color: #fb7185 !important;
}

.vynx-page .table-responsive {
    overflow-x: auto !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.vynx-page .table thead th,
.vynx-page .table-premium th {
    padding: 10px 12px !important;
    color: #525252 !important;
    background: #fafafa !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.045em !important;
}

.vynx-page .table tbody td,
.vynx-page .table-premium td {
    padding: 11px 12px !important;
    color: #404040 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.8125rem !important;
}

.vynx-page .table tbody tr:hover td {
    background: #fafafa !important;
}

/* Public service catalog */
.service-catalog-page .welcome-banner {
    color: #fafafa !important;
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
}

.service-catalog-page .welcome-banner::before,
.service-catalog-page .welcome-banner::after {
    display: none !important;
}

.service-catalog-page .welcome-banner .card-body {
    padding: 28px 30px !important;
}

.service-catalog-page .welcome-banner .badge {
    padding: 5px 8px !important;
    color: #fda4af !important;
    background: rgba(225, 29, 72, 0.12) !important;
    border: 1px solid rgba(251, 113, 133, 0.26) !important;
    border-radius: 0.375rem !important;
}

.service-catalog-page .welcome-banner h1 {
    color: #fafafa !important;
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    font-weight: 600 !important;
}

.service-catalog-page .welcome-banner p {
    color: #d4d4d8 !important;
}

.hosting-catalog-page > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.hosting-catalog-page .hosting-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
}

.hosting-catalog-page .hosting-card:hover {
    background: color-mix(in srgb, var(--primary) 3%, var(--card)) !important;
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
    transform: none !important;
}

.hosting-catalog-page .hosting-card .card-body {
    padding: 15px !important;
}

.hosting-catalog-page .plan-icon-wrapper {
    display: inline-flex;
    width: 38px !important;
    height: 38px !important;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    background: var(--accent) !important;
    border: 1px solid #fecdd3;
    border-radius: 0.5rem !important;
    transform: none !important;
}

.hosting-catalog-page .plan-icon-wrapper i {
    color: var(--primary) !important;
    font-size: 1.0625rem;
}

.hosting-catalog-page .hosting-card:hover .plan-icon-wrapper {
    color: var(--primary) !important;
    background: var(--accent) !important;
    transform: none !important;
}

.hosting-catalog-page .plan-badge {
    padding: 4px 7px !important;
    border-radius: 0.375rem !important;
    font-size: 0.625rem !important;
    letter-spacing: 0.035em !important;
}

.hosting-catalog-page .hosting-spec-list {
    margin-bottom: 14px !important;
}

.hosting-catalog-page .hosting-spec-list li,
.service-form-page .hosting-spec-list li {
    min-height: 34px;
    margin: 0 !important;
    padding: 7px 0 !important;
    color: #525252 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    font-size: 0.8125rem !important;
    transform: none !important;
}

.hosting-catalog-page .hosting-spec-list li:hover,
.service-form-page .hosting-spec-list li:hover {
    background: transparent !important;
    border-color: #f0f0f0 !important;
    transform: none !important;
}

.hosting-catalog-page .spec-left i,
.service-form-page .spec-left i {
    color: #737373 !important;
}

.hosting-catalog-page .spec-right-value,
.service-form-page .spec-right-value {
    color: var(--foreground) !important;
    font-size: 0.8125rem;
    font-weight: 600 !important;
}

.hosting-catalog-page .hosting-card .btn-primary {
    min-height: 36px !important;
    height: auto !important;
    padding: 7px 11px !important;
    border-radius: 0.5rem !important;
    font-size: 0.8125rem !important;
}

/* Order and configuration flows */
.service-form-page #order.container {
    max-width: 100% !important;
    padding: 0 !important;
}

.service-form-page .order-card,
.service-form-page #order .bg-white {
    background: var(--card) !important;
    border-color: var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.service-form-page .payment-cycle,
.service-form-page .server-item,
.vps-order-page .item,
.vps-order-page .os {
    color: #404040 !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    transform: none !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease !important;
}

.service-form-page .payment-cycle:hover,
.service-form-page .server-item:hover,
.vps-order-page .item:hover,
.vps-order-page .os:hover {
    color: var(--foreground) !important;
    background: #fafafa !important;
    border-color: #d4d4d4 !important;
    box-shadow: none !important;
    transform: none !important;
}

.service-form-page .payment-cycle.active,
.service-form-page .server-item.border-primary,
.vps-order-page .item.active-select,
.vps-order-page .os.active-select {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    border-color: #fb7185 !important;
    box-shadow: 0 0 0 2px var(--ring) !important;
}

.service-form-page .payment-cycle.active .cycle-title,
.service-form-page .payment-cycle.active .cycle-price,
.vps-order-page .item.active-select h6,
.vps-order-page .os.active-select h6,
.vps-order-page .item.active-select p {
    color: var(--accent-foreground) !important;
}

.vps-order-page .text-blue-500,
.vps-order-page .text-blue-600,
.vps-order-page .text-blue-700 {
    color: var(--primary) !important;
}

.vps-order-page .bg-blue-600 {
    background: var(--primary) !important;
}

.vps-order-page .hover\:bg-blue-700:hover {
    background: var(--primary-hover) !important;
}

.vps-order-page .bg-blue-50,
.vps-order-page .hover\:bg-blue-50:hover {
    background: var(--accent) !important;
}

.vps-order-page .border-blue-100,
.vps-order-page .border-blue-300,
.vps-order-page .hover\:border-blue-300:hover {
    border-color: #fecdd3 !important;
}

.vps-order-page .rounded-2xl,
.vps-order-page .rounded-xl {
    border-radius: var(--radius) !important;
}

.vps-order-page .shadow-sm,
.vps-order-page .shadow-md,
.vps-order-page .hover\:shadow-md:hover {
    box-shadow: none !important;
}

.vps-order-page .decrement-touchspin,
.vps-order-page .increment-touchspin {
    color: #525252 !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
    box-shadow: none !important;
}

.vps-order-page .input-touchspin {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
}

.service-form-page .summary-wrapper,
.service-form-page .sticky-top {
    top: 80px !important;
}

.cronjob-order-page .server-item {
    cursor: pointer;
}

.cronjob-order-page .server-item.border-primary h6,
.cronjob-order-page .server-item.border-primary p {
    color: var(--accent-foreground) !important;
}

/* Account navigation */
.vynx-page .account-sidebar {
    position: sticky;
    top: 80px;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.vynx-page .account-sidebar .card-body {
    padding: 14px !important;
}

.vynx-page .sidebar-avatar-container {
    width: 44px !important;
    height: 44px !important;
    padding: 2px !important;
    background: var(--accent) !important;
    border: 1px solid #fecdd3;
}

.vynx-page .account-sidebar hr {
    margin: 14px 0 !important;
    border-color: var(--border) !important;
    opacity: 1 !important;
}

.vynx-page .account-sidebar .menu-title {
    margin-bottom: 6px !important;
    padding-left: 8px !important;
    color: #a3a3a3 !important;
    font-size: 0.625rem !important;
    letter-spacing: 0.08em !important;
}

.vynx-page .account-menu .nav-item {
    margin-bottom: 2px !important;
}

.vynx-page .account-menu .nav-link,
.vynx-page .account-sidebar .logout-link {
    min-height: 38px;
    padding: 8px 9px !important;
    color: #525252 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    font-size: 0.8125rem;
    font-weight: 500 !important;
    transform: none !important;
}

.vynx-page .account-menu .nav-link i,
.vynx-page .account-sidebar .logout-link i {
    margin-right: 9px !important;
    color: #737373 !important;
    font-size: 1rem !important;
}

.vynx-page .account-menu .nav-link:hover {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.vynx-page .account-menu .nav-link.active {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    border-color: #fecdd3 !important;
    box-shadow: none !important;
}

.vynx-page .account-menu .nav-link.active i {
    color: var(--primary) !important;
}

.vynx-page .account-sidebar .logout-link {
    color: #b91c1c !important;
    background: #fef2f2 !important;
}

.vynx-page .account-sidebar .logout-link:hover {
    color: #991b1b !important;
    background: #fee2e2 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Billing and support surfaces */
.billing-page .alert-warning,
.security-page .alert-warning {
    color: #92400e !important;
    background: var(--warning-subtle) !important;
    border: 1px solid #fde68a !important;
    border-radius: var(--radius) !important;
}

.ticket-page .ticket-stat-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transform: none !important;
}

.ticket-page .ticket-stat-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.ticket-chat-panel {
    max-height: 550px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 16px;
    scroll-behavior: smooth;
}

.ticket-chat-empty {
    padding: 44px 16px;
    color: var(--muted-foreground, #64748b);
    text-align: center;
}

.ticket-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
}

.ticket-message.is-own {
    justify-content: flex-end;
}

.ticket-message.is-peer {
    justify-content: flex-start;
}

.ticket-message.is-own .ticket-avatar {
    order: 2;
}

.ticket-message.is-own .ticket-bubble {
    order: 1;
    color: #fff;
    background: linear-gradient(135deg, #e9165f 0%, #f43f7e 100%);
    border-color: rgba(233, 22, 95, 0.2);
    border-radius: 18px 18px 6px 18px;
    box-shadow: 0 14px 30px rgba(233, 22, 95, 0.16);
}

.ticket-message.is-peer .ticket-bubble {
    color: #172033;
    background: #fff;
    border-color: rgba(203, 213, 225, 0.9);
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ticket-avatar {
    position: relative;
    overflow: visible;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff1f6;
    color: #e9165f;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ticket-avatar.has-image {
    background: #fff;
    color: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.ticket-avatar > img:not(.ticket-avatar-frame),
.ticket-profile-avatar > img:not(.ticket-avatar-frame) {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.ticket-avatar-frame {
    position: absolute;
    inset: -7%;
    width: 114% !important;
    height: 114% !important;
    max-width: none !important;
    object-fit: contain !important;
    pointer-events: none;
}

.ticket-message.is-peer .ticket-avatar {
    background: #eafbf3;
    color: #16a34a;
}

.ticket-message.is-peer .ticket-avatar.has-image,
.ticket-message.is-own .ticket-avatar.has-image {
    background: #fff;
}

.ticket-profile-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: #e9165f;
    background: #fff1f6;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ticket-profile-avatar.has-image {
    background: #fff;
}

.ticket-bubble {
    width: fit-content;
    max-width: min(74%, 640px);
    padding: 13px 15px;
    border: 1px solid transparent;
    word-break: break-word;
}

.ticket-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.74rem;
    font-weight: 700;
}

.ticket-bubble-sender {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ticket-bubble-sender strong,
.ticket-bubble-sender small {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-bubble-sender small {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.72;
}

.ticket-message.is-peer .ticket-bubble-meta {
    border-bottom-color: rgba(226, 232, 240, 0.9);
}

.ticket-message.is-own .ticket-bubble-time {
    color: rgba(255, 255, 255, 0.72);
}

.ticket-message.is-peer .ticket-bubble-time {
    color: #64748b;
}

.ticket-bubble-text {
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.55;
}

.ticket-reply-footer {
    border-top: 1px solid #f1f5f9;
}

.ticket-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticket-reply-actions .btn {
    white-space: nowrap;
}

.ticket-send-button {
    min-width: 132px;
}

.ticket-send-button:disabled {
    opacity: 0.86;
    cursor: wait;
}

.ticket-button-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: ticket-button-spin 0.72s linear infinite;
}

@keyframes ticket-button-spin {
    to { transform: rotate(360deg); }
}

.ticket-live-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.78rem;
}

.ticket-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

@media (max-width: 991.98px) {
    .vynx-page .account-sidebar,
    .service-form-page .summary-wrapper,
    .service-form-page .sticky-top {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 767.98px) {
    .vynx-page > .mb-4:first-child h3,
    .vynx-page > .mb-4:first-child h4,
    .vynx-page > .page-header:first-child h4,
    .vynx-page .page-header-title h5 {
        font-size: 1.1875rem !important;
    }

    .service-catalog-page .welcome-banner .card-body {
        padding: 22px 20px !important;
    }

    .vynx-page .card-header,
    .vynx-page .card-body {
        padding: 13px !important;
    }

    .vynx-page .table-responsive {
        border-radius: 0.5rem !important;
    }

    .ticket-chat-panel {
        max-height: 62vh;
        padding: 14px;
    }

    .ticket-bubble {
        max-width: calc(100% - 46px);
        padding: 12px;
    }

    .ticket-bubble-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .ticket-bubble-sender strong,
    .ticket-bubble-sender small {
        max-width: 52vw;
    }

    .ticket-reply-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ticket-reply-actions .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Shared compact content rhythm */
.pc-content > .row,
.pc-content > .card,
.pc-content > form,
.pc-content > section {
    margin-bottom: 1rem;
}

.spinner-border.text-primary,
.spinner-grow.text-primary {
    color: var(--primary) !important;
}

@media (max-width: 767.98px) {
    .card-header,
    .card-footer,
    .card-body {
        padding: 0.875rem !important;
    }

    .table > :not(caption) > * > * {
        padding: 0.6875rem 0.75rem !important;
    }

    .btn {
        min-height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@keyframes ri-spin {
    to { transform: rotate(360deg); }
}

.ri-spin {
    display: inline-block;
    animation: ri-spin 0.9s linear infinite;
}

/* Dark dashboard mode ---------------------------------------------------- */
.vynx-theme-toggle,
.auth-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground) !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease !important;
}

.vynx-theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 0.5rem !important;
}

.auth-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
}

.vynx-theme-toggle:hover,
.auth-theme-toggle:hover {
    color: var(--foreground) !important;
    background: var(--secondary) !important;
    border-color: var(--input) !important;
}

.login-box .logo-wrap {
    width: 100%;
    height: auto;
    min-height: 72px;
    margin: 0 auto 20px;
}

.login-box .logo-main {
    width: min(220px, 100%);
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-light,
html.dark .theme-icon-light {
    display: inline-block;
}

html[data-theme="dark"] .theme-icon-dark,
html.dark .theme-icon-dark {
    display: none;
}

html[data-theme="dark"] ::selection,
html.dark ::selection {
    color: var(--foreground);
    background: var(--accent);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .pc-container,
html[data-theme="dark"] .main-content,
html.dark body,
html.dark .pc-container,
html.dark .main-content {
    color: var(--foreground) !important;
    background: var(--background) !important;
}

html[data-theme="dark"] a,
html.dark a {
    color: var(--primary);
}

html[data-theme="dark"] a:hover,
html.dark a:hover {
    color: var(--accent-foreground);
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-body,
html[data-theme="dark"] .text-black,
html.dark .text-dark,
html.dark .text-body,
html.dark .text-black {
    color: var(--foreground) !important;
}

html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
html.dark .text-secondary,
html.dark .text-muted {
    color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-body,
html[data-theme="dark"] .bg-body-light,
html.dark .bg-white,
html.dark .bg-body,
html.dark .bg-body-light {
    background: var(--card) !important;
}

html[data-theme="dark"] .bg-light,
html.dark .bg-light {
    background: var(--secondary) !important;
}

html[data-theme="dark"] hr,
html.dark hr {
    color: var(--border);
    border-color: var(--border) !important;
    opacity: 1;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .ticket-stat-card,
html.dark .card,
html.dark .order-card,
html.dark .dashboard-card,
html.dark .ticket-stat-card {
    color: var(--card-foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .card-body,
html.dark .card-header,
html.dark .card-footer,
html.dark .card-body {
    color: var(--card-foreground) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] label,
html.dark .form-label,
html.dark .form-group label,
html.dark label {
    color: var(--foreground) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .datatable-input,
html[data-theme="dark"] .datatable-selector,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html.dark .form-control,
html.dark .form-select,
html.dark .input-group-text,
html.dark .datatable-input,
html.dark .datatable-selector,
html.dark textarea,
html.dark select,
html.dark input:not([type="checkbox"]):not([type="radio"]) {
    color: var(--foreground) !important;
    background-color: var(--card) !important;
    border-color: var(--input) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] option,
html.dark option {
    color: var(--foreground);
    background: var(--popover);
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html.dark .form-control::placeholder,
html.dark textarea::placeholder,
html.dark input::placeholder {
    color: var(--muted-foreground) !important;
    opacity: 0.78;
}

html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-select:hover,
html[data-theme="dark"] input:hover,
html[data-theme="dark"] textarea:hover,
html.dark .form-control:hover,
html.dark .form-select:hover,
html.dark input:hover,
html.dark textarea:hover {
    border-color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html.dark .form-control:focus,
html.dark .form-select:focus,
html.dark input:focus,
html.dark textarea:focus {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--ring) !important;
}

html[data-theme="dark"] :disabled,
html[data-theme="dark"] .disabled,
html[data-theme="dark"] [aria-disabled="true"],
html.dark :disabled,
html.dark .disabled,
html.dark [aria-disabled="true"] {
    color: var(--muted-foreground) !important;
    background-color: var(--muted) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
    opacity: 0.62 !important;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-alt-secondary,
html.dark .btn-secondary,
html.dark .btn-light,
html.dark .btn-alt-secondary {
    color: var(--secondary-foreground) !important;
    background: var(--secondary) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-dark,
html.dark .btn-outline-secondary,
html.dark .btn-outline-dark {
    color: var(--foreground) !important;
    background: transparent !important;
    border-color: var(--input) !important;
}

html[data-theme="dark"] .table,
html.dark .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--foreground);
    --bs-table-border-color: var(--border);
    --bs-table-hover-bg: var(--surface-hover);
    --bs-table-striped-bg: var(--surface);
    color: var(--foreground) !important;
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-theme="dark"] .table-premium > :not(caption) > * > *,
html.dark .table > :not(caption) > * > *,
html.dark .table-premium > :not(caption) > * > * {
    color: var(--foreground) !important;
    background: transparent !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table-premium th,
html.dark .table thead th,
html.dark .table-premium th {
    color: var(--muted-foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table tbody tr:hover > *,
html[data-theme="dark"] .table-premium tbody tr:hover > *,
html.dark .table tbody tr:hover > *,
html.dark .table-premium tbody tr:hover > * {
    background: var(--surface-hover) !important;
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .swal2-popup,
html.dark .dropdown-menu,
html.dark .modal-content,
html.dark .offcanvas,
html.dark .popover,
html.dark .swal2-popup {
    color: var(--popover-foreground) !important;
    background: var(--popover) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .popover-body,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .modal-body,
html.dark .dropdown-item,
html.dark .popover-body,
html.dark .modal-title,
html.dark .modal-body {
    color: var(--popover-foreground) !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus,
html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
}

html[data-theme="dark"] .tooltip,
html.dark .tooltip {
    --bs-tooltip-bg: var(--foreground);
    --bs-tooltip-color: var(--background);
}

html[data-theme="dark"] .modal-backdrop.show,
html[data-theme="dark"] .swal2-backdrop-show,
html.dark .modal-backdrop.show,
html.dark .swal2-backdrop-show {
    background: oklch(0.09 0.004 285 / 0.72) !important;
    backdrop-filter: none !important;
}

html[data-theme="dark"] .nav-tabs,
html[data-theme="dark"] .nav-tabs .nav-link,
html[data-theme="dark"] .page-link,
html[data-theme="dark"] .breadcrumb,
html.dark .nav-tabs,
html.dark .nav-tabs .nav-link,
html.dark .page-link,
html.dark .breadcrumb {
    color: var(--muted-foreground) !important;
    background: transparent !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link:hover,
html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .page-link:hover,
html.dark .nav-tabs .nav-link:hover,
html.dark .nav-tabs .nav-link.active,
html.dark .page-link:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
}

html[data-theme="dark"] .badge.bg-primary,
html[data-theme="dark"] .badge-soft-primary,
html[data-theme="dark"] .bg-light-primary,
html.dark .badge.bg-primary,
html.dark .badge-soft-primary,
html.dark .bg-light-primary {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    border-color: var(--primary) !important;
}

html[data-theme="dark"] .badge-soft-success,
html[data-theme="dark"] .bg-light-success,
html.dark .badge-soft-success,
html.dark .bg-light-success {
    color: var(--success-foreground) !important;
    background: var(--success-subtle) !important;
    border-color: var(--success-border) !important;
}

html[data-theme="dark"] .badge-soft-warning,
html[data-theme="dark"] .bg-light-warning,
html.dark .badge-soft-warning,
html.dark .bg-light-warning {
    color: var(--warning-foreground) !important;
    background: var(--warning-subtle) !important;
    border-color: var(--warning-border) !important;
}

html[data-theme="dark"] .badge-soft-danger,
html[data-theme="dark"] .bg-light-danger,
html.dark .badge-soft-danger,
html.dark .bg-light-danger {
    color: var(--destructive) !important;
    background: color-mix(in oklch, var(--destructive) 14%, var(--card)) !important;
    border-color: color-mix(in oklch, var(--destructive) 45%, var(--border)) !important;
}

html[data-theme="dark"] .alert-primary,
html[data-theme="dark"] .alert-info,
html.dark .alert-primary,
html.dark .alert-info {
    color: var(--info-foreground) !important;
    background: var(--info-subtle) !important;
    border-color: var(--info-border) !important;
}

html[data-theme="dark"] .alert-success,
html.dark .alert-success {
    color: var(--success-foreground) !important;
    background: var(--success-subtle) !important;
    border-color: var(--success-border) !important;
}

html[data-theme="dark"] .alert-warning,
html[data-theme="dark"] .billing-page .alert-warning,
html[data-theme="dark"] .security-page .alert-warning,
html.dark .alert-warning,
html.dark .billing-page .alert-warning,
html.dark .security-page .alert-warning {
    color: var(--warning-foreground) !important;
    background: var(--warning-subtle) !important;
    border-color: var(--warning-border) !important;
}

html[data-theme="dark"] .alert-danger,
html.dark .alert-danger {
    color: var(--destructive) !important;
    background: color-mix(in oklch, var(--destructive) 12%, var(--card)) !important;
    border-color: color-mix(in oklch, var(--destructive) 40%, var(--border)) !important;
}

html[data-theme="dark"] .placeholder,
html[data-theme="dark"] .skeleton,
html[data-theme="dark"] [class*="skeleton"],
html.dark .placeholder,
html.dark .skeleton,
html.dark [class*="skeleton"] {
    color: transparent !important;
    background: var(--muted) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .pc-sidebar,
html[data-theme="dark"] .pc-sidebar .navbar-wrapper,
html[data-theme="dark"] .pc-sidebar .m-header,
html.dark .pc-sidebar,
html.dark .pc-sidebar .navbar-wrapper,
html.dark .pc-sidebar .m-header {
    color: var(--sidebar-foreground) !important;
    background: var(--sidebar) !important;
    border-color: var(--sidebar-border) !important;
}

html[data-theme="dark"] .pc-sidebar .m-header img,
html[data-theme="dark"] .login-box .logo-main,
html.dark .pc-sidebar .m-header img,
html.dark .login-box .logo-main {
    filter: brightness(1.65) saturate(0.95) contrast(1.05);
}

html[data-theme="dark"] .pc-sidebar .pc-caption label,
html[data-theme="dark"] .pc-sidebar .pc-arrow,
html.dark .pc-sidebar .pc-caption label,
html.dark .pc-sidebar .pc-arrow {
    color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .pc-sidebar .pc-link,
html[data-theme="dark"] .pc-sidebar .pc-micon,
html.dark .pc-sidebar .pc-link,
html.dark .pc-sidebar .pc-micon {
    color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .pc-sidebar .pc-link:hover,
html.dark .pc-sidebar .pc-link:hover {
    color: var(--sidebar-accent-foreground) !important;
    background: var(--sidebar-accent) !important;
}

html[data-theme="dark"] .pc-sidebar .pc-item.active > .pc-link,
html[data-theme="dark"] .pc-sidebar .pc-item.pc-trigger > .pc-link,
html.dark .pc-sidebar .pc-item.active > .pc-link,
html.dark .pc-sidebar .pc-item.pc-trigger > .pc-link {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    box-shadow: inset 2px 0 0 var(--sidebar-primary) !important;
}

html[data-theme="dark"] .pc-header,
html.dark .pc-header {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] #mobile-collapse,
html[data-theme="dark"] #sidebar-hide,
html[data-theme="dark"] .pc-header .noti-link,
html[data-theme="dark"] .header-badge-btn,
html[data-theme="dark"] .header-wallet-pill,
html.dark #mobile-collapse,
html.dark #sidebar-hide,
html.dark .pc-header .noti-link,
html.dark .header-badge-btn,
html.dark .header-wallet-pill {
    color: var(--muted-foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] #mobile-collapse:hover,
html[data-theme="dark"] #sidebar-hide:hover,
html[data-theme="dark"] .pc-header .noti-link:hover,
html[data-theme="dark"] .header-badge-btn:hover,
html.dark #mobile-collapse:hover,
html.dark #sidebar-hide:hover,
html.dark .pc-header .noti-link:hover,
html.dark .header-badge-btn:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
    border-color: var(--input) !important;
}

html[data-theme="dark"] .header-profile-card,
html[data-theme="dark"] .header-balance-card,
html.dark .header-profile-card,
html.dark .header-balance-card {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .pc-footer,
html.dark .pc-footer {
    color: var(--muted-foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .vynx-home .service-plan-card:hover,
html[data-theme="dark"] .hosting-catalog-page .hosting-card:hover,
html.dark .vynx-home .service-plan-card:hover,
html.dark .hosting-catalog-page .hosting-card:hover {
    background: color-mix(in srgb, var(--primary) 8%, var(--card)) !important;
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border)) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .vynx-home .plan-icon-big,
html[data-theme="dark"] .vynx-home .vps-icon-wrapper,
html[data-theme="dark"] .hosting-catalog-page .plan-icon-wrapper,
html[data-theme="dark"] .vynx-page .sidebar-avatar-container,
html.dark .vynx-home .plan-icon-big,
html.dark .vynx-home .vps-icon-wrapper,
html.dark .hosting-catalog-page .plan-icon-wrapper,
html.dark .vynx-page .sidebar-avatar-container {
    color: var(--accent-foreground) !important;
    background: var(--accent) !important;
    border-color: color-mix(in oklch, var(--primary) 55%, var(--border)) !important;
}

html[data-theme="dark"] .vynx-home .hosting-spec li,
html[data-theme="dark"] .vynx-home .vps-spec li,
html[data-theme="dark"] .hosting-catalog-page .hosting-spec-list li,
html[data-theme="dark"] .service-form-page .hosting-spec-list li,
html.dark .vynx-home .hosting-spec li,
html.dark .vynx-home .vps-spec li,
html.dark .hosting-catalog-page .hosting-spec-list li,
html.dark .service-form-page .hosting-spec-list li {
    color: var(--muted-foreground) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .service-form-page .payment-cycle,
html[data-theme="dark"] .service-form-page .server-item,
html[data-theme="dark"] .vps-order-page .item,
html[data-theme="dark"] .vps-order-page .os,
html.dark .service-form-page .payment-cycle,
html.dark .service-form-page .server-item,
html.dark .vps-order-page .item,
html.dark .vps-order-page .os {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .service-form-page .payment-cycle:hover,
html[data-theme="dark"] .service-form-page .server-item:hover,
html[data-theme="dark"] .vps-order-page .item:hover,
html[data-theme="dark"] .vps-order-page .os:hover,
html.dark .service-form-page .payment-cycle:hover,
html.dark .service-form-page .server-item:hover,
html.dark .vps-order-page .item:hover,
html.dark .vps-order-page .os:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
    border-color: var(--input) !important;
}

html[data-theme="dark"] .vynx-page .account-menu .nav-link,
html[data-theme="dark"] .vynx-page .account-sidebar .logout-link,
html.dark .vynx-page .account-menu .nav-link,
html.dark .vynx-page .account-sidebar .logout-link {
    color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .vynx-page .account-menu .nav-link:hover,
html.dark .vynx-page .account-menu .nav-link:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
}

html[data-theme="dark"] .vynx-page .account-sidebar .logout-link,
html.dark .vynx-page .account-sidebar .logout-link {
    color: var(--destructive) !important;
    background: color-mix(in oklch, var(--destructive) 10%, var(--card)) !important;
}

html[data-theme="dark"] .login-wrapper,
html.dark .login-wrapper {
    color: var(--foreground);
    background: var(--background) !important;
}

html[data-theme="dark"] .login-left,
html.dark .login-left {
    background: var(--sidebar) !important;
    border-right: 1px solid var(--sidebar-border);
}

html[data-theme="dark"] .login-left::before,
html.dark .login-left::before {
    background: none !important;
    animation: none !important;
}

html[data-theme="dark"] .hero-illustration,
html.dark .hero-illustration {
    filter: none !important;
}

html[data-theme="dark"] .login-right,
html.dark .login-right {
    color: var(--foreground) !important;
    background: var(--background) !important;
}

html[data-theme="dark"] .login-box,
html.dark .login-box {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

html[data-theme="dark"] .login-box h2,
html[data-theme="dark"] .login-box p,
html[data-theme="dark"] .register-link,
html.dark .login-box h2,
html.dark .login-box p,
html.dark .register-link {
    color: var(--foreground) !important;
}

html[data-theme="dark"] .login-box p,
html.dark .login-box p {
    color: var(--muted-foreground) !important;
}

html[data-theme="dark"] .login-actions a,
html[data-theme="dark"] .register-link a,
html.dark .login-actions a,
html.dark .register-link a {
    color: var(--primary) !important;
}

html[data-theme="dark"] .google-login,
html.dark .google-login {
    color: var(--foreground) !important;
    background: var(--card) !important;
    border-color: var(--input) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .flatpickr-calendar,
html[data-theme="dark"] .apexcharts-tooltip,
html.dark .select2-container--default .select2-selection--single,
html.dark .select2-dropdown,
html.dark .flatpickr-calendar,
html.dark .apexcharts-tooltip {
    color: var(--popover-foreground) !important;
    background: var(--popover) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option,
html[data-theme="dark"] .flatpickr-day,
html.dark .select2-container--default .select2-results__option,
html.dark .flatpickr-day {
    color: var(--popover-foreground) !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted,
html[data-theme="dark"] .flatpickr-day:hover,
html.dark .select2-container--default .select2-results__option--highlighted,
html.dark .flatpickr-day:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
}

html[data-theme="dark"] .flatpickr-day.selected,
html.dark .flatpickr-day.selected {
    color: var(--primary-foreground) !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Legacy surface cleanup: keep PHP/Bootstrap pages on the shared tokens. */
.service-history-page .history-card,
.account-page .profile-card {
    color: var(--card-foreground) !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.service-history-page .history-card:hover,
.account-page .profile-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.service-history-page .history-header,
.account-page .profile-header {
    color: var(--foreground) !important;
    background: linear-gradient(
        110deg,
        color-mix(in srgb, var(--primary) 14%, var(--card)),
        color-mix(in srgb, var(--positive) 9%, var(--card))
    ) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.service-history-page .history-header::after,
.account-page .profile-header::after {
    display: none !important;
}

.service-history-page .history-header .text-white,
.account-page .profile-header .text-white {
    color: var(--foreground) !important;
}

.service-history-page .history-header .text-white-50,
.account-page .profile-header .text-white-50 {
    color: var(--muted-foreground) !important;
}

.service-history-page .history-header h4 i,
.account-page .profile-header > i,
.account-page .profile-header .text-primary {
    color: var(--positive) !important;
}

.service-history-page .toolbar-container {
    color: var(--foreground) !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

.service-history-page .premium-table thead th {
    color: var(--muted-foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.service-history-page .premium-table tbody td {
    color: var(--foreground) !important;
    background: transparent !important;
    border-color: var(--border) !important;
}

.service-history-page .premium-table tbody tr:hover > td {
    background: var(--surface-hover) !important;
}

.service-history-page .service-icon-box {
    color: var(--positive) !important;
    background: color-mix(in srgb, var(--positive) 12%, var(--card)) !important;
    border: 1px solid color-mix(in srgb, var(--positive) 28%, var(--border)) !important;
}

.service-form-page .plan-box,
.service-form-page .plan-card {
    color: var(--card-foreground) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

.service-form-page .plan-header,
.service-form-page .plan-grid {
    color: var(--foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.service-form-page .plan-card:hover {
    background: var(--surface-hover) !important;
    border-color: var(--positive) !important;
}

html[data-theme="dark"] .service-form-page .hosting-spec-list li,
html.dark .service-form-page .hosting-spec-list li {
    color: var(--muted-foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .service-form-page .hosting-spec-list li:hover,
html.dark .service-form-page .hosting-spec-list li:hover {
    color: var(--foreground) !important;
    background: var(--surface-hover) !important;
    border-color: var(--positive) !important;
}

.account-page .stat-box,
.account-page .modern-input,
.account-page .info-list-item {
    color: var(--foreground) !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.account-page .stat-box.success {
    background: var(--success-subtle) !important;
    border-color: var(--success-border) !important;
}

.account-page .sidebar-avatar-container {
    background: linear-gradient(135deg, var(--primary), var(--positive)) !important;
    box-shadow: none !important;
}

/* Animated APNG frames are a separate top layer above the avatar and legacy borders. */
.avatar-frame-host {
    position: relative;
}

.avatar-frame-host .js-user-avatar {
    position: relative;
    z-index: 1;
}

.avatar-frame-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
    pointer-events: none;
}

.avatar-frame-layer[hidden] {
    display: none !important;
}

.header-profile-avatar {
    display: inline-block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.js-user-avatar.avatar-with-frame,
.pc-header .user-avtar.avatar-with-frame,
.header-profile-card .js-user-avatar.avatar-with-frame {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
}

.pc-header .dropdown-toggle:hover .user-avtar.avatar-with-frame {
    border-color: transparent !important;
}

.btn-success,
.badge.bg-success,
.bg-success {
    color: var(--positive-foreground) !important;
    background-color: var(--positive) !important;
    border-color: var(--positive) !important;
}

.btn-success:hover {
    color: var(--positive-foreground) !important;
    background-color: var(--positive-hover) !important;
    border-color: var(--positive-hover) !important;
}

.text-success {
    color: var(--success-foreground) !important;
}

/* QR codes need a true white quiet zone to remain reliably scannable. */
html[data-theme="dark"] .security-page .qr-code-wrapper,
html.dark .security-page .qr-code-wrapper {
    background: #ffffff !important;
}
