/**
 * TZTheme Core Design System & Components Stylesheet
 * 
 * Rules:
 * - Font weight 500 for headings, titles, prominent elements.
 * - Font weight 400 for regular text, labels, inputs, descriptions.
 * - Material Outlined Floating Label Inputs with 5px radius (--tz-input-radius: 5px) and 1px border.
 * - Material Searchable Dropdowns with instant filtering and rich options.
 * - Toggle Switches with animated inner Checkmark (✓) and Cross (✕) icons.
 * - Strictly NO focus shadow on inputs.
 * - Admin-controllable colors, typography scale, input radius & border width.
 * - No prohibited classes: uppercase, italic, tracking-widest, font-mono, font-bold, font-black.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500&display=swap');
@import url('tabler-icons.min.css');
@import url('fontawesome.min.css');

:root {
    /* Dynamic Typography (Overridden by PHP Addon settings) */
    --tz-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tz-font-scale: 1.0;

    /* Scaled Text Sizes */
    --tz-font-xs: calc(0.75rem * var(--tz-font-scale));
    --tz-font-sm: calc(0.875rem * var(--tz-font-scale));
    --tz-font-base: calc(1rem * var(--tz-font-scale));
    --tz-font-lg: calc(1.125rem * var(--tz-font-scale));
    --tz-font-xl: calc(1.25rem * var(--tz-font-scale));
    --tz-font-2xl: calc(1.5rem * var(--tz-font-scale));
    --tz-font-3xl: calc(1.875rem * var(--tz-font-scale));

    /* Brand Colors (Overridden dynamically by PHP Addon settings) */
    --tz-primary: #2563eb;
    --tz-primary-hover: color-mix(in srgb, var(--tz-primary) 85%, #000000);
    --tz-primary-dark: color-mix(in srgb, var(--tz-primary) 75%, #000000);
    --tz-primary-light: color-mix(in srgb, var(--tz-primary) 20%, #ffffff);
    --tz-primary-rgb: 37, 99, 235;

    --tz-secondary: #0f172a;
    --tz-accent: #06b6d4;

    /* Surfaces & Backgrounds */
    --tz-bg: #ffffff;
    --tz-surface: #ffffff;
    --tz-surface-muted: #f8fafc;
    --tz-border: #cbd5e1;
    --tz-border-hover: #94a3b8;
    --tz-border-subtle: #f1f5f9;

    /* Text Colors */
    --tz-text-heading: #0f172a;
    --tz-text-body: #475569;
    --tz-text-muted: #94a3b8;

    /* Dynamic SVG Icon Palette (Light Mode) */
    --icon-primary: var(--tz-primary, #2563eb);
    --icon-primary-light: var(--tz-primary-light, color-mix(in srgb, var(--tz-primary, #2563eb) 35%, #ffffff));
    --icon-primary-dark: var(--tz-primary-dark, color-mix(in srgb, var(--tz-primary, #2563eb) 75%, #000000));
    --icon-outline: #17191C;
    --icon-white: #FFFFFF;

    /* Cards & Containers Radius */
    --tz-radius: 12px;
    --tz-radius-card: 12px;
    --tz-card-radius: 12px;
    --tz-radius-sm: 8px;
    --tz-radius-lg: 16px;
    --tz-radius-xl: 24px;

    /* Material Input Specific Controls (Admin Controllable) */
    --tz-input-radius: 5px;              /* Default: 5px */
    --tz-input-border-width: 1px;         /* Default: 1px */
    --tz-input-border: var(--tz-border);

    /* Transitions & Shadows */
    --tz-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tz-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --tz-shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Theme */
[data-theme="dark"], .dark, html.dark {
    --tz-bg: #0b0f19;
    --tz-surface: #0f172a;
    --tz-surface-muted: #1e293b;
    --tz-border: #334155;
    --tz-border-hover: #475569;
    --tz-border-subtle: #1e293b;

    --tz-secondary: #f8fafc;
    --tz-secondary-hover: #ffffff;
    --tz-secondary-rgb: 248, 250, 252;

    --tz-text-heading: #f8fafc;
    --tz-text-body: #cbd5e1;
    --tz-text-muted: #94a3b8;

    /* Dynamic SVG Icon Palette (Dark Mode) */
    --icon-primary: var(--tz-primary, #3b82f6);
    --icon-primary-light: color-mix(in srgb, var(--tz-primary, #3b82f6) 45%, #ffffff);
    --icon-primary-dark: color-mix(in srgb, var(--tz-primary, #3b82f6) 65%, #000000);
    --icon-outline: #f8fafc;
    --icon-white: #ffffff;

    --tz-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --tz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --tz-shadow-dropdown: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 8px 16px -4px rgba(0, 0, 0, 0.45);
}

/* Core Display Utilities & Responsive Visibility */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

@media (max-width: 639px) {
    .max-sm\:hidden { display: none !important; }
    .max-sm\:block { display: block !important; }
    .max-sm\:inline { display: inline !important; }
    .max-sm\:flex { display: flex !important; }
}

@media (min-width: 640px) {
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block !important; }
    .sm\:inline-block { display: inline-block !important; }
    .sm\:inline { display: inline !important; }
    .sm\:flex { display: flex !important; }
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:grid { display: grid !important; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none !important; }
    .md\:block { display: block !important; }
    .md\:inline-block { display: inline-block !important; }
    .md\:inline { display: inline !important; }
    .md\:flex { display: flex !important; }
    .md\:inline-flex { display: inline-flex !important; }
    .md\:grid { display: grid !important; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:block { display: block !important; }
    .lg\:inline-block { display: inline-block !important; }
    .lg\:inline { display: inline !important; }
    .lg\:flex { display: flex !important; }
    .lg\:inline-flex { display: inline-flex !important; }
    .lg\:grid { display: grid !important; }
}

/* Automatic Dark Mode Icon Adaptation */
.dark .svg-icon,
.dark .tz-icon,
[data-theme="dark"] .svg-icon,
[data-theme="dark"] .tz-icon,
html.dark .svg-icon,
html.dark .tz-icon {
    --tz-secondary: #f8fafc !important;
    --icon-outline: #f8fafc !important;
}

.dark .svg-icon svg,
.dark .tz-icon svg,
[data-theme="dark"] .svg-icon svg,
[data-theme="dark"] .tz-icon svg,
html.dark .svg-icon svg,
html.dark .tz-icon svg {
    --tz-secondary: #f8fafc !important;
}

.dark .svg-icon svg [stroke="#0f172a"],
.dark .tz-icon svg [stroke="#0f172a"],
.dark .svg-icon svg [stroke="#17191C"],
.dark .tz-icon svg [stroke="#17191C"],
.dark .svg-icon svg [stroke="#000000"],
.dark .tz-icon svg [stroke="#000000"],
.dark .svg-icon svg [stroke="black"],
.dark .tz-icon svg [stroke="black"],
.dark .svg-icon svg .svg-icon-outline-s,
.dark .tz-icon svg .svg-icon-outline-s,
[data-theme="dark"] .svg-icon svg [stroke="#0f172a"],
[data-theme="dark"] .tz-icon svg [stroke="#0f172a"],
[data-theme="dark"] .svg-icon svg [stroke="#17191C"],
[data-theme="dark"] .tz-icon svg [stroke="#17191C"],
[data-theme="dark"] .svg-icon svg .svg-icon-outline-s,
[data-theme="dark"] .tz-icon svg .svg-icon-outline-s,
html.dark .svg-icon svg [stroke="#0f172a"],
html.dark .tz-icon svg [stroke="#0f172a"],
html.dark .svg-icon svg [stroke="#17191C"],
html.dark .tz-icon svg [stroke="#17191C"],
html.dark .svg-icon svg .svg-icon-outline-s,
html.dark .tz-icon svg .svg-icon-outline-s {
    stroke: #f8fafc !important;
}

.dark .svg-icon svg [fill="#0f172a"],
.dark .tz-icon svg [fill="#0f172a"],
.dark .svg-icon svg [fill="#17191C"],
.dark .tz-icon svg [fill="#17191C"],
.dark .svg-icon svg [fill="#000000"],
.dark .tz-icon svg [fill="#000000"],
.dark .svg-icon svg [fill="black"],
.dark .tz-icon svg [fill="black"],
[data-theme="dark"] .svg-icon svg [fill="#0f172a"],
[data-theme="dark"] .tz-icon svg [fill="#0f172a"],
[data-theme="dark"] .svg-icon svg [fill="#17191C"],
[data-theme="dark"] .tz-icon svg [fill="#17191C"],
html.dark .svg-icon svg [fill="#0f172a"],
html.dark .tz-icon svg [fill="#0f172a"],
html.dark .svg-icon svg [fill="#17191C"],
html.dark .tz-icon svg [fill="#17191C"] {
    fill: #f8fafc !important;
}

.dark .svg-icon svg .svg-icon-surface,
.dark .tz-icon svg .svg-icon-surface,
[data-theme="dark"] .svg-icon svg .svg-icon-surface,
[data-theme="dark"] .tz-icon svg .svg-icon-surface,
html.dark .svg-icon svg .svg-icon-surface,
html.dark .tz-icon svg .svg-icon-surface {
    fill: #1e293b !important;
}

/* TZTheme SVG Icon Styles */
.svg-icon, .tz-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
.svg-icon svg, .tz-icon svg, svg.tz-inlined-svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Scoped Sidebar SVG Icon Depth (Translucent Glass Fills + Crisp Vector Outlines) */
#tzAppSidebar .svg-icon,
#tzAppSidebar .tz-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}

#tzAppSidebar .group\/menuitem:hover .svg-icon,
#tzAppSidebar .group\/menuitem:hover .tz-icon {
    transform: scale(1.05);
}

/* Translucent Duotone Glass surfaces for icons on primary/colored sidebar */
#tzAppSidebar.bg-primary .svg-icon svg,
#tzAppSidebar.bg-primary .tz-icon svg,
.bg-primary #tzAppSidebar .svg-icon svg,
.bg-primary #tzAppSidebar .tz-icon svg {
    overflow: visible;
}

#tzAppSidebar.bg-primary .svg-icon svg [fill="#ffffff"],
#tzAppSidebar.bg-primary .tz-icon svg [fill="#ffffff"],
#tzAppSidebar.bg-primary .svg-icon svg [fill="var(--tz-surface, #ffffff)"],
#tzAppSidebar.bg-primary .tz-icon svg [fill="var(--tz-surface, #ffffff)"],
#tzAppSidebar.bg-primary .svg-icon svg .svg-icon-surface,
#tzAppSidebar.bg-primary .tz-icon svg .svg-icon-surface {
    fill: rgba(255, 255, 255, 0.18) !important;
}

#tzAppSidebar.bg-primary .svg-icon svg [fill="var(--tz-primary, #2563eb)"],
#tzAppSidebar.bg-primary .tz-icon svg [fill="var(--tz-primary, #2563eb)"],
#tzAppSidebar.bg-primary .svg-icon svg .svg-icon-prime,
#tzAppSidebar.bg-primary .tz-icon svg .svg-icon-prime {
    fill: rgba(255, 255, 255, 0.35) !important;
}

#tzAppSidebar.bg-primary .svg-icon svg [stroke],
#tzAppSidebar.bg-primary .tz-icon svg [stroke],
#tzAppSidebar.bg-primary .svg-icon svg [stroke="var(--tz-secondary, #0f172a)"],
#tzAppSidebar.bg-primary .tz-icon svg [stroke="var(--tz-secondary, #0f172a)"],
#tzAppSidebar.bg-primary .svg-icon svg .svg-icon-outline-s,
#tzAppSidebar.bg-primary .tz-icon svg .svg-icon-outline-s,
#tzAppSidebar.bg-primary .svg-icon svg .svg-icon-outline-i,
#tzAppSidebar.bg-primary .tz-icon svg .svg-icon-outline-i {
    stroke: #ffffff !important;
}

#tzAppSidebar.bg-primary .group\/menuitem:hover .svg-icon svg [fill="var(--tz-surface, #ffffff)"],
#tzAppSidebar.bg-primary .group\/menuitem:hover .tz-icon svg [fill="var(--tz-surface, #ffffff)"],
#tzAppSidebar.bg-primary .group\/menuitem:hover .svg-icon svg .svg-icon-surface,
#tzAppSidebar.bg-primary .group\/menuitem:hover .tz-icon svg .svg-icon-surface {
    fill: rgba(255, 255, 255, 0.28) !important;
}

/* Global Reset & Strict Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Universal Thin Theme Scrollbar System */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--tz-primary-rgb), 0.38) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

*::-webkit-scrollbar-thumb {
    background-color: rgba(var(--tz-primary-rgb), 0.35);
    border-radius: 9999px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background-color var(--tz-transition);
}

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

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    font-family: var(--tz-font-family);
    font-weight: 400;
    font-size: var(--tz-font-base);
    line-height: 1.6;
    background-color: var(--tz-bg);
    color: var(--tz-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Bulletproof Global Image & Media Constraints (Prevents Outsized SVGs/Images) */
img, svg, picture, video, canvas {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Icon & Component Sizing Enforcers */
.tz-searchable-selected-text img,
.tz-searchable-selected-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin-right: 8px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.tz-option-content img,
.tz-option-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Universal SVG and Icon Constraints */
.tz-icon,
img.tz-icon,
svg.tz-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    object-fit: contain;
    color: currentColor;
}

.tz-icon-xs,
img.tz-icon-xs,
svg.tz-icon-xs {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    object-fit: contain;
}

.tz-icon-sm,
img.tz-icon-sm,
svg.tz-icon-sm {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    object-fit: contain;
}

.tz-icon-lg,
img.tz-icon-lg,
svg.tz-icon-lg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain;
}

.tz-icon-xl,
img.tz-icon-xl,
svg.tz-icon-xl {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
}

.tz-icon-2xl,
img.tz-icon-2xl,
svg.tz-icon-2xl {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
}

.tz-icon-3xl,
img.tz-icon-3xl,
svg.tz-icon-3xl {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

.tz-icon-4xl,
img.tz-icon-4xl,
svg.tz-icon-4xl {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain;
}

.tz-card-icon,
.tz-card-icon .tz-icon,
.tz-card-icon svg {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
}

.tz-material-icon,
img.tz-material-icon,
svg.tz-material-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

.tz-material-arrow,
img.tz-material-arrow,
svg.tz-material-arrow {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.tz-option-check,
img.tz-option-check,
svg.tz-option-check {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    object-fit: contain;
}

.tz-sidebar-item img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.tz-btn img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.tz-svg-primary,
.tz-svg-theme,
.tz-theme-colored,
.tz-material-field:focus-within .tz-material-icon,
.tz-material-field:focus-within .tz-material-arrow,
.tz-material-group:focus-within .tz-material-icon,
.tz-picker-wrapper:focus-within .tz-material-icon,
.tz-picker-wrapper:focus-within .tz-material-arrow,
.tz-searchable-select:focus-within .tz-searchable-selected-icon,
.tz-searchable-select.is-open .tz-material-arrow,
.tz-searchable-select.is-filled .tz-searchable-selected-icon,
.tz-searchable-option.is-selected .tz-option-icon,
.tz-searchable-option.is-selected .tz-option-check {
    color: var(--tz-primary);
    transition: color var(--tz-transition);
}

.tz-badge img {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    object-fit: contain;
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6,
.font-medium,
.font-bold,
strong,
b {
    font-weight: 500 !important;
    color: var(--tz-text-heading);
    line-height: 1.3;
}

p, span, a, label, input, select, textarea, td, th, li {
    font-weight: 400;
}

/* Responsive Container & Layout Grid Helpers */
.tz-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .tz-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1200px) {
    .tz-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.tz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .tz-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .tz-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Base Sizing & Layout Utilities */
.w-3 { width: 12px !important; }
.h-3 { height: 12px !important; }
.w-4 { width: 16px !important; }
.h-4 { height: 16px !important; }
.w-5 { width: 20px !important; }
.h-5 { height: 20px !important; }
.w-6 { width: 24px !important; }
.h-6 { height: 24px !important; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.inline-block { display: inline-block; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-85 { opacity: 0.85; }

.bg-primary { background-color: var(--tz-primary); }
.text-primary { color: var(--tz-primary); }
.border-primary { border-color: var(--tz-primary); }
.bg-primary-soft { background-color: rgba(var(--tz-primary-rgb), 0.08); }
.text-primary-soft { color: var(--tz-primary); }

.bg-surface { background-color: var(--tz-surface); }
.bg-canvas { background-color: var(--tz-bg); }
.rounded-xl, .rounded-2xl, .rounded-3xl, .tz-card, .tz-stat-card, .tz-pricing-card, .tz-table-card, [class*="rounded-[var(--tz-card-radius"], [class*="rounded-[var(--tz-radius"] { border-radius: var(--tz-radius); }
.rounded-lg { border-radius: var(--tz-radius-sm); }
.rounded-5px, .rounded-\[5px\], .tz-btn, .tz-input, .tz-select, .tz-textarea { border-radius: var(--tz-input-radius); }
.rounded-2xl { border-radius: var(--tz-radius-lg); }
.rounded-3xl { border-radius: var(--tz-radius-xl, 24px); }

/* ==========================================================================
   Universal Base Form Controls (5px Radius, 1px Border, Zero Focus Shadow)
   ========================================================================== */

.tz-input,
.tz-select,
.tz-textarea,
input[type="text"].tz-input,
input[type="email"].tz-input,
input[type="password"].tz-input,
input[type="number"].tz-input,
input[type="search"].tz-input,
input[type="tel"].tz-input,
input[type="url"].tz-input,
select.tz-input,
select.tz-select,
textarea.tz-textarea {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width) solid var(--tz-input-border);
    border-radius: var(--tz-input-radius);
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.tz-input,
.tz-select,
input[type="text"].tz-input,
input[type="email"].tz-input,
input[type="password"].tz-input,
input[type="number"].tz-input,
input[type="search"].tz-input,
input[type="tel"].tz-input,
input[type="url"].tz-input,
select.tz-input,
select.tz-select {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    line-height: 40px;
}

.tz-input-sm,
select.tz-input-sm,
input.tz-input-sm {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: var(--tz-font-xs) !important;
    line-height: 32px !important;
}

.tz-input-lg,
select.tz-input-lg,
input.tz-input-lg {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: var(--tz-font-md) !important;
    line-height: 46px !important;
}

.tz-textarea,
textarea.tz-textarea {
    min-height: 90px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

/* Custom Styled Select with SVG Theme Dropdown Chevron */
select,
.tz-select,
select.tz-input,
select.tz-select,
select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px 14px !important;
    padding-right: 32px !important;
    cursor: pointer;
}

.tz-input:hover,
.tz-select:hover,
.tz-textarea:hover {
    border-color: var(--tz-border);
}

.tz-input:focus,
.tz-input:focus-visible,
.tz-select:focus,
.tz-select:focus-visible,
.tz-textarea:focus,
.tz-textarea:focus-visible,
select.tz-input:focus,
input.tz-input:focus,
textarea.tz-textarea:focus {
    border-color: var(--tz-primary) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Options dropdown inside select */
.tz-select option,
select.tz-input option {
    background-color: var(--tz-surface);
    color: var(--tz-text-heading);
    font-family: inherit;
    font-weight: 400;
    padding: 6px 10px;
}

/* Universal Clean Code & Badge Pills */
code,
.tz-code {
    font-family: inherit !important;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.08);
    padding: 2px 7px;
    border-radius: var(--tz-input-radius);
    border: 1px solid rgba(var(--tz-primary-rgb), 0.15);
    display: inline-block;
    line-height: 1.35;
}

/* ==========================================================================
   Material Outlined Floating Label Input System (5px Radius, Zero Shadow)
   ========================================================================== */

/* Autofill Detection Keyframes */
@keyframes onAutoFillStart { from { opacity: 0.99; } to { opacity: 1; } }
@keyframes onAutoFillCancel { from { opacity: 0.99; } to { opacity: 1; } }

/* Browser Autofill Styling Overrides (Chrome, Safari, Edge) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--tz-text-heading, #0f172a) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--tz-surface, #ffffff) inset !important;
    box-shadow: 0 0 0 1000px var(--tz-surface, #ffffff) inset !important;
    caret-color: var(--tz-text-heading, #0f172a) !important;
    font-family: inherit !important;
    font-size: var(--tz-font-sm) !important;
    animation-name: onAutoFillStart;
    transition: background-color 50000s ease-in-out 0s;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] textarea:-webkit-autofill:hover,
[data-theme="dark"] textarea:-webkit-autofill:focus,
[data-theme="dark"] select:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill:hover,
[data-theme="dark"] select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0 1000px var(--tz-surface, #111827) inset !important;
    box-shadow: 0 0 0 1000px var(--tz-surface, #111827) inset !important;
    caret-color: #f8fafc !important;
}

.tz-material-group {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

@media (max-width: 767.98px) {
    .tz-material-group {
        margin-bottom: 0px;
    }
}

.tz-material-group.mb-0,
.tz-material-group.\!mb-0,
.grid > .tz-material-group,
.grid > div > .tz-material-group,
.grid .tz-material-group.mb-0,
.grid .tz-material-group.\!mb-0,
.tz-grid > .tz-material-group {
    margin-bottom: 0 !important;
}

.tz-material-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.tz-material-input,
.tz-material-select,
.tz-material-field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.tz-material-field select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    line-height: normal;
    box-sizing: border-box;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width, 1px) solid var(--tz-border);
    border-radius: var(--tz-input-radius, 5px);
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-material-textarea,
.tz-material-field textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width, 1px) solid var(--tz-border);
    border-radius: var(--tz-input-radius, 5px);
    outline: none;
    box-shadow: none !important;
    resize: vertical;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Controls Hover States */
.tz-material-input:hover:not(:focus):not(:disabled),
.tz-material-select:hover:not(:focus):not(:disabled),
.tz-material-textarea:hover:not(:focus):not(:disabled),
.tz-material-field:hover:not(:focus-within) input:not(:disabled),
.tz-material-field:hover:not(:focus-within) select:not(:disabled),
.tz-material-field:hover:not(:focus-within) textarea:not(:disabled),
.tz-searchable-trigger:hover,
.tz-input:hover:not(:focus):not(:disabled),
.tz-select:hover:not(:focus):not(:disabled),
.tz-admin-input:hover:not(:focus):not(:disabled),
.tz-admin-select:hover:not(:focus):not(:disabled),
.tz-admin-textarea:hover:not(:focus):not(:disabled) {
    border-color: var(--tz-border-hover) !important;
}

.tz-material-field:hover:not(:focus-within) .tz-material-icon,
.tz-material-field:hover:not(:focus-within) .tz-material-arrow,
.tz-material-input:hover ~ .tz-material-icon,
.tz-material-select:hover ~ .tz-material-icon,
.tz-searchable-trigger:hover .tz-searchable-selected-icon,
.tz-searchable-trigger:hover .tz-material-arrow {
    opacity: 0.95;
    color: var(--tz-text-heading);
}

.tz-material-field:hover:not(:focus-within) .tz-material-label:not(.is-filled .tz-material-label):not(.is-floating .tz-material-label),
.tz-searchable-trigger:hover .tz-material-label:not(.is-filled .tz-material-label) {
    color: var(--tz-text-heading);
}

/* Floating Label - Mathematically Centered with Top Border Cutout Line */
.tz-material-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-muted);
    background-color: var(--tz-surface);
    padding: 0 5px;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border-radius: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Container-Aware Floating Label Backgrounds */
.tz-surface-muted .tz-material-label,
.tz-dns-add-card .tz-material-label,
.tz-modal-card .tz-material-label,
.tz-card-header .tz-material-label {
    background-color: var(--tz-surface-muted);
}

.tz-modal-split-form .tz-material-label,
.tz-modal-container .tz-material-label,
.tz-modal-dialog .tz-material-label,
.tz-modal-body .tz-material-label:not(.tz-dns-add-card .tz-material-label) {
    background-color: var(--tz-surface);
}

/* Textarea Label Positioning (Unfloated default) */
.tz-material-textarea ~ .tz-material-label,
.tz-material-field textarea ~ .tz-material-label {
    top: 18px;
    transform: none;
}

/* Leading Icon Integration - Guaranteed Left Padding */
.tz-material-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 6;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--tz-text-muted);
}

/* Chrome & Safari Autofill Keyframes for JS Event Detection */
@keyframes onAutoFillStart {
    from {/**/}
    to {/**/}
}
@keyframes onAutoFillCancel {
    from {/**/}
    to {/**/}
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    animation-name: onAutoFillStart;
}

input:not(:-webkit-autofill),
textarea:not(:-webkit-autofill),
select:not(:-webkit-autofill) {
    animation-name: onAutoFillCancel;
}

.tz-material-input.has-icon,
.tz-material-select.has-icon,
.tz-material-field:has(.tz-material-icon) input,
.tz-material-field:has(.tz-material-icon) select,
.tz-material-field input.has-icon,
.tz-material-field select.has-icon {
    padding-left: 42px !important;
}

/* Unfloated / Idle State when input is empty and not focused or autofilled */
.tz-material-input:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field input:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field:not(:has(input:-webkit-autofill)):not(:has(input:autofill)):not(:has(input:not(:placeholder-shown))):not(:has(textarea)):not(:focus-within):not(.is-filled):not(.is-floating):not(.is-autofilled) > .tz-material-label,
.tz-material-group:not(:has(input:-webkit-autofill)):not(:has(input:autofill)):not(:has(input:not(:placeholder-shown))):not(:has(textarea)):not(:focus-within):not(.is-filled):not(.is-floating):not(.is-autofilled) .tz-material-label {
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%) scale(1) !important;
    transform-origin: left center !important;
    font-size: var(--tz-font-sm) !important;
    font-weight: 400 !important;
    color: var(--tz-text-muted) !important;
    background-color: transparent !important;
    pointer-events: none;
}

/* Textarea unfloated default top offset */
.tz-material-textarea:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field textarea:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field:has(textarea):not(:has(textarea:not(:placeholder-shown))):not(:focus-within):not(.is-filled):not(.is-floating) > .tz-material-label,
.tz-material-group:has(textarea):not(:has(textarea:not(:placeholder-shown))):not(:focus-within):not(.is-filled):not(.is-floating) .tz-material-label {
    top: 16px !important;
    left: 14px !important;
    transform: none !important;
    transform-origin: left top !important;
    font-size: var(--tz-font-sm) !important;
    font-weight: 400 !important;
    color: var(--tz-text-muted) !important;
    background-color: transparent !important;
    pointer-events: none;
}

.tz-material-counter {
    font-size: 11px;
    font-weight: 400;
    color: var(--tz-text-muted);
}

/* Unfloated state label offset for icon inputs */
.tz-material-input.has-icon:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field:has(.tz-material-icon):not(:has(input:-webkit-autofill)):not(:has(input:autofill)):not(:has(input:not(:placeholder-shown))):not(:has(select)):not(:focus-within):not(.is-filled):not(.is-floating):not(.is-autofilled) > .tz-material-label,
.tz-material-field:has(> .tz-material-icon) input:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label,
.tz-material-field input.has-icon:placeholder-shown:not(:focus):not(:-webkit-autofill):not(:autofill) ~ .tz-material-label {
    top: 50% !important;
    left: 42px !important;
    transform: translateY(-50%) scale(1) !important;
    transform-origin: left center !important;
    font-size: var(--tz-font-sm) !important;
    font-weight: 400 !important;
    color: var(--tz-text-muted) !important;
    background-color: transparent !important;
    pointer-events: none;
}

/* Trailing Action & Password Toggle Buttons */
.tz-material-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-primary);
    cursor: pointer;
    border-radius: var(--tz-input-radius, 5px);
    z-index: 6;
}

.tz-material-trailing-icon,
.tz-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--tz-text-muted);
    cursor: pointer;
    z-index: 6;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.tz-material-trailing-icon:hover,
.tz-password-toggle:hover {
    color: var(--tz-primary);
}

.tz-material-input.has-trailing-icon,
.tz-material-select.has-trailing-icon,
.tz-material-field:has(.tz-material-trailing-icon) input,
.tz-material-field:has(.tz-password-toggle) input,
.tz-material-field:has(.tz-material-action) input {
    padding-right: 42px !important;
}

/* Trailing Dropdown Arrow */
.tz-material-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--tz-text-muted);
    pointer-events: none;
    z-index: 6;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tz-material-arrow .ti {
    font-size: 16px;
}

.tz-material-select,
.tz-material-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 36px;
}

/* Floating Label Active & Focus States */
.tz-material-input:focus,
.tz-material-textarea:focus,
.tz-material-select:focus,
.tz-material-field input:focus,
.tz-material-field textarea:focus,
.tz-material-field select:focus {
    border-color: var(--tz-primary) !important;
    box-shadow: none !important;
    outline: none;
}

.tz-material-input:focus ~ .tz-material-label,
.tz-material-textarea:focus ~ .tz-material-label,
.tz-material-select:focus ~ .tz-material-label,
.tz-material-field input:focus ~ .tz-material-label,
.tz-material-field textarea:focus ~ .tz-material-label,
.tz-material-field select:focus ~ .tz-material-label,
.tz-material-field:focus-within > .tz-material-label,
.tz-material-group:focus-within .tz-material-label {
    top: 0 !important;
    left: 10px !important;
    transform: translateY(-50%) scale(0.85) !important;
    transform-origin: left center !important;
    color: var(--tz-primary) !important;
    font-weight: 500 !important;
    background-color: var(--tz-surface) !important;
    line-height: 1;
    z-index: 10;
}

.tz-material-input:focus ~ .tz-material-icon,
.tz-material-field:focus-within .tz-material-icon {
    opacity: 0.95;
    color: var(--tz-primary);
}

/* Floating Label Populated / Filled / Autofilled States */
.tz-material-input:not(:placeholder-shown) ~ .tz-material-label,
.tz-material-textarea:not(:placeholder-shown) ~ .tz-material-label,
.tz-material-select ~ .tz-material-label,
.tz-material-select:not([value=""]):not([value=" "]) ~ .tz-material-label,
.tz-material-field input:not(:placeholder-shown) ~ .tz-material-label,
.tz-material-field textarea:not(:placeholder-shown) ~ .tz-material-label,
.tz-material-field select ~ .tz-material-label,
.tz-material-input:-webkit-autofill ~ .tz-material-label,
.tz-material-input:autofill ~ .tz-material-label,
.tz-material-field input:-webkit-autofill ~ .tz-material-label,
.tz-material-field input:autofill ~ .tz-material-label,
.tz-material-field textarea:-webkit-autofill ~ .tz-material-label,
.tz-material-field textarea:autofill ~ .tz-material-label,
.tz-material-field select:-webkit-autofill ~ .tz-material-label,
.tz-material-field select:autofill ~ .tz-material-label,
.tz-material-field:has(input:-webkit-autofill) > .tz-material-label,
.tz-material-field:has(input:autofill) > .tz-material-label,
.tz-material-field:has(input:not(:placeholder-shown)) > .tz-material-label,
.tz-material-field:has(textarea:not(:placeholder-shown)) > .tz-material-label,
.tz-material-field:has(select) > .tz-material-label,
.tz-material-field:has(select:not([value=""]):not([value=" "])) > .tz-material-label,
.tz-material-group:has(select) .tz-material-label,
.tz-material-group:has(input:-webkit-autofill) .tz-material-label,
.tz-material-group:has(input:autofill) .tz-material-label,
.tz-material-group:has(input:not(:placeholder-shown)) .tz-material-label,
.tz-material-field.is-floating > .tz-material-label,
.tz-material-field.is-filled > .tz-material-label,
.tz-material-field.is-autofilled > .tz-material-label,
.tz-material-group.is-filled .tz-material-label,
.tz-material-group.is-floating .tz-material-label,
.tz-material-group.is-autofilled .tz-material-label,
.tz-material-input.is-filled ~ .tz-material-label,
.tz-material-select.is-filled ~ .tz-material-label,
.tz-material-textarea.is-filled ~ .tz-material-label {
    top: 0 !important;
    left: 10px !important;
    transform: translateY(-50%) scale(0.85) !important;
    transform-origin: left center !important;
    font-weight: 500 !important;
    color: var(--tz-text-body) !important;
    background-color: var(--tz-surface) !important;
    padding: 0 5px !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

/* Validation States */
.tz-material-input.is-valid,
.tz-material-field.is-valid input,
.tz-material-field.is-valid select { border-color: #10b981; }
.tz-material-input.is-valid:focus,
.tz-material-field.is-valid input:focus,
.tz-material-field.is-valid select:focus { border-color: #059669 !important; }
.tz-material-input.is-valid:focus ~ .tz-material-label,
.tz-material-field.is-valid .tz-material-label { color: #059669 !important; }

.tz-material-input.is-invalid,
.tz-material-field.is-invalid input,
.tz-material-field.is-invalid select { border-color: #f43f5e; }
.tz-material-input.is-invalid:focus,
.tz-material-field.is-invalid input:focus,
.tz-material-field.is-invalid select:focus { border-color: #e11d48 !important; }
.tz-material-input.is-invalid:focus ~ .tz-material-label,
.tz-material-field.is-invalid .tz-material-label { color: #e11d48 !important; }

.tz-material-hint {
    display: block;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin-top: 5px;
    padding-left: 4px;
}

.tz-material-counter {
    font-size: var(--tz-font-xs);
    color: var(--tz-text-muted);
    font-weight: 400;
}

.tz-material-hint.is-valid { color: #059669; }
.tz-material-hint.is-invalid { color: #e11d48; }

.tz-material-input:disabled,
.tz-material-select:disabled,
.tz-material-textarea:disabled,
.tz-input:disabled {
    background-color: var(--tz-surface-muted);
    color: var(--tz-text-muted);
    cursor: not-allowed;
    border-color: var(--tz-border);
}

.tz-material-input:read-only:not(:disabled):not(.tz-datepicker-input):not(.tz-timepicker-input):not(.tz-datetimepicker-input):not(.tz-daterangepicker-input):not(.tz-colorpicker-input),
.tz-input:read-only:not(:disabled):not(.tz-datepicker-input):not(.tz-timepicker-input):not(.tz-datetimepicker-input):not(.tz-daterangepicker-input):not(.tz-colorpicker-input) {
    background-color: var(--tz-surface-muted);
}

/* Explicit picker inputs background (clean surface matching all standard text inputs) */
.tz-picker-wrapper input,
.tz-picker-wrapper .tz-material-input,
.tz-picker-wrapper .tz-input,
.tz-datepicker-input,
.tz-timepicker-input,
.tz-datetimepicker-input,
.tz-daterangepicker-input,
.tz-colorpicker-input {
    background-color: var(--tz-surface) !important;
    cursor: pointer !important;
    color: var(--tz-text-heading) !important;
}

.tz-picker-wrapper input:hover,
.tz-picker-wrapper .tz-material-input:hover,
.tz-datepicker-input:hover,
.tz-timepicker-input:hover,
.tz-datetimepicker-input:hover,
.tz-daterangepicker-input:hover,
.tz-colorpicker-input:hover {
    background-color: var(--tz-surface) !important;
    border-color: var(--tz-border-focus, var(--tz-primary));
}

.tz-picker-wrapper input:focus,
.tz-picker-wrapper .tz-material-input:focus,
.tz-datepicker-input:focus,
.tz-timepicker-input:focus,
.tz-datetimepicker-input:focus,
.tz-daterangepicker-input:focus,
.tz-colorpicker-input:focus {
    background-color: var(--tz-surface) !important;
    border-color: var(--tz-primary) !important;
}

/* ==========================================================================
   Browser Autofill / Pre-fill Color Override
   Prevents Chrome/Edge/Safari yellow/white autofill backgrounds.
   Critical for dark mode where autofill forces a light background.
   ========================================================================== */
.tz-material-input:-webkit-autofill,
.tz-material-input:-webkit-autofill:hover,
.tz-material-input:-webkit-autofill:focus,
.tz-material-field input:-webkit-autofill,
.tz-material-field input:-webkit-autofill:hover,
.tz-material-field input:-webkit-autofill:focus,
.tz-material-group input:-webkit-autofill,
.tz-material-group input:-webkit-autofill:hover,
.tz-material-group input:-webkit-autofill:focus,
.tz-input:-webkit-autofill,
.tz-input:-webkit-autofill:hover,
.tz-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--tz-surface) inset !important;
    -webkit-text-fill-color: var(--tz-text-heading) !important;
    background-color: var(--tz-surface) !important;
    caret-color: var(--tz-text-heading) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dark .tz-material-input:-webkit-autofill,
.dark .tz-material-input:-webkit-autofill:hover,
.dark .tz-material-input:-webkit-autofill:focus,
.dark .tz-material-field input:-webkit-autofill,
.dark .tz-material-field input:-webkit-autofill:hover,
.dark .tz-material-field input:-webkit-autofill:focus,
.dark .tz-material-group input:-webkit-autofill,
.dark .tz-material-group input:-webkit-autofill:hover,
.dark .tz-material-group input:-webkit-autofill:focus,
.dark .tz-input:-webkit-autofill,
.dark .tz-input:-webkit-autofill:hover,
.dark .tz-input:-webkit-autofill:focus,
[data-theme="dark"] .tz-material-input:-webkit-autofill,
[data-theme="dark"] .tz-material-input:-webkit-autofill:hover,
[data-theme="dark"] .tz-material-input:-webkit-autofill:focus,
[data-theme="dark"] .tz-material-field input:-webkit-autofill,
[data-theme="dark"] .tz-material-field input:-webkit-autofill:hover,
[data-theme="dark"] .tz-material-field input:-webkit-autofill:focus,
[data-theme="dark"] .tz-material-group input:-webkit-autofill,
[data-theme="dark"] .tz-material-group input:-webkit-autofill:hover,
[data-theme="dark"] .tz-material-group input:-webkit-autofill:focus,
[data-theme="dark"] .tz-input:-webkit-autofill,
[data-theme="dark"] .tz-input:-webkit-autofill:hover,
[data-theme="dark"] .tz-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--tz-surface) inset !important;
    -webkit-text-fill-color: var(--tz-text-heading) !important;
    background-color: var(--tz-surface) !important;
    border-color: var(--tz-border) !important;
    caret-color: var(--tz-text-heading) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Trailing Icon (Search, Lock, Eye Toggle) */
.tz-material-trailing-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.6;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tz-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.tz-material-trailing-icon:hover {
    opacity: 1;
    color: var(--tz-primary);
}

.tz-material-input.has-trailing-icon {
    padding-right: 42px;
}

/* ==========================================================================
   Input Addon & Compound Group System (Material & Standard)
   ========================================================================== */
.tz-material-input-group,
.tz-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.tz-material-input-group .tz-material-field,
.tz-input-group .tz-input-wrap,
.tz-input-group input.tz-input {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Negative margin to seamlessly merge adjacent borders without double-width */
.tz-material-input-group > *:not(:first-child),
.tz-input-group > *:not(:first-child) {
    margin-left: calc(-1 * var(--tz-input-border-width, 1px));
}

/* Elevate focused element so active primary border is crisp and fully visible */
.tz-material-input-group .tz-material-field:focus-within,
.tz-material-input-group > .tz-btn:focus,
.tz-material-input-group > select:focus,
.tz-material-input-group > .tz-material-addon-select:focus,
.tz-input-group > input:focus,
.tz-input-group > .tz-btn:focus,
.tz-input-group > select:focus {
    z-index: 3;
}

/* --------------------------------------------------------------------------
   Material Addons & Addon Selects
   -------------------------------------------------------------------------- */
.tz-material-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-muted);
    background-color: var(--tz-surface-muted);
    border: var(--tz-input-border-width, 1px) solid var(--tz-input-border);
    white-space: nowrap;
    user-select: none;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    line-height: normal;
    z-index: 1;
}

.tz-material-addon-select {
    display: inline-flex;
    align-items: center;
    height: 46px;
    min-height: 46px;
    padding: 0 28px 0 12px;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    background-color: var(--tz-surface-muted);
    border: var(--tz-input-border-width, 1px) solid var(--tz-input-border);
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tz-material-addon-select:focus {
    border-color: var(--tz-primary);
    background-color: var(--tz-surface);
}

/* Ensure buttons inside material input groups match height and align seamlessly */
.tz-material-input-group > .tz-btn {
    flex: 0 0 auto;
    height: 46px;
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Border Radius Flattening for Compound Connections (Strict 5px System)
   -------------------------------------------------------------------------- */

/* FIRST Child: Rounded ONLY on the left */
.tz-material-input-group > :first-child:not(:last-child),
.tz-material-input-group > :first-child:not(:last-child) .tz-material-input,
.tz-material-input-group > :first-child:not(:last-child) .tz-material-select,
.tz-input-group > :first-child:not(:last-child),
.tz-input-group > :first-child:not(:last-child) input,
.tz-input-group > :first-child:not(:last-child) select {
    border-top-left-radius: var(--tz-input-radius, 5px) !important;
    border-bottom-left-radius: var(--tz-input-radius, 5px) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* LAST Child: Rounded ONLY on the right */
.tz-material-input-group > :last-child:not(:first-child),
.tz-material-input-group > :last-child:not(:first-child) .tz-material-input,
.tz-material-input-group > :last-child:not(:first-child) .tz-material-select,
.tz-input-group > :last-child:not(:first-child),
.tz-input-group > :last-child:not(:first-child) input,
.tz-input-group > :last-child:not(:first-child) select {
    border-top-right-radius: var(--tz-input-radius, 5px) !important;
    border-bottom-right-radius: var(--tz-input-radius, 5px) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* MIDDLE Children: Flatten ALL corners */
.tz-material-input-group > :not(:first-child):not(:last-child),
.tz-material-input-group > :not(:first-child):not(:last-child) .tz-material-input,
.tz-material-input-group > :not(:first-child):not(:last-child) .tz-material-select,
.tz-input-group > :not(:first-child):not(:last-child),
.tz-input-group > :not(:first-child):not(:last-child) input,
.tz-input-group > :not(:first-child):not(:last-child) select {
    border-radius: 0 !important;
}

/* Character Counter */
.tz-material-counter {
    font-size: var(--tz-font-xs);
    color: var(--tz-text-muted);
    text-align: right;
    margin-top: 4px;
}

/* ==========================================================================
   Material Searchable Dropdown Suite (Search Box, Rich Options, 5px Radius)
   ========================================================================== */

.tz-searchable-select {
    position: relative;
    width: 100%;
}

.tz-searchable-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width) solid var(--tz-input-border);
    border-radius: var(--tz-input-radius);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease;
}

.tz-searchable-trigger:focus,
.tz-searchable-select.is-open .tz-searchable-trigger {
    border-color: var(--tz-primary);
}

.tz-searchable-select.is-open .tz-material-arrow {
    transform: rotate(180deg);
}

/* Searchable Floating Label */
.tz-searchable-select .tz-material-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-muted);
    background-color: var(--tz-surface);
    padding: 0 5px;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    border-radius: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tz-searchable-select.is-open .tz-material-label,
.tz-searchable-select.is-filled .tz-material-label {
    top: 0 !important;
    left: 10px !important;
    transform: translateY(-50%) scale(0.85) !important;
    transform-origin: left center !important;
    font-weight: 500;
    background-color: var(--tz-surface);
    line-height: 1;
}

.tz-searchable-select.is-open .tz-material-label {
    color: var(--tz-primary) !important;
}

.tz-searchable-select.is-filled:not(.is-open) .tz-material-label {
    color: var(--tz-text-body);
}

.tz-searchable-selected-text {
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.tz-searchable-selected-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px;
    margin-right: 10px;
    color: var(--tz-text-muted);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tz-searchable-select.is-open .tz-searchable-selected-icon,
.tz-searchable-select:focus-within .tz-searchable-selected-icon {
    color: var(--tz-primary);
}

/* Searchable Dropdown Popup Menu */
.tz-searchable-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    box-shadow: var(--tz-shadow-dropdown);
    padding: 8px;
    z-index: 1060;
    display: none;
    animation: tzDropdownFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-searchable-select.is-open .tz-searchable-menu {
    display: block;
}

@keyframes tzDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box inside Menu */
.tz-searchable-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tz-border-subtle);
}

.tz-searchable-search-wrap .tz-icon,
.tz-searchable-search-wrap i {
    position: absolute !important;
    left: 12px !important;
    top: calc(50% - 4px) !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: var(--tz-text-muted) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.tz-searchable-search-input,
.tz-searchable-search-wrap input.tz-searchable-search-input {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 6px 12px 6px 36px !important;
    font-family: inherit !important;
    font-size: var(--tz-font-xs, 12px) !important;
    font-weight: 400 !important;
    color: var(--tz-text-heading) !important;
    background-color: var(--tz-surface-muted, #f8fafc) !important;
    border: 1px solid var(--tz-border-subtle, #e2e8f0) !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.tz-searchable-search-input:focus,
.tz-searchable-search-wrap input.tz-searchable-search-input:focus {
    border-color: var(--tz-primary) !important;
    background-color: var(--tz-surface, #ffffff) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Option List Container */
.tz-searchable-options {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--tz-primary-rgb), 0.35) transparent;
}

.tz-searchable-options::-webkit-scrollbar {
    width: 5px;
}

.tz-searchable-options::-webkit-scrollbar-track {
    background: transparent;
}

.tz-searchable-options::-webkit-scrollbar-thumb {
    background-color: rgba(var(--tz-primary-rgb), 0.35);
    border-radius: 4px;
}

.tz-searchable-options::-webkit-scrollbar-thumb:hover {
    background-color: var(--tz-primary);
}

/* Searchable Group Headers */
.tz-searchable-group-header {
    padding: 6px 10px 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--tz-text-muted);
    letter-spacing: normal;
    background-color: var(--tz-surface-muted);
    border-radius: calc(var(--tz-input-radius) - 1px);
    margin: 4px 0 2px 0;
}

.tz-searchable-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--tz-input-radius);
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.tz-searchable-option:hover {
    background-color: var(--tz-surface-muted);
}

.tz-searchable-option.is-selected {
    background-color: rgba(var(--tz-primary-rgb), 0.08);
    color: var(--tz-primary);
}

.tz-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tz-option-icon {
    font-size: 18px;
    color: var(--tz-text-muted);
    flex-shrink: 0;
}

.tz-searchable-option.is-selected .tz-option-icon {
    color: var(--tz-primary);
}

.tz-option-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tz-searchable-option.is-selected .tz-option-title {
    color: var(--tz-primary);
}

.tz-option-desc {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin-top: 1px;
}

.tz-option-check {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--tz-primary);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tz-searchable-option.is-selected .tz-option-check {
    opacity: 1;
}

.tz-searchable-empty {
    padding: 16px;
    text-align: center;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    display: none;
}



/* ==========================================================================
   Custom Toggle Switches with Inner (✓) Success and (✕) Cross Icons
   ========================================================================== */

.tz-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.tz-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.tz-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Status Switch: Red when Disabled/Off, Green when Enabled/On */
.tz-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fee2e2;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    border-radius: 9999px;
    border: 1px solid #f87171;
}

/* Round Knob with Default Deselected Cross (✕) Icon */
.tz-switch-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    /* Red Cross icon SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-image 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Checked / Enabled State: Emerald Green Track with (✓) Checkmark */
.tz-switch input:checked + .tz-switch-slider {
    background-color: #10b981;
    border-color: #059669;
}

.tz-switch input:checked + .tz-switch-slider::before {
    transform: translateX(22px);
    /* Emerald success checkmark SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px 12px;
}

/* Solid Vivid Status Switch Variant */
.tz-switch.tz-switch-vivid .tz-switch-slider {
    background-color: #ef4444;
    border-color: #dc2626;
}

.tz-switch.tz-switch-vivid .tz-switch-slider::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.tz-switch.tz-switch-vivid input:checked + .tz-switch-slider {
    background-color: #10b981;
    border-color: #059669;
}

/* Small Switch Variant */
.tz-switch.tz-switch-sm {
    width: 38px;
    height: 20px;
}

.tz-switch.tz-switch-sm .tz-switch-slider::before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-size: 8px 8px;
}

.tz-switch.tz-switch-sm input:checked + .tz-switch-slider::before {
    transform: translateX(18px);
    background-size: 9px 9px;
}

/* Disabled Switch State */
.tz-switch input:disabled + .tz-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark Mode Switch Styles */
[data-theme="dark"] .tz-switch-slider,
.dark .tz-switch-slider {
    background-color: #3b1418;
    border-color: #ef4444;
}

[data-theme="dark"] .tz-switch-slider::before,
.dark .tz-switch-slider::before {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

[data-theme="dark"] .tz-switch input:checked + .tz-switch-slider,
.dark .tz-switch input:checked + .tz-switch-slider {
    background-color: #10b981;
    border-color: #059669;
}

[data-theme="dark"] .tz-switch input:checked + .tz-switch-slider::before,
.dark .tz-switch input:checked + .tz-switch-slider::before {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ==========================================================================
   Dedicated Dark / Light Mode Icon Switcher Component
   ========================================================================== */
.tz-theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 60px;
    height: 30px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    cursor: pointer;
    padding: 2px;
    transition: background-color var(--tz-transition), border-color var(--tz-transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tz-theme-switcher-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 6px;
    pointer-events: none;
}

.tz-theme-switcher-icon-sun {
    font-size: 0.85rem;
    color: #f59e0b;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tz-theme-switcher-icon-moon {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tz-theme-switcher-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 0.8rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--tz-transition), color var(--tz-transition);
}

/* Dark Mode State for Theme Switcher */
[data-theme="dark"] .tz-theme-switcher,
.dark .tz-theme-switcher {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .tz-theme-switcher .tz-theme-switcher-icon-sun,
.dark .tz-theme-switcher .tz-theme-switcher-icon-sun {
    color: #64748b;
}

[data-theme="dark"] .tz-theme-switcher .tz-theme-switcher-icon-moon,
.dark .tz-theme-switcher .tz-theme-switcher-icon-moon {
    color: #38bdf8;
}

[data-theme="dark"] .tz-theme-switcher .tz-theme-switcher-knob,
.dark .tz-theme-switcher .tz-theme-switcher-knob {
    transform: translateX(30px);
    background: #0f172a;
    color: #38bdf8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Standard Controls & Components (Checkboxes, Radios, Buttons)
   ========================================================================== */

/* ==========================================================================
   TZTheme Unified Checkbox Engine (Strict 5px Radius, Zero Focus Glow)
   ========================================================================== */
.tz-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--tz-font-sm, 13px);
    font-weight: 400;
    color: var(--tz-text-body, #334155);
    user-select: none;
}

[data-theme="dark"] .tz-checkbox-label,
.dark .tz-checkbox-label {
    color: #cbd5e1;
}

.tz-checkbox,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    margin: 0;
    padding: 0;
    border: var(--tz-input-border-width, 1px) solid var(--tz-input-border, #cbd5e1);
    border-radius: var(--tz-input-radius, 5px) !important;
    background-color: var(--tz-surface, #ffffff);
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.tz-checkbox:hover:not(:disabled),
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):hover:not(:disabled) {
    border-color: var(--tz-primary, #2563eb);
}

.tz-checkbox:focus,
.tz-checkbox:focus-visible,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):focus,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

.tz-checkbox:checked,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):checked {
    background-color: var(--tz-primary, #2563eb) !important;
    border-color: var(--tz-primary, #2563eb) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 11px 11px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.tz-checkbox:indeterminate,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):indeterminate {
    background-color: var(--tz-primary, #2563eb) !important;
    border-color: var(--tz-primary, #2563eb) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='4' y1='8' x2='12' y2='8'%3E%3C/line%3E%3C/svg%3E") !important;
    background-size: 11px 11px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.tz-checkbox:disabled,
input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Ensure no pseudo-element checkmarks conflict */
.tz-checkbox::before,
.tz-checkbox::after,
input[type="checkbox"]::before,
input[type="checkbox"]::after {
    display: none !important;
    content: none !important;
}

/* Dark mode universal checkbox adaptation */
[data-theme="dark"] .tz-checkbox,
[data-theme="dark"] input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger),
.dark .tz-checkbox,
.dark input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger) {
    background-color: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .tz-checkbox:hover:not(:disabled),
[data-theme="dark"] input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):hover:not(:disabled),
.dark .tz-checkbox:hover:not(:disabled),
.dark input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):hover:not(:disabled) {
    border-color: var(--tz-primary, #3b82f6);
}

[data-theme="dark"] .tz-checkbox:checked,
[data-theme="dark"] input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):checked,
.dark .tz-checkbox:checked,
.dark input[type="checkbox"]:not(.tz-toggle-input):not(.switch__checkbox):not(.tz-switch-input):not(.sr-only):not([class*="sr-only"]):not(.tz-checkbox-trigger):checked {
    background-color: var(--tz-primary, #2563eb) !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

.tz-checkbox-title {
    display: inline-block;
    font-size: var(--tz-font-sm, 13px);
    font-weight: 400;
    color: var(--tz-text-heading, #1e293b);
    line-height: 1.3;
}

[data-theme="dark"] .tz-checkbox-title,
.dark .tz-checkbox-title {
    color: #f1f5f9;
}

.tz-checkbox-desc {
    display: block;
    font-size: var(--tz-font-xs, 12px);
    font-weight: 400;
    color: var(--tz-text-muted, #64748b);
    margin-top: 2px;
    line-height: 1.4;
}

[data-theme="dark"] .tz-checkbox-desc,
.dark .tz-checkbox-desc {
    color: #94a3b8;
}

/* Radio Group & Radio Cards */
.tz-radio-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tz-radio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width) solid var(--tz-input-border);
    border-radius: var(--tz-input-radius);
    cursor: pointer;
    transition: var(--tz-transition);
}

.tz-radio-card:has(input[type="radio"]:checked),
.tz-radio-card.is-active:has(input[type="radio"]:checked) {
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.03);
}

.tz-radio-card input[type="radio"] {
    position: absolute;
    top: 16px;
    right: 16px;
    accent-color: var(--tz-primary);
    width: 16px;
    height: 16px;
}

/* Action Buttons */
.tz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 500;
    border-radius: var(--tz-input-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--tz-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.tz-btn > span,
.tz-btn > i,
.tz-btn > svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tz-btn.h-10,
.tz-btn.h-9,
.tz-btn.h-8,
.tz-btn.h-11,
.tz-btn.h-12,
.tz-btn[class*="h-"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.tz-btn-primary {
    background-color: var(--tz-primary);
    color: #ffffff;
    box-shadow: none;
}

.tz-btn-primary:hover {
    background-color: var(--tz-primary-hover);
    color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(var(--tz-primary-rgb), 0.25);
}

.tz-btn-secondary {
    background-color: var(--tz-surface);
    color: var(--tz-text-heading);
    border: var(--tz-input-border-width) solid var(--tz-input-border);
    font-weight: 400;
}

.tz-btn-secondary:hover {
    background-color: rgba(var(--tz-primary-rgb), 0.05);
    color: var(--tz-primary);
    border-color: var(--tz-primary);
}

.dark .tz-btn-secondary:hover {
    background-color: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    border-color: var(--tz-primary);
}

/* Header Navbar Links & Centered Icons */
.tz-header-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}

.tz-header-nav-link .tz-icon,
.tz-header-nav-link .svg-icon,
.tz-header-nav-link .tz-inlined-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.tz-header-nav-link .tz-icon svg,
.tz-header-nav-link .svg-icon svg,
.tz-header-nav-link .tz-inlined-svg svg,
.tz-header-nav-link > img,
.tz-header-nav-link > svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

.tz-header-nav-link > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.tz-header-nav-link > i.ti {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Header Navbar Dropdown Engine */
.tz-nav-dropdown-item {
    position: relative !important;
}

.tz-nav-dropdown-item > .tz-nav-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    z-index: 60 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tz-nav-dropdown-item:hover > .tz-nav-dropdown-menu,
.tz-nav-dropdown-item.is-open > .tz-nav-dropdown-menu,
.tz-nav-dropdown-item:focus-within > .tz-nav-dropdown-menu {
    display: block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tz-nav-dropdown-item:hover .tz-nav-chevron,
.tz-nav-dropdown-item.is-open .tz-nav-chevron {
    transform: rotate(180deg) !important;
}

/* Dedicated Header Authentication Buttons */
.tz-header-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border-radius: var(--tz-input-radius) !important;
    border: var(--tz-input-border-width, 1px) solid var(--tz-input-border, #e2e8f0) !important;
    background-color: var(--tz-surface, #ffffff) !important;
    color: var(--tz-text-heading, #0f172a) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: var(--tz-transition, all 0.15s ease-in-out) !important;
    cursor: pointer !important;
    user-select: none !important;
}

.tz-header-login-btn > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tz-header-login-btn:hover {
    border-color: var(--tz-primary) !important;
    color: var(--tz-primary) !important;
    background-color: rgba(var(--tz-primary-rgb), 0.05) !important;
}

.dark .tz-header-login-btn {
    background-color: var(--tz-surface, #0f172a) !important;
    border-color: var(--tz-input-border, #1e293b) !important;
    color: var(--tz-text-heading, #f8fafc) !important;
}

.dark .tz-header-login-btn:hover {
    border-color: var(--tz-primary) !important;
    color: var(--tz-primary) !important;
    background-color: rgba(var(--tz-primary-rgb), 0.12) !important;
}

.tz-header-register-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 20px !important;
    border-radius: var(--tz-input-radius) !important;
    border: 1px solid var(--tz-primary) !important;
    background-color: var(--tz-primary) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: var(--tz-transition, all 0.15s ease-in-out) !important;
    cursor: pointer !important;
    user-select: none !important;
}

.tz-header-register-btn > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tz-header-register-btn:hover {
    background-color: var(--tz-primary-hover) !important;
    border-color: var(--tz-primary-hover) !important;
    color: #ffffff !important;
}

.tz-btn-soft {
    background-color: rgba(var(--tz-primary-rgb), 0.1);
    color: var(--tz-primary);
}

.tz-btn-soft:hover {
    background-color: var(--tz-primary);
    color: #ffffff;
}

.tz-btn-danger {
    background-color: #f43f5e;
    color: #ffffff;
}

.tz-btn-danger:hover {
    background-color: #e11d48;
    box-shadow: 0 1px 3px 0 rgba(244, 63, 94, 0.25);
}

.tz-btn-sm {
    padding: 6px 12px;
    font-size: var(--tz-font-xs);
    border-radius: var(--tz-input-radius);
}

.tz-btn-lg {
    padding: 14px 24px;
    font-size: var(--tz-font-base);
    border-radius: var(--tz-input-radius);
}

/* Status Badges */
.tz-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    border-radius: var(--tz-input-radius, 5px);
    line-height: 1.4;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tz-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;
}

.tz-badge-icon {
    font-size: 0.9em;
    line-height: 1;
}

.tz-badge-sm {
    padding: 2px 7px;
    font-size: 11px;
}

.tz-badge-md {
    padding: 3px 9px;
    font-size: var(--tz-font-xs);
}

.tz-badge-lg {
    padding: 5px 12px;
    font-size: var(--tz-font-sm);
}

/* Light Mode: Soft tinted background with crisp text */
.tz-badge-primary { background: rgba(var(--tz-primary-rgb, 15, 23, 42), 0.08); color: var(--tz-primary, #0f172a); border-color: rgba(var(--tz-primary-rgb, 15, 23, 42), 0.18); }
.tz-badge-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tz-badge-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tz-badge-danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tz-badge-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tz-badge-neutral { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tz-badge-secondary { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* Dark Mode: Soft tinted background with vibrant light text */
[data-theme="dark"] .tz-badge-primary, .dark .tz-badge-primary { background: rgba(37, 99, 235, 0.18); color: #93c5fd; border-color: rgba(37, 99, 235, 0.28); }
[data-theme="dark"] .tz-badge-success, .dark .tz-badge-success { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16, 185, 129, 0.28); }
[data-theme="dark"] .tz-badge-warning, .dark .tz-badge-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); }
[data-theme="dark"] .tz-badge-danger,  .dark .tz-badge-danger  { background: rgba(244, 63, 94, 0.18); color: #fb7185; border-color: rgba(244, 63, 94, 0.28); }
[data-theme="dark"] .tz-badge-info,    .dark .tz-badge-info    { background: rgba(37, 99, 235, 0.18); color: #60a5fa; border-color: rgba(37, 99, 235, 0.28); }
[data-theme="dark"] .tz-badge-neutral, .dark .tz-badge-neutral { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }
[data-theme="dark"] .tz-badge-secondary, .dark .tz-badge-secondary { background: rgba(100, 116, 139, 0.2); color: #e2e8f0; border-color: rgba(100, 116, 139, 0.3); }

/* ==========================================================================
   Button Loading Animation Engine
   ========================================================================== */
.tz-btn.is-loading {
    position: relative !important;
    pointer-events: none !important;
    cursor: wait !important;
    user-select: none !important;
    color: transparent !important;
}

.tz-btn.is-loading > * {
    opacity: 0 !important;
    visibility: hidden !important;
}

.tz-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: tzButtonSpin 0.65s linear infinite;
    z-index: 2;
    box-sizing: border-box;
}

.tz-btn-secondary.is-loading::after,
.tz-btn-soft.is-loading::after {
    border-color: rgba(var(--tz-primary-rgb), 0.25);
    border-top-color: var(--tz-primary);
}

.tz-btn-sm.is-loading::after {
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-left: -7px;
    border-width: 2px;
}

.tz-btn-lg.is-loading::after {
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    border-width: 2.5px;
}

@keyframes tzButtonSpin {
    to { transform: rotate(360deg); }
}

.tz-quick-shortcut-card.is-loading,
.tz-service-menu-item.is-loading {
    position: relative !important;
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.75;
}

.tz-quick-shortcut-card.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    border-radius: 50%;
    border: 2px solid rgba(var(--tz-primary-rgb, 14, 165, 233), 0.25);
    border-top-color: var(--tz-primary, #0ea5e9);
    animation: tzButtonSpin 0.65s linear infinite;
    z-index: 10;
    box-sizing: border-box;
}

.tz-btn.is-success,
.tz-quick-shortcut-card.is-success,
.tz-service-menu-item.is-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.tz-btn.is-error,
.tz-quick-shortcut-card.is-error,
.tz-service-menu-item.is-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* ==========================================================================
   Sidebar Promo Carousel & CTA Button Engine
   ========================================================================== */
.tz-sidebar-promo-carousel .tz-promo-cta-btn,
.tz-sidebar-promo-carousel a[class*="bg-white"],
.tz-promo-cta-btn,
#tzServiceSidebarPromoCard .tz-promo-cta-btn,
#tzSidebarPromoCard .tz-promo-cta-btn,
#tzDomainSidebarPromoCard .tz-promo-cta-btn,
#tzOrderformSidebarPromoCard .tz-promo-cta-btn,
.tz-promo-card .tz-promo-cta-btn,
a.tz-promo-cta-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border: none !important;
    border-radius: var(--tz-btn-radius, var(--tz-input-radius, 5px)) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.tz-sidebar-promo-carousel .tz-promo-cta-btn:hover,
.tz-sidebar-promo-carousel a[class*="bg-white"]:hover,
.tz-promo-cta-btn:hover,
#tzServiceSidebarPromoCard .tz-promo-cta-btn:hover,
#tzSidebarPromoCard .tz-promo-cta-btn:hover,
#tzDomainSidebarPromoCard .tz-promo-cta-btn:hover,
#tzOrderformSidebarPromoCard .tz-promo-cta-btn:hover,
.tz-promo-card .tz-promo-cta-btn:hover,
a.tz-promo-cta-btn:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: var(--tz-primary, #4f46e5) !important;
    -webkit-text-fill-color: var(--tz-primary, #4f46e5) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

.tz-sidebar-promo-carousel .tz-promo-cta-btn span,
.tz-sidebar-promo-carousel a[class*="bg-white"] span,
.tz-promo-cta-btn span,
#tzServiceSidebarPromoCard .tz-promo-cta-btn span,
#tzSidebarPromoCard .tz-promo-cta-btn span,
#tzDomainSidebarPromoCard .tz-promo-cta-btn span,
#tzOrderformSidebarPromoCard .tz-promo-cta-btn span,
.tz-promo-card .tz-promo-cta-btn span,
a.tz-promo-cta-btn span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.tz-sidebar-promo-carousel .tz-promo-cta-btn i,
.tz-sidebar-promo-carousel a[class*="bg-white"] i,
.tz-promo-cta-btn i,
#tzServiceSidebarPromoCard .tz-promo-cta-btn i,
#tzSidebarPromoCard .tz-promo-cta-btn i,
#tzDomainSidebarPromoCard .tz-promo-cta-btn i,
#tzOrderformSidebarPromoCard .tz-promo-cta-btn i,
.tz-promo-card .tz-promo-cta-btn i,
a.tz-promo-cta-btn i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.2s ease !important;
}

.tz-sidebar-promo-carousel .tz-promo-cta-btn:hover i,
.tz-promo-cta-btn:hover i {
    transform: translateX(3px) !important;
}

/* ==========================================================================
   Toast Notification System (Toast UI)
   ========================================================================== */
.tz-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .tz-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 100%;
    }
}

.tz-toast {
    pointer-events: auto;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius-sm, 8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-bottom 0.3s ease;
}

.tz-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.tz-toast.is-leaving {
    transform: translateX(120%);
    opacity: 0;
}

.tz-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--tz-primary);
    transform-origin: left;
    animation: tzToastProgress linear forwards;
}

@keyframes tzToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.tz-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.tz-toast-success .tz-toast-icon { background: #ecfdf5; color: #10b981; }
.tz-toast-success .tz-toast-progress { background: #10b981; }

.tz-toast-danger .tz-toast-icon,
.tz-toast-error .tz-toast-icon { background: #fff1f2; color: #f43f5e; }
.tz-toast-danger .tz-toast-progress,
.tz-toast-error .tz-toast-progress { background: #f43f5e; }

.tz-toast-warning .tz-toast-icon { background: #fffbeb; color: #f59e0b; }
.tz-toast-warning .tz-toast-progress { background: #f59e0b; }

.tz-toast-info .tz-toast-icon { background: rgba(var(--tz-primary-rgb), 0.1); color: var(--tz-primary); }
.tz-toast-info .tz-toast-progress { background: var(--tz-primary); }

.tz-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tz-toast-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    line-height: 1.3;
}

.tz-toast-message {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-body);
    line-height: 1.4;
}

.tz-toast-close {
    background: transparent;
    border: none;
    color: var(--tz-text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    line-height: 1;
    font-size: 1.05rem;
    transition: color var(--tz-transition);
    flex-shrink: 0;
}

.tz-toast-close:hover {
    color: var(--tz-text-heading);
}

[data-theme="dark"] .tz-toast,
.dark .tz-toast {
    background: var(--tz-surface);
    border-color: var(--tz-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tz-toast-success .tz-toast-icon { background: rgba(16, 185, 129, 0.2); color: #34d399; }
[data-theme="dark"] .tz-toast-danger .tz-toast-icon,
[data-theme="dark"] .tz-toast-error .tz-toast-icon { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
[data-theme="dark"] .tz-toast-warning .tz-toast-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .tz-toast-info .tz-toast-icon { background: rgba(var(--tz-primary-rgb), 0.2); color: #60a5fa; }

/* ==========================================================================
   TZTheme Unified Button System (.tz-btn)
   ========================================================================== */
.tz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    min-height: 36px;
    border-radius: var(--tz-input-radius, 5px);
    border-width: var(--tz-border-width, 1px);
    border-style: solid;
    border-color: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}

.tz-btn:focus,
.tz-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Button Sizes */
.tz-btn-xs {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
    gap: 4px;
}

.tz-btn-sm {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8125rem;
    gap: 6px;
}

.tz-btn-md {
    height: 38px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 0.875rem;
    gap: 7px;
}

.tz-btn-lg {
    height: 44px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.9375rem;
    gap: 8px;
}

/* Primary Button */
.tz-btn-primary {
    background-color: var(--tz-primary, #2563eb);
    border-color: var(--tz-primary, #2563eb);
    color: #ffffff !important;
}

.tz-btn-primary:hover {
    background-color: var(--tz-primary-hover, #1d4ed8);
    border-color: var(--tz-primary-hover, #1d4ed8);
    color: #ffffff !important;
}

/* Secondary / Outline Button */
.tz-btn-secondary,
.tz-btn-outline {
    background-color: var(--tz-surface, #ffffff);
    border-color: var(--tz-border, #cbd5e1);
    color: var(--tz-text-heading, #0f172a) !important;
}

.tz-btn-secondary:hover,
.tz-btn-outline:hover {
    background-color: var(--tz-surface-muted, #f8fafc);
    border-color: var(--tz-border-hover, #94a3b8);
    color: var(--tz-text-heading, #0f172a) !important;
}

/* Secondary Danger / Outline Danger Button */
.tz-btn-secondary-danger,
.tz-btn-outline-danger {
    background-color: var(--tz-surface, #ffffff);
    border-color: #fecdd3;
    color: #e11d48 !important;
}

.tz-btn-secondary-danger:hover,
.tz-btn-outline-danger:hover {
    background-color: #fff1f2;
    border-color: #fda4af;
    color: #be123c !important;
}

/* Danger Solid Button */
.tz-btn-danger {
    background-color: #e11d48;
    border-color: #e11d48;
    color: #ffffff !important;
}

.tz-btn-danger:hover {
    background-color: #be123c;
    border-color: #be123c;
    color: #ffffff !important;
}

/* Dark Mode Button Variants */
[data-theme="dark"] .tz-btn-secondary,
[data-theme="dark"] .tz-btn-outline,
.dark .tz-btn-secondary,
.dark .tz-btn-outline {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc !important;
}

[data-theme="dark"] .tz-btn-secondary:hover,
[data-theme="dark"] .tz-btn-outline:hover,
.dark .tz-btn-secondary:hover,
.dark .tz-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}

[data-theme="dark"] .tz-btn-secondary-danger,
[data-theme="dark"] .tz-btn-outline-danger,
.dark .tz-btn-secondary-danger,
.dark .tz-btn-outline-danger {
    background-color: rgba(225, 29, 72, 0.06);
    border-color: rgba(244, 63, 94, 0.28);
    color: #fb7185 !important;
}

[data-theme="dark"] .tz-btn-secondary-danger:hover,
[data-theme="dark"] .tz-btn-outline-danger:hover,
.dark .tz-btn-secondary-danger:hover,
.dark .tz-btn-outline-danger:hover {
    background-color: rgba(225, 29, 72, 0.14);
    border-color: rgba(244, 63, 94, 0.45);
    color: #fda4af !important;
}

/* ==========================================================================
   TZTheme Alert & Feedback Components (Next-Gen)
   ========================================================================== */
@keyframes tzAlertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tz-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--tz-radius-card, var(--tz-radius, 8px));
    border-width: 1px;
    border-style: solid;
    border-left-width: 3.5px;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    animation: tzAlertSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.2s ease-in-out;
}

.tz-alert.has-title,
.tz-alert:has(.tz-alert-title),
.tz-alert:has(ul),
.tz-alert:has(ol) {
    align-items: flex-start;
    padding: 12px 14px;
}

.tz-alert-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: var(--tz-input-radius, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.tz-alert.has-title .tz-alert-icon-wrap,
.tz-alert:has(.tz-alert-title) .tz-alert-icon-wrap,
.tz-alert:has(ul) .tz-alert-icon-wrap,
.tz-alert:has(ol) .tz-alert-icon-wrap {
    margin-top: 1px;
}

.tz-alert-body {
    flex: 1;
    min-width: 0;
}

.tz-alert-title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 2px;
}

.tz-alert-message {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
}

.tz-alert-message ul,
.tz-alert-message ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 4px 0 0 0 !important;
}

.tz-alert-message li {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.tz-alert-message li:not(:last-child) {
    margin-bottom: 3px !important;
}

.tz-alert-actions {
    margin-top: 8px;
}

.tz-alert-close-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--tz-input-radius, 5px);
    color: currentColor;
    opacity: 0.6;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.15s ease;
}

.tz-alert-close-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
}

/* Alert Variants: Light */
.tz-alert-danger,
.tz-alert-error {
    background-color: #fff1f2;
    border-color: #fecdd3;
    border-left-color: #f43f5e;
    color: #9f1239;
}
.tz-alert-danger .tz-alert-icon-wrap,
.tz-alert-error .tz-alert-icon-wrap {
    background-color: #ffe4e6;
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #e11d48;
}

.tz-alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: #10b981;
    color: #065f46;
}
.tz-alert-success .tz-alert-icon-wrap {
    background-color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.tz-alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
    color: #92400e;
}
.tz-alert-warning .tz-alert-icon-wrap {
    background-color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.tz-alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: var(--tz-primary, #2563eb);
    color: #1e40af;
}
.tz-alert-info .tz-alert-icon-wrap {
    background-color: #dbeafe;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--tz-primary, #2563eb);
}

/* Alert Variants: Dark */
[data-theme="dark"] .tz-alert-close-btn:hover,
.dark .tz-alert-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tz-alert-danger,
[data-theme="dark"] .tz-alert-error,
.dark .tz-alert-danger,
.dark .tz-alert-error {
    background-color: rgba(225, 29, 72, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
    border-left-color: #f43f5e;
    color: #fecdd3;
}
[data-theme="dark"] .tz-alert-danger .tz-alert-icon-wrap,
[data-theme="dark"] .tz-alert-error .tz-alert-icon-wrap,
.dark .tz-alert-danger .tz-alert-icon-wrap,
.dark .tz-alert-error .tz-alert-icon-wrap {
    background-color: rgba(225, 29, 72, 0.22);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

[data-theme="dark"] .tz-alert-success,
.dark .tz-alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    border-left-color: #10b981;
    color: #a7f3d0;
}
[data-theme="dark"] .tz-alert-success .tz-alert-icon-wrap,
.dark .tz-alert-success .tz-alert-icon-wrap {
    background-color: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

[data-theme="dark"] .tz-alert-warning,
.dark .tz-alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    border-left-color: #f59e0b;
    color: #fde68a;
}
[data-theme="dark"] .tz-alert-warning .tz-alert-icon-wrap,
.dark .tz-alert-warning .tz-alert-icon-wrap {
    background-color: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

[data-theme="dark"] .tz-alert-info,
.dark .tz-alert-info {
    background-color: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    border-left-color: var(--tz-primary, #3b82f6);
    color: #bfdbfe;
}
[data-theme="dark"] .tz-alert-info .tz-alert-icon-wrap,
.dark .tz-alert-info .tz-alert-icon-wrap {
    background-color: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

/* Card Container */
.tz-card,
.tz-table-card {
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius-lg, 16px);
    box-shadow: var(--tz-shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.tz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tz-border-subtle);
}

.tz-card-title {
    font-size: var(--tz-font-base);
    font-weight: 500;
    color: var(--tz-text-heading);
}

/* File Dropzone */
.tz-dropzone {
    border: 2px dashed var(--tz-border);
    border-radius: var(--tz-input-radius);
    padding: 32px 20px;
    text-align: center;
    background-color: var(--tz-surface);
    cursor: pointer;
    transition: var(--tz-transition);
}

.tz-dropzone:hover {
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.02);
}

/* ==========================================================================
   Mobile & PC Responsive Enhancements
   ========================================================================== */

/* Mobile Phones (≤ 640px) */
@media (max-width: 640px) {
    .tz-card {
        padding: 18px 14px;
        border-radius: var(--tz-radius-sm);
    }

    .tz-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .tz-card-header .tz-badge {
        align-self: flex-start;
    }

    .tz-radio-card-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tz-material-input,
    .tz-material-textarea,
    .tz-material-select,
    .tz-searchable-trigger {
        font-size: 14px; /* Prevents iOS Safari auto-zoom */
        min-height: 44px;
    }

    .tz-btn:not(.w-auto):not(.shrink-0):not([class*="w-"]):not(.tz-btn-inline) {
        width: 100%;
        min-height: 42px;
    }

    #btnMobileFloatingCheckout,
    #tzFloatingContinueBtn,
    .tz-floating-bar .tz-btn,
    .tz-btn.shrink-0,
    .tz-btn.\!w-auto {
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .tz-searchable-menu {
        max-height: 280px;
    }

    .tz-searchable-selected-text {
        max-width: 80%;
    }
}

/* Tablet & Smaller Laptops (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .tz-card {
        padding: 20px;
    }

    .tz-radio-card-group {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Large Screens & Desktop (≥ 1025px) */
@media (min-width: 1025px) {
    .tz-card {
        padding: 28px;
    }
}

/* ==========================================================================
   TZTheme Unique Modal System (Responsive, Ambient Accent, Tabler Icons)
   ========================================================================== */

/* Tabler Icons Helper */
.ti {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    font-size: 1.15rem;
}

body.tz-modal-open {
    overflow: hidden !important;
}

.tz-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.tz-modal.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.tz-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.tz-modal-backdrop.is-open,
.tz-modal-backdrop.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.tz-modal .tz-modal-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.tz-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: auto;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius-lg);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible !important;
}

.tz-modal.is-active .tz-modal-dialog,
.tz-modal-backdrop.is-active .tz-modal-dialog,
.tz-modal-backdrop.is-open .tz-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Universal Modal Inner Container (Rounded, Bordered & Overflow Contained) */
.tz-modal-container {
    display: flex;
    flex-direction: column;
    background-color: var(--tz-surface);
    border-radius: inherit;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-height: calc(100vh - 48px);
}

/* Modal Sizes */
.tz-modal-dialog.tz-modal-sm {
    max-width: 440px;
}

.tz-modal-dialog.tz-modal-md {
    max-width: 580px;
}

.tz-modal-dialog.tz-modal-lg {
    max-width: 760px;
}

.tz-modal-dialog.tz-modal-xl {
    max-width: 960px;
}

/* Mobile Handle (visible only on mobile) */
.tz-modal-handle {
    display: none;
    width: 40px;
    height: 4px;
    background-color: var(--tz-border);
    border-radius: 9999px;
    margin: 10px auto 2px;
}

/* Unique Modal Header */
.tz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--tz-border-subtle);
    background-color: var(--tz-surface);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    flex-shrink: 0;
    gap: 16px;
    position: relative;
}

.tz-modal-header.is-danger {
    background-color: rgba(244, 63, 94, 0.06);
}

.tz-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.tz-modal-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--tz-input-radius);
    background: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    border: 1px solid rgba(var(--tz-primary-rgb), 0.2);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.tz-modal-header-icon.tz-icon-danger {
    background: #fff1f2;
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.25);
}

.tz-modal-header-icon.tz-icon-success {
    background: #ecfdf5;
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.tz-modal-title {
    font-size: var(--tz-font-lg);
    font-weight: 500;
    color: var(--tz-text-heading);
    margin: 0;
    line-height: 1.3;
}

.tz-modal-subtitle {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin: 2px 0 0;
}

/* Unique Segmented Pill Tabs Navigation inside Modal */
.tz-modal-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--tz-surface-muted);
    border-bottom: 1px solid var(--tz-border-subtle);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
}

.tz-modal-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.tz-modal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    text-decoration: none;
    border-radius: var(--tz-input-radius);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--tz-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.tz-modal-tab .ti {
    font-size: 1.05rem;
    opacity: 0.8;
}

.tz-modal-tab:hover {
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.08);
}

.tz-modal-tab.is-active {
    color: var(--tz-primary);
    font-weight: 500;
    background-color: var(--tz-surface);
    border-color: rgba(var(--tz-primary-rgb), 0.25);
    box-shadow: 0 1px 4px rgba(var(--tz-primary-rgb), 0.12);
}

.tz-modal-tab.is-active .ti {
    opacity: 1;
    color: var(--tz-primary);
}

/* Adaptive Mobile Tabs Dropdown Wrapper */
.tz-modal-tabs-dropdown-wrap {
    display: none;
    padding: 10px 16px;
    background-color: var(--tz-surface-muted);
    border-bottom: 1px solid var(--tz-border-subtle);
    flex-shrink: 0;
}

.tz-modal-tabs-dropdown {
    width: 100%;
    height: 40px;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width) solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    padding: 0 36px 0 14px;
    font-family: inherit;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    outline: none;
    transition: var(--tz-transition);
}

.tz-modal-tabs-dropdown:focus {
    border-color: var(--tz-primary);
}

/* Modal Body with Adaptive Slim Scrolling */
.tz-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--tz-primary-rgb), 0.35) transparent;
}

.tz-modal-tab-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tz-modal-body::-webkit-scrollbar {
    width: 5px;
}

.tz-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--tz-primary-rgb), 0.35);
    border-radius: 9999px;
}

.tz-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--tz-primary);
}

.tz-modal-body::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Nested Cards & Sections inside Modals */
.tz-modal-card {
    background: var(--tz-surface-muted);
    border: 1px solid var(--tz-border-subtle);
    border-radius: var(--tz-input-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.tz-modal-card.is-accented {
    border-left: 3px solid var(--tz-primary);
}

.tz-modal-card.is-danger {
    background: rgba(244, 63, 94, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.tz-modal-impact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0;
}

.tz-modal-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--tz-font-xs);
    color: var(--tz-text-body);
    line-height: 1.4;
}

.tz-modal-impact-item .ti {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.tz-modal-impact-item.is-danger .ti {
    color: #f43f5e;
}

.tz-modal-impact-item.is-warning .ti {
    color: #f59e0b;
}

.tz-modal-impact-item.is-success .ti {
    color: #10b981;
}

.tz-modal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tz-modal-card-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tz-modal-card-title .ti {
    color: var(--tz-primary);
    font-size: 1.1rem;
}

.tz-modal-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tz-modal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Modal Footer with Dual Actions & Info Badge */
.tz-modal-footer,
.modal-footer.tz-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--tz-border-subtle);
    background-color: var(--tz-surface);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    flex-shrink: 0;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.tz-modal-footer-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--tz-font-xs);
    color: var(--tz-text-muted);
    min-width: 0;
    max-width: 100%;
}

.tz-modal-footer-info .ti {
    font-size: 1rem;
    color: var(--tz-primary);
}

.tz-modal-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    max-width: 100%;
}

.tz-modal-footer-actions .tz-btn {
    white-space: nowrap;
    max-width: 100%;
}

/* =========================================================================
   Outset Floating Close Button (aaPanel Style — Protruding Corner Circle)
   ========================================================================= */
.tz-modal-close-floating,
#modalAjax .tz-modal-close-floating,
#modalAjaxClose.tz-modal-close-floating,
#modalAjaxClose {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50% !important;
    background-color: var(--tz-primary, #6366f1) !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1300;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(var(--tz-primary-rgb, 99, 102, 241), 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    outline: none !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.tz-modal-close-floating:hover,
#modalAjax .tz-modal-close-floating:hover,
#modalAjaxClose.tz-modal-close-floating:hover,
#modalAjaxClose:hover {
    background-color: var(--tz-primary-hover, #4f46e5) !important;
    color: #ffffff !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(var(--tz-primary-rgb, 99, 102, 241), 0.5);
}

.tz-modal-close-floating:active,
#modalAjax .tz-modal-close-floating:active,
#modalAjaxClose.tz-modal-close-floating:active,
#modalAjaxClose:active {
    transform: scale(0.95);
}

.tz-modal-close-floating:focus,
.tz-modal-close-floating:focus-visible,
#modalAjax .tz-modal-close-floating:focus,
#modalAjaxClose.tz-modal-close-floating:focus,
#modalAjaxClose:focus,
#modalAjaxClose:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(var(--tz-primary-rgb, 99, 102, 241), 0.4) !important;
}

[data-theme="dark"] .tz-modal-close-floating,
.dark .tz-modal-close-floating,
[data-theme="dark"] #modalAjax .tz-modal-close-floating,
.dark #modalAjax .tz-modal-close-floating,
[data-theme="dark"] #modalAjaxClose.tz-modal-close-floating,
.dark #modalAjaxClose.tz-modal-close-floating,
[data-theme="dark"] #modalAjaxClose,
.dark #modalAjaxClose {
    background-color: var(--tz-primary, #6366f1) !important;
    border: 2px solid #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .tz-modal-close-floating:hover,
.dark .tz-modal-close-floating:hover,
[data-theme="dark"] #modalAjax .tz-modal-close-floating:hover,
.dark #modalAjax .tz-modal-close-floating:hover,
[data-theme="dark"] #modalAjaxClose.tz-modal-close-floating:hover,
.dark #modalAjaxClose.tz-modal-close-floating:hover,
[data-theme="dark"] #modalAjaxClose:hover,
.dark #modalAjaxClose:hover {
    background-color: var(--tz-primary-hover, #4f46e5) !important;
    border-color: #020617 !important;
    color: #ffffff !important;
}

/* Inset Header Close Button */
.tz-modal-close-btn,
.tz-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: var(--tz-input-radius, 5px);
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    outline: none;
    box-shadow: none !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.tz-modal-close-btn:hover,
.tz-modal-close:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
    transform: none;
    box-shadow: none !important;
}

[data-theme="dark"] .tz-modal-close-btn,
[data-theme="dark"] .tz-modal-close,
.dark .tz-modal-close-btn,
.dark .tz-modal-close {
    color: #94a3b8;
}

[data-theme="dark"] .tz-modal-close-btn:hover,
[data-theme="dark"] .tz-modal-close:hover,
.dark .tz-modal-close-btn:hover,
.dark .tz-modal-close:hover {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.tz-modal-close-btn:active,
.tz-modal-close:active {
    transform: scale(0.95);
}

.tz-modal-close-btn:focus,
.tz-modal-close-btn:focus-visible,
.tz-modal-close:focus,
.tz-modal-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
}

.tz-modal-close-floating .ti,
.tz-modal-close-btn .ti,
.tz-modal-close .ti,
#modalAjaxClose .ti {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Split-Pane Modal Layout (aaPanel Inspired) */
.tz-modal-split-dialog {
    max-width: 820px !important;
    border-radius: var(--tz-radius-lg);
    overflow: visible !important;
    background: transparent;
    border: none;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.32);
    position: relative;
}

.tz-modal-split-container {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    border-radius: inherit;
    overflow: hidden;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    position: relative;
    width: 100%;
}

/* Left Pane: Feature Highlights & Value Props */
.tz-modal-split-promo {
    background-color: var(--tz-surface-muted);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--tz-border-subtle);
}

.tz-modal-split-title {
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--tz-text-heading);
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.tz-modal-split-intro {
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.tz-modal-split-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.tz-modal-split-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tz-modal-split-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--tz-input-radius);
    background: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.tz-modal-split-feature-text {
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    line-height: 1.45;
}

.tz-modal-split-feature-text strong {
    font-weight: 500;
    color: var(--tz-text-heading);
}

/* Right Pane: Interactive Auth / Config Form */
.tz-modal-split-form {
    background-color: var(--tz-surface);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Underline Tab Switcher (Sign up / Login) */
.tz-split-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--tz-border-subtle);
    padding-bottom: 8px;
}

.tz-split-tab {
    font-size: var(--tz-font-base);
    font-weight: 400;
    color: var(--tz-text-muted);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: 0 0 8px 0;
    border: none;
    background: transparent;
    transition: color var(--tz-transition);
}

.tz-split-tab:hover {
    color: var(--tz-text-heading);
}

.tz-split-tab.is-active {
    color: var(--tz-primary);
    font-weight: 500;
}

.tz-split-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--tz-primary);
    border-radius: 2px;
}

.tz-split-subtitle {
    font-size: var(--tz-font-xs);
    color: var(--tz-text-muted);
    font-weight: 400;
    margin: 4px 0 16px;
}

/* Social SSO Button (Continue with Google) */
.tz-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
    cursor: pointer;
    transition: background-color var(--tz-transition), border-color var(--tz-transition);
}

.tz-sso-btn:hover {
    background-color: var(--tz-surface-muted);
    border-color: var(--tz-text-muted);
}

.tz-sso-btn .ti {
    font-size: 1.15rem;
}

/* Text Divider (—— or ——) */
.tz-divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0;
    color: var(--tz-text-muted);
    font-size: var(--tz-font-xs);
    font-weight: 400;
}

.tz-divider-text::before,
.tz-divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--tz-border-subtle);
}

.tz-divider-text:not(:empty)::before {
    margin-right: 12px;
}

.tz-divider-text:not(:empty)::after {
    margin-left: 12px;
}

/* Skip / Bottom Link */
.tz-split-bottom-link {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.tz-split-bottom-link a,
.tz-split-bottom-link button,
.tz-split-skip-btn {
    font-size: var(--tz-font-xs);
    color: var(--tz-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 400;
    padding: 0;
    transition: color 0.18s ease;
}

.tz-split-bottom-link a:hover,
.tz-split-bottom-link button:hover,
.tz-split-skip-btn:hover {
    color: var(--tz-primary);
}

/* Custom Specialized Modal Sub-Components */
.tz-modal-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tz-modal-gateway-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    background-color: var(--tz-surface);
    cursor: pointer;
    transition: var(--tz-transition);
}

.tz-modal-gateway-card:hover {
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.04);
}

.tz-modal-gateway-card.is-selected {
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.08);
    box-shadow: 0 1px 4px rgba(var(--tz-primary-rgb), 0.15);
}

.tz-modal-gateway-icon {
    font-size: 1.35rem;
    color: var(--tz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tz-dns-add-card {
    border: 1px solid var(--tz-border-subtle);
    border-radius: var(--tz-radius);
    padding: 16px;
    background: var(--tz-surface-muted);
    margin-bottom: 16px;
}

.tz-dns-add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* DNS Form Row with Custom Floating Inputs & Searchable Selects */
.tz-dns-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tz-dns-form-row > .tz-dns-col-type {
    flex: 0 0 140px;
    min-width: 0;
}

.tz-dns-form-row > .tz-dns-col-name {
    flex: 1 1 140px;
    min-width: 0;
}

.tz-dns-form-row > .tz-dns-col-prio {
    flex: 0 0 95px;
    min-width: 0;
}

.tz-dns-form-row > .tz-dns-col-value {
    flex: 1.8 1 200px;
    min-width: 0;
}

.tz-dns-form-row > .tz-dns-col-ttl {
    flex: 0 0 120px;
    min-width: 0;
}

.tz-dns-form-row > .tz-dns-col-action {
    flex: 0 0 auto;
}

/* DNS Filter & Search Bar */
.tz-dns-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tz-dns-type-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tz-dns-pill {
    padding: 5px 12px;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-muted);
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    cursor: pointer;
    transition: all var(--tz-transition);
    line-height: 1.2;
}

.tz-dns-pill:hover {
    color: var(--tz-primary);
    border-color: rgba(var(--tz-primary-rgb), 0.4);
    background-color: rgba(var(--tz-primary-rgb), 0.05);
}

.tz-dns-pill.is-active {
    background-color: var(--tz-primary);
    color: #ffffff;
    border-color: var(--tz-primary);
}

/* DNS Records Table & Components */
.tz-dns-table-container {
    border: 1px solid var(--tz-border-subtle);
    border-radius: var(--tz-radius);
    overflow: hidden;
    background: var(--tz-surface);
}

.tz-modal-dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--tz-font-xs);
}

.tz-modal-dns-table th {
    text-align: left;
    padding: 10px 14px;
    background-color: var(--tz-surface-muted);
    border-bottom: 1px solid var(--tz-border-subtle);
    color: var(--tz-text-muted);
    font-weight: 500;
    font-size: 11px;
}

.tz-modal-dns-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tz-border-subtle);
    color: var(--tz-text-body);
    vertical-align: middle;
}

.tz-modal-dns-table tr:last-child td {
    border-bottom: none;
}

.tz-modal-dns-table tr:hover td {
    background-color: rgba(var(--tz-primary-rgb), 0.02);
}

.tz-dns-cell-host {
    font-weight: 500;
    color: var(--tz-text-heading);
}

.tz-dns-value-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tz-dns-copy-btn {
    background: transparent;
    border: none;
    color: var(--tz-text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: color var(--tz-transition), background-color var(--tz-transition);
}

.tz-dns-copy-btn:hover {
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.1);
}

.tz-dns-ttl-tag {
    font-size: 11px;
    color: var(--tz-text-muted);
    background: var(--tz-surface-muted);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--tz-border-subtle);
    white-space: nowrap;
}

.tz-dns-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tz-dns-row-actions .tz-btn-ghost {
    padding: 4px 6px;
    color: var(--tz-text-muted);
}

.tz-dns-row-actions .tz-btn-ghost:hover {
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.1);
}

.tz-dns-row-actions .tz-btn-ghost.is-danger:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .tz-dns-form-row {
        flex-wrap: wrap;
    }
    .tz-dns-form-row > .tz-dns-col-type {
        flex: 1 1 calc(50% - 6px);
    }
    .tz-dns-form-row > .tz-dns-col-name {
        flex: 1 1 calc(50% - 6px);
    }
    .tz-dns-form-row > .tz-dns-col-prio {
        flex: 1 1 calc(50% - 6px);
    }
    .tz-dns-form-row > .tz-dns-col-value {
        flex: 1 1 100%;
    }
    .tz-dns-form-row > .tz-dns-col-ttl {
        flex: 1 1 calc(60% - 6px);
    }
    .tz-dns-form-row > .tz-dns-col-action {
        flex: 1 1 calc(40% - 6px);
    }
    .tz-dns-form-row > .tz-dns-col-action .tz-btn {
        width: 100%;
    }
}

.tz-modal-macro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tz-modal-macro-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    background-color: var(--tz-surface-muted);
    border: 1px solid var(--tz-border);
    border-radius: 9999px;
    color: var(--tz-text-muted);
    cursor: pointer;
    transition: var(--tz-transition);
}

.tz-modal-macro-pill:hover {
    color: var(--tz-primary);
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.06);
}

.tz-modal-dropzone {
    border: 1.5px dashed var(--tz-border);
    border-radius: var(--tz-input-radius);
    padding: 18px;
    text-align: center;
    background-color: var(--tz-surface-muted);
    cursor: pointer;
    transition: var(--tz-transition);
}

.tz-modal-dropzone:hover {
    border-color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.04);
}

/* Ensure Searchable Menus inside Modals Float Above Dialog Body */
.tz-modal .tz-searchable-menu,
.tz-modal-dialog .tz-searchable-menu {
    z-index: 1050;
}

/* =========================================================================
   Dark Mode Modal Support & Responsive Engine
   ========================================================================= */
[data-theme="dark"] .tz-modal-dialog,
.dark .tz-modal-dialog {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .tz-modal-container,
.dark .tz-modal-container {
    background-color: var(--tz-surface);
    border-color: var(--tz-border);
}

[data-theme="dark"] .tz-modal-close-btn,
.dark .tz-modal-close-btn,
[data-theme="dark"] .tz-modal-close,
.dark .tz-modal-close {
    background: transparent !important;
    border-color: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .tz-modal-close-btn:hover,
.dark .tz-modal-close-btn:hover,
[data-theme="dark"] .tz-modal-close:hover,
.dark .tz-modal-close:hover {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

[data-theme="dark"] .tz-modal-header,
.dark .tz-modal-header {
    background-color: var(--tz-surface);
    border-bottom-color: var(--tz-border-subtle);
}

[data-theme="dark"] .tz-modal-header.is-danger,
.dark .tz-modal-header.is-danger {
    background-color: rgba(244, 63, 94, 0.08);
}

[data-theme="dark"] .tz-modal-header-icon.tz-icon-danger,
.dark .tz-modal-header-icon.tz-icon-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

[data-theme="dark"] .tz-modal-tabs,
.dark .tz-modal-tabs {
    background-color: var(--tz-surface-muted);
    border-bottom-color: var(--tz-border-subtle);
}

[data-theme="dark"] .tz-modal-tabs-dropdown-wrap,
.dark .tz-modal-tabs-dropdown-wrap {
    background-color: var(--tz-surface-muted);
    border-bottom-color: var(--tz-border-subtle);
}

[data-theme="dark"] .tz-modal-tabs-dropdown,
.dark .tz-modal-tabs-dropdown {
    background-color: var(--tz-surface);
    border-color: var(--tz-border);
    color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

[data-theme="dark"] .tz-modal-tab.is-active,
.dark .tz-modal-tab.is-active {
    background-color: var(--tz-surface);
    border-color: var(--tz-border);
    color: var(--tz-primary);
}

[data-theme="dark"] .tz-modal-tab:not(.is-active):hover,
.dark .tz-modal-tab:not(.is-active):hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--tz-text-heading);
}

[data-theme="dark"] .tz-modal-card,
.dark .tz-modal-card {
    background: var(--tz-surface-muted);
    border-color: var(--tz-border);
}

[data-theme="dark"] .tz-modal-card.is-danger,
.dark .tz-modal-card.is-danger {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
}

[data-theme="dark"] .tz-modal-split-promo,
.dark .tz-modal-split-promo {
    background-color: var(--tz-surface-muted);
    border-right-color: var(--tz-border);
}

[data-theme="dark"] .tz-modal-split-form,
.dark .tz-modal-split-form {
    background-color: var(--tz-surface);
}

[data-theme="dark"] .tz-sso-btn,
.dark .tz-sso-btn {
    background-color: var(--tz-surface-muted);
    border-color: var(--tz-border);
    color: var(--tz-text-heading);
}

[data-theme="dark"] .tz-sso-btn:hover,
.dark .tz-sso-btn:hover {
    background-color: var(--tz-surface);
    border-color: var(--tz-primary);
}

[data-theme="dark"] .tz-modal-footer,
.dark .tz-modal-footer {
    background-color: var(--tz-surface);
    border-top-color: var(--tz-border-subtle);
}

[data-theme="dark"] .tz-modal-gateway-card,
.dark .tz-modal-gateway-card {
    background-color: var(--tz-surface-muted);
    border-color: var(--tz-border);
}

[data-theme="dark"] .tz-modal-gateway-card.is-selected,
.dark .tz-modal-gateway-card.is-selected {
    background-color: rgba(var(--tz-primary-rgb), 0.15);
    border-color: var(--tz-primary);
}

[data-theme="dark"] .tz-modal-dropzone,
.dark .tz-modal-dropzone {
    background-color: var(--tz-surface-muted);
    border-color: var(--tz-border);
}

/* Tablet Responsive Adaptation (≤ 768px) */
@media (max-width: 768px) {
    .tz-modal-split-container {
        grid-template-columns: 1fr;
    }

    .tz-modal-split-promo {
        border-right: none;
        border-bottom: 1px solid var(--tz-border-subtle);
        padding: 26px 22px;
    }

    .tz-modal-split-form {
        padding: 26px 22px;
    }

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

/* Mobile Modal Bottom Sheet / Responsive Adaptation (≤ 640px) */
@media (max-width: 640px) {
    .tz-modal,
    .tz-modal-backdrop,
    .modal {
        padding: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .modal.show {
        display: flex !important;
    }

    .tz-modal-handle {
        display: block;
    }

    .tz-modal-dialog,
    .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        max-height: calc(100dvh - 16px);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        transform: translateY(100%);
        margin: 0 !important;
        margin-top: auto !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    }

    .tz-modal-container,
    .modal-content {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 18px !important;
        border-top-right-radius: 18px !important;
        max-height: calc(100dvh - 16px);
        border-bottom: none !important;
    }

    .tz-modal.is-active .tz-modal-dialog,
    .tz-modal-backdrop.is-active .tz-modal-dialog,
    .tz-modal-backdrop.is-open .tz-modal-dialog,
    .modal.show .modal-dialog,
    .modal.show .tz-modal-dialog {
        transform: translateY(0) !important;
    }

    .tz-modal-header {
        padding: 16px 54px 16px 18px !important;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .tz-modal-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .tz-modal-header-left {
        gap: 12px;
        max-width: calc(100% - 24px);
    }

    .tz-modal-close-floating,
    .tz-modal-close-btn,
    .tz-modal-close,
    #modalAjaxClose {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: var(--tz-input-radius, 5px);
        background: transparent;
        border: 1px solid transparent;
        color: #64748b;
        box-shadow: none !important;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        z-index: 1200;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .tz-modal-tabs {
        padding: 8px 16px;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .tz-modal-tabs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .tz-modal-tabs-dropdown-wrap {
        display: block;
    }

    .tz-modal-body {
        padding: 18px 16px;
        gap: 14px;
        max-height: calc(100dvh - 190px);
    }

    .tz-modal-grid-2,
    .tz-modal-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tz-modal-footer,
    .modal-footer.tz-modal-footer {
        padding: 14px 16px;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .tz-modal-footer-info {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .tz-modal-footer-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .tz-modal-footer-actions .tz-btn,
    .tz-modal-footer > .tz-btn,
    .modal-footer.tz-modal-footer > .tz-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    /* Mobile Split Modal */
    .tz-modal-split-container {
        grid-template-columns: 1fr;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .tz-modal-split-promo,
    .tz-modal-split-form {
        padding: 22px 18px;
    }

    .tz-modal-split-promo {
        border-right: none;
        border-bottom: 1px solid var(--tz-border-subtle);
        padding-right: 54px !important;
    }
}

/* =========================================================================
   TZTheme Comprehensive Picker Suite (Date, Time, Date-Range, DateTime, Color)
   ========================================================================= */

/* Relative Wrapper for Pickers */
.tz-picker-wrapper {
    position: relative;
    width: 100%;
}

.tz-picker-trigger-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tz-text-muted);
    pointer-events: none;
    font-size: 1.15rem;
    transition: color var(--tz-transition);
}

.tz-picker-wrapper:focus-within .tz-picker-trigger-icon {
    color: var(--tz-primary);
}

/* Floating Picker Dropdown Card */
.tz-picker-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1150;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.22);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
    min-width: 300px;
    user-select: none;
    animation: tzPickerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tz-picker-dropdown.is-active {
    display: flex;
}

.tz-picker-dropdown.is-right-aligned {
    left: auto;
    right: 0;
}

@keyframes tzPickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Calendar Header */
.tz-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tz-border-subtle);
}

.tz-calendar-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
}

.tz-calendar-nav-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tz-input-radius);
    background: var(--tz-surface-muted);
    border: 1px solid var(--tz-border-subtle);
    color: var(--tz-text-body);
    cursor: pointer;
    transition: all var(--tz-transition);
    outline: none;
    padding: 0;
}

.tz-calendar-nav-btn:hover {
    background: rgba(var(--tz-primary-rgb), 0.1);
    color: var(--tz-primary);
    border-color: rgba(var(--tz-primary-rgb), 0.25);
}

/* Calendar Grid */
.tz-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.tz-calendar-weekday {
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-muted);
    padding: 6px 0;
}

