/* ========================================
   Mar3ol Real Estate Marketing Office
   Next-Gen Modern Stylesheet
   ======================================== */

/* Tajawal font loaded via local vendor */

:root {
    /* Layout Variables */
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Core Palette Base */
    --brand-primary: #3b82f6;      /* Blue 500 */
    --brand-secondary: #0f172a;    /* Slate 900 */
    --brand-accent: #6366f1;       /* Indigo 500 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;

    /* Light Theme Surface Colors */
    --surface-body: #f8fafc;       /* Slate 50 */
    --surface-card: #ffffff;
    --surface-hover: #f1f5f9;      /* Slate 100 */
    --surface-border: #e2e8f0;     /* Slate 200 */

    /* Text Colors */
    --text-primary: #1e293b;       /* Slate 800 */
    --text-secondary: #475569;     /* Slate 600 */
    --text-muted: #94a3b8;         /* Slate 400 */

    /* Sidebar Light Mode */
    --sidebar-bg: var(--surface-card);
    --sidebar-border: var(--surface-border);
    --sidebar-text: var(--text-secondary);
    --sidebar-text-active: var(--brand-primary);
    --sidebar-bg-active: #eff6ff;  /* Blue 50 */
    --sidebar-header: var(--text-muted);

    /* Shadows Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 15px -5px rgba(15, 23, 42, 0.02);
}

/* Base Body */
body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    background-color: var(--surface-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 0;
}

button,
input,
optgroup,
select,
textarea,
.wrapper,
.dropdown-menu,
.tooltip,
.popover,
.dataTables_wrapper {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* Layout Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Modern Sidebar */
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-inline-end: 1px solid var(--sidebar-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        transform: translateX(100%);
    }
    html[dir="ltr"] .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--surface-hover);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}
.sidebar-brand i { 
    color: var(--brand-primary); 
    font-size: 1.5rem;
}

.sidebar-nav {
    padding: 1rem 0.5rem;
    list-style: none;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--surface-border);
    border-radius: 4px;
}

.sidebar-header-text {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sidebar-header);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.2rem 0.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
}
.sidebar-link i {
    font-size: 1.15rem;
    margin-inline-end: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.sidebar-link:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}
.sidebar-link:hover i {
    transform: scale(1.1);
    color: var(--brand-primary);
}

.sidebar-item.active .sidebar-link {
    background-color: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    font-weight: 700;
}
.sidebar-item.active .sidebar-link i {
    opacity: 1;
    color: var(--sidebar-text-active);
}

/* Main Content & Glassmorphic Topbar */
.main-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.85); /* Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 0 1.5rem;
    z-index: 1030;
    position: sticky;
    top: 0;
}

.content-wrapper {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Modern Cards */
.card {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 1.5rem;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--surface-hover);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}
.card-body {
    padding: 1.5rem;
}

/* Buttons Modernization */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* Typography & Badges */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.bg-success { background-color: rgba(16, 185, 129, 0.15) !important; color: var(--success) !important; }
.bg-warning { background-color: rgba(245, 158, 11, 0.15) !important; color: var(--warning) !important; }
.bg-danger { background-color: rgba(239, 68, 68, 0.15) !important; color: var(--danger) !important; }
.bg-primary { background-color: rgba(59, 130, 246, 0.15) !important; color: var(--brand-primary) !important; }
.bg-info { background-color: rgba(14, 165, 233, 0.15) !important; color: var(--info) !important; }

/* Table Improvements — Direction-aware alignment */
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--surface-border);
}
.table th,
.table td,
table.dataTable thead th,
table.dataTable tbody td {
    /* text-align follows document direction: right for RTL, left for LTR */
    text-align: start !important;
}
.table th {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    background-color: var(--surface-hover);
    border-bottom: 2px solid var(--surface-border);
}
.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-primary);
}
.table-hover tbody tr:hover {
    background-color: var(--surface-hover);
}
/* DataTables sorting icons: keep them on the correct side */
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    inset-inline-end: 0.5rem;
    inset-inline-start: auto;
    left: auto;
    right: auto;
}

