/**
 * JobDarbar.com — Enterprise Design System
 * Bootstrap 5.3 + custom tokens | WCAG 2.1 AA | Dark mode | RTL-ready
 */

/* ─── Design Tokens ─── */
:root {
    --jd-primary: #1E5EFF;
    --jd-primary-hover: #1849CC;
    --jd-primary-subtle: #EBF1FF;
    --jd-secondary: #22C55E;
    --jd-secondary-subtle: #ECFDF3;
    --jd-accent: #F59E0B;
    --jd-accent-subtle: #FFFBEB;
    --jd-danger: #EF4444;
    --jd-success: #22C55E;
    --jd-warning: #F59E0B;
    --jd-info: #3B82F6;

    --jd-white: #FFFFFF;
    --jd-gray-50: #F8FAFC;
    --jd-gray-100: #F1F5F9;
    --jd-gray-200: #E2E8F0;
    --jd-gray-300: #CBD5E1;
    --jd-gray-400: #94A3B8;
    --jd-gray-500: #64748B;
    --jd-gray-600: #475569;
    --jd-gray-700: #334155;
    --jd-gray-800: #1E293B;
    --jd-gray-900: #0F172A;

    --jd-radius-sm: 8px;
    --jd-radius-md: 12px;
    --jd-radius-lg: 16px;
    --jd-radius-xl: 20px;

    --jd-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --jd-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --jd-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --jd-shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.16);

    --jd-transition: 200ms ease;
    --jd-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --jd-font-heading: 'Poppins', 'Inter', sans-serif;

    --jd-sidebar-width: 280px;
    --jd-header-height: 64px;

    /* Bootstrap overrides */
    --bs-primary: var(--jd-primary);
    --bs-primary-rgb: 30, 94, 255;
    --bs-success: var(--jd-secondary);
    --bs-success-rgb: 34, 197, 94;
    --bs-warning: var(--jd-accent);
    --bs-border-radius: var(--jd-radius-sm);
    --bs-body-font-family: var(--jd-font-body);
    --bs-body-bg: var(--jd-gray-50);
    --bs-body-color: var(--jd-gray-800);
    --bs-link-color: var(--jd-primary);
    --bs-link-hover-color: var(--jd-primary-hover);
}

[data-bs-theme="dark"] {
    --jd-primary-subtle: #1a2744;
    --jd-secondary-subtle: #14291f;
    --jd-accent-subtle: #2d2410;
    --bs-body-bg: var(--jd-gray-900);
    --bs-body-color: var(--jd-gray-100);
    --bs-border-color: var(--jd-gray-700);
}

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--jd-font-body);
    -webkit-font-smoothing: antialiased;
    background-color: var(--bs-body-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--jd-font-heading);
    font-weight: 600;
    color: var(--jd-gray-900);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: var(--jd-gray-50);
}

/* Focus — WCAG visible focus */
:focus-visible {
    outline: 2px solid var(--jd-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--jd-primary);
    color: white;
    border-radius: var(--jd-radius-sm);
    text-decoration: none;
    transition: top var(--jd-transition);
}

.skip-link:focus {
    top: 16px;
}

/* ─── Buttons ─── */
.btn {
    border-radius: var(--jd-radius-sm);
    font-weight: 500;
    transition: all var(--jd-transition);
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--jd-primary);
    border-color: var(--jd-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--jd-primary-hover);
    border-color: var(--jd-primary-hover);
}

.btn-secondary-brand {
    background-color: var(--jd-secondary);
    border-color: var(--jd-secondary);
    color: white;
}

.btn-accent {
    background-color: var(--jd-accent);
    border-color: var(--jd-accent);
    color: var(--jd-gray-900);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* ─── Forms ─── */
.form-control,
.form-select {
    border-radius: var(--jd-radius-sm);
    border-color: var(--jd-gray-300);
    padding: 0.625rem 0.875rem;
    transition: border-color var(--jd-transition), box-shadow var(--jd-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jd-primary);
    box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.15);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--jd-gray-700);
    margin-bottom: 0.375rem;
}

[data-bs-theme="dark"] .form-label {
    color: var(--jd-gray-300);
}

.jd-search-input {
    position: relative;
}

.jd-search-input .form-control {
    padding-left: 2.5rem;
}