.tz-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-body);
    border-radius: var(--tz-input-radius);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    padding: 0;
}

.tz-calendar-day:hover:not(.is-disabled):not(.is-selected) {
    background-color: var(--tz-surface-muted);
    color: var(--tz-primary);
}

.tz-calendar-day.is-today {
    border-color: rgba(var(--tz-primary-rgb), 0.4);
    font-weight: 500;
}

.tz-calendar-day.is-other-month {
    color: var(--tz-text-muted);
    opacity: 0.45;
}

.tz-calendar-day.is-disabled {
    color: var(--tz-text-muted);
    opacity: 0.25;
    cursor: not-allowed;
}

.tz-calendar-day.is-selected {
    background-color: var(--tz-primary);
    color: #ffffff !important;
    font-weight: 500;
}

/* Range Highlighting */
.tz-calendar-day.is-in-range {
    background-color: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    border-radius: 0;
}

.tz-calendar-day.is-range-start {
    background-color: var(--tz-primary);
    color: #ffffff !important;
    border-top-left-radius: var(--tz-input-radius);
    border-bottom-left-radius: var(--tz-input-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: 500;
}

.tz-calendar-day.is-range-end {
    background-color: var(--tz-primary);
    color: #ffffff !important;
    border-top-right-radius: var(--tz-input-radius);
    border-bottom-right-radius: var(--tz-input-radius);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 500;
}

.tz-calendar-day.is-range-start.is-range-end {
    border-radius: var(--tz-input-radius) !important;
}

/* Calendar Quick Action Footer */
.tz-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--tz-border-subtle);
}