/* Forms */
.form-control, .form-select {
    padding: 0.6rem 1rem;
    border-color: var(--surface-border);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: var(--surface-card);
    color: var(--text-primary);
}

html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .form-control,
html[dir="ltr"] .form-select {
    direction: ltr;
    text-align: left;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Profile Dropdown & Notifications */
.avatar-sm {
    width: 36px;
    height: 36px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Utilities */
.text-muted { color: var(--text-muted) !important; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--text-primary); }

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    :root {
        --surface-body: #fff;
        --surface-card: #fff;
        --text-primary: #000;
        --text-secondary: #333;
        --surface-border: #ddd;
    }

    /* Hide non-printable UI elements */
    .sidebar,
    .top-navbar,
    .sidebar-backdrop,
    .btn-print-hide,
    .no-print,
    .alert-dismissible .btn-close,
    footer.footer {
        display: none !important;
    }

    /* Full-width content */
    .wrapper {
        display: block !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .content-wrapper {
        padding: 0 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .card-header {
        background-color: #f5f5f5 !important;
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
    }

    /* Badge print-friendly */
    .badge {
        border: 1px solid currentColor !important;
        background: transparent !important;
    }

    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #333;
    }

    .print-header h2 {
        font-size: 18pt;
        margin: 0 0 4px;
    }

    .print-header p {
        margin: 0;
        color: #555;
        font-size: 10pt;
    }

    .table th {
        background-color: #eee !important;
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    @page {
        margin: 1.5cm;
        size: A4 portrait;
    }
}

/* Hidden except on print */
.print-header {
    display: none;
}
.print-only {
    display: none !important;
}
@media print {
    .print-only {
        display: block !important;
    }
}

/* ===========================================
   PUBLIC REAL ESTATE MARKETPLACE
   =========================================== */

.public-marketplace-body {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 22%),
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 20%),
        linear-gradient(180deg, #fcfffe 0%, #f4f8fc 100%);
    min-height: 100vh;
}

.public-shell {
    position: relative;
    overflow: hidden;
}

.public-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 1030;
}

.public-navbar {
    padding: 1rem 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
}

.public-brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.public-brand small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.public-brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #059669, #0f172a);
    box-shadow: 0 15px 30px -18px rgba(5, 150, 105, 0.8);
    font-size: 1.25rem;
}

.public-nav-links .nav-link {
    color: var(--text-secondary);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem 1rem;
}

.public-nav-links .nav-link.active,
.public-nav-links .nav-link:hover {
    color: #047857;
    background: rgba(5, 150, 105, 0.08);
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-icon-link {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.95rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    font-weight: 800;
}

.public-toggler {
    border: 0;
    box-shadow: none !important;
}

.btn-public-outline,
.btn-public-primary,
.btn-public-dark {
    border-radius: 1rem;
    padding: 0.8rem 1.25rem;
    font-weight: 800;
}

.btn-public-outline {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.btn-public-outline:hover {
    border-color: rgba(5, 150, 105, 0.35);
    color: #047857;
}

.btn-public-primary {
    color: #fff;
    background: linear-gradient(135deg, #059669, #0891b2);
    border: 0;
    box-shadow: 0 18px 35px -20px rgba(8, 145, 178, 0.9);
}

.btn-public-primary:hover,
.btn-public-dark:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-public-dark {
    color: #fff;
    background: #0f172a;
    border: 0;
}

.public-hero,
.public-listing-hero {
    position: relative;
    padding: 4.5rem 0 2.5rem;
}

.public-listing-hero {
    padding-bottom: 1.5rem;
}

.public-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.8;
}

.public-orb-one {
    width: 18rem;
    height: 18rem;
    background: rgba(16, 185, 129, 0.25);
    top: 1.5rem;
    inset-inline-start: -4rem;
}

.public-orb-two {
    width: 20rem;
    height: 20rem;
    background: rgba(14, 165, 233, 0.18);
    bottom: 0;
    inset-inline-end: -6rem;
}

.public-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
    font-size: 0.92rem;
    font-weight: 800;
}

.public-chip-soft {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.public-hero-title,
.public-page-title {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.04;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.public-page-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.public-hero-text,
.public-page-text {
    max-width: 46rem;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

.public-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.6rem;
    box-shadow: 0 30px 60px -42px rgba(15, 23, 42, 0.6);
    max-width: 46rem;
}

.public-search-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    padding: 0 1rem;
}

.public-search-input i {
    color: #64748b;
    font-size: 1rem;
}

.public-search-input input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 1rem 0;
    outline: none;
    color: var(--text-primary);
}

.public-stats-grid,
.public-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.public-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.public-stat-card,
.public-mini-stats > div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.35rem;
    padding: 1rem 1.1rem;
}