.jd-search-input .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jd-gray-400);
    pointer-events: none;
}

/* ─── Cards ─── */
.jd-card {
    background: var(--jd-white);
    border: 1px solid var(--jd-gray-200);
    border-radius: var(--jd-radius-md);
    box-shadow: var(--jd-shadow-sm);
    transition: box-shadow var(--jd-transition), transform var(--jd-transition);
}

[data-bs-theme="dark"] .jd-card {
    background: var(--jd-gray-800);
    border-color: var(--jd-gray-700);
}

.jd-card:hover.jd-card--interactive {
    box-shadow: var(--jd-shadow-md);
    transform: translateY(-2px);
}

.jd-card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jd-gray-200);
    font-weight: 600;
}

[data-bs-theme="dark"] .jd-card__header {
    border-color: var(--jd-gray-700);
}

.jd-card__body {
    padding: 1.25rem;
}

.jd-card__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--jd-gray-200);
    background: var(--jd-gray-50);
    border-radius: 0 0 var(--jd-radius-md) var(--jd-radius-md);
}

[data-bs-theme="dark"] .jd-card__footer {
    border-color: var(--jd-gray-700);
    background: var(--jd-gray-900);
}

/* ─── Job Card ─── */
.job-card {
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-gray-200);
    background: var(--jd-white);
    transition: transform var(--jd-transition), box-shadow var(--jd-transition);
    overflow: hidden;
}

[data-bs-theme="dark"] .job-card {
    background: var(--jd-gray-800);
    border-color: var(--jd-gray-700);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jd-shadow-lg);
}

.job-card__logo {
    width: 48px;
    height: 48px;
    border-radius: var(--jd-radius-sm);
    background: var(--jd-primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.job-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.job-card__title a {
    color: inherit;
    text-decoration: none;
}

.job-card__title a:hover {
    color: var(--jd-primary);
}

.job-card__meta {
    font-size: 0.8125rem;
    color: var(--jd-gray-500);
}

.job-card__salary {
    color: var(--jd-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.job-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--jd-gray-100);
}

[data-bs-theme="dark"] .job-card__actions {
    border-color: var(--jd-gray-700);
}

/* ─── Company Card ─── */
.company-card {
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-gray-200);
    transition: all var(--jd-transition);
}

.company-card:hover {
    border-color: var(--jd-primary);
    box-shadow: var(--jd-shadow-md);
}

.company-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--jd-radius-md);
    background: var(--jd-primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ─── KPI / Stat Cards ─── */
.dashboard-stat-card,
.jd-kpi-card {
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-gray-200);
    background: var(--jd-white);
    box-shadow: var(--jd-shadow-sm);
    padding: 1.25rem;
    height: 100%;
}

[data-bs-theme="dark"] .dashboard-stat-card,
[data-bs-theme="dark"] .jd-kpi-card {
    background: var(--jd-gray-800);
    border-color: var(--jd-gray-700);
}

.jd-kpi-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--jd-font-heading);
    line-height: 1.2;
}