.tz-picker-footer-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tz-picker-pill-btn {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-body);
    background-color: var(--tz-surface-muted);
    border: 1px solid var(--tz-border-subtle);
    border-radius: var(--tz-input-radius);
    padding: 4px 10px;
    cursor: pointer;
    transition: all var(--tz-transition);
}

.tz-picker-pill-btn:hover {
    background-color: rgba(var(--tz-primary-rgb), 0.1);
    color: var(--tz-primary);
    border-color: rgba(var(--tz-primary-rgb), 0.25);
}

.tz-picker-pill-btn.is-active {
    background-color: var(--tz-primary);
    color: #ffffff;
    border-color: var(--tz-primary);
}

/* =========================================================================
   Time Picker UI
   ========================================================================= */
.tz-timepicker-dropdown {
    min-width: 260px;
    padding: 16px;
}

.tz-timepicker-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--tz-surface-muted);
    border: 1px solid var(--tz-border-subtle);
    border-radius: var(--tz-input-radius);
}

.tz-time-unit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tz-time-spinner-btn {
    width: 26px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tz-input-radius);
    background: var(--tz-surface);
    border: 1px solid var(--tz-border-subtle);
    color: var(--tz-text-body);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--tz-transition);
    padding: 0;
}

.tz-time-spinner-btn:hover {
    background: var(--tz-primary);
    color: #ffffff;
    border-color: var(--tz-primary);
}