.public-stat-card strong,
.public-mini-stats strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
}

.public-stat-card span,
.public-mini-stats span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.public-showcase-card,
.public-panel-card,
.public-filter-card,
.public-property-card,
.public-cta-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.75rem;
    box-shadow: 0 35px 60px -48px rgba(15, 23, 42, 0.85);
}

.public-showcase-card {
    overflow: hidden;
}

.public-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.3rem 0;
    font-weight: 700;
}

.public-showcase-top a {
    color: #047857;
    text-decoration: none;
}

.public-showcase-visual,
.public-property-media {
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.public-showcase-visual img,
.public-property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-showcase-body {
    padding: 1.3rem;
}

.public-showcase-body h2,
.public-property-body h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 0.7rem 0;
}

.public-showcase-body p,
.public-property-location,
.public-property-desc {
    color: var(--text-secondary);
}

.public-showcase-body p i,
.public-property-location i {
    color: #0ea5e9;
    margin-inline-end: 0.3rem;
}

.public-feature-meta,
.public-property-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.public-feature-meta span,
.public-property-meta span {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.8rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.public-feature-meta i,
.public-property-meta i {
    color: #059669;
    margin-inline-end: 0.35rem;
}

.public-section {
    padding: 2.25rem 0;
}

.public-section-tight {
    padding-top: 1rem;
}

.public-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.public-section-head p,
.public-panel-card p,
.public-map-card p,
.public-cta-card p {
    color: var(--text-secondary);
    margin: 0.45rem 0 0;
    line-height: 1.8;
}

.public-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.public-type-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.3rem;
    padding: 1rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.public-type-card:hover,
.public-property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.22);
    box-shadow: 0 22px 35px -28px rgba(15, 23, 42, 0.7);
}

.public-type-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(5, 150, 105, 0.10);
    color: #059669;
    font-size: 1.15rem;
}

.public-panel-card,
.public-filter-card {
    padding: 1.4rem;
}

.public-city-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.public-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 700;
}

.public-city-pill small {
    color: #64748b;
}

.public-map-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #0f766e 58%, #0891b2);
}

.public-map-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -50px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    filter: blur(8px);
}

.public-map-card h2,
.public-map-card h5,
.public-map-card p {
    position: relative;
    color: #fff;
}

.public-map-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.public-property-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.public-card-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.public-image-fallback,
.public-empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

.public-empty-state {
    color: var(--text-secondary);
    min-height: 260px;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.public-image-fallback i,
.public-empty-state i {
    font-size: 2.5rem;
}

.public-property-body {
    padding: 1.25rem;
}

.public-property-location {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.public-property-desc {
    min-height: 3.4rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.6rem;
}

.public-pager-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.public-pager-wrap .pagination {
    gap: 0.5rem;
    flex-wrap: wrap;
}

html[dir="rtl"] .public-pager-wrap .pagination {
    flex-direction: row-reverse;
}

.public-pager-wrap .page-link {
    min-width: 2.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.45);
}

.public-pager-wrap .active > .page-link,
.public-pager-wrap .page-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #059669, #0891b2);
    border-color: transparent;
}

.public-footer {
    padding: 1.25rem 0 2rem;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.9rem;
}

.public-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--text-secondary);
}

.public-footer-inner p {
    margin: 0.25rem 0 0;
}