.jd-kpi-card__label {
    font-size: 0.8125rem;
    color: var(--jd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--jd-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon--primary { background: var(--jd-primary-subtle); color: var(--jd-primary); }
.stat-icon--success { background: var(--jd-secondary-subtle); color: var(--jd-secondary); }
.stat-icon--warning { background: var(--jd-accent-subtle); color: var(--jd-accent); }
.stat-icon--info { background: #EFF6FF; color: var(--jd-info); }

/* ─── Hero ─── */
.hero-section {
    background: linear-gradient(135deg, #1E5EFF 0%, #3B82F6 45%, #6366F1 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.search-card {
    border-radius: var(--jd-radius-lg);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .search-card {
    background: rgba(30, 41, 59, 0.95);
}

/* ─── Public Header ─── */
.jd-header {
    height: var(--jd-header-height);
    background: var(--jd-white);
    border-bottom: 1px solid var(--jd-gray-200);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow var(--jd-transition);
}

.jd-header.is-scrolled {
    box-shadow: var(--jd-shadow-md);
}

[data-bs-theme="dark"] .jd-header {
    background: var(--jd-gray-900);
    border-color: var(--jd-gray-700);
}

.jd-brand {
    font-family: var(--jd-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--jd-primary) !important;
    text-decoration: none;
}

/* Brand logo */
.jd-logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.jd-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.jd-logo--header img {
    height: 40px;
    max-height: 40px;
}

.jd-logo--sidebar img {
    height: 34px;
    max-height: 34px;
}

.jd-logo--auth img {
    height: 48px;
    max-height: 48px;
}

.jd-logo--footer img {
    height: 52px;
    max-height: 52px;
}

.jd-logo--hero img {
    height: 64px;
    max-height: 64px;
}

.jd-logo--on-dark {
    background: #ffffff;
    border-radius: var(--jd-radius-sm);
    padding: 0.375rem 0.625rem;
    box-shadow: var(--jd-shadow-sm);
}

.jd-sidebar__brand .jd-logo--on-dark {
    padding: 0.5rem 0.75rem;
    border-radius: var(--jd-radius-md);
}

.jd-nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--jd-gray-600);
    padding: 0.5rem 0.75rem;
    border-radius: var(--jd-radius-sm);
    transition: color var(--jd-transition), background var(--jd-transition);
}

.jd-nav-link:hover,
.jd-nav-link.active {
    color: var(--jd-primary);
    background: var(--jd-primary-subtle);
}

/* Mega menu */
.jd-mega-menu {
    border: 1px solid var(--jd-gray-200);
    border-radius: var(--jd-radius-md);
    box-shadow: var(--jd-shadow-lg);
    margin-top: 0.5rem;
    min-width: 0;
    width: max-content;
    max-width: min(680px, calc(100vw - 2rem));
    overflow: hidden;
    background: var(--jd-white);
}

[data-bs-theme="dark"] .jd-mega-menu {
    background: var(--jd-gray-800);
    border-color: var(--jd-gray-700);
}

.jd-mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 0;
    padding: 1.25rem 0;
}

.jd-mega-menu__col {
    padding: 0 1.25rem;
    min-width: 0;
    border-right: 1px solid var(--jd-gray-200);
}

[data-bs-theme="dark"] .jd-mega-menu__col {
    border-color: var(--jd-gray-700);
}

.jd-mega-menu__col:last-child {
    border-right: none;
}

.jd-mega-menu__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jd-gray-500);
    margin: 0 0 0.75rem;
    padding: 0 0.5rem;
}

.jd-mega-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jd-mega-menu__link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--jd-radius-sm);
    color: var(--jd-gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--jd-transition), color var(--jd-transition);
}

[data-bs-theme="dark"] .jd-mega-menu__link {
    color: var(--jd-gray-200);
}

.jd-mega-menu__link:hover,
.jd-mega-menu__link:focus {
    background: var(--jd-primary-subtle);
    color: var(--jd-primary);
}

@media (max-width: 575.98px) {
    .jd-mega-menu {
        width: 100%;
        max-width: 100%;
    }

    .jd-mega-menu__inner {
        grid-template-columns: 1fr;
        padding: 0.75rem 0;
    }

    .jd-mega-menu__col {
        border-right: none;
        border-bottom: 1px solid var(--jd-gray-200);
        padding: 0.75rem 1rem;
    }

    .jd-mega-menu__col:last-child {
        border-bottom: none;
    }

    .jd-mega-menu__link {
        white-space: normal;
    }
}

/* ─── Panel Layout ─── */
.jd-panel {
    display: flex;
    min-height: 100vh;
    background: var(--jd-gray-50);
}

[data-bs-theme="dark"] .jd-panel {
    background: var(--jd-gray-900);
}

.jd-sidebar {
    width: var(--jd-sidebar-width);
    background: var(--jd-gray-900);
    color: var(--jd-gray-300);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform var(--jd-transition);
    z-index: 1040;
}

.jd-sidebar__brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--jd-gray-800);
}

.jd-sidebar__nav {
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    color: var(--jd-gray-400);
    border-radius: var(--jd-radius-sm);
    padding: 0.625rem 1rem;
    margin-bottom: 2px;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--jd-transition);
}

.sidebar-nav .nav-link:hover {
    color: var(--jd-white);
    background: var(--jd-gray-800);
}

.sidebar-nav .nav-link.active {
    background: var(--jd-primary);
    color: var(--jd-white);
}