.tz-time-val {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tz-text-heading);
    min-width: 36px;
    text-align: center;
}

.tz-time-colon {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tz-text-muted);
    margin: 0 2px;
}

.tz-time-ampm-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 6px;
}

.tz-ampm-btn {
    font-size: var(--tz-font-xs);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--tz-input-radius);
    background: var(--tz-surface);
    border: 1px solid var(--tz-border-subtle);
    color: var(--tz-text-body);
    cursor: pointer;
    transition: all var(--tz-transition);
}

.tz-ampm-btn.is-active {
    background: var(--tz-primary);
    color: #ffffff;
    border-color: var(--tz-primary);
}

/* Time Quick Presets */
.tz-time-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* =========================================================================
   Date Range Picker (Dual-Panel or Presets Rail)
   ========================================================================= */
.tz-daterangepicker-dropdown {
    min-width: 580px;
    display: none;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
}

.tz-daterangepicker-dropdown.is-active {
    display: flex;
}

.tz-range-sidebar {
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--tz-border-subtle);
    padding-right: 12px;
    flex-shrink: 0;
}

.tz-range-preset-btn {
    text-align: left;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-body);
    padding: 6px 10px;
    border-radius: var(--tz-input-radius);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--tz-transition);
}

.tz-range-preset-btn:hover {
    background-color: var(--tz-surface-muted);
    color: var(--tz-primary);
}