@media (min-width: 768px) {
    .public-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .public-type-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .public-nav-actions {
        padding-top: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .public-search-panel,
    .public-cta-card,
    .public-section-head,
    .public-footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .public-feature-meta,
    .public-property-meta,
    .public-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .public-hero,
    .public-listing-hero {
        padding-top: 3rem;
    }

    .public-search-panel,
    .public-stats-grid,
    .public-mini-stats,
    .public-feature-meta,
    .public-property-meta {
        grid-template-columns: 1fr;
    }

    .public-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   SIDEBAR ENHANCEMENTS
   =========================================== */

.sidebar-brand-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-brand-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-brand-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-close-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
}

.sidebar-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-inline-end: 0.65rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s;
}

.sidebar-item.active .sidebar-link-icon {
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
}

.sidebar-item.active .sidebar-link {
    position: relative;
}

.sidebar-item.active .sidebar-link::before {
    content: '';
    position: absolute;
    inset-block: 0.3rem;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 99px;
    background: var(--sidebar-text-active);
}

.sidebar-footer {
    border-top: 1px solid var(--surface-border);
    padding: 0.85rem 0.75rem;
    margin-top: auto;
}

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

.sidebar-user-avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-user-info span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sidebar-logout-btn {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ===========================================
   TOPBAR ENHANCEMENTS
   =========================================== */

.topbar-icon-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.topbar-icon-btn:hover {
    background: var(--surface-hover);
    border-color: var(--surface-border);
    color: var(--text-primary);
}

.topbar-badge {
    position: absolute;
    top: 0.2rem;
    inset-inline-end: 0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.topbar-lang-btn {
    height: 2.3rem;
    min-width: 2.3rem;
    padding: 0 0.65rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.topbar-lang-btn:hover {
    background: var(--surface-hover);
    border-color: var(--surface-border);
    color: var(--text-primary);
}

.topbar-divider {
    width: 1px;
    height: 1.5rem;
    background: var(--surface-border);
    margin: 0 0.25rem;
}

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.topbar-user-btn:hover {
    background: var(--surface-hover);
    border-color: var(--surface-border);
    color: var(--text-primary);
}

.topbar-avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: capitalize;
    line-height: 1.2;
}

.topbar-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.topbar-dropdown {
    border-radius: 0.9rem;
    border: 1px solid var(--surface-border);
    overflow: hidden;
    padding: 0;
}

.topbar-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.topbar-notif-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.topbar-notif-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.topbar-notif-empty p {
    margin: 0;
    font-size: 0.8rem;
}

.topbar-dropdown .dropdown-item {
    border-radius: 0.5rem;
    margin: 0.1rem 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
}

/* Soft buttons */
.btn-soft-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 0.55rem;
}

.btn-soft-primary:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.btn-soft-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 0.55rem;
}

.btn-soft-warning:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

/* footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 0.85rem 1.5rem;
    background: var(--surface-card);
}

/* ===========================================
   AUTH LANDING
   =========================================== */

.auth-landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(12, 148, 126, 0.10), transparent 18%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 20%),
        linear-gradient(180deg, #edf4fb 0%, #f6f9fc 100%);
}

.auth-landing-shell {
    min-height: 100vh;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
}

.auth-landing-container {
    max-width: 1380px;
}

.auth-landing-grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.97fr) minmax(380px, 1.03fr);
    gap: 0;
    border-radius: 1.45rem;
    overflow: hidden;
    box-shadow: 0 28px 90px -42px rgba(15, 23, 42, 0.42);
}

.auth-panel {
    min-height: 700px;
    position: relative;
}

.auth-form-panel {
    background: rgba(255, 255, 255, 0.96);
    padding: 1.75rem 1.85rem;
    display: flex;
    flex-direction: column;
}