.jd-panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.jd-topbar {
    height: var(--jd-header-height);
    background: var(--jd-white);
    border-bottom: 1px solid var(--jd-gray-200);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

[data-bs-theme="dark"] .jd-topbar {
    background: var(--jd-gray-800);
    border-color: var(--jd-gray-700);
}

.jd-panel-content {
    padding: 1.5rem;
    flex: 1;
}

@media (max-width: 991.98px) {
    .jd-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

    .jd-sidebar.is-open {
        transform: translateX(0);
    }

    .jd-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1035;
    }

    .jd-sidebar-overlay.is-visible {
        display: block;
    }
}

/* ─── Breadcrumb ─── */
.jd-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.jd-breadcrumb .breadcrumb-item a {
    color: var(--jd-gray-500);
    text-decoration: none;
}

.jd-breadcrumb .breadcrumb-item a:hover {
    color: var(--jd-primary);
}

/* ─── Page Header ─── */
.jd-page-header {
    margin-bottom: 1.5rem;
}

.jd-page-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.jd-page-header__subtitle {
    color: var(--jd-gray-500);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ─── Empty State ─── */
.jd-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.jd-empty-state__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--jd-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--jd-gray-400);
}

[data-bs-theme="dark"] .jd-empty-state__icon {
    background: var(--jd-gray-800);
}

/* ─── Skeleton ─── */
.jd-skeleton {
    background: linear-gradient(90deg, var(--jd-gray-200) 25%, var(--jd-gray-100) 50%, var(--jd-gray-200) 75%);
    background-size: 200% 100%;
    animation: jd-shimmer 1.5s infinite;
    border-radius: var(--jd-radius-sm);
}

[data-bs-theme="dark"] .jd-skeleton {
    background: linear-gradient(90deg, var(--jd-gray-700) 25%, var(--jd-gray-600) 50%, var(--jd-gray-700) 75%);
    background-size: 200% 100%;
}

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

/* ─── Toast ─── */
.jd-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

/* ─── Footer ─── */
.jd-footer {
    background: var(--jd-gray-900);
    color: var(--jd-gray-400);
    padding-top: 4rem;
}

.jd-footer a {
    color: var(--jd-gray-400);
    text-decoration: none;
    transition: color var(--jd-transition);
}

.jd-footer a:hover {
    color: var(--jd-white);
}

/* ─── Category Card ─── */
.category-card {
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-gray-200);
    transition: all var(--jd-transition);
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--jd-primary);
    box-shadow: var(--jd-shadow-md);
}

/* ─── Glass / Testimonial ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-gray-200);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--jd-gray-700);
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-strength-bar {
    height: 8px;
    border-radius: 4px;
}

/* ─── Badges ─── */
.jd-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
}

.jd-badge--featured {
    background: var(--jd-accent-subtle);
    color: #B45309;
}

/* ─── Pricing Card ─── */
.jd-pricing-card {
    border-radius: var(--jd-radius-lg);
    border: 2px solid var(--jd-gray-200);
    padding: 2rem;
    text-align: center;
    transition: all var(--jd-transition);
}

.jd-pricing-card--popular {
    border-color: var(--jd-primary);
    box-shadow: var(--jd-shadow-lg);
    position: relative;
}

.jd-pricing-card--popular::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jd-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 999px;
}

/* ─── Tables ─── */
.jd-table {
    font-size: 0.9375rem;
}

.jd-table thead th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jd-gray-500);
    border-bottom-width: 1px;
    background: var(--jd-gray-50);
}

[data-bs-theme="dark"] .jd-table thead th {
    background: var(--jd-gray-800);
}

/* ─── Auth Layout ─── */
.jd-auth-layout {
    min-height: 100vh;
    display: flex;
}

.jd-auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.jd-auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #1E5EFF, #6366F1);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

@media (min-width: 992px) {
    .jd-auth-branding {
        display: flex;
    }
}

/* ─── RTL Support ─── */
[dir="rtl"] .jd-search-input .form-control {
    padding-left: 0.875rem;
    padding-right: 2.5rem;
}

[dir="rtl"] .jd-search-input .search-icon {
    left: auto;
    right: 0.875rem;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Lazy images ─── */
img[loading="lazy"] {
    background: var(--jd-gray-100);
}