.tz-range-preset-btn.is-active {
    background-color: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    font-weight: 500;
}

.tz-range-calendars-wrap {
    display: flex;
    gap: 16px;
    flex: 1;
}

/* =========================================================================
   Color Swatch & Hex Picker
   ========================================================================= */
.tz-colorpicker-dropdown {
    min-width: 240px;
    padding: 14px;
}

.tz-color-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.tz-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: var(--tz-input-radius);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tz-color-swatch:hover {
    transform: scale(1.1);
}

.tz-color-swatch.is-selected {
    border-color: var(--tz-surface);
    outline: 2px solid var(--tz-primary);
}

.tz-color-preview-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tz-color-preview-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--tz-border-subtle);
    flex-shrink: 0;
}

/* =========================================================================
   Smart Dropdown & Picker Collision Positioning (Auto-Flip Top & Right)
   ========================================================================= */
.tz-searchable-select.is-open,
.tz-dropdown.is-open,
.tz-picker-wrapper.is-active {
    z-index: 1050;
    position: relative;
}

.tz-material-group:has(.tz-searchable-select.is-open),
.tz-configopt-block:has(.tz-searchable-select.is-open),
.tz-material-group:has(.tz-dropdown.is-open),
.tz-material-group:has(.tz-picker-wrapper.is-active),
.tz-modal-card:has(.tz-searchable-select.is-open) {
    z-index: 1050;
    position: relative;
}

.tz-picker-dropdown.is-flipped-top,
.tz-searchable-menu.is-flipped-top,
.tz-searchable-select.is-flipped-top .tz-searchable-menu,
.tz-dropdown-menu.is-flipped-top {
    top: auto !important;
    bottom: calc(100% + 6px) !important;
    transform-origin: bottom center !important;
}