.auth-visual-panel {
    padding: 2rem 2.2rem;
    background: linear-gradient(180deg, #f0f6fd 0%, #eef5fb 100%);
}

html[dir="rtl"] .auth-form-panel {
    order: 2;
}

html[dir="rtl"] .auth-visual-panel {
    order: 1;
}

html[dir="ltr"] .auth-form-panel {
    order: 1;
}

html[dir="ltr"] .auth-visual-panel {
    order: 2;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #0f2442;
}

.auth-brand strong {
    display: block;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.05;
}

.auth-brand small {
    display: block;
    margin-top: 0.28rem;
    color: #5b667b;
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-brand-mark {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b7a66, #16a085);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 18px 35px -20px rgba(11, 122, 102, 0.6);
}

.auth-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-lang-switch,
.auth-theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: 0 12px 30px -25px rgba(15, 23, 42, 0.28);
}

.auth-lang-switch {
    display: inline-flex;
    align-items: center;
    border-radius: 0.9rem;
    padding: 0.32rem;
}

.auth-lang-pill {
    padding: 0.46rem 0.76rem;
    border-radius: 0.68rem;
    color: #526072;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-lang-pill.active {
    color: #0d967f;
    background: rgba(13, 150, 127, 0.10);
}

.auth-lang-divider {
    width: 1px;
    height: 1.6rem;
    background: rgba(203, 213, 225, 0.95);
}

.auth-theme-toggle {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #55637a;
    font-size: 0.9rem;
    text-decoration: none;
}

.auth-form-wrap {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 2.35rem 0;
}

.auth-form-head {
    margin-bottom: 1.2rem;
}

.auth-form-head h1 {
    font-size: clamp(2.1rem, 2.65vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 0.7rem;
    color: #0f2442;
    font-weight: 900;
}

.auth-form-head p {
    color: #66748b;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 34rem;
}

.auth-alert {
    border-radius: 1rem;
    padding: 0.82rem 0.92rem;
    margin-bottom: 0.95rem;
}

.auth-form {
    display: grid;
    gap: 0.82rem;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.05rem;
    border-radius: 1rem;
    border: 1px solid #d7dfeb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 30px -30px rgba(15, 23, 42, 0.45);
}

.auth-input:focus-within {
    border-color: #14a38b;
    box-shadow: 0 0 0 5px rgba(20, 163, 139, 0.12);
}

.auth-input-icon,
.auth-password-toggle {
    width: 3.55rem;
    height: 100%;
    border: 0;
    background: transparent;
    color: #6f7d91;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.auth-input input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #102540;
    padding: 0.95rem 0.75rem;
    direction: inherit;
    text-align: start;
}

.auth-input input::placeholder {
    color: #98a5b6;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #43536c;
    font-weight: 600;
    font-size: 0.84rem;
}

.auth-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #0d967f;
}

.auth-meta-link {
    color: #1f7cff;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 700;
}

.auth-form-note {
    margin: 0.05rem 0 0.1rem;
    color: #66748b;
    font-size: 0.82rem;
    line-height: 1.65;
}

.auth-primary-btn,
.auth-secondary-btn {
    width: 100%;
    min-height: 4.05rem;
    border-radius: 0.9rem;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-primary-btn {
    background: linear-gradient(135deg, #0b7a66, #11a08c);
    color: #fff;
    border: 0;
    box-shadow: 0 20px 35px -25px rgba(17, 160, 140, 0.7);
}

.auth-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.auth-secondary-btn {
    background: transparent;
    color: #0b9b84;
    border: 2px solid rgba(11, 155, 132, 0.7);
}

.auth-secondary-btn:hover {
    color: #0b7a66;
    border-color: #0b7a66;
}

.auth-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.95);
}

.auth-visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(241, 247, 254, 0.78), rgba(241, 247, 254, 0.5)),
        linear-gradient(140deg, rgba(255,255,255,0.35), rgba(255,255,255,0.04));
    z-index: 1;
}

.auth-visual-grid {
    position: absolute;
    inset-inline-end: 1.6rem;
    top: 0;
    width: 11.5rem;
    height: 14.5rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    clip-path: polygon(58% 0, 100% 18%, 100% 100%, 0 100%, 0 16%);
    opacity: 0.5;
    z-index: 1;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
}

.auth-trust-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 35px -25px rgba(15, 23, 42, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.auth-trust-badge span {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #12a287, #0b7a66);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.auth-visual-copy h2 {
    font-size: clamp(1.85rem, 2.25vw, 2.65rem);
    color: #102540;
    line-height: 1.3;
    margin-bottom: 0.7rem;
    max-width: 26rem;
    text-wrap: balance;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.auth-heading-green {
    color: #0b9b84;
    font-weight: 800;
}

.auth-visual-copy p {
    max-width: 24rem;
    color: #5d6d83;
    font-size: 0.96rem;
    line-height: 1.75;
    margin: 0 auto 1.15rem;
    text-wrap: balance;
}

.auth-security-card {
    width: min(100%, 20.5rem);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.88rem 0.95rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.4);
    align-self: center;
    margin-bottom: 0.78rem;
}

.auth-security-icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 1.05rem;
    background: rgba(11, 155, 132, 0.10);
    color: #0b9b84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.auth-security-card strong {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #102540;
    font-size: 0.92rem;
    margin-bottom: 0.22rem;
}

.auth-check-badge {
    color: #0b9b84;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-security-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.77rem;
    line-height: 1.55;
}

.auth-stats-card {
    width: min(100%, 33rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.45rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.35rem;
    box-shadow: 0 20px 45px -35px rgba(15, 23, 42, 0.4);
    padding: 0.65rem 0.25rem;
}

.auth-stat {
    padding: 0.48rem 0.55rem;
    border-inline-end: 1px solid rgba(203, 213, 225, 0.75);
}

.auth-stat:last-child {
    border-inline-end: 0;
}

.auth-stat i {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 0.2rem;
}

.auth-stat-blue { color: #0e8fe0; }
.auth-stat-green { color: #0b9b84; }
.auth-stat-indigo { color: #6366f1; }

.auth-stat strong {
    display: block;
    color: #102540;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.auth-stat span {
    display: block;
    color: #102540;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.08rem;
}

.auth-stat small {
    display: block;
    color: #7a8da5;
    font-size: 0.64rem;
    font-weight: 500;
}

.auth-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 0.6rem;
}

.auth-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a2d48;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.79rem;
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.35);
}

.auth-textarea-wrap {
    display: grid;
    gap: 0.38rem;
}

.auth-textarea-label {
    color: #43536c;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-textarea-wrap textarea {
    width: 100%;
    min-height: 7rem;
    border-radius: 0.9rem;
    border: 1px solid #d7dfeb;
    background: #fff;
    color: #102540;
    padding: 0.78rem 0.92rem;
    font-size: 0.89rem;
    outline: none;
    resize: vertical;
    box-shadow: 0 14px 30px -30px rgba(15, 23, 42, 0.45);
}

.auth-textarea-wrap textarea:focus {
    border-color: #14a38b;
    box-shadow: 0 0 0 5px rgba(20, 163, 139, 0.12);
}

.auth-recovery-grid {
    grid-template-columns: minmax(360px, 0.9fr) minmax(380px, 1.1fr);
}

.auth-recovery-wrap {
    max-width: 450px;
}

.auth-recovery-contact {
    justify-content: flex-start;
}

@media (max-width: 1399.98px) {
    .auth-panel {
        min-height: 700px;
    }

    .auth-brand strong {
        font-size: 1.44rem;
    }

    .auth-brand small {
        font-size: 0.88rem;
    }
}

@media (max-width: 1199.98px) {
    .auth-landing-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        min-height: auto;
    }

    .auth-visual-panel {
        min-height: 390px;
    }

    .auth-form-panel,
    .auth-visual-panel {
        order: initial !important;
    }

    .auth-recovery-grid {
        grid-template-columns: 1fr;
    }

    .auth-recovery-contact {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .auth-landing-shell {
        padding: 1rem 0;
    }

    .auth-form-panel,
    .auth-visual-panel {
        padding: 1.35rem;
    }

    .auth-topbar,
    .auth-form-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-form-wrap {
        margin-top: 1.6rem;
    }

    .auth-brand {
        align-items: flex-start;
    }

    .auth-brand strong {
        font-size: 1.55rem;
    }

    .auth-brand small {
        font-size: 1rem;
    }

    .auth-lang-switch {
        justify-content: center;
    }

    .auth-theme-toggle {
        align-self: center;
    }

    .auth-visual-copy p {
        font-size: 0.92rem;
    }

    .auth-security-card,
    .auth-stats-card {
        width: 100%;
    }

    .auth-stats-card {
        grid-template-columns: 1fr;
    }

    .auth-stat {
        border-inline-end: 0;
        border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    }

    .auth-stat:last-child {
        border-bottom: 0;
    }
}