.tz-picker-dropdown.is-flipped-right,
.tz-searchable-menu.is-flipped-right,
.tz-searchable-select.is-flipped-right .tz-searchable-menu,
.tz-dropdown-menu.is-flipped-right {
    left: auto !important;
    right: 0 !important;
}

/* =========================================================================
   Interactive Range Sliders & Step Milestone Line Controls
   ========================================================================= */
.tz-slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tz-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tz-slider-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tz-slider-value-badge {
    font-size: var(--tz-font-xs);
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--tz-input-radius);
    background-color: rgba(var(--tz-primary-rgb), 0.1);
    color: var(--tz-primary);
    border: 1px solid rgba(var(--tz-primary-rgb), 0.2);
    min-width: 60px;
    text-align: center;
}

/* Custom Single Range Slider Track & Thumb */
.tz-range-slider-wrap {
    position: relative;
    width: 100%;
    padding: 8px 0;
}

.tz-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--tz-input-radius);
    background: linear-gradient(to right, var(--tz-primary) var(--tz-slider-progress, 50%), var(--tz-border-subtle) var(--tz-slider-progress, 50%));
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.1s ease;
}

.tz-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tz-surface);
    border: 2px solid var(--tz-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tz-range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: none; /* strictly no focus glow */
}

.tz-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tz-surface);
    border: 2px solid var(--tz-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: grab;
}

.tz-range-slider:focus {
    outline: none;
    box-shadow: none;
}

/* Step Milestone Tick Marks */
.tz-range-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    padding: 0 4px;
}

.tz-range-tick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    cursor: pointer;
    user-select: none;
    transition: color var(--tz-transition);
}

.tz-range-tick-item.is-active {
    color: var(--tz-primary);
    font-weight: 500;
}

.tz-range-tick-node {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--tz-border);
}

.tz-range-tick-item.is-active .tz-range-tick-node {
    background-color: var(--tz-primary);
}

/* =========================================================================
   Dual-Thumb Range Slider (Price / Allocation Range)
   ========================================================================= */
.tz-dual-range-container {
    position: relative;
    width: 100%;
    padding: 14px 0 6px 0;
}

.tz-dual-range-track {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: var(--tz-border-subtle);
    border-radius: var(--tz-input-radius);
}

.tz-dual-range-fill {
    position: absolute;
    height: 100%;
    background-color: var(--tz-primary);
    border-radius: var(--tz-input-radius);
    left: 20%;
    right: 30%;
    pointer-events: none;
}

.tz-dual-range-input {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    margin: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
}

.tz-dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tz-surface);
    border: 2px solid var(--tz-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
    margin-top: -7px;
    transition: transform 0.15s ease;
}

.tz-dual-range-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: none;
}

.tz-dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tz-surface);
    border: 2px solid var(--tz-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
}

.tz-dual-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.tz-dual-range-val-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    padding: 6px 12px;
    font-size: var(--tz-font-xs);
    color: var(--tz-text-body);
}

.tz-dual-range-val-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    width: 60px;
    text-align: right;
}

/* =========================================================================
   Quantity Stepper & Inline Line Picker
   ========================================================================= */
.tz-quantity-stepper {
    display: flex;
    align-items: center;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width) solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    overflow: hidden;
    height: 44px;
    width: 100%;
    transition: border-color var(--tz-transition);
}

.tz-quantity-btn {
    width: 44px;
    min-width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tz-surface-muted);
    border: none;
    color: var(--tz-text-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--tz-transition), color var(--tz-transition);
    user-select: none;
    flex-shrink: 0;
}

.tz-quantity-btn.tz-quantity-decrement {
    border-right: 1px solid var(--tz-border-subtle);
}

.tz-quantity-btn.tz-quantity-increment {
    border-left: 1px solid var(--tz-border-subtle);
}

.tz-quantity-btn:hover {
    background-color: rgba(var(--tz-primary-rgb), 0.1);
    color: var(--tz-primary);
}

.tz-quantity-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tz-quantity-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    text-align: center;
    border: none;
    background: var(--tz-surface);
    font-size: var(--tz-font-base);
    font-weight: 500;
    color: var(--tz-text-heading);
    outline: none;
    -moz-appearance: textfield;
    padding: 0 12px;
}

.tz-quantity-input::-webkit-outer-spin-button,
.tz-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tz-quantity-stepper:focus-within {
    border-color: var(--tz-primary);
}

/* Quantity Fast-Jump Pills - Symmetrical Auto-Grid */
.tz-quantity-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 8px;
    width: 100%;
}

.tz-quantity-pill {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    padding: 7px 10px;
    border-radius: var(--tz-input-radius);
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    color: var(--tz-text-body);
    cursor: pointer;
    transition: all var(--tz-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.tz-quantity-pill:hover {
    border-color: var(--tz-primary);
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.05);
}

.tz-quantity-pill.is-active {
    border-color: var(--tz-primary);
    color: var(--tz-primary);
    background-color: rgba(var(--tz-primary-rgb), 0.1);
    font-weight: 500;
}

.tz-dual-range-val-box:focus-within {
    border-color: var(--tz-primary);
}

/* =========================================================================
   Quantity Line / Segmented Milestone Picker (Billing Cycles / Terms)
   ========================================================================= */
.tz-milestone-line-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    width: 100%;
    background-color: var(--tz-surface-muted);
    padding: 6px;
    border-radius: var(--tz-input-radius);
    border: 1px solid var(--tz-border-subtle);
}

.tz-milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: var(--tz-input-radius);
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--tz-transition);
    text-align: center;
    position: relative;
    user-select: none;
}

.tz-milestone-item:hover {
    background-color: var(--tz-surface);
    border-color: var(--tz-border-subtle);
}

.tz-milestone-item.is-selected {
    background-color: var(--tz-surface);
    border-color: var(--tz-primary);
    box-shadow: var(--tz-shadow-sm);
}

.tz-milestone-period {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
}

.tz-milestone-desc {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin-top: 2px;
}

.tz-milestone-badge {
    position: absolute;
    top: -8px;
    right: 6px;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 10px;
    background-color: #10b981;
    color: #ffffff;
    line-height: 1.3;
}

/* Dark mode overrides for Sliders and Steppers */
[data-theme="dark"] .tz-range-slider {
    background: linear-gradient(to right, var(--tz-primary) var(--tz-slider-progress, 50%), #334155 var(--tz-slider-progress, 50%));
}

[data-theme="dark"] .tz-dual-range-track {
    background-color: #334155;
}

[data-theme="dark"] .tz-quantity-stepper,
[data-theme="dark"] .tz-dual-range-val-box,
[data-theme="dark"] .tz-quantity-pill {
    background-color: var(--tz-surface);
    border-color: var(--tz-border);
}

[data-theme="dark"] .tz-milestone-line-picker {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: var(--tz-border);
}

[data-theme="dark"] .tz-milestone-item.is-selected {
    background-color: var(--tz-surface);
    border-color: var(--tz-primary);
}

/* =========================================================================
   Showcase Sections & Sticky Quick-Jump Navigation System
   ========================================================================= */
.tz-showcase-nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(var(--tz-surface-rgb), 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tz-border-subtle);
    padding: 10px 0;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.tz-showcase-nav-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    padding-top: 2px;
    scrollbar-width: thin;
}

.tz-showcase-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-muted);
    background-color: var(--tz-bg);
    border: 1px solid var(--tz-border);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--tz-transition);
    cursor: pointer;
}

.tz-showcase-nav-pill:hover {
    color: var(--tz-primary);
    border-color: rgba(var(--tz-primary-rgb), 0.35);
    background-color: rgba(var(--tz-primary-rgb), 0.06);
}

.tz-showcase-nav-pill.is-active {
    color: #ffffff;
    background-color: var(--tz-primary);
    border-color: var(--tz-primary);
    box-shadow: 0 2px 8px rgba(var(--tz-primary-rgb), 0.3);
}

.tz-showcase-section {
    scroll-margin-top: 90px;
    margin-bottom: 48px;
    position: relative;
}

.tz-showcase-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tz-border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.tz-showcase-section-title {
    font-size: var(--tz-font-lg);
    font-weight: 500;
    color: var(--tz-text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tz-showcase-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: rgba(var(--tz-primary-rgb), 0.12);
    color: var(--tz-primary);
    font-size: var(--tz-font-xs);
    font-weight: 500;
}

.tz-showcase-section-desc {
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-muted);
    margin-top: 4px;
}

.tz-showcase-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .tz-showcase-examples-grid {
        grid-template-columns: 1fr;
    }
}

.tz-example-card {
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius-card);
    padding: 22px;
    box-shadow: var(--tz-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color var(--tz-transition);
}

.tz-example-card:hover {
    border-color: rgba(var(--tz-primary-rgb), 0.3);
}

.tz-example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tz-border-subtle);
}

.tz-example-title {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tz-example-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--tz-bg);
    color: var(--tz-text-muted);
    border: 1px solid var(--tz-border);
}

.tz-example-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.tz-example-footer-note {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px dashed var(--tz-border-subtle);
}

/* =========================================================================
   TABLER ICON COMPONENT ENHANCEMENTS & ALIGNMENT
   ========================================================================= */
i.tz-icon,
i.tz-material-icon,
i.tz-searchable-selected-icon,
i.tz-option-icon,
i.tz-modal-header-icon {
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    vertical-align: middle;
}

i.tz-icon {
    font-size: 16px;
}

i.tz-icon-xs {
    font-size: 12px;
}

i.tz-icon-sm {
    font-size: 14px;
}

i.tz-icon-lg {
    font-size: 20px;
}

i.tz-material-icon {
    font-size: 18px;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.75;
    z-index: 3;
    color: var(--tz-text-muted);
    transition: color 0.18s ease, opacity 0.18s ease;
}

/* Universal Focus-Within Icon Styling */
.tz-material-field:focus-within > i.tz-material-icon,
.tz-material-field:focus-within > .tz-material-icon,
.tz-material-group:focus-within i.tz-material-icon,
.tz-picker-wrapper:focus-within i.tz-material-icon,
.tz-material-input:focus ~ i.tz-material-icon,
.tz-material-select:focus ~ i.tz-material-icon,
.tz-material-textarea:focus ~ i.tz-material-icon,
.tz-input-wrap:focus-within .tz-input-icon,
.tz-search-wrap:focus-within .tz-search-icon,
.tz-input-group:focus-within .tz-input-group-text i {
    opacity: 1 !important;
    color: var(--tz-primary) !important;
}

.tz-card-header-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tz-primary);
}

i.tz-searchable-selected-icon {
    font-size: 18px;
    margin-right: 8px;
    color: var(--tz-primary);
    flex-shrink: 0;
}

i.tz-option-icon {
    font-size: 18px;
    margin-right: 8px;
    color: var(--tz-text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.tz-searchable-option:hover i.tz-option-icon,
.tz-searchable-option.is-selected i.tz-option-icon {
    color: var(--tz-primary);
}

/* =========================================================================
   DARK / LIGHT MODE SWITCH WITH INNER CIRCLE SUN/MOON ICONS
   ========================================================================= */
.tz-theme-mode-switch-wrapper {
    display: inline-flex;
    align-items: center;
}

.tz-theme-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width, 1px) solid var(--tz-border);
    border-radius: var(--tz-input-radius, 5px);
    padding: 4px 10px 4px 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    outline: none;
    height: 34px;
    box-sizing: border-box;
}

.tz-theme-mode-switch:hover {
    border-color: var(--tz-primary);
    background-color: var(--tz-surface-muted);
}

.tz-theme-mode-switch:focus-visible {
    border-color: var(--tz-primary);
    outline: none !important;
    box-shadow: none !important;
}

.tz-theme-mode-track {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme=dark] .tz-theme-mode-track,
.dark .tz-theme-mode-track {
    background-color: #1e293b;
    border-color: #334155;
}

.tz-theme-mode-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

[data-theme=dark] .tz-theme-mode-thumb,
.dark .tz-theme-mode-thumb {
    transform: translateX(22px);
    background-color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tz-theme-thumb-icon {
    font-size: 10px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tz-thumb-sun {
    color: #d97706;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.tz-thumb-moon {
    color: #38bdf8;
    opacity: 0;
    transform: scale(0.6) rotate(-90deg);
}

[data-theme=dark] .tz-thumb-sun,
.dark .tz-thumb-sun {
    opacity: 0;
    transform: scale(0.6) rotate(90deg);
}

[data-theme=dark] .tz-thumb-moon,
.dark .tz-thumb-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.tz-theme-mode-label {
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-heading);
    letter-spacing: normal;
}

/* ==========================================================================
   Universal Directional Dropdown Suite & Floating Action Menus
   Supports Top, Bottom, Left, Right (8 placements), Collision Detection & Mobile
   ========================================================================== */

.tz-dropdown {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.tz-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    color: inherit;
    outline: none !important;
}

.tz-dropdown-trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.tz-dropdown-menu {
    position: absolute;
    z-index: 1050;
    min-width: 190px;
    max-width: 320px;
    padding: 6px;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transform-origin: top left;
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s ease;
    box-sizing: border-box;
}

[data-theme="dark"] .tz-dropdown-menu,
.dark .tz-dropdown-menu {
    box-shadow: 0 14px 28px -5px rgba(0, 0, 0, 0.6), 0 10px 14px -6px rgba(0, 0, 0, 0.4);
}

.tz-dropdown.is-open > .tz-dropdown-menu,
.tz-dropdown-menu.is-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translate(0, 0) !important;
}

/* Dropdown Placements */
/* Bottom-Start (Default) */
.tz-dropdown-menu,
.tz-dropdown-menu[data-tz-placement="bottom-start"],
.tz-dropdown[data-tz-placement="bottom-start"] > .tz-dropdown-menu {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    bottom: auto;
    transform-origin: top left;
}

/* Bottom-End */
.tz-dropdown-menu[data-tz-placement="bottom-end"],
.tz-dropdown[data-tz-placement="bottom-end"] > .tz-dropdown-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    bottom: auto;
    transform-origin: top right;
}

/* Bottom-Center */
.tz-dropdown-menu[data-tz-placement="bottom-center"],
.tz-dropdown[data-tz-placement="bottom-center"] > .tz-dropdown-menu {
    top: calc(100% + 6px);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%) scale(0.96);
    transform-origin: top center;
}
.tz-dropdown.is-open > .tz-dropdown-menu[data-tz-placement="bottom-center"],
.tz-dropdown-menu[data-tz-placement="bottom-center"].is-active {
    transform: translateX(-50%) scale(1) !important;
}

/* Top-Start */
.tz-dropdown-menu[data-tz-placement="top-start"],
.tz-dropdown[data-tz-placement="top-start"] > .tz-dropdown-menu {
    bottom: calc(100% + 6px);
    top: auto;
    left: 0;
    right: auto;
    transform-origin: bottom left;
}

/* Top-End */
.tz-dropdown-menu[data-tz-placement="top-end"],
.tz-dropdown[data-tz-placement="top-end"] > .tz-dropdown-menu {
    bottom: calc(100% + 6px);
    top: auto;
    right: 0;
    left: auto;
    transform-origin: bottom right;
}

/* Top-Center */
.tz-dropdown-menu[data-tz-placement="top-center"],
.tz-dropdown[data-tz-placement="top-center"] > .tz-dropdown-menu {
    bottom: calc(100% + 6px);
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) scale(0.96);
    transform-origin: bottom center;
}
.tz-dropdown.is-open > .tz-dropdown-menu[data-tz-placement="top-center"],
.tz-dropdown-menu[data-tz-placement="top-center"].is-active {
    transform: translateX(-50%) scale(1) !important;
}

/* Left-Start */
.tz-dropdown-menu[data-tz-placement="left-start"],
.tz-dropdown[data-tz-placement="left-start"] > .tz-dropdown-menu {
    right: calc(100% + 6px);
    left: auto;
    top: 0;
    bottom: auto;
    transform-origin: top right;
}

/* Left-End */
.tz-dropdown-menu[data-tz-placement="left-end"],
.tz-dropdown[data-tz-placement="left-end"] > .tz-dropdown-menu {
    right: calc(100% + 6px);
    left: auto;
    bottom: 0;
    top: auto;
    transform-origin: bottom right;
}

/* Right-Start */
.tz-dropdown-menu[data-tz-placement="right-start"],
.tz-dropdown[data-tz-placement="right-start"] > .tz-dropdown-menu {
    left: calc(100% + 6px);
    right: auto;
    top: 0;
    bottom: auto;
    transform-origin: top left;
}

/* Right-End */
.tz-dropdown-menu[data-tz-placement="right-end"],
.tz-dropdown[data-tz-placement="right-end"] > .tz-dropdown-menu {
    left: calc(100% + 6px);
    right: auto;
    bottom: 0;
    top: auto;
    transform-origin: bottom left;
}

/* Auto-Flip Modifiers (Calculated by custom.js collision detector) */
.tz-dropdown-menu.is-flipped-top {
    top: auto !important;
    bottom: calc(100% + 6px) !important;
    transform-origin: bottom left !important;
}
.tz-dropdown-menu.is-flipped-right {
    left: auto !important;
    right: 0 !important;
    transform-origin: top right !important;
}
.tz-dropdown-menu.is-flipped-top.is-flipped-right {
    transform-origin: bottom right !important;
}

/* Dropdown Content Elements */
.tz-dropdown-header {
    padding: 6px 10px;
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-muted);
    letter-spacing: normal;
}

.tz-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-heading);
    background: transparent;
    border: none;
    border-radius: calc(var(--tz-input-radius) - 1px);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tz-dropdown-item:hover,
.tz-dropdown-item:focus {
    background-color: var(--tz-surface-muted);
    color: var(--tz-primary);
    outline: none;
}

.tz-dropdown-item.is-active {
    background-color: rgba(var(--tz-primary-rgb), 0.08);
    color: var(--tz-primary);
    font-weight: 500;
}

.tz-dropdown-item.is-danger {
    color: #ef4444;
}

.tz-dropdown-item.is-danger:hover,
.tz-dropdown-item.is-danger:focus {
    background-color: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.tz-dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tz-dropdown-item-left i {
    font-size: 16px;
    flex-shrink: 0;
}

.tz-dropdown-shortcut {
    font-size: 11px;
    color: var(--tz-text-muted);
    background-color: var(--tz-surface-muted);
    border: 1px solid var(--tz-border-subtle);
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1;
}

.tz-dropdown-divider {
    height: 1px;
    margin: 4px -6px;
    background-color: var(--tz-border-subtle);
}

/* User Account Profile Card Dropdown Variant */
.tz-dropdown-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: var(--tz-surface-muted);
    border-radius: calc(var(--tz-input-radius) - 1px);
    margin-bottom: 6px;
}

.tz-dropdown-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--tz-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

.tz-dropdown-user-info {
    min-width: 0;
    flex: 1;
}

.tz-dropdown-user-name {
    font-size: var(--tz-font-xs);
    font-weight: 500;
    color: var(--tz-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tz-dropdown-user-email {
    font-size: 11px;
    color: var(--tz-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nested Submenu Support */
.tz-dropdown-submenu {
    position: relative;
    width: 100%;
}

.tz-dropdown-submenu > .tz-dropdown-menu {
    top: 0;
    left: calc(100% + 4px);
    right: auto;
    bottom: auto;
}

.tz-dropdown-submenu:hover > .tz-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* ==========================================================================
   Mobile Fixed Viewport & No-Zoom System (iOS & Android Responsive Guard)
   ========================================================================== */
@media (max-width: 640px) {
    /* Prevent iOS auto-zoom when tapping inputs */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea,
    .tz-input,
    .tz-material-input,
    .tz-material-textarea,
    .tz-material-addon-select,
    .tz-searchable-search-input {
        font-size: 16px !important;
    }

    /* Mobile Dropdown Viewport Clamping */
    .tz-dropdown-menu {
        max-width: calc(100vw - 24px) !important;
        position: absolute;
    }

    /* Directional overrides on small mobile screens to prevent right-edge clipping */
    .tz-dropdown-menu[data-tz-placement="right-start"],
    .tz-dropdown-menu[data-tz-placement="right-end"] {
        left: 0 !important;
        top: calc(100% + 6px) !important;
    }

    .tz-dropdown-menu[data-tz-placement="left-start"],
    .tz-dropdown-menu[data-tz-placement="left-end"] {
        right: 0 !important;
        left: auto !important;
        top: calc(100% + 6px) !important;
    }
}

/* ==========================================================================
   Drawer System (Mobile Nav + Notifications)
   ========================================================================== */

/* Backdrop Overlay */
.tz-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.tz-drawer-backdrop.is-visible {
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Left-side Drawer (Mobile Navigation) */
#tzMobileNavDrawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    max-width: 280px;
    background-color: var(--tz-surface, #ffffff);
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#tzMobileNavDrawer.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 60px -15px rgba(0, 0, 0, 0.2);
}

/* Right-side Drawer (Notifications) */
#tzNotificationsDrawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    max-width: 380px;
    background-color: var(--tz-surface, #ffffff);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#tzNotificationsDrawer.is-open {
    transform: translateX(0);
    box-shadow: -20px 0 60px -15px rgba(0, 0, 0, 0.15);
}

/* Drawer scroll area */
#tzMobileNavDrawer .flex-1,
#tzNotificationsDrawer .flex-1 {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Navigation — Active item & Accordion highlights */
#tzMobileNavDrawer a.is-active,
#tzMobileNavDrawer a[aria-current="page"] {
    background-color: rgba(var(--tz-primary-rgb), 0.1) !important;
    color: var(--tz-primary) !important;
    font-weight: 500 !important;
}

#tzMobileNavDrawer .tz-mobile-accordion-group.is-active-group > .tz-mobile-accordion-btn {
    color: var(--tz-primary) !important;
}

#tzMobileNavDrawer .tz-mobile-accordion-content a.is-active {
    background-color: rgba(var(--tz-primary-rgb), 0.1) !important;
    color: var(--tz-primary) !important;
    font-weight: 500 !important;
}

/* Mobile header adjustments */
@media (max-width: 640px) {
    /* Stack search bar below on very small screens */
    .tz-header-search-trigger span {
        display: none;
    }
    .tz-header-search-trigger kbd {
        display: none;
    }
}

/* TLD Directory Category Filter Buttons */
.tz-tld-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--tz-input-radius, 5px);
    font-size: var(--tz-font-xs, 12px);
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    background-color: #f1f5f9;
    color: #475569;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none;
    white-space: nowrap;
}

.dark .tz-tld-cat-btn {
    background-color: #1e293b;
    color: #94a3b8;
}

.tz-tld-cat-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.dark .tz-tld-cat-btn:hover {
    background-color: #334155;
    color: #f8fafc;
}

.tz-tld-cat-btn.is-active,
.tz-tld-cat-btn.is-active:hover {
    background-color: var(--tz-primary, #2563eb) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

/* Dynamic Vector & Illustrated SVG Icons */
.tz-icon,
.svg-icon,
.tz-inlined-svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}



.tz-header-action-btn img,
.tz-header-action-btn svg,
.tz-header-action-btn .tz-icon,
.tz-header-action-btn .svg-icon,
.tz-header-action-btn .tz-inlined-svg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Screen Reader Only & Domain Selector Tab Utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

.tz-domain-tab input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.tz-domain-panel.hidden {
    display: none !important;
}

/* ==========================================================================
   Master Dark Mode Dropdown Engine (Universal & Flawless)
   ========================================================================== */
[data-theme="dark"] select,
.dark select,
[data-theme="dark"] .tz-select,
.dark .tz-select,
[data-theme="dark"] .tz-input-select,
.dark .tz-input-select,
[data-theme="dark"] select.tz-input,
.dark select.tz-input,
[data-theme="dark"] select.tz-select,
.dark select.tz-select,
[data-theme="dark"] .tz-admin-select,
.dark .tz-admin-select {
    background-color: var(--tz-surface, #0f172a) !important;
    color: var(--tz-text-heading, #f8fafc) !important;
    border-color: var(--tz-border, #334155) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

.tz-material-select,
.tz-material-field select,
[data-theme="dark"] .tz-material-select,
.dark .tz-material-select,
[data-theme="dark"] .tz-material-field select,
.dark .tz-material-field select {
    background-image: none !important;
}

/* Native Select Option Dropdown List in Dark Mode */
[data-theme="dark"] select option,
.dark select option,
[data-theme="dark"] .tz-select option,
.dark .tz-select option,
[data-theme="dark"] .tz-material-select option,
.dark .tz-material-select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* Searchable Select & Material Searchable Dropdown Menus */
[data-theme="dark"] .tz-searchable-menu,
.dark .tz-searchable-menu,
[data-theme="dark"] .tz-tld-menu,
.dark .tz-tld-menu,
[data-theme="dark"] .tz-dropdown-menu,
.dark .tz-dropdown-menu,
[data-theme="dark"] .tz-user-dropdown,
.dark .tz-user-dropdown {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 8px 16px -4px rgba(0, 0, 0, 0.45) !important;
}

/* Search Box inside Searchable & TLD Dropdowns */
[data-theme="dark"] .tz-searchable-search-input,
.dark .tz-searchable-search-input,
[data-theme="dark"] .tz-tld-search,
.dark .tz-tld-search {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .tz-searchable-search-input::placeholder,
.dark .tz-searchable-search-input::placeholder,
[data-theme="dark"] .tz-tld-search::placeholder,
.dark .tz-tld-search::placeholder {
    color: #94a3b8 !important;
}

/* Dropdown Option Items */
[data-theme="dark"] .tz-searchable-option,
.dark .tz-searchable-option,
[data-theme="dark"] .tz-tld-option,
.dark .tz-tld-option,
[data-theme="dark"] .tz-dropdown-item,
.dark .tz-dropdown-item {
    color: #cbd5e1 !important;
    background-color: transparent;
}

[data-theme="dark"] .tz-searchable-option:hover,
.dark .tz-searchable-option:hover,
[data-theme="dark"] .tz-tld-option:hover,
.dark .tz-tld-option:hover,
[data-theme="dark"] .tz-dropdown-item:hover,
.dark .tz-dropdown-item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

/* Selected Dropdown Option Item */
[data-theme="dark"] .tz-searchable-option.is-selected,
.dark .tz-searchable-option.is-selected,
[data-theme="dark"] .tz-tld-option.bg-purple-50,
.dark .tz-tld-option.bg-purple-50,
[data-theme="dark"] .tz-tld-option[class*="bg-purple-50"],
.dark .tz-tld-option[class*="bg-purple-50"] {
    background-color: rgba(var(--tz-primary-rgb, 37, 99, 235), 0.22) !important;
    color: var(--tz-primary, #3b82f6) !important;
}

/* Dropdown Titles & Text */
[data-theme="dark"] .tz-option-title,
.dark .tz-option-title,
[data-theme="dark"] .tz-tld-option-text,
.dark .tz-tld-option-text {
    color: #f8fafc !important;
}

[data-theme="dark"] .tz-option-desc,
.dark .tz-option-desc,
[data-theme="dark"] .tz-tld-no-results,
.dark .tz-tld-no-results {
    color: #94a3b8 !important;
}

/* Custom TLD Toggle Button */
[data-theme="dark"] .tz-tld-toggle,
.dark .tz-tld-toggle {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tz-tld-toggle:hover,
.dark .tz-tld-toggle:hover {
    background-color: #1e293b !important;
}

/* ==========================================================================
   TZTheme Configurable Range Slider Picker
   ========================================================================== */
.tz-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    outline: none;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.tz-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--tz-primary, #2563eb) 0%, var(--tz-primary, #2563eb) var(--tz-range-pct, 0%), #e2e8f0 var(--tz-range-pct, 0%), #e2e8f0 100%);
    border: none;
}

.dark .tz-range-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--tz-primary, #2563eb) 0%, var(--tz-primary, #2563eb) var(--tz-range-pct, 0%), #334155 var(--tz-range-pct, 0%), #334155 100%);
}

.tz-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 32px;
    border-radius: var(--tz-input-radius, 5px);
    background-color: #ffffff;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, #cbd5e1 2px, #cbd5e1 3px);
    background-size: 6px 14px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: grab;
    margin-top: -12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tz-range-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    border-color: var(--tz-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(var(--tz-primary-rgb, 37, 99, 235), 0.15);
}

.tz-range-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #e2e8f0;
    border: none;
}

.dark .tz-range-slider::-moz-range-track {
    background: #334155;
}

.tz-range-slider::-moz-range-progress {
    height: 8px;
    border-radius: 9999px;
    background-color: var(--tz-primary, #2563eb);
}

.tz-range-slider::-moz-range-thumb {
    width: 28px;
    height: 32px;
    border-radius: var(--tz-input-radius, 5px);
    background-color: #ffffff;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, #cbd5e1 2px, #cbd5e1 3px);
    background-size: 6px 14px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: grab;
}

.tz-range-tooltip {
    position: absolute;
    top: -30px;
    left: 0;
    transform: translateX(-50%);
    background-color: var(--tz-primary, #2563eb);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--tz-input-radius, 5px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tz-range-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: var(--tz-primary, #2563eb) transparent transparent transparent;
}

[data-theme="dark"] .tz-tld-label,
.dark .tz-tld-label {
    color: #f8fafc !important;
}



/* ==========================================================================
   TZTheme Configurable Range Slider Picker
   ========================================================================== */
.tz-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    outline: none;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.tz-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--tz-primary, #2563eb) 0%, var(--tz-primary, #2563eb) var(--tz-range-pct, 0%), #e2e8f0 var(--tz-range-pct, 0%), #e2e8f0 100%);
    border: none;
}

.dark .tz-range-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--tz-primary, #2563eb) 0%, var(--tz-primary, #2563eb) var(--tz-range-pct, 0%), #334155 var(--tz-range-pct, 0%), #334155 100%);
}

.tz-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 32px;
    border-radius: var(--tz-input-radius, 5px);
    background-color: #ffffff;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, #cbd5e1 2px, #cbd5e1 3px);
    background-size: 6px 14px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: grab;
    margin-top: -12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tz-range-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    border-color: var(--tz-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(var(--tz-primary-rgb, 37, 99, 235), 0.15);
}

.tz-range-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #e2e8f0;
    border: none;
}

.dark .tz-range-slider::-moz-range-track {
    background: #334155;
}

.tz-range-slider::-moz-range-progress {
    height: 8px;
    border-radius: 9999px;
    background-color: var(--tz-primary, #2563eb);
}

.tz-range-slider::-moz-range-thumb {
    width: 28px;
    height: 32px;
    border-radius: var(--tz-input-radius, 5px);
    background-color: #ffffff;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, #cbd5e1 2px, #cbd5e1 3px);
    background-size: 6px 14px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: grab;
}

.tz-range-tooltip {
    position: absolute;
    top: -30px;
    left: 0;
    transform: translateX(-50%);
    background-color: var(--tz-primary, #2563eb);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--tz-input-radius, 5px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tz-range-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: var(--tz-primary, #2563eb) transparent transparent transparent;
}

[data-theme="dark"] .tz-tld-label,
.dark .tz-tld-label {
    color: #f8fafc !important;
}



/* ==========================================================================
   TZTheme Universal Modern Radio Engine
   Adheres strictly to 18px, 1px border, zero focus glow/shadow
   ========================================================================== */
input[type="radio"]:not(.sr-only):not([class*="sr-only"]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 1px solid var(--tz-border-color, #cbd5e1);
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    margin: 0;
    vertical-align: middle;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"])::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
    background-color: #ffffff;
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"]):hover:not(:disabled) {
    border-color: var(--tz-primary, #2563eb);
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"]):focus,
input[type="radio"]:not(.sr-only):not([class*="sr-only"]):focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--tz-primary, #2563eb);
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"]):checked {
    background-color: var(--tz-primary, #2563eb);
    border-color: var(--tz-primary, #2563eb);
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"]):checked::before {
    transform: scale(1);
}

input[type="radio"]:not(.sr-only):not([class*="sr-only"]):disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Dark mode universal radio adaptation */
[data-theme="dark"] input[type="radio"]:not(.sr-only):not([class*="sr-only"]),
.dark input[type="radio"]:not(.sr-only):not([class*="sr-only"]) {
    background-color: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] input[type="radio"]:not(.sr-only):not([class*="sr-only"]):hover:not(:disabled),
.dark input[type="radio"]:not(.sr-only):not([class*="sr-only"]):hover:not(:disabled) {
    border-color: var(--tz-primary, #3b82f6);
}

[data-theme="dark"] input[type="radio"]:not(.sr-only):not([class*="sr-only"]):checked,
.dark input[type="radio"]:not(.sr-only):not([class*="sr-only"]):checked {
    background-color: var(--tz-primary, #2563eb);
    border-color: var(--tz-primary, #2563eb);
}

[data-theme="dark"] input[type="radio"]:not(.sr-only):not([class*="sr-only"]):disabled,
.dark input[type="radio"]:not(.sr-only):not([class*="sr-only"]):disabled {
    background-color: #1e293b;
    border-color: #334155;
}

/* Ensure searchable selects in configurable options have high z-index when open */
.tz-configopt-block:has(.tz-searchable-select.is-open) {
    z-index: 50 !important;
    position: relative;
}

/* ==========================================================================
   TZTheme Phone Input & Country Flag Engine
   ========================================================================== */
.tz-country-flag-wrap {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.dark .tz-country-flag-wrap {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1e293b;
}

.tz-country-flag-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   TZTheme Unified Material Phone Suite (Single Outline covering Digit Selector + Input)
   ========================================================================== */

.tz-phone-group {
    position: relative;
    width: 100%;
}

.tz-phone-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    background-color: var(--tz-surface);
    border: var(--tz-input-border-width, 1px) solid var(--tz-input-border, var(--tz-border));
    border-radius: var(--tz-input-radius, 5px);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-phone-container:hover:not(:focus-within):not(.is-open) {
    border-color: var(--tz-border-hover, #9ca3af);
}

.tz-phone-container:focus-within,
.tz-phone-container.is-open {
    border-color: var(--tz-primary) !important;
    box-shadow: none !important;
}

.tz-phone-container.is-invalid {
    border-color: var(--tz-danger, #ef4444) !important;
}

/* Floating Label positioned over the top outline cutout */
.tz-phone-container .tz-phone-label {
    position: absolute;
    top: 0;
    left: 10px;
    transform: translateY(-50%) scale(0.85);
    transform-origin: left center;
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-text-muted);
    background-color: var(--tz-surface);
    padding: 0 5px;
    pointer-events: none;
    transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tz-phone-container:focus-within .tz-phone-label,
.tz-phone-container.is-open .tz-phone-label {
    color: var(--tz-primary) !important;
}

.tz-phone-container.is-invalid .tz-phone-label {
    color: var(--tz-danger, #ef4444) !important;
}

/* Digit / Country Selector Trigger inside the container */
.tz-phone-cc-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 14px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    user-select: none;
    outline: none !important;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.tz-phone-cc-trigger:hover {
    background-color: var(--tz-surface-muted, rgba(0,0,0,0.03)) !important;
}

.tz-phone-container.is-open .tz-phone-arrow {
    transform: rotate(180deg) !important;
}

.tz-phone-cc-trigger .tz-country-flag-wrap {
    width: 20px;
    height: 14px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 2px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.tz-phone-cc-trigger .tz-country-flag-wrap img {
    width: 20px !important;
    height: 14px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    object-fit: cover !important;
    display: block !important;
}

.tz-phone-dial-code {
    font-size: var(--tz-font-sm);
    font-weight: 500;
    color: var(--tz-primary) !important;
}

.tz-phone-arrow {
    color: var(--tz-primary) !important;
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Seamless Phone Number Input inside the container (Zero individual borders) */
.tz-phone-container input.tz-phone-number-input,
.tz-phone-container .tz-phone-number-input {
    flex: 1 1 auto;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: var(--tz-font-sm);
    font-weight: 400;
    color: var(--tz-text-heading);
}

.tz-phone-container input.tz-phone-number-input::placeholder {
    color: var(--tz-text-muted);
    opacity: 0.6;
}

.tz-phone-container input.tz-phone-number-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Phone Calling Code Dropdown Menu - EXACT SAME UI AS CUSTOM SELECTOR */
.tz-phone-container .tz-searchable-menu.tz-phone-cc-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-input-radius, 5px);
    box-shadow: var(--tz-shadow-dropdown);
    padding: 8px;
    z-index: 1060;
    display: none;
    box-sizing: border-box;
}

.tz-phone-container.is-open .tz-searchable-menu.tz-phone-cc-menu {
    display: block !important;
    animation: tzDropdownFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-phone-container .tz-searchable-options {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tz-phone-container .tz-phone-code {
    font-size: var(--tz-font-xs);
    font-weight: 400;
    color: var(--tz-text-muted);
}

.tz-phone-container .tz-searchable-option.is-selected .tz-phone-code {
    color: var(--tz-primary);
}

/* =========================================================================
   TZTheme Phone Component Guard: Suppress Raw intlTelInput & Rogue Lists
   ========================================================================= */
.intl-tel-input,
.iti {
    position: relative !important;
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
}

.tz-phone-group .intl-tel-input,
.tz-phone-group .iti,
.tz-phone-container .intl-tel-input,
.tz-phone-container .iti {
    display: flex !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

/* Strictly hide rogue intlTelInput country dropdowns and flags inside custom TZ phone container */
.tz-phone-container .country-list,
.tz-phone-container .iti__country-list,
.tz-phone-group .country-list,
.tz-phone-group .iti__country-list,
.tz-phone-container .flag-container,
.tz-phone-container .selected-flag,
.tz-phone-group .flag-container,
.tz-phone-group .selected-flag {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    z-index: -1 !important;
}

/* Global suppression for unstyled country-list dropdowns */
.country-list,
.iti__country-list {
    display: none !important;
}

/* =========================================================================
   TZTheme Knowledgebase & Tag Cloud System
   Handles hundreds of tags with fluid pill layout, smooth scroll, & hover
   ========================================================================= */
.tz-tag-cloud,
.tag-cloud,
.tagcloud,
div[id*="Tag_Cloud"] .panel-body,
div[id*="tag-cloud"] .panel-body {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    padding: 4px !important;
}

.tz-tag-cloud a,
.tag-cloud a,
.tagcloud a,
div[id*="Tag_Cloud"] a,
div[id*="tag-cloud"] a,
.tz-tag-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    font-size: var(--tz-font-xs) !important;
    font-weight: 400 !important;
    color: var(--tz-text-body) !important;
    background-color: var(--tz-surface-muted) !important;
    border: 1px solid var(--tz-border) !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    text-decoration: none !important;
    transition: var(--tz-transition) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.tz-tag-cloud a:hover,
.tag-cloud a:hover,
.tagcloud a:hover,
div[id*="Tag_Cloud"] a:hover,
div[id*="tag-cloud"] a:hover,
.tz-tag-pill:hover {
    color: var(--tz-primary) !important;
    background-color: color-mix(in srgb, var(--tz-primary) 10%, transparent) !important;
    border-color: var(--tz-primary) !important;
}

/* =========================================================================
   TZTheme Universal Icon Alignment Rules
   Ensures SVG & Tabler icons align cleanly on text baselines without drift
   ========================================================================= */
.tz-icon,
.svg-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.tz-icon svg,
.svg-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* =========================================================================
   TZTheme Social Authentication, Google Login & Provider Linking Engine
   ========================================================================= */
.tz-social-auth-wrapper {
    width: 100%;
}

/* Google Brand 4-Color Spinner Animation */
.tz-google-spinner-ring {
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tz-google-spinner-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #4285F4;
    border-right-color: #EA4335;
    border-bottom-color: #FBBC05;
    border-left-color: #34A853;
    animation: tzGoogleSpin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes tzGoogleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Dots */
.tz-loading-dots::after {
    content: '...';
    animation: tzDots 1.4s infinite steps(4, start);
    display: inline-block;
    width: 12px;
}

@keyframes tzDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* One-time password focus hint */
.tz-highlight-ring {
    border-color: #f59e0b !important;
    box-shadow: none !important;
    animation: tzBorderPulse 1.8s ease-in-out infinite;
}

@keyframes tzBorderPulse {
    0%, 100% { border-color: #f59e0b; }
    50% { border-color: #d97706; }
}

/* Provider Linking Feedback Container & Alert Boxes */
.providerLinkingFeedback {
    margin: 12px 0 16px 0;
    width: 100%;
    display: none;
}

.providerLinkingFeedback.alert,
.providerLinkingFeedback .alert,
.providerLinkingFeedback:not(:empty) {
    display: block !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    border-width: 1px !important;
    border-style: solid !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    font-size: var(--tz-font-xs, 12px) !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    animation: tzAlertFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tzAlertFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.providerLinkingFeedback.alert-info,
.providerLinkingFeedback .alert.alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

.dark .providerLinkingFeedback.alert-info,
.dark .providerLinkingFeedback .alert.alert-info {
    background-color: rgba(30, 58, 138, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #bfdbfe !important;
}

.providerLinkingFeedback.alert-warning,
.providerLinkingFeedback .alert.alert-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.dark .providerLinkingFeedback.alert-warning,
.dark .providerLinkingFeedback .alert.alert-warning {
    background-color: rgba(120, 53, 15, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fef3c7 !important;
}

.providerLinkingFeedback.alert-danger,
.providerLinkingFeedback .alert.alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.dark .providerLinkingFeedback.alert-danger,
.dark .providerLinkingFeedback .alert.alert-danger {
    background-color: rgba(159, 18, 57, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fecdd3 !important;
}

.providerLinkingFeedback.alert-success,
.providerLinkingFeedback .alert.alert-success {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

.dark .providerLinkingFeedback.alert-success,
.dark .providerLinkingFeedback .alert.alert-success {
    background-color: rgba(6, 78, 59, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #a7f3d0 !important;
}

.providerLinkingFeedback img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    margin-top: -2px !important;
}

.providerLinkingFeedback strong {
    font-weight: 500 !important;
    font-size: 12.5px !important;
    display: inline !important;
    line-height: 1.4 !important;
}

.providerLinkingFeedback .tz-feedback-desc {
    display: block !important;
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
}

.tz-auth-feedback-card,
.tz-auth-warning-card,
.tz-auth-error-card,
.tz-auth-success-card,
.tz-google-loader-wrap {
    border-radius: var(--tz-input-radius, 5px) !important;
    border-width: 1px !important;
    border-style: solid !important;
    padding: 12px 14px !important;
    animation: tzAlertFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-auth-warning-card {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
}
.dark .tz-auth-warning-card {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.tz-auth-error-card {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
}
.dark .tz-auth-error-card {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.tz-google-loader-wrap {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
}
.dark .tz-google-loader-wrap {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.providerLinkingFeedback:has(.tz-auth-warning-card),
.providerLinkingFeedback:has(.tz-auth-error-card),
.providerLinkingFeedback:has(.tz-auth-success-card),
.providerLinkingFeedback:has(.tz-google-loader-wrap) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Google Identity Services button container (Strictly transparent with zero outer card/borders) */
#btnGoogleSignin1,
.g_id_signin,
#btnGoogleSignin1.btn,
.g_id_signin.btn,
#btnGoogleSignin1.btn-social,
.g_id_signin.btn-social,
#btnGoogleSignin1.btn-google,
.g_id_signin.btn-google,
.dark #btnGoogleSignin1,
.dark .g_id_signin,
.dark #btnGoogleSignin1.btn,
.dark .g_id_signin.btn,
.dark #btnGoogleSignin1.btn-social,
.dark .g_id_signin.btn-social,
.dark #btnGoogleSignin1.btn-google,
.dark .g_id_signin.btn-google {
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    width: auto !important;
    max-width: 100% !important;
}

#btnGoogleSignin1 iframe,
.g_id_signin iframe {
    margin: 0 auto !important;
    display: block !important;
    border: none !important;
}

/* Traditional Social buttons styling (Applies only to links/standard buttons, never to Google GIS iframe container) */
a.btn-social,
button.btn-social,
a.btn-social-icon,
button.btn-social-icon,
a.btn-google:not(.g_id_signin),
button.btn-google:not(.g_id_signin),
a.btn-facebook,
button.btn-facebook,
a.btn-github,
button.btn-github,
a.btn-twitter,
button.btn-twitter,
.tz-social-btn {
    border-radius: var(--tz-input-radius, 5px) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 9px 16px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.dark a.btn-social,
.dark button.btn-social,
.dark a.btn-social-icon,
.dark button.btn-social-icon,
.dark a.btn-google:not(.g_id_signin),
.dark button.btn-google:not(.g_id_signin),
.dark a.btn-facebook,
.dark button.btn-facebook,
.dark a.btn-github,
.dark button.btn-github,
.dark a.btn-twitter,
.dark button.btn-twitter,
.dark .tz-social-btn {
    border-color: #334155 !important;
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

a.btn-social:hover,
button.btn-social:hover,
a.btn-google:not(.g_id_signin):hover,
button.btn-google:not(.g_id_signin):hover,
.tz-social-btn:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.dark .btn-social:hover,
.dark .btn-google:hover,
.dark .tz-social-btn:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.btn-social:focus,
.btn-google:focus,
.tz-social-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

/* Sleek App Sidebar - Hide Scrollbar while keeping smooth scroll */
.tz-sidebar-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.tz-sidebar-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Standalone View Invoice Payment Buttons */
.tz-payment-button-wrapper input[type="submit"],
.tz-payment-button-wrapper button,
.tz-payment-button-wrapper .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    font-size: var(--tz-font-sm, 13px) !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    background-color: var(--tz-primary, #2563eb) !important;
    border: 1px solid var(--tz-primary, #2563eb) !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}

.tz-payment-button-wrapper input[type="submit"]:hover,
.tz-payment-button-wrapper button:hover,
.tz-payment-button-wrapper .btn-primary:hover {
    background-color: var(--tz-primary-hover, #1d4ed8) !important;
    border-color: var(--tz-primary-hover, #1d4ed8) !important;
    opacity: 0.95 !important;
}

.tz-payment-button-wrapper input[type="submit"]:focus,
.tz-payment-button-wrapper button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

/* ==========================================================================
   TZTheme System & AJAX Modal Architecture (.modal / #modalAjax / .tz-modal)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: flex !important;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background-color: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: auto;
    pointer-events: auto;
    overflow: visible !important;
    z-index: 1051;
}

.modal.fade .modal-dialog {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    transform: scale(0.95) translateY(12px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--tz-surface, #ffffff);
    border: 1px solid var(--tz-border, #e2e8f0);
    border-radius: var(--tz-radius-lg, 1rem);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28);
    outline: 0;
    overflow: hidden;
}

[data-theme="dark"] .modal-content,
.dark .modal-content {
    background-color: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}



.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--tz-border-subtle, #f1f5f9);
    background-color: var(--tz-surface, #ffffff);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    gap: 16px;
    position: relative;
}

[data-theme="dark"] .modal-header,
.dark .modal-header {
    border-color: #1e293b;
    background-color: #0f172a;
}

.modal-header .tz-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.modal-header .tz-modal-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: var(--tz-input-radius, 5px);
    background: rgba(var(--tz-primary-rgb, 37, 99, 235), 0.12);
    color: var(--tz-primary, #2563eb);
    border: 1px solid rgba(var(--tz-primary-rgb, 37, 99, 235), 0.2);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--tz-text-heading, #0f172a);
    line-height: 1.4;
}

[data-theme="dark"] .modal-title,
.dark .modal-title {
    color: #ffffff;
}

.tz-modal-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--tz-text-muted, #64748b);
    margin: 2px 0 0;
}

.modal-header .close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--tz-input-radius, 5px);
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-header .close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

[data-theme="dark"] .modal-header .close:hover,
.dark .modal-header .close:hover {
    color: #ffffff;
    background-color: #1e293b;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 24px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #334155;
    line-height: 1.6;
}

[data-theme="dark"] .modal-body,
.dark .modal-body {
    color: #cbd5e1;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 16px 24px;
    border-top: 1px solid var(--tz-border-subtle, #f1f5f9);
    background-color: var(--tz-surface, #ffffff);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

[data-theme="dark"] .modal-footer,
.dark .modal-footer {
    border-color: #1e293b;
    background-color: #0b1120;
}

.modal-footer .loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    margin-right: auto;
}

/* Form Controls inside System Modal & 2FA Setup */
.modal-body input[type="text"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body select,
.modal-body textarea,
.modal-body .form-control {
    width: 100%;
    height: 2.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #0f172a;
    background-color: #ffffff;
    border: var(--tz-input-border-width, 1px) solid #cbd5e1;
    border-radius: var(--tz-input-radius, 5px);
    transition: border-color 0.15s ease-in-out;
}

[data-theme="dark"] .modal-body input[type="text"],
[data-theme="dark"] .modal-body input[type="password"],
[data-theme="dark"] .modal-body input[type="number"],
[data-theme="dark"] .modal-body select,
[data-theme="dark"] .modal-body textarea,
[data-theme="dark"] .modal-body .form-control,
.dark .modal-body input[type="text"],
.dark .modal-body input[type="password"],
.dark .modal-body input[type="number"],
.dark .modal-body select,
.dark .modal-body textarea,
.dark .modal-body .form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.modal-body .form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

/* ==========================================================================
   TZTheme Two-Factor Authentication Modal Precision Styling
   ========================================================================== */
#modalAjax .tz-modal-header .tz-modal-close-btn,
#modalAjax .tz-modal-header button.close {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.tz-password-toggle-btn {
    transition: color 0.15s ease;
}

.tz-password-toggle-btn:hover {
    color: var(--tz-text-heading, #0f172a) !important;
}

[data-theme="dark"] .tz-password-toggle-btn:hover,
.dark .tz-password-toggle-btn:hover {
    color: #f8fafc !important;
}

#modalAjax.twofa-setup .modal-dialog,
.modal.twofa-setup .modal-dialog,
#modalAjax:has(.twofa-module-card) .modal-dialog,
#modalAjax:has(.radio) .modal-dialog {
    max-width: 520px;
}

.modal.twofa-setup .modal-content,
#modalAjax.twofa-setup .modal-content {
    border-radius: var(--tz-radius-lg, 1rem);
    overflow: hidden;
    border: 1px solid var(--tz-border, #e2e8f0);
}

[data-theme="dark"] .modal.twofa-setup .modal-content,
[data-theme="dark"] #modalAjax.twofa-setup .modal-content,
.dark .modal.twofa-setup .modal-content,
.dark #modalAjax.twofa-setup .modal-content {
    border-color: #1e293b;
    background-color: #0f172a;
}

.modal.twofa-setup .modal-header,
#modalAjax.twofa-setup .modal-header {
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--tz-border-subtle, #f1f5f9);
}

[data-theme="dark"] .modal.twofa-setup .modal-header,
[data-theme="dark"] #modalAjax.twofa-setup .modal-header,
.dark .modal.twofa-setup .modal-header,
.dark #modalAjax.twofa-setup .modal-header {
    border-color: #1e293b;
}

.modal.twofa-setup .modal-title,
#modalAjax.twofa-setup .modal-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.modal.twofa-setup .modal-body,
#modalAjax.twofa-setup .modal-body {
    padding: 24px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

[data-theme="dark"] .modal.twofa-setup .modal-body,
[data-theme="dark"] #modalAjax.twofa-setup .modal-body,
.dark .modal.twofa-setup .modal-body,
.dark #modalAjax.twofa-setup .modal-body {
    color: #94a3b8;
}

.modal.twofa-setup .modal-body p,
#modalAjax.twofa-setup .modal-body p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

.modal.twofa-setup .modal-body h2,
.modal.twofa-setup .modal-body h3,
.modal.twofa-setup .modal-body h4,
#modalAjax.twofa-setup .modal-body h2,
#modalAjax.twofa-setup .modal-body h3,
#modalAjax.twofa-setup .modal-body h4 {
    font-weight: 500;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-align: center;
}

[data-theme="dark"] .modal.twofa-setup .modal-body h2,
[data-theme="dark"] .modal.twofa-setup .modal-body h3,
[data-theme="dark"] .modal.twofa-setup .modal-body h4,
[data-theme="dark"] #modalAjax.twofa-setup .modal-body h2,
[data-theme="dark"] #modalAjax.twofa-setup .modal-body h3,
[data-theme="dark"] #modalAjax.twofa-setup .modal-body h4,
.dark .modal.twofa-setup .modal-body h2,
.dark .modal.twofa-setup .modal-body h3,
.dark .modal.twofa-setup .modal-body h4,
.dark #modalAjax.twofa-setup .modal-body h2,
.dark #modalAjax.twofa-setup .modal-body h3,
.dark #modalAjax.twofa-setup .modal-body h4 {
    color: #ffffff;
}

/* 2FA Selection Card (Step 1) */
#modalAjax .radio,
#modalAjaxBody .radio,
.modal.twofa-setup .radio,
.twofa-module-card {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 1.25rem 0 !important;
    padding: 1.125rem 1.25rem !important;
    background: transparent !important;
    border: 1.5px solid var(--tz-primary, #2563eb) !important;
    border-radius: 12px !important;
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

[data-theme="dark"] #modalAjax .radio,
[data-theme="dark"] #modalAjaxBody .radio,
[data-theme="dark"] .modal.twofa-setup .radio,
[data-theme="dark"] .twofa-module-card,
.dark #modalAjax .radio,
.dark #modalAjaxBody .radio,
.dark .modal.twofa-setup .radio,
.dark .twofa-module-card {
    background: transparent !important;
    border-color: var(--tz-primary, #2563eb) !important;
}

#modalAjax .radio:hover,
#modalAjaxBody .radio:hover,
.modal.twofa-setup .radio:hover,
.twofa-module-card:hover {
    border-color: var(--tz-primary, #2563eb) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Strictly hide raw radio inputs */
#modalAjax .radio input[type="radio"],
#modalAjaxBody .radio input[type="radio"],
.modal.twofa-setup .radio input[type="radio"],
#modalAjax input[type="radio"][name="module"],
.twofa-module-card input[type="radio"] {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* Label flex layout */
#modalAjax .radio label,
#modalAjaxBody .radio label,
.modal.twofa-setup .radio label,
.twofa-module-card label {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    width: 100% !important;
    position: relative !important;
}

/* App Icon / Image Badge */
#modalAjax .radio img,
#modalAjaxBody .radio img,
.modal.twofa-setup .radio img,
.twofa-module-card img,
#modalAjaxBody img[src*="totp"],
#modalAjaxBody img[src*="security"] {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 6px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    float: none !important;
    display: inline-block !important;
}

[data-theme="dark"] #modalAjax .radio img,
[data-theme="dark"] #modalAjaxBody .radio img,
[data-theme="dark"] .modal.twofa-setup .radio img,
[data-theme="dark"] .twofa-module-card img,
.dark #modalAjax .radio img,
.dark #modalAjaxBody .radio img,
.dark .modal.twofa-setup .radio img,
.dark .twofa-module-card img {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Title & Description */
#modalAjax .radio strong,
#modalAjaxBody .radio strong,
.modal.twofa-setup .radio strong,
.twofa-module-card strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
}

[data-theme="dark"] #modalAjax .radio strong,
[data-theme="dark"] #modalAjaxBody .radio strong,
[data-theme="dark"] .modal.twofa-setup .radio strong,
[data-theme="dark"] .twofa-module-card strong,
.dark #modalAjax .radio strong,
.dark #modalAjaxBody .radio strong,
.dark .modal.twofa-setup .radio strong,
.dark .twofa-module-card strong {
    color: #f8fafc !important;
}

/* Right-side Checkmark Indicator Badge - single indicator handled via HTML, avoid duplicate */
#modalAjax .radio::after,
#modalAjaxBody .radio::after,
.modal.twofa-setup .radio::after,
.twofa-module-card.is-selected::after,
.twofa-module-card::after {
    content: none !important;
    display: none !important;
}

/* 2FA QR Code & Verification (Step 2) */
#modalAjax .twofa-qr-container,
#modalAjax .modal-body img[src*="data:image"],
#modalAjax .modal-body img[src*="qr"],
#modalAjax .modal-body img[src*="chart"],
#modalAjax .modal-body img[src*="google"],
.modal.twofa-setup .twofa-qr-container,
.modal.twofa-setup .modal-body img[src*="data:image"],
.modal.twofa-setup .modal-body img[src*="qr"],
.modal.twofa-setup .modal-body img[src*="chart"],
.modal.twofa-setup .modal-body img[src*="google"] {
    display: block !important;
    margin: 1rem auto !important;
    padding: 0.625rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    max-width: 180px !important;
    height: auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] #modalAjax .twofa-qr-container,
[data-theme="dark"] #modalAjax .modal-body img[src*="data:image"],
[data-theme="dark"] #modalAjax .modal-body img[src*="qr"],
[data-theme="dark"] #modalAjax .modal-body img[src*="chart"],
[data-theme="dark"] #modalAjax .modal-body img[src*="google"],
.dark #modalAjax .twofa-qr-container,
.dark #modalAjax .modal-body img[src*="data:image"],
.dark #modalAjax .modal-body img[src*="qr"],
.dark #modalAjax .modal-body img[src*="chart"],
.dark #modalAjax .modal-body img[src*="google"] {
    background: #ffffff !important;
    border-color: #334155 !important;
}

#modalAjax .twofa-manual-key-box,
.modal.twofa-setup .twofa-manual-key-box {
    margin: 1rem 0 !important;
    padding: 0.75rem 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    text-align: left !important;
    font-family: inherit !important;
}

[data-theme="dark"] #modalAjax .twofa-manual-key-box,
.dark #modalAjax .twofa-manual-key-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

#modalAjax .modal-body form,
.modal.twofa-setup .modal-body form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 0 0 !important;
}

/* Material Input Styling inside 2FA Modal */
#modalAjax .modal-body .tz-material-group,
.modal.twofa-setup .modal-body .tz-material-group {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0.75rem auto !important;
    font-family: inherit !important;
}

#modalAjax .modal-body .tz-material-input,
.modal.twofa-setup .modal-body .tz-material-input {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border: var(--tz-input-border-width, 1px) solid var(--tz-border, #cbd5e1) !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    background-color: var(--tz-surface, #ffffff) !important;
    color: var(--tz-text-heading, #0f172a) !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

[data-theme="dark"] #modalAjax .modal-body .tz-material-input,
.dark #modalAjax .modal-body .tz-material-input {
    background-color: var(--tz-surface, #1e293b) !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

#modalAjax .modal-body .tz-material-input:focus,
.modal.twofa-setup .modal-body .tz-material-input:focus {
    border-color: var(--tz-primary, #2563eb) !important;
    box-shadow: none !important;
    outline: none !important;
}

#modalAjax .modal-body .tz-material-label,
.modal.twofa-setup .modal-body .tz-material-label {
    font-family: inherit !important;
    background-color: var(--tz-surface, #ffffff) !important;
}

[data-theme="dark"] #modalAjax .modal-body .tz-material-label,
.dark #modalAjax .modal-body .tz-material-label {
    background-color: var(--tz-surface, #1e293b) !important;
}

#modalAjax .modal-body input[type="submit"],
#modalAjax .modal-body button[type="submit"],
#modalAjax .modal-body .btn-primary,
#modalAjax input[value*="Get Started"],
#modalAjax input[value*="Submit"],
#modalAjax input[value*="Verify"],
.modal.twofa-setup .modal-body form input[type="submit"],
.modal.twofa-setup .modal-body form button[type="submit"],
.modal.twofa-setup .modal-body form .btn-primary,
.modal.twofa-setup .modal-body input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background-color: var(--tz-primary, #2563eb) !important;
    border: 1px solid var(--tz-primary, #2563eb) !important;
    color: #ffffff !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0.5rem 0 0 0 !important;
    box-shadow: none !important;
}

#modalAjax .modal-body input[type="submit"]:hover,
#modalAjax .modal-body button[type="submit"]:hover,
#modalAjax .modal-body .btn-primary:hover,
.modal.twofa-setup .modal-body form input[type="submit"]:hover,
.modal.twofa-setup .modal-body form button[type="submit"]:hover,
.modal.twofa-setup .modal-body form .btn-primary:hover,
.modal.twofa-setup .modal-body input[type="submit"]:hover {
    background-color: var(--tz-primary-dark, #1d4ed8) !important;
    border-color: var(--tz-primary-dark, #1d4ed8) !important;
    box-shadow: none !important;
}

.modal.twofa-setup .modal-footer,
#modalAjax.twofa-setup .modal-footer {
    padding: 12px 24px;
    background-color: var(--tz-surface, #ffffff);
    border-top: 1px solid var(--tz-border-subtle, #f1f5f9);
}

[data-theme="dark"] .modal.twofa-setup .modal-footer,
[data-theme="dark"] #modalAjax.twofa-setup .modal-footer,
.dark .modal.twofa-setup .modal-footer,
.dark #modalAjax.twofa-setup .modal-footer {
    background-color: #0b1120;
    border-color: #1e293b;
}

.modal.twofa-setup .text-center,
#modalAjax.twofa-setup .text-center {
    text-align: center;
}

/* Fullpage loading overlay */
#fullpage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullpage-overlay.hidden,
#fullpage-overlay.w-hidden {
    display: none !important;
}

#fullpage-overlay .inner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #fullpage-overlay .inner-wrapper,
.dark #fullpage-overlay .inner-wrapper {
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #f8fafc;
}

/* ==========================================================================
   Product Details & Service Management UI Engine
   ========================================================================== */

/* MarketConnect & Custom Sidebar Panels */
.tz-service-sidebar img,
.tz-service-sidebar [id*="MarketConnect"] img,
.tz-service-sidebar .text-center img {
    max-width: 80px !important;
    max-height: 46px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0.5rem auto 0.625rem auto !important;
    display: block !important;
    transition: transform 0.2s ease-in-out;
}

.tz-service-sidebar a:hover img {
    transform: scale(1.04);
}

.tz-service-sidebar .text-center a:not(.tz-promo-cta-btn):not([class*="tz-promo"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0.25rem 0.5rem;
}

.tz-service-sidebar .text-center a:not(.tz-promo-cta-btn):not([class*="tz-promo"]) span {
    display: block !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    color: var(--tz-text-secondary, #64748b) !important;
    font-weight: 400 !important;
    margin-top: 0.25rem !important;
}

[data-theme="dark"] .tz-service-sidebar .text-center a:not(.tz-promo-cta-btn):not([class*="tz-promo"]) span,
.dark .tz-service-sidebar .text-center a:not(.tz-promo-cta-btn):not([class*="tz-promo"]) span {
    color: #94a3b8 !important;
}

/* MarketConnect Recommended For You Slider (Hidden) */
.promo-container,
#promotions-slider,
.tz-hook-output:has(.promo-container),
.tz-hook-output:has(#promotions-slider) {
    display: none !important;
}

#promotions-slider .promo-sitebuilder_trial,
#promotions-slider .promo-threesixtymonitoring_lite,
#promotions-slider .promo-socialbee,
#promotions-slider [class*="promo-"] {
    border-radius: 0.75rem !important;
}

/* Shake Animation for Invalid Password & Code Inputs */
@keyframes tzShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-5px); }
    30%, 60%, 90% { transform: translateX(5px); }
}

.animate-shake {
    animation: tzShake 0.45s cubic-bezier(.36,.07,.19,.97) both !important;
}

/* =========================================================================
   Two-Factor Authentication Challenge Form Styling
   ========================================================================= */
.twofa-challenge-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.twofa-challenge-container form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.twofa-challenge-container input[type="text"],
.twofa-challenge-container input[type="password"],
.twofa-challenge-container input[type="number"],
.twofa-challenge-container .form-control {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 46px !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

[data-theme="dark"] .twofa-challenge-container input[type="text"],
[data-theme="dark"] .twofa-challenge-container input[type="password"],
[data-theme="dark"] .twofa-challenge-container input[type="number"],
[data-theme="dark"] .twofa-challenge-container .form-control,
.dark .twofa-challenge-container input[type="text"],
.dark .twofa-challenge-container input[type="password"],
.dark .twofa-challenge-container input[type="number"],
.dark .twofa-challenge-container .form-control {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.twofa-challenge-container input[type="text"]:focus,
.twofa-challenge-container input[type="password"]:focus,
.twofa-challenge-container input[type="number"]:focus,
.twofa-challenge-container .form-control:focus {
    border-color: var(--tz-primary, #2563eb) !important;
    box-shadow: none !important;
    outline: none !important;
}

.twofa-challenge-container input[type="submit"],
.twofa-challenge-container button[type="submit"],
.twofa-challenge-container .btn,
.twofa-challenge-container .btn-primary {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: var(--tz-input-radius, 5px) !important;
    background-color: var(--tz-primary, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 0.75rem !important;
    height: auto !important;
    min-height: 44px !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}

.twofa-challenge-container input[type="submit"]:hover,
.twofa-challenge-container button[type="submit"]:hover,
.twofa-challenge-container .btn:hover,
.twofa-challenge-container .btn-primary:hover {
    background-color: var(--tz-primary-hover, #1d4ed8) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    color: #ffffff !important;
}








