/* =============================================
   Ezibuynsell - Classifieds Platform Styles
   ============================================= */

:root,
[data-bs-theme="light"] {
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --primary-light: #e8effc;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;

    /* Semantic tokens (light) */
    --body-bg: #f9fafb;
    --body-color: #111827;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
    --input-color: #111827;
    --surface-1: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --hover-bg: rgba(0,0,0,0.04);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --nav-bg: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --footer-bg: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] {
    --primary: #6390f0;
    --primary-dark: #4a78e8;
    --primary-light: #1e2a4a;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --success: #34d399;
    --danger: #f87171;
    --dark: #f1f5f9;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);

    /* Semantic tokens (dark) */
    --body-bg: #0f172a;
    --body-color: #e2e8f0;
    --card-bg: #1e293b;
    --card-border: #334155;
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-color: #e2e8f0;
    --surface-1: #1e293b;
    --surface-2: #334155;
    --surface-3: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --hover-bg: rgba(255,255,255,0.05);
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(51, 65, 85, 0.5);
    --nav-bg: linear-gradient(135deg, #0b1120 0%, #162033 100%);
    --footer-bg: linear-gradient(135deg, #0b1120 0%, #162033 100%);

    color-scheme: dark;
}

/* ── Dark theme component overrides ── */
[data-bs-theme="dark"] body {
    background: var(--body-bg);
    color: var(--body-color);
}

[data-bs-theme="dark"] .navbar {
    background: var(--nav-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .acst-card,
[data-bs-theme="dark"] .listing-card,
[data-bs-theme="dark"] .listing-card-tile,
[data-bs-theme="dark"] .listing-card-list {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--body-color);
}

[data-bs-theme="dark"] .card .card-body,
[data-bs-theme="dark"] .card-body {
    color: var(--body-color);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: var(--input-bg);
    border-color: var(--primary);
    color: var(--input-color);
    box-shadow: 0 0 0 3px rgba(99,144,240,0.2);
}

[data-bs-theme="dark"] .form-check-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: var(--shadow-lg);
}
[data-bs-theme="dark"] .dropdown-item {
    color: var(--body-color);
}
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background: var(--hover-bg);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .modal-content {
    background: var(--card-bg);
    border-color: var(--card-border);
    color: var(--body-color);
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .offcanvas {
    background: var(--card-bg);
    color: var(--body-color);
}

[data-bs-theme="dark"] .site-footer {
    background: var(--footer-bg) !important;
    border-top: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .bg-light {
    background: var(--surface-2) !important;
}
[data-bs-theme="dark"] .bg-white {
    background: var(--card-bg) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}
[data-bs-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}
[data-bs-theme="dark"] .border {
    border-color: var(--border-color) !important;
}
[data-bs-theme="dark"] .border-bottom {
    border-color: var(--border-color) !important;
}
[data-bs-theme="dark"] .border-top {
    border-color: var(--border-color) !important;
}
[data-bs-theme="dark"] hr {
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Glass cards dark mode */
[data-bs-theme="dark"] .vd-glass-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}
[data-bs-theme="dark"] .vd-glass-card::before {
    background: linear-gradient(135deg, rgba(99,144,240,0.04), transparent, rgba(6,182,212,0.04));
}

/* Admin panel cards */
[data-bs-theme="dark"] .acst-card-body {
    background: var(--card-bg);
}
[data-bs-theme="dark"] .acst-card-head {
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .acst-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.05));
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .acst-tabs {
    background: var(--surface-1);
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .acst-tab {
    color: var(--text-secondary);
}
[data-bs-theme="dark"] .acst-tab-active {
    background: var(--surface-2);
    color: var(--primary);
}
[data-bs-theme="dark"] .acst-field input,
[data-bs-theme="dark"] .acst-field textarea,
[data-bs-theme="dark"] .acst-field select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}
[data-bs-theme="dark"] .acst-field label {
    color: var(--text-secondary);
}
[data-bs-theme="dark"] .acst-stat {
    background: var(--surface-1);
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .acst-save-bar {
    background: var(--surface-1);
    border-color: var(--border-color);
}

/* Listing cards */
[data-bs-theme="dark"] .listing-card .card-body h6 a,
[data-bs-theme="dark"] .listing-card .card-body h6 {
    color: var(--text-primary);
}
[data-bs-theme="dark"] .listing-card .card-img-top {
    border-bottom: 1px solid var(--border-color);
}
[data-bs-theme="dark"] .lcl-body h6 a,
[data-bs-theme="dark"] .lcl-body h6 {
    color: var(--text-primary);
}
[data-bs-theme="dark"] .listing-card-list {
    border-color: var(--card-border);
}

/* Profile / seller pages */
[data-bs-theme="dark"] .nc-card,
[data-bs-theme="dark"] .prof-hero,
[data-bs-theme="dark"] .ct-form-card,
[data-bs-theme="dark"] .ct-info-panel {
    background: var(--card-bg);
    color: var(--body-color);
    border-color: var(--card-border);
}

/* Badges and pills */
[data-bs-theme="dark"] .badge.bg-light {
    background: var(--surface-2) !important;
    color: var(--text-primary) !important;
}

/* Tables */
[data-bs-theme="dark"] .table {
    --bs-table-bg: var(--card-bg);
    --bs-table-color: var(--body-color);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: var(--hover-bg);
    --bs-table-striped-bg: var(--surface-2);
}

/* Notifications */
[data-bs-theme="dark"] .notif-dropdown {
    background: var(--card-bg);
    border-color: var(--card-border);
}
[data-bs-theme="dark"] .notif-dropdown-item:hover {
    background: var(--hover-bg);
}
[data-bs-theme="dark"] .notif-dropdown-item.unread {
    background: rgba(99,144,240,0.06);
}

/* Messages */
[data-bs-theme="dark"] .msg-hub,
[data-bs-theme="dark"] .msg-sidebar,
[data-bs-theme="dark"] .msg-main {
    background: var(--card-bg);
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .msg-conv-item:hover {
    background: var(--hover-bg);
}
[data-bs-theme="dark"] .msg-conv-item.active {
    background: rgba(99,144,240,0.1);
}
[data-bs-theme="dark"] .msg-bubble-received {
    background: var(--surface-2);
    color: var(--body-color);
}

/* Search bar on hero */
[data-bs-theme="dark"] .hero-slide .search-form .form-control {
    background: var(--input-bg);
    color: var(--input-color);
}

/* Follow cards */
[data-bs-theme="dark"] .follow-user-card {
    background: var(--card-bg);
    border-color: var(--card-border);
}
[data-bs-theme="dark"] .follow-user-card:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}
[data-bs-theme="dark"] .follow-user-name {
    color: var(--text-primary);
}

/* Cookie consent */
.cookie-consent-bar {
    background: rgba(17,24,39,0.97);
    backdrop-filter: blur(10px);
}
[data-bs-theme="dark"] .cookie-consent-bar {
    background: rgba(15,23,42,0.98);
}

/* Pagination */
[data-bs-theme="dark"] .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--body-color);
}
[data-bs-theme="dark"] .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Accordion */
[data-bs-theme="dark"] .accordion-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .accordion-button {
    background: var(--card-bg);
    color: var(--body-color);
}
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--surface-2);
    color: var(--primary);
}

/* Alert overrides for dark */
[data-bs-theme="dark"] .alert-light {
    background: var(--surface-2);
    color: var(--body-color);
    border-color: var(--border-color);
}

/* Breadcrumb */
[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--text-secondary);
}
[data-bs-theme="dark"] .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Smooth transitions on theme switch */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    padding: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: scale(1.08);
}
.theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.35s ease;
}
.theme-toggle:active i {
    transform: rotate(30deg);
}

/* Theme dropdown */
.theme-dropdown {
    min-width: 160px;
    padding: 6px;
    border-radius: 12px;
}
.theme-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
}
.theme-dropdown .dropdown-item.active,
.theme-dropdown .dropdown-item.active:hover {
    background: var(--primary);
    color: #fff;
}
.theme-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* SA Sidebar dark mode */
[data-bs-theme="dark"] .sa-sidebar {
    background: rgba(22,22,37,0.8) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
[data-bs-theme="dark"] .sa-sidebar-header {
    background: rgba(30,30,46,0.6);
    border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .sa-sidebar-footer {
    background: rgba(30,30,46,0.5);
    border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .sa-sidebar-logout:hover {
    background: rgba(239,68,68,0.12) !important;
}
[data-bs-theme="dark"] .sa-sidebar-group {
    border-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .sa-sidebar-link:hover {
    background: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .sa-sidebar-link.active {
    background: rgba(99,102,241,0.15);
}
[data-bs-theme="dark"] .sa-sidebar-link-sm:hover {
    background: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* List-group / nav-tabs dark */
[data-bs-theme="dark"] .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--body-color);
}
[data-bs-theme="dark"] .nav-tabs {
    border-color: var(--border-color);
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background: var(--card-bg);
    border-color: var(--border-color) var(--border-color) var(--card-bg);
    color: var(--primary);
}
[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background: var(--primary);
}

/* Tooltip / Popover dark */
[data-bs-theme="dark"] .tooltip-inner {
    background: var(--surface-3);
}
[data-bs-theme="dark"] .popover {
    background: var(--card-bg);
    border-color: var(--card-border);
}

/* Input group dark */
[data-bs-theme="dark"] .input-group-text {
    background: var(--surface-2);
    border-color: var(--input-border);
    color: var(--text-secondary);
}

/* Hero search bar in dark */
[data-bs-theme="dark"] .hero-slide .search-form {
    background: var(--card-bg);
}

/* Lightbox dark mode */
[data-bs-theme="dark"] .vd-lightbox {
    background: rgba(0,0,0,0.95);
}

/* ── Global Safety Net ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow everywhere */
h1, h2, h3, h4, h5, h6,
p, li, td, th, a, span, label, small, strong {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure tables don't blow out containers */
table {
    max-width: 100%;
}

/* Tap-target minimum for mobile (44px) */
button, a, input[type="submit"], input[type="button"],
.btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent horizontal overflow from pre/code blocks */
pre, code {
    overflow-x: auto;
    max-width: 100%;
}

main {
    flex: 1;
}

/* ---- Navbar ---- */
.navbar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    z-index: 1030;
}

/* Transparent navbar that overlays the hero */
.navbar.navbar-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.navbar-transparent.scrolled {
    position: fixed;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    transition: var(--transition);
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.navbar .form-control {
    border-radius: 50px;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    color: #fff;
}

.navbar .btn-light {
    border-radius: 0 50px 50px 0;
    border: none;
    padding: 0.5rem 0.85rem;
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    border: none;
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ── Glassy Post Ad Button ── */
.btn-post-ad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    letter-spacing: -0.01em;
}
.btn-post-ad:hover {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}
.btn-post-ad:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.btn-post-ad i {
    font-size: 0.9rem;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---- Cards ---- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow);
}

/* ---- Listing Cards ---- */
.listing-card {
    height: 100%;
    cursor: pointer;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}

.listing-card .placeholder-img {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2.5rem;
}

.listing-card .card-body {
    padding: 1rem 1.15rem;
}

.listing-card .listing-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.listing-card .listing-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-decoration: none;
}

.listing-card .listing-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.listing-card .badge-condition {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
}

.listing-card .listing-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.listing-card .listing-fav:hover,
.listing-card .listing-fav.active {
    color: var(--danger);
    background: #fff;
}

.listing-card .badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   ── View Toggle + List View ──
   ═══════════════════════════════════════════════════════════ */

/* ── Listing Card Link Wrapper ── */
.listing-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.listing-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ── Toggle Buttons ── */
.view-toggle {
    display: inline-flex;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.view-toggle-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: var(--gray-600);
    background: rgba(0,0,0,0.04);
}

.view-toggle-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Tile/List Switching ── */
/* In tile mode (default): show tile card, hide list card */
.listing-grid[data-view="tile"] .listing-card-tile { display: flex; flex-direction: column; }
.listing-grid[data-view="tile"] .listing-card-list { display: none; }

/* In list mode: hide tile card, show list card, make cols full-width */
.listing-grid[data-view="list"] .listing-card-tile { display: none; }
.listing-grid[data-view="list"] .listing-card-list { display: flex; }
.listing-grid[data-view="list"] .listing-grid-item {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ── List Card ── */
.listing-card-list {
    display: none;
    flex-direction: row;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.listing-card-list:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.lcl-image {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    overflow: hidden;
    background: var(--gray-100);
}

.lcl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card-list:hover .lcl-image img {
    transform: scale(1.05);
}

.lcl-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-300);
    font-size: 2rem;
}

.lcl-badge-featured {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    z-index: 2;
}

.lcl-badge-views {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    z-index: 2;
}

.lcl-body {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.lcl-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.lcl-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.lcl-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.lcl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.lcl-meta-item {
    font-size: 0.78rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.lcl-meta-item i {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.lcl-actions {
    display: flex;
    align-items: center;
    padding: 0 14px;
    flex-shrink: 0;
}

.lcl-actions .listing-fav {
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lcl-actions .listing-fav:hover,
.lcl-actions .listing-fav.active {
    color: var(--danger);
    border-color: #fecaca;
    background: #fef2f2;
}

/* ── List View Mobile Responsive ── */
@media (max-width: 767.98px) {
    .lcl-image {
        flex: 0 0 120px;
        width: 120px;
        height: 110px;
    }

    .lcl-body {
        padding: 10px 12px;
    }

    .lcl-top {
        flex-direction: column;
        gap: 2px;
    }

    .lcl-title {
        font-size: 0.85rem;
    }

    .lcl-price {
        font-size: 0.95rem;
    }

    .lcl-meta {
        gap: 4px 10px;
    }

    .lcl-meta-item {
        font-size: 0.72rem;
    }

    .lcl-actions {
        padding: 0 10px;
    }

    .lcl-actions .listing-fav {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 575.98px) {
    .lcl-image {
        flex: 0 0 100px;
        width: 100px;
        height: 95px;
    }

    .lcl-meta-item:nth-child(n+3) {
        display: none;
    }
}

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    margin-top: 0;
}

/* When navbar is transparent (hero page), remove any gap above hero */
.navbar.navbar-transparent + *,
.navbar.navbar-transparent ~ script + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-slider .carousel-inner {
    overflow: hidden;
}

.hero-slide {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 5rem 0 3rem;
}

/* Slide backgrounds are loaded dynamically from the database via inline styles */

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(30,58,95,0.75) 50%, rgba(26,86,219,0.6) 100%);
    z-index: 1;
}

.z-2 { z-index: 2; }

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    opacity: 0.9;
    font-weight: 300;
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    display: inline-flex !important;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-slide .search-form {
    max-width: 600px;
}

.hero-slide .search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-slide .search-form .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--dark);
}

.hero-slide .search-form .form-control::placeholder {
    color: var(--gray-500);
}

.hero-slide .search-form .form-control:focus {
    border: none;
    box-shadow: none;
    background: transparent;
    color: var(--dark);
}

.hero-slide .search-form .form-control:focus-visible {
    outline: none;
}

.hero-slide .btn-search {
    border-radius: 0 50px 50px 0;
    padding: 0.85rem 2rem;
    font-weight: 600;
    background: var(--accent);
    border: none;
    color: var(--dark);
}

.hero-slide .btn-search:hover {
    background: var(--accent-hover);
    color: var(--dark);
}

/* Carousel controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    background-size: 50%;
    backdrop-filter: blur(10px);
}

.hero-slider .carousel-indicators {
    margin-bottom: 1.25rem;
}

.hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background-color: transparent;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
    background-color: var(--accent);
    border-color: var(--accent);
    width: 30px;
    border-radius: 10px;
}

/* Slide animations */
.hero-slider .carousel-item {
    transition: transform 0.8s ease-in-out;
}

.hero-slide .badge,
.hero-slide .hero-title,
.hero-slide .hero-subtitle,
.hero-slide .search-form,
.hero-slide .btn-accent,
.hero-slide .hero-stats {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-item.active .hero-slide .badge { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.carousel-item.active .hero-slide .hero-title { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.carousel-item.active .hero-slide .hero-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.carousel-item.active .hero-slide .search-form { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.carousel-item.active .hero-slide .btn-accent { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.carousel-item.active .hero-slide .hero-stats { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* ---- Category Grid (Modern) ---- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f5;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.25s;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: transparent;
    text-decoration: none;
    color: var(--dark);
}

.cat-card:hover::before {
    opacity: 1;
}

.cat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.25s;
}

.cat-card:hover .cat-card-icon {
    transform: scale(1.1);
}

.cat-card-icon i {
    font-size: 1.4rem;
    color: #fff;
}

.cat-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #1f2937;
}

.cat-card-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
}

@media (max-width: 991.98px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 767.98px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card { padding: 16px 8px 12px; border-radius: 14px; }
    .cat-card-icon { width: 44px; height: 44px; border-radius: 12px; }
    .cat-card-icon i { font-size: 1.2rem; }
    .cat-card-name { font-size: 0.75rem; }
}

@media (max-width: 374px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dark mode categories */
[data-bs-theme="dark"] .cat-card {
    background: #1e1e2e;
    border-color: #2d2d3f;
}
[data-bs-theme="dark"] .cat-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .cat-card-name { color: #e5e5f0; }
[data-bs-theme="dark"] .cat-card-count { color: #6b6b80; }

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header a {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary);
}

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

/* ---- Auth Pages ---- */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-card h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.auth-card .subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   MODERN GALLERY – Listing Detail Page
   ═══════════════════════════════════════════════════════════ */
.gal {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1px solid #f0f2f5;
}

/* Stage (main image) */
.gal-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: default;
    background: #f1f5f9;
}
.gal-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a0a;
    transition: opacity .3s ease;
}

/* Prev / Next arrows on main image */
.gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    color: #1e293b;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    opacity: 0;
}
.gal-stage:hover .gal-arrow { opacity: 1; }
.gal-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.gal-arrow-prev { left: 14px; }
.gal-arrow-next { right: 14px; }

/* Zoom button */
.gal-zoom {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 5;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .95rem;
    cursor: pointer;
    transition: all .25s;
    opacity: 0;
}
.gal-stage:hover .gal-zoom { opacity: 1; }
.gal-zoom:hover { background: rgba(0,0,0,.7); transform: scale(1.08); }

/* Counter badge */
.gal-counter {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 5;
    padding: 5px 14px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    pointer-events: none;
}

/* Thumbnail strip */
.gal-thumbs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    background: #fff;
    position: relative;
}
.gal-thumbs-track {
    display: flex;
    gap: 6px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1;
}
.gal-thumbs-track::-webkit-scrollbar { display: none; }

.gal-thumbs-scroll {
    flex-shrink: 0;
    width: 30px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background: linear-gradient(90deg, rgba(255,255,255,.95), transparent);
    color: #94a3b8;
    font-size: .85rem;
    cursor: pointer;
    transition: color .15s;
    z-index: 2;
}
.gal-thumbs-scroll-right { background: linear-gradient(-90deg, rgba(255,255,255,.95), transparent); }
.gal-thumbs-scroll:hover { color: #6366f1; }

.gal-thumb {
    flex: 0 0 auto;
    width: 72px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: .5;
    transition: all .2s ease;
    position: relative;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: .85; transform: translateY(-2px); }
.gal-thumb.active {
    opacity: 1;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,.2);
}

.gal-empty {
    cursor: default;
    display: flex; align-items: center; justify-content: center;
    min-height: 350px;
    background: #f8fafc;
}
.gal-empty-content {
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem; color: #94a3b8;
}
.gal-empty-content i { font-size: 3.5rem; }
.gal-empty-content span { font-size: .95rem; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX – Fullscreen Image Viewer
   ═══════════════════════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 10;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all .25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lightbox-close:hover {
    background: rgba(255,255,255,.15);
    transform: rotate(90deg) scale(1.05);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all .25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lightbox-nav:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255,255,255,.06);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    transform: scale(0.92);
    opacity: 0;
    transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
    opacity: 1;
}
.lightbox-content img.lb-switching {
    transform: scale(0.95);
    opacity: 0;
}

/* Info bar below lightbox image */
.lightbox-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 10px 0;
    margin-top: 12px;
}
.lightbox-info-title {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
.lightbox-info-count {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    font-weight: 600;
    padding: 4px 14px;
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    letter-spacing: .05em;
}

.lightbox-thumbs-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    max-width: 80vw;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid rgba(255,255,255,.06);
}
.lightbox-thumbs-strip::-webkit-scrollbar { display: none; }

.lightbox-thumb {
    flex: 0 0 auto;
    width: 60px; height: 44px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: .4;
    border: 2.5px solid transparent;
    transition: all .2s ease;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: .7; }
.lightbox-thumb.active {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

/* ---- Legacy gallery classes (kept for backwards compat) ---- */
.gallery-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--gray-100);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   ── View Detail Page: Modern Glass Cards ──
   ═══════════════════════════════════════════════════════════ */

/* ── Base Glass Card ── */
.vd-glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vd-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vd-glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vd-glass-card:hover::before {
    opacity: 1;
}

.vd-glass-card-sm {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* ── Card Header ── */
.vd-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vd-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.vd-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.vd-icon-blue {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.vd-icon-purple {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.vd-icon-green {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.vd-icon-amber {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.vd-icon-red {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* ── Description ── */
.vd-description-text {
    white-space: pre-line;
    line-height: 1.8;
    color: var(--gray-600);
    font-size: 0.92rem;
}

/* ── Specifications Grid ── */
.vd-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.vd-spec-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.vd-spec-chip:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.vd-spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.vd-spec-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vd-spec-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.vd-spec-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mileage Unit Toggle ── */
.vd-spec-mileage {
    position: relative;
    cursor: default;
}

.vd-unit-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    transform: scale(0.8);
}

.vd-spec-mileage:hover .vd-unit-toggle {
    opacity: 1;
    transform: scale(1);
}

.vd-unit-toggle:hover {
    background: rgba(59, 130, 246, 0.18);
    transform: scale(1.1) !important;
}

/* ═══ Price Card ═══ */
.vd-price-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.vd-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.vd-price-card-top {
    padding: 1.5rem 1.5rem 1rem;
}

.vd-condition-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vd-condition-new {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.vd-condition-like_new {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: #0891b2;
}

.vd-condition-used {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #4b5563;
}

.vd-condition-for_parts {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.vd-featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.vd-price-display {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.vd-negotiable-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.vd-price-meta {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
}

.vd-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.vd-meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: var(--gray-50);
    color: var(--gray-400);
    flex-shrink: 0;
}

.vd-meta-item a:hover {
    color: var(--primary) !important;
}

/* ── Price Card Actions ── */
.vd-price-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vd-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
}

.vd-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vd-action-call {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.vd-action-call:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.vd-action-message {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.vd-action-message:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.vd-action-offer {
    background: #fff;
    color: #b45309;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.vd-action-offer:hover {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.vd-action-callback {
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.vd-action-callback:hover {
    background: #fff;
    color: var(--dark);
    border-color: var(--gray-300);
}

.vd-action-delete {
    background: #fff;
    color: var(--danger);
    border: 2px solid #fecaca;
}

.vd-action-delete:hover {
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.vd-offer-status {
    text-align: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vd-offer-pending { color: #b45309; background: #fffbeb; }
.vd-offer-accepted { color: #059669; background: #ecfdf5; }
.vd-offer-rejected { color: #dc2626; background: #fef2f2; }
.vd-offer-countered { color: #0891b2; background: #ecfeff; }

/* ═══ Share Buttons ═══ */
.vd-share-grid {
    display: flex;
    gap: 8px;
}

.vd-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.vd-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.vd-share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.vd-share-whatsapp:hover { color: #fff; }

.vd-share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
    color: #fff;
}

.vd-share-facebook:hover { color: #fff; }

.vd-share-x {
    background: linear-gradient(135deg, #333, #000);
    color: #fff;
}

.vd-share-x:hover { color: #fff; }

.vd-share-copy {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-600);
}

.vd-share-copy:hover { color: var(--dark); }

/* ═══ Favorite Button ═══ */
.vd-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid #fecaca;
    background: #fff;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vd-fav-btn:hover {
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.vd-fav-btn.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* ═══ Safety Tips Card ═══ */
.vd-safety-card {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.5), rgba(255, 251, 235, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.vd-safety-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.12);
}

.vd-safety-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.vd-safety-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.vd-safety-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vd-safety-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gray-600);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.vd-safety-list li:hover {
    background: rgba(255, 255, 255, 0.85);
}

.vd-safety-list li i {
    font-size: 0.8rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.vd-safety-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b45309;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vd-safety-link:hover {
    color: #92400e;
    gap: 8px;
}

/* ═══ Mobile Responsive for VD Cards ═══ */
@media (max-width: 767.98px) {
    .vd-glass-card {
        border-radius: 16px;
        padding: 1.25rem;
    }

    .vd-price-card {
        border-radius: 16px;
    }

    .vd-price-card-top {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .vd-price-actions {
        padding: 0 1.25rem 1.25rem;
    }

    .vd-price-display {
        font-size: 1.5rem;
    }

    .vd-specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .vd-spec-chip {
        padding: 8px 10px;
    }

    .vd-spec-icon {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .vd-action-btn {
        padding: 11px 16px;
        border-radius: 12px;
        font-size: 0.84rem;
    }
}

/* Legacy seller-card (kept for backwards compat) */
.seller-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* ── Modern Seller Card ── */
.seller-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.seller-card-modern:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Header gradient */
.seller-card-header {
    height: 72px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}
.seller-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 3px 10px;
    height: fit-content;
}
.seller-type-badge.seller-type-personal {
    background: rgba(255,255,255,.15);
}

/* Avatar */
.seller-card-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}
.seller-card-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    text-decoration: none;
    position: relative;
    transition: transform .2s ease;
}
.seller-card-avatar:hover {
    transform: scale(1.05);
}
.seller-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seller-avatar-placeholder {
    font-size: 1.75rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}
.seller-verified-tick {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* Body */
.seller-card-body {
    padding: 12px 20px 20px;
}

/* Rating */
.seller-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: #f59e0b;
}
.seller-rating-stars.muted {
    color: #d1d5db;
}
.seller-rating-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    margin-left: 6px;
}

/* Stats row */
.seller-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 14px 8px;
    margin-bottom: 16px;
}
.seller-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.seller-stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.seller-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-top: 2px;
}
.seller-stat-divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Info list */
.seller-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.seller-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #4b5563;
}
.seller-info-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
}
.seller-info-item.text-success i {
    color: #10b981;
}

/* Action buttons */
.seller-card-actions {
    display: flex;
    gap: 8px;
}
.seller-card-actions .btn {
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
}

/* ---- Messages ---- */
.message-list .message-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.message-list .message-item:hover {
    background: var(--gray-50);
}

.message-list .message-item.unread {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    max-width: 75%;
    font-size: 0.9rem;
}

.message-bubble.sent {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    background: var(--gray-100);
    color: var(--dark);
    border-bottom-left-radius: 4px;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    color: rgba(255,255,255,0.8);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ---- Badges ---- */
.badge-new { background: var(--success); color: #fff; }
.badge-like_new { background: #06b6d4; color: #fff; }
.badge-used { background: var(--gray-500); color: #fff; }
.badge-for_parts { background: var(--danger); color: #fff; }

/* ---- Utilities ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h5 {
    color: var(--gray-600);
    font-weight: 600;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- Dropdown fix ---- */
.dropdown-menu {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 460px;
        padding: 4.5rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        padding: 0.5rem 1rem;
        gap: 1rem !important;
    }

    .hero-stats .fs-4 {
        font-size: 1.1rem !important;
    }
    
    .listing-card .card-img-top,
    .listing-card .placeholder-img {
        height: 160px;
    }
    
    .gallery-main {
        height: 280px;
    }

    .gal-stage, .gallery-modern-main {
        aspect-ratio: 16 / 10;
    }

    .gal-thumb, .gallery-modern-thumb {
        width: 60px;
        height: 44px;
    }

    .gal-arrow { width: 36px; height: 36px; font-size: .95rem; opacity: 1; }
    .gal-arrow-prev { left: 8px; }
    .gal-arrow-next { right: 8px; }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-content img {
        max-height: 70vh;
        border-radius: 4px;
    }

    .lightbox-thumbs-strip {
        bottom: 12px;
        padding: 6px 8px;
        gap: 4px;
    }

    .lightbox-thumb {
        width: 44px;
        height: 34px;
        border-radius: 6px;
    }
    
    .auth-card {
        padding: 1.75rem;
        margin: 0 1rem;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }
}

/* ---- Image upload preview ---- */
.image-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-area:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.image-preview-item {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ---- Pagination ---- */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* ---- Listing View: Price Trend, Offers, Callback ---- */
#priceChartContainer {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

#priceStats .fw-bold {
    font-size: 0.95rem;
}

#showContactBtn {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#showContactBtn:hover {
    transform: scale(1.02);
}

.offer-quick-btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
}

/* ═══════════════════════════════════════════
   REGIONS PAGE - Modern Colorful Glassmorphism
   ═══════════════════════════════════════════ */

.rgn-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 25%, #f0f9ff 50%, #ede9fe 75%, #fdf2f8 100%);
    background-attachment: fixed;
    position: relative;
}

.rgn-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(700px circle at 15% 25%, rgba(99,102,241,0.08) 0%, transparent 60%),
        radial-gradient(500px circle at 80% 30%, rgba(236,72,153,0.06) 0%, transparent 60%),
        radial-gradient(600px circle at 50% 80%, rgba(6,182,212,0.06) 0%, transparent 60%),
        radial-gradient(400px circle at 90% 90%, rgba(245,158,11,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.rgn-page > *:not(style) { position: relative; z-index: 1; }

/* ── All-Regions Hero ── */
.rgn-hero {
    position: relative;
    padding: 3rem 0 2rem;
    overflow: hidden;
}

.rgn-hero-bg {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.rgn-hero-content {
    text-align: center;
    position: relative;
}

.rgn-hero-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.rgn-hero-ring {
    position: absolute;
    border-radius: 20px;
    border: 2px solid rgba(99,102,241,0.15);
    pointer-events: none;
}

.rgn-hero-ring-1 {
    inset: -10px;
    animation: rgnRingPulse 3s ease-in-out infinite;
}

.rgn-hero-ring-2 {
    inset: -22px;
    animation: rgnRingPulse 3s ease-in-out 0.5s infinite;
    opacity: 0.5;
}

@keyframes rgnRingPulse {
    0%,100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.04); }
}

.rgn-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.35rem;
    letter-spacing: -0.5px;
}

.rgn-hero-sub {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.rgn-hero-sub strong { color: #334155; }

.rgn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(99,102,241,0.08);
    font-weight: 600;
    color: #4f46e5;
    font-size: 0.82rem;
}

.rgn-hero-flag { font-size: 1rem; }

/* ── Region Cards Grid ── */
.rgn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.rgn-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.7);
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    animation: rgnCardIn 0.4s ease forwards;
    animation-delay: var(--rgn-delay, 0s);
    opacity: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

@keyframes rgnCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.rgn-card:hover {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px var(--rgn-c1, #6366f1) inset;
    color: #1e293b;
}

.rgn-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--rgn-c1), var(--rgn-c2));
    opacity: 0;
    transition: opacity 0.3s;
}

.rgn-card:hover .rgn-card-accent { opacity: 1; }

.rgn-card-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
}

.rgn-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--rgn-bg, rgba(99,102,241,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--rgn-c2, #818cf8);
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rgn-card:hover .rgn-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px var(--rgn-bg, rgba(99,102,241,0.2));
}

.rgn-card-info { flex: 1; min-width: 0; }

.rgn-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.rgn-card-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

.rgn-card-meta i { font-size: 0.6rem; margin-right: 2px; }

.rgn-card-right {
    text-align: center;
    min-width: 44px;
}

.rgn-card-count {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rgn-c1), var(--rgn-c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rgn-card-count-label {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.rgn-card-arrow {
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s;
}

.rgn-card:hover .rgn-card-arrow {
    color: var(--rgn-c2, #818cf8);
    transform: translateX(3px);
}

.rgn-card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.rgn-card:hover .rgn-card-shimmer { left: 150%; }

/* ── Single Region Hero ── */
.rgn-region-hero {
    position: relative;
    padding: 2rem 0 1.5rem;
    overflow: hidden;
}

.rgn-region-hero-bg {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.rgn-region-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.rgn-region-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.rgn-region-sub {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.rgn-region-divider {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 0.5rem;
}

.rgn-btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 20px rgba(59,130,246,0.25);
    transition: all 0.2s ease;
}

.rgn-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.35);
    color: #fff;
}

.rgn-section-title {
    color: #334155;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rgn-section-title i {
    color: #6366f1;
}

/* ── City Cards ── */
.rgn-city-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    text-decoration: none;
    color: #1e293b;
    transition: all 0.25s ease;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.rgn-city-card:hover {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    color: #1e293b;
}

.rgn-city-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--city-bg, rgba(99,102,241,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--city-c2, #818cf8);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.rgn-city-card:hover .rgn-city-icon-wrap {
    transform: scale(1.1);
}

.rgn-city-info { flex: 1; min-width: 0; }

.rgn-city-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rgn-city-count {
    font-size: 0.7rem;
    color: #94a3b8;
}

.rgn-city-arrow {
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.25s;
}

.rgn-city-card:hover .rgn-city-arrow {
    color: var(--city-c2, #818cf8);
    transform: translateX(3px);
}

.rgn-city-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.4s;
    pointer-events: none;
}

.rgn-city-card:hover .rgn-city-shimmer { left: 150%; }

/* ── Category Quick Links ── */
.rgn-cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.6);
    text-decoration: none;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rgn-cat-link i:first-child {
    color: var(--cat-c, #6366f1);
    font-size: 0.95rem;
}

.rgn-cat-link i:last-child {
    font-size: 0.65rem;
    color: #cbd5e1;
}

.rgn-cat-link:hover {
    background: rgba(255,255,255,0.8);
    color: #1e293b;
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.rgn-cat-link:hover i:last-child { color: var(--cat-c, #6366f1); }

/* ── Responsive ── */
@media (min-width: 768px) {
    .rgn-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .rgn-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .rgn-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767.98px) {
    .rgn-hero-title { font-size: 1.5rem; }
    .rgn-hero-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .rgn-grid { grid-template-columns: 1fr; }
    .rgn-region-title { font-size: 1.3rem; }
    .rgn-region-icon { width: 38px; height: 38px; font-size: 0.95rem; }
    .rgn-btn-glow { width: 100%; justify-content: center; }
}

/* Region section on homepage (Modern) */
.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rgn-card-home {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
}

.rgn-card-home:hover {
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--dark);
}

.rgn-card-home-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rgn-card-home-info {
    flex: 1;
    min-width: 0;
}

.rgn-card-home-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.rgn-card-home-count {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.rgn-card-home-arrow {
    font-size: 0.75rem;
    color: #d1d5db;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.rgn-card-home:hover .rgn-card-home-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

@media (max-width: 991.98px) {
    .region-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 374px) {
    .region-grid { grid-template-columns: 1fr; }
}

/* Dark mode regions */
[data-bs-theme="dark"] .rgn-card-home {
    background: #1e1e2e;
    border-color: #2d2d3f;
}
[data-bs-theme="dark"] .rgn-card-home:hover {
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .rgn-card-home-name { color: #e5e5f0; }
[data-bs-theme="dark"] .rgn-card-home-count { color: #6b6b80; }
[data-bs-theme="dark"] .rgn-card-home-arrow { color: #3d3d50; }

/* ---- Notifications ---- */
.notif-dropdown {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--gray-100) !important;
    padding: 0 !important;
    max-width: calc(100vw - 24px) !important;
    width: 380px;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    overflow: hidden;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
    border-bottom: 1px solid var(--gray-50);
}

.notif-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--dark);
}

.notif-dropdown-item.unread {
    background: rgba(26,86,219,0.04);
}

.notif-dropdown-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notif-dropdown-body {
    font-size: 0.78rem;
    color: var(--gray-500);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-dropdown-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Notification icons by type */
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-500);
}

.notif-icon-listing_view { background: #dbeafe; color: #2563eb; }
.notif-icon-message_received { background: #d1fae5; color: #059669; }
.notif-icon-listing_favorited { background: #fce7f3; color: #db2777; }
.notif-icon-listing_sold { background: #fef3c7; color: #d97706; }
.notif-icon-system { background: var(--gray-100); color: var(--gray-600); }

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS PAGE - Modern Glassmorphism
   ═══════════════════════════════════════════ */

.ntf-page {
    min-height: 80vh;
    background: linear-gradient(160deg, #f0f4ff 0%, #faf5ff 30%, #eff6ff 60%, #fdf2f8 100%);
    background-attachment: fixed;
}

/* ── Hero Header ── */
.ntf-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7);
}

.ntf-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ntf-hero-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}

.ntf-hero-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    animation: ntfBadgePulse 2s ease-in-out infinite;
}

@keyframes ntfBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ntf-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.ntf-hero-sub {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0.15rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ntf-unread-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: ntfDotPulse 1.5s ease-in-out infinite;
}

@keyframes ntfDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.ntf-hero-actions {
    display: flex;
    gap: 0.5rem;
}

/* Glass Buttons */
.ntf-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(26,86,219,0.15);
    background: rgba(26,86,219,0.06);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ntf-btn-glass:hover {
    background: rgba(26,86,219,0.12);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.12);
}

.ntf-btn-glass.ntf-btn-muted {
    background: rgba(107,114,128,0.06);
    color: var(--gray-500);
    border-color: rgba(107,114,128,0.12);
}

.ntf-btn-glass.ntf-btn-muted:hover {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border-color: rgba(239,68,68,0.15);
}

/* ── Filter Pills ── */
.ntf-filters {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.45);
    overflow-x: auto;
    scrollbar-width: none;
}

.ntf-filters::-webkit-scrollbar { display: none; }

.ntf-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ntf-filter-pill:hover {
    color: var(--gray-700);
    background: rgba(255,255,255,0.5);
}

.ntf-filter-pill.active {
    background: white;
    color: var(--primary);
    border-color: rgba(26,86,219,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ntf-filter-pill i {
    font-size: 0.7rem;
}

.ntf-filter-pill .bi-circle-fill {
    font-size: 0.4rem;
    color: var(--primary);
    vertical-align: middle;
}

.ntf-pill-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Date Group Labels ── */
.ntf-date-group {
    margin-bottom: 0.5rem;
}

.ntf-date-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ntf-date-label::before,
.ntf-date-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

.ntf-date-label span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ── Notification List ── */
.ntf-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ntf-item {
    position: relative;
    border-radius: 14px;
    background: rgba(255,255,255,0.48);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}

.ntf-item:hover {
    background: rgba(255,255,255,0.65);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.ntf-item.ntf-unread {
    background: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Left accent bar for unread */
.ntf-item-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.ntf-item-link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    padding-right: 2.5rem;
    text-decoration: none;
    color: var(--dark);
}

.ntf-item.ntf-unread .ntf-item-link {
    padding-left: calc(1.15rem + 3px);
}

/* Icon */
.ntf-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* Content */
.ntf-item-content {
    flex: 1;
    min-width: 0;
}

.ntf-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.ntf-item-title {
    font-weight: 600;
    font-size: 0.87rem;
    line-height: 1.35;
    color: var(--dark);
}

.ntf-item.ntf-unread .ntf-item-title {
    font-weight: 700;
}

.ntf-item-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.ntf-item-body {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.35;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntf-item-actor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 500;
}

.ntf-actor-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ntf-actor-default {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: var(--gray-400);
}

/* Unread dot */
.ntf-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(59,130,246,0.3);
}

/* Delete button */
.ntf-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.6);
}

.ntf-item:hover .ntf-item-delete {
    opacity: 1;
}

.ntf-item-delete:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

/* ── Empty State ── */
.ntf-empty {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.ntf-empty-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 26px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    font-size: 2.2rem;
    color: var(--gray-300);
}

.ntf-empty-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(26,86,219,0.08);
    animation: ntfRing 3s ease-in-out infinite;
}

.ntf-ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ntf-ring-2 { width: 160px; height: 160px; animation-delay: 1.5s; }

@keyframes ntfRing {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1); }
}

/* Keep old notif-icon classes for dropdown compatibility */
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .ntf-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 14px;
    }
    .ntf-hero-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
    .ntf-hero-title { font-size: 1.25rem; }
    .ntf-hero-actions { width: 100%; justify-content: flex-end; }
    .ntf-filters { border-radius: 10px; }
    .ntf-filter-pill { padding: 0.4rem 0.65rem; font-size: 0.72rem; }
    .ntf-item { border-radius: 12px; }
    .ntf-item-link { padding: 0.85rem 1rem; padding-right: 2rem; gap: 0.7rem; }
    .ntf-item-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.85rem; }
    .ntf-item-title { font-size: 0.82rem; }
    .ntf-item-body { font-size: 0.75rem; }
    .ntf-item-row { flex-direction: column; gap: 0; }
    .ntf-item-time { font-size: 0.65rem; }
    .ntf-item-actor { display: none; }
}

.notif-badge.pulse {
    animation: notifPulse 0.4s ease;
}

/* ---- Settings Page (Legacy compat) ---- */
.settings-sidebar {
    position: sticky;
    top: 80px;
    overflow: hidden;
}

.settings-nav {
    display: flex;
    flex-direction: column;
}

.settings-group {
    border-bottom: 6px solid var(--gray-50);
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.settings-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.settings-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
    font-weight: 600;
}

.settings-link i:first-child {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.settings-content {
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.settings-header h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.settings-form .form-floating > .form-control,
.settings-form .form-floating > .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
}

.settings-form .form-floating > .form-control:focus,
.settings-form .form-floating > .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.settings-form .form-floating > label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Avatar */
.settings-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    background: var(--dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #fff;
}

.avatar-edit:hover {
    background: var(--primary);
}

/* Toggle rows */
.settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.settings-toggle-row .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.settings-toggle-row .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Business badge */
.badge-business {
    background: linear-gradient(135deg, #1a56db, #7c3aed);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

.badge-verified {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .settings-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
}

/* =============================================
   MODERN PROFILE PAGE
   ============================================= */

/* ── Hero Section ── */
.prof-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--primary-dark) 100%);
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.prof-hero::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.05'%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") repeat;
    opacity: 0.4;
}

.prof-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

.prof-hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    position: relative;
    flex-shrink: 0;
}

.prof-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-hero-avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
}

.prof-verified-tick {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.prof-hero-info {
    flex: 1;
    min-width: 0;
}

.prof-hero-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prof-hero-name {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.prof-hero-badge-biz {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.prof-hero-username {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.prof-hero-location {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
}

.prof-hero-stats {
    display: flex;
    gap: 1.75rem;
    margin-top: 1rem;
}

.prof-hero-stat {
    display: flex;
    flex-direction: column;
}

.prof-hero-stat-num {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.prof-hero-stat-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.prof-hero-actions {
    flex-shrink: 0;
}

/* ── Sidebar ── */
.prof-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.prof-sidebar-group {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.prof-sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-400);
    padding: 0.5rem 1.25rem 0.25rem;
}

.prof-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.prof-sidebar-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.prof-sidebar-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
    font-weight: 600;
}

.prof-sidebar-link.text-danger:hover {
    background: #fef2f2;
}

.prof-sidebar-link.text-danger.active {
    background: #fef2f2;
    border-left-color: var(--danger);
}

.prof-sidebar-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: inherit;
    transition: var(--transition);
    flex-shrink: 0;
}

.prof-sidebar-link.active .prof-sidebar-icon {
    background: var(--primary);
    color: #fff;
}

.prof-sidebar-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}

.prof-sidebar-toggle {
    border: 1px solid var(--gray-200);
    font-weight: 600;
}

/* ── Cards ── */
.prof-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.prof-card-danger {
    border-color: #fecaca;
}

.prof-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.prof-card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.15rem;
    color: var(--dark);
}

.prof-card-subtitle {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
}

.prof-card-body {
    padding: 1.5rem 1.75rem;
}

.prof-card-section {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--gray-50);
}

.prof-card-section:last-of-type {
    border-bottom: 1px solid var(--gray-100);
}

.prof-card-footer {
    padding: 1.25rem 1.75rem;
    background: var(--gray-50);
    display: flex;
    justify-content: flex-end;
}

.prof-section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.prof-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.prof-input {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.prof-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.prof-input:disabled {
    background: var(--gray-50);
    color: var(--gray-500);
}

.prof-form-narrow {
    max-width: 460px;
}

/* ── Avatar upload ── */
.prof-avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.prof-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.prof-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ── Toggle rows ── */
.prof-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 0;
}

.prof-toggle-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--dark);
}

.prof-toggle-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.prof-toggle-row .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border-radius: 50px;
}

.prof-toggle-row .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ── Verification ── */
.prof-verify-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

.prof-verify-icon.verified {
    background: #d1fae5;
    color: var(--success);
}

.prof-verify-icon.pending {
    background: #fef3c7;
    color: var(--accent);
}

.prof-perk-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.35rem;
    color: var(--primary);
}

.prof-benefit-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.prof-benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.prof-benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.prof-benefit-card h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ── Timeline ── */
.prof-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

.prof-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
}

.prof-timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 2.5rem;
    bottom: -0.75rem;
    width: 2px;
    background: var(--gray-200);
}

.prof-timeline-step.completed::after {
    background: var(--success);
}

.prof-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gray-200);
    flex-shrink: 0;
    margin-top: 2px;
}

.prof-timeline-step.completed .prof-timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

.prof-timeline-step.active .prof-timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--primary); }
    50% { box-shadow: 0 0 0 6px rgba(26,86,219,0.2); }
}

/* ── Document type grid ── */
.prof-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.prof-doc-option input { display: none; }

.prof-doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
}

.prof-doc-card i {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.prof-doc-option input:checked + .prof-doc-card {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.prof-doc-option input:checked + .prof-doc-card i {
    color: var(--primary);
}

/* ── Upload zones ── */
.prof-upload-zone {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition);
    background: var(--gray-50);
    cursor: pointer;
}

.prof-upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.prof-upload-zone.has-file {
    border-color: var(--success);
    border-style: solid;
    background: #f0fdf4;
}

.prof-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.prof-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.prof-upload-content > i {
    font-size: 2rem;
    color: var(--gray-400);
}

.prof-upload-preview-img {
    max-height: 100px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.prof-upload-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-600);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .prof-sidebar {
        position: static;
    }
    .prof-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .prof-hero-stats {
        justify-content: center;
    }
    .prof-hero-actions {
        margin-top: 0.5rem;
    }
    .prof-card-footer {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .prof-hero {
        padding: 1.5rem 0 1.25rem;
    }
    .prof-hero-avatar {
        width: 80px;
        height: 80px;
    }
    .prof-hero-name {
        font-size: 1.25rem;
    }
    .prof-hero-stats {
        gap: 1rem;
    }
    .prof-hero-stat-num {
        font-size: 0.95rem;
    }
    .prof-card-header,
    .prof-card-section,
    .prof-card-body,
    .prof-card-footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* ── Hero ── */
.ct-hero {
    background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f3460 100%);
    padding: 7rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,0.95) 0%, rgba(15,20,40,0.7) 100%);
    z-index: 1;
}

.ct-hero-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.ct-hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 550px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.ct-breadcrumb {
    margin-bottom: 0;
}

.ct-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s;
}

.ct-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.ct-breadcrumb .breadcrumb-item.active {
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ct-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255,255,255,0.25);
    font-weight: 300;
}

/* ── Section label ── */
.ct-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--danger);
}

.ct-label-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--danger);
}

/* ── Form card ── */
.ct-form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid var(--gray-100);
}

.ct-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.ct-input {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ct-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.ct-submit-btn {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.ct-submit-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.ct-submit-btn:disabled {
    opacity: 0.7;
    transform: none;
}

.ct-btn-success {
    background: var(--success) !important;
}

/* ── Department tabs ── */
.ct-dept-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.ct-dept-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-dept-tab.active {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
}

.ct-dept-tab:hover:not(.active) {
    color: var(--primary);
}

/* ── Info panel ── */
.ct-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ct-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.ct-info-item:last-child {
    border-bottom: none;
}

.ct-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--danger);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ct-info-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.ct-info-value {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.6;
}

.ct-info-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.ct-info-value a:hover {
    text-decoration: underline;
}

/* ── Social ── */
.ct-social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.ct-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.ct-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Map ── */
.ct-map-section {
    padding: 0 0 3rem;
}

.ct-map-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.ct-map-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
}

.ct-map-frame {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ct-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .ct-hero {
        padding: 6rem 0 1.75rem;
    }
    .ct-hero-title {
        font-size: 1.6rem;
    }
    .ct-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .ct-hero {
        padding: 5.5rem 0 1.25rem;
    }
    .ct-hero-title {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
    }
    .ct-dept-tabs {
        flex-direction: column;
    }
    .ct-dept-tab.active {
        border-radius: var(--radius-sm);
    }
    .ct-map-frame {
        height: 280px;
    }
}

/* ---- Wizard ---- */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: default;
}

.wizard-step span {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.wizard-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-400);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.wizard-step.active .wizard-step-num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.15);
}

.wizard-step.active span {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-num {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.wizard-step.completed span {
    color: var(--success);
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 80px;
}

/* Wizard Category Cards */
.wizard-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: #fff;
}

.wizard-cat-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wizard-cat-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

.wizard-cat-card i {
    font-size: 1.75rem;
    color: var(--primary);
}

.wizard-cat-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.wizard-subcat-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.wizard-subcat-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wizard-subcat-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

.wizard-subcat-card i {
    font-size: 1.2rem;
    color: var(--primary);
}

.wizard-subcat-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Wizard Upload Zone */
.wizard-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.wizard-upload-zone i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.wizard-upload-zone:hover, .wizard-upload-zone.dragover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Wizard Photo Grid */
.wizard-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wizard-photo-item {
    width: 120px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: grab;
    border: 2px solid var(--gray-100);
    transition: var(--transition);
}

.wizard-photo-item:hover {
    border-color: var(--primary);
}

.wizard-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239,68,68,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.wizard-photo-item:hover .wizard-photo-remove {
    opacity: 1;
}

.wizard-photo-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
}

.sortable-ghost {
    opacity: 0.4;
    border: 2px dashed var(--primary);
}

@media (max-width: 767.98px) {
    .wizard-steps { flex-wrap: wrap; gap: 0.25rem; }
    .wizard-step-line { max-width: 30px; }
    .wizard-step span { font-size: 0.65rem; }
    .wizard-step-num { width: 30px; height: 30px; font-size: 0.75rem; }
    .wizard-photo-item { width: 90px; height: 75px; }
}

/* ---- Admin Review Queue ---- */
.review-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-sm);
}

.review-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* ---- Super Admin / User Sidebar ---- */
.sa-sidebar {
    width: 280px !important;
    border-right: none !important;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.3) inset;
}

.sa-sidebar .offcanvas-header,
.sa-sidebar .offcanvas-body {
    padding: 0;
}

.sa-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.sa-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-light);
}

.sa-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-sidebar-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.sa-sidebar-role-badge {
    display: inline-block;
    margin-top: 2px;
}

.sa-sidebar-role-badge .badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
}

.sa-sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.sa-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.sa-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.sa-sidebar-body::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 2px;
}

.sa-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-300);
}

.sa-sidebar-group {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sa-sidebar-group:last-child {
    border-bottom: none;
}

.sa-sidebar-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    padding: 0.75rem 1.25rem 0.35rem;
}

.sa-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sa-sidebar-link:hover {
    background: rgba(99,102,241,0.06);
    color: var(--primary);
    border-left-color: transparent;
}

.sa-sidebar-link.active {
    color: var(--primary);
    background: rgba(99,102,241,0.1);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sa-sidebar-link i:first-child {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sa-sidebar-link .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    font-weight: 600;
}

.sa-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sa-sidebar-logout {
    color: var(--danger) !important;
}

.sa-sidebar-logout:hover {
    background: #fef2f2 !important;
    color: var(--danger) !important;
}

.sa-sidebar-link-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.sa-sidebar-link-sm:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.sa-sidebar ~ .offcanvas-backdrop,
.sa-sidebar + .offcanvas-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background-color: rgba(0,0,0,0.2) !important;
}

@media (max-width: 575.98px) {
    .sa-sidebar {
        width: 100% !important;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }


/* =======================================================
   MODERN MESSAGING HUB
   ======================================================= */

/* ── Hub Layout ── */
.msg-hub {
    display: flex;
    height: calc(100vh - 64px);
    background: #fff;
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
}

.msg-sidebar {
    width: 380px;
    min-width: 320px;
    max-width: 420px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    background: #fcfcfd;
}

.msg-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8f9fb;
}

/* ── Sidebar Header ── */
.msg-sidebar-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
}

.msg-search-wrap {
    position: relative;
}

.msg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
}

.msg-search {
    padding-left: 2.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.msg-search:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

/* ── Conversation List ── */
.msg-conv-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.msg-conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-50);
    transition: all 0.15s;
    position: relative;
}

.msg-conv-item:hover {
    background: var(--gray-50);
}

.msg-conv-item.active {
    background: #eef2ff;
    border-right: 3px solid var(--primary);
}

.msg-conv-item.unread {
    background: #fefce8;
}

.msg-conv-item.unread .msg-conv-name {
    font-weight: 700;
}

.msg-conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.msg-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-conv-avatar i {
    font-size: 1.3rem;
    color: var(--gray-400);
}

.msg-conv-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
}

.msg-conv-body {
    flex: 1;
    min-width: 0;
}

.msg-conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.msg-conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.msg-conv-time {
    font-size: 0.72rem;
    color: var(--gray-400);
    flex-shrink: 0;
    white-space: nowrap;
}

.msg-conv-listing {
    font-size: 0.72rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-preview {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 5px;
}

/* ── Empty State ── */
.msg-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.msg-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.msg-empty-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.msg-empty-state h4 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

/* ── Chat Container ── */
.msg-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Chat Header ── */
.msg-chat-header {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    gap: 0.5rem;
    min-height: 64px;
}

.msg-chat-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.msg-avatar-md {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.msg-avatar-md img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-avatar-md i {
    font-size: 1.2rem;
    color: var(--gray-400);
}

.msg-chat-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--gray-500);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ── Listing Banner ── */
.msg-listing-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}

.msg-listing-thumb {
    width: 50px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── Messages Area ── */
.msg-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.msg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.msg-date-sep {
    text-align: center;
    padding: 0.75rem 0;
}

.msg-date-sep span {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Message Bubbles ── */
.msg-bubble-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 72%;
    position: relative;
    transition: background 0.3s;
}

.msg-bubble-wrap.mine {
    margin-left: auto;
    flex-direction: row-reverse;
}

.msg-bubble-wrap.theirs {
    margin-right: auto;
}

.msg-bubble-wrap.msg-highlight {
    animation: msgHighlight 1.5s ease;
}

@keyframes msgHighlight {
    0%, 100% { background: transparent; }
    30% { background: rgba(79, 70, 229, 0.08); border-radius: 12px; }
}

.msg-bubble-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.msg-bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-bubble-avatar i {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.msg-bubble {
    padding: 0.65rem 0.95rem;
    border-radius: 16px;
    position: relative;
    word-break: break-word;
    line-height: 1.5;
    font-size: 0.9rem;
}

.msg-bubble-wrap.mine .msg-bubble {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-bubble-wrap.theirs .msg-bubble {
    background: #fff;
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.msg-bubble.deleted {
    background: var(--gray-50) !important;
    color: var(--gray-400) !important;
    border: 1px dashed var(--gray-200) !important;
    font-style: italic;
}

.msg-bubble-body {
    margin-bottom: 0.25rem;
}

.msg-bubble-body b, .msg-bubble-body strong {
    font-weight: 700;
}

.msg-bubble-body a {
    color: inherit;
    text-decoration: underline;
}

.msg-bubble-wrap.theirs .msg-bubble-body a {
    color: var(--primary);
}

.msg-bubble-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    opacity: 0.7;
    justify-content: flex-end;
}

.msg-edited {
    font-style: italic;
    font-size: 0.65rem;
}

/* ── Bubble Actions ── */
.msg-bubble-actions {
    position: absolute;
    top: -4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 2px;
    z-index: 10;
}

.msg-bubble-wrap.mine .msg-bubble-actions {
    left: -8px;
    transform: translateX(-100%);
}

.msg-bubble-wrap.theirs .msg-bubble-actions {
    right: -8px;
    transform: translateX(100%);
}

.msg-bubble-wrap:hover .msg-bubble-actions {
    opacity: 1;
    pointer-events: auto;
}

.msg-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 0.8rem;
    transition: all 0.15s;
}

.msg-action-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.msg-action-btn.text-danger:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* ── Reply Reference ── */
.msg-reply-ref {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-bubble-wrap.mine .msg-reply-ref {
    background: rgba(255,255,255,0.15);
    border-left: 2px solid rgba(255,255,255,0.5);
}

.msg-bubble-wrap.theirs .msg-reply-ref {
    background: var(--gray-50);
    border-left: 2px solid var(--primary);
}

/* ── Attachment ── */
.msg-attachment {
    margin-bottom: 0.35rem;
}

.msg-attach-img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s;
    object-fit: cover;
}

.msg-attach-img:hover {
    transform: scale(1.02);
}

/* ── Reply Preview ── */
.msg-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #eef2ff;
    border-left: 3px solid var(--primary);
}

.msg-reply-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── AI Suggestion Bar ── */
.msg-ai-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-top: 1px solid #fde68a;
    overflow-x: auto;
}

.msg-ai-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.msg-ai-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex: 1;
    padding: 0.15rem 0;
}

.msg-ai-chip {
    background: #fff;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--gray-700);
}

.msg-ai-chip:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: translateY(-1px);
}

/* ── Templates Panel ── */
.msg-templates-panel {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    max-height: 250px;
    overflow-y: auto;
}

.msg-templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
    position: sticky;
    top: 0;
}

.msg-tpl-group {
    padding: 0.5rem 0;
}

.msg-tpl-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    padding: 0.25rem 1rem;
}

.msg-tpl-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s;
}

.msg-tpl-btn:hover {
    background: var(--gray-50);
}

.msg-tpl-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
}

.msg-tpl-body {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ── Rich Editor ── */
.msg-editor-wrap {
    background: #fff;
    border-top: 1px solid var(--gray-200);
}

.msg-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.msg-tb-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--gray-500);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.msg-tb-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.msg-tb-ai {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    width: auto;
    padding: 0 0.6rem;
    gap: 0.25rem;
    border-radius: 16px;
}

.msg-tb-ai:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    transform: translateY(-1px);
}

.msg-tb-sep {
    width: 1px;
    height: 18px;
    background: var(--gray-200);
    margin: 0 4px;
}

.msg-editor-body {
    padding: 0.5rem 1rem;
}

.msg-editor {
    min-height: 52px;
    max-height: 140px;
    overflow-y: auto;
    outline: none;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-800);
    word-break: break-word;
}

.msg-editor:empty::before {
    content: attr(placeholder);
    color: var(--gray-400);
    pointer-events: none;
}

.msg-editor b, .msg-editor strong { font-weight: 700; }
.msg-editor i, .msg-editor em { font-style: italic; }
.msg-editor u { text-decoration: underline; }

.msg-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 1rem 0.65rem;
}

.msg-char-count {
    font-size: 0.72rem;
}

/* ── Attachment Preview ── */
.msg-attach-preview {
    display: flex;
    align-items: center;
    position: relative;
}

.msg-attach-preview img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.msg-attach-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ── Edit Overlay ── */
.msg-edit-overlay {
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}

.msg-edit-bar {
    display: flex;
    align-items: center;
    width: 100%;
}

/* ── Toast Notifications ── */
.msg-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.msg-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.msg-toast-info { background: var(--primary); }
.msg-toast-danger { background: var(--danger); }
.msg-toast-warning { background: #f59e0b; color: #000; }

/* ── Mobile Responsive ── */
@media (max-width: 991.98px) {
    .msg-hub {
        position: relative;
    }

    .msg-sidebar {
        width: 100%;
        max-width: 100%;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 10;
        transition: transform 0.3s ease;
    }

    .msg-main {
        width: 100%;
    }

    .msg-hub.show-chat .msg-sidebar {
        transform: translateX(-100%);
    }

    .msg-bubble-wrap {
        max-width: 85%;
    }

    .msg-bubble-actions {
        opacity: 1;
        position: static;
        transform: none;
        margin-top: 4px;
        background: transparent;
        box-shadow: none;
    }

    .msg-bubble-wrap.mine .msg-bubble-actions,
    .msg-bubble-wrap.theirs .msg-bubble-actions {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .msg-conv-item {
        padding: 0.75rem 1rem;
    }

    .msg-chat-header {
        padding: 0.75rem 0.75rem;
    }

    .msg-messages {
        padding: 0.75rem;
    }

    .msg-editor-body {
        padding: 0.35rem 0.75rem;
    }

    .msg-editor-footer {
        padding: 0.25rem 0.75rem 0.5rem;
    }

    .msg-bubble {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ── Dark scroll in message area ── */
.msg-messages::-webkit-scrollbar { width: 5px; }
.msg-messages::-webkit-scrollbar-track { background: transparent; }
.msg-messages::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.msg-messages::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.msg-conv-list::-webkit-scrollbar { width: 5px; }
.msg-conv-list::-webkit-scrollbar-track { background: transparent; }
.msg-conv-list::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

/* =======================================================
   SELLER PROFILE – MODERN NAME CARD
   ======================================================= */

/* ── Hero banner background ── */
.nc-hero {
    position: relative;
    padding: 2rem 0 0;
    overflow: hidden;
}

.nc-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #312e81 60%, #4f46e5 100%);
    z-index: 0;
}

.nc-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(99,102,241,0.25) 0%, transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(139,92,246,0.15) 0%, transparent 50%);
}

/* ── The floating card ── */
.nc-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transform: translateY(24px);
}

.nc-card-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    flex-wrap: wrap;
}

/* ── Avatar ── */
.nc-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    position: relative;
}

.nc-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.nc-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.nc-verified {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nc-verified i {
    color: #4f46e5;
    font-size: 1.15rem;
}

/* ── Identity ── */
.nc-identity {
    flex: 1;
    min-width: 200px;
}

.nc-name-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.nc-name {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--gray-900);
    line-height: 1.2;
}

.nc-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.nc-badge-biz {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4338ca;
}

.nc-handle {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.nc-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 0.5rem;
    max-width: 480px;
}

.nc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.nc-meta i {
    margin-right: 0.25rem;
    font-size: 0.82rem;
}

.nc-meta-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
}

.nc-meta-link:hover { text-decoration: underline; }

/* ── Action Buttons ── */
.nc-actions-wrap {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.nc-btn-follow {
    border-radius: 50px;
    padding: 0.5rem 1.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.nc-btn-msg {
    border-radius: 50px;
    padding: 0.5rem 1.35rem;
    font-weight: 600;
    font-size: 0.88rem;
}

/* ── Stats + Rating Row ── */
.nc-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 2rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: linear-gradient(180deg, #fafbff, #fff);
}

.nc-stat {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.5rem;
}

.nc-stat-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.2;
}

.nc-stat-lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 0.15rem;
}

.nc-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* Rating display inline */
.nc-stat-rating {
    flex: 1.5;
}

.nc-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nc-rating-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.nc-rating-stars {
    display: flex;
    gap: 1px;
    font-size: 0.85rem;
    color: #f59e0b;
}

.nc-rating-stars .bi-star {
    color: var(--gray-300);
}

/* ── Tabs ── */
.nc-tabs-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 56px;
    z-index: 100;
    margin-top: 24px;
}

.nc-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.nc-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nc-tab i {
    font-size: 0.9rem;
}

.nc-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.nc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nc-tab-count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.nc-tab.active .nc-tab-count {
    background: #eef2ff;
    color: var(--primary);
}

/* ── Rating Card ── */
.sp-rating-card {
    text-align: center;
}

.sp-rating-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.sp-rating-stars {
    font-size: 1.25rem;
    color: var(--accent);
}

.sp-rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.sp-rating-bar-label {
    width: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: right;
}

.sp-rating-bar-count {
    width: 24px;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: right;
}

/* ── Star Input ── */
.sp-star-input {
    display: flex;
    gap: 0.25rem;
}

.sp-star-input i {
    font-size: 1.75rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.15s;
}

.sp-star-input i.bi-star-fill {
    color: var(--accent);
}

.sp-star-input i:hover {
    transform: scale(1.15);
}

/* ── Reviews List ── */
.sp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-review-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
    border-radius: 0;
    transition: background 0.2s;
}

.sp-review-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.sp-review-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: none;
}

.sp-review-item:only-child {
    border-radius: var(--radius);
}

.sp-review-item:hover {
    background: var(--gray-50);
}

.sp-review-item.sp-review-hidden {
    opacity: 0.5;
    background: #fef2f2;
}

.sp-review-hidden-banner {
    font-size: 0.75rem;
    color: var(--danger);
    background: #fef2f2;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.sp-review-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.sp-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-review-avatar i {
    color: var(--gray-400);
    font-size: 1.1rem;
}

.sp-review-meta {
    flex: 1;
    min-width: 0;
}

.sp-review-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.sp-review-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.sp-review-stars {
    color: var(--accent);
    font-size: 0.8rem;
}

.sp-review-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ── Review Actions ── */
.sp-review-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sp-review-action-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sp-review-action-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.sp-review-action-btn.active {
    color: var(--primary);
}

.sp-review-action-btn.text-danger:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* ── Reply Form ── */
.sp-reply-form {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

/* ── Seller Reply ── */
.sp-seller-reply {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.sp-reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.sp-reply-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-reply-avatar span {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.sp-reply-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ── Name Card Responsive ── */
@media (max-width: 767.98px) {
    .nc-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem 1rem;
    }

    .nc-identity { text-align: center; }
    .nc-name-line { justify-content: center; }
    .nc-bio { max-width: 100%; }
    .nc-meta { justify-content: center; }
    .nc-actions-wrap { justify-content: center; flex-wrap: wrap; }

    .nc-name { font-size: 1.35rem; }

    .nc-avatar, .nc-avatar img, .nc-avatar-placeholder {
        width: 84px;
        height: 84px;
    }

    .nc-avatar-placeholder { font-size: 2rem; }

    .nc-stats-row {
        padding: 0.75rem 1rem 1rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .nc-stat { flex: 0 0 auto; min-width: 70px; }
    .nc-stat-val { font-size: 1.15rem; }
    .nc-stat-divider { display: none; }

    .nc-rating-display { gap: 0.35rem; }
    .nc-rating-num { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
    .nc-card { border-radius: 16px; }
    .nc-card-top { padding: 1.25rem 1rem 0.75rem; gap: 1rem; }
    .nc-tab { padding: 0.75rem 1rem; font-size: 0.82rem; }
}

/* ── Glassmorphism Breadcrumb ── */
.glass-breadcrumb {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    padding: 0.65rem 1.25rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.glass-breadcrumb:hover {
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    font-size: 0.835rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.glass-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.6rem;
    color: var(--gray-400);
    vertical-align: middle;
    padding: 0 0.5rem;
}

.glass-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}

.glass-breadcrumb .breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transition: width 0.25s ease;
}

.glass-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-shadow: 0 0 20px rgba(26, 86, 219, 0.15);
}

.glass-breadcrumb .breadcrumb-item a:hover::after {
    width: 100%;
}

.glass-breadcrumb .breadcrumb-item.active {
    color: var(--gray-600);
    font-weight: 600;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-breadcrumb .breadcrumb-item i.bi-house-door {
    font-size: 0.9rem;
    opacity: 0.7;
    vertical-align: -1px;
    margin-right: 1px;
}

@media (max-width: 767.98px) {
    .glass-breadcrumb {
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
    }
    .glass-breadcrumb .breadcrumb {
        font-size: 0.78rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .glass-breadcrumb .breadcrumb::-webkit-scrollbar { display: none; }
    .glass-breadcrumb .breadcrumb-item { white-space: nowrap; }
    .glass-breadcrumb .breadcrumb-item.active { max-width: 180px; }
}

/* ══════════════════════════════════════════
   Verification System
   ══════════════════════════════════════════ */

/* Verification success icon */
.verification-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(16,185,129,.25);
}
.verification-pending-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(245,158,11,.25);
    animation: pulse-soft 2s infinite;
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 8px 24px rgba(245,158,11,.25); }
    50% { box-shadow: 0 8px 32px rgba(245,158,11,.40); }
}

/* Verification timeline */
.verification-timeline {
    position: relative;
    padding-left: 32px;
    max-width: 360px;
    margin: 0 auto;
}
.verification-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}
.vt-step {
    position: relative;
    padding-bottom: 24px;
    text-align: left;
}
.vt-step:last-child { padding-bottom: 0; }
.vt-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    z-index: 1;
}
.vt-step.completed .vt-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}
.vt-step.active .vt-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
    animation: pulse-soft 2s infinite;
}

/* Verification benefits cards */
.vb-card {
    text-align: center;
    padding: 20px 12px;
    background: #f8f9fb;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.vb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.vb-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}
.vb-card h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Document type selector */
.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.doc-type-option input[type="radio"] {
    display: none;
}
.doc-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 0.85rem;
    font-weight: 600;
}
.doc-type-card i {
    font-size: 1.3rem;
    color: #6b7280;
    flex-shrink: 0;
}
.doc-type-option input:checked + .doc-type-card {
    border-color: var(--primary);
    background: rgba(59,130,246,.04);
    box-shadow: 0 0 0 1px var(--primary);
}
.doc-type-option input:checked + .doc-type-card i {
    color: var(--primary);
}

/* Document upload zone */
.doc-upload-zone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    background: #fafbfc;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(59,130,246,.02);
}
.doc-upload-zone.has-file {
    border-color: #10b981;
    border-style: solid;
    background: rgba(16,185,129,.02);
}
.doc-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.doc-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.doc-upload-content i {
    font-size: 2rem;
    color: #9ca3af;
}
.doc-preview-img {
    max-height: 120px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
}
.doc-preview-name {
    font-size: 0.75rem;
    color: #6b7280;
    word-break: break-all;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.selfie-zone {
    min-height: 120px;
}

/* Admin verification checklist */
.verification-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vcheck-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
}
.vcheck-item.pass {
    background: rgba(16,185,129,.06);
    color: #065f46;
}
.vcheck-item.pass i { color: #10b981; }
.vcheck-item.warn {
    background: rgba(245,158,11,.06);
    color: #92400e;
}
.vcheck-item.warn i { color: #f59e0b; }
.vcheck-item.fail {
    background: rgba(239,68,68,.06);
    color: #991b1b;
}
.vcheck-item.fail i { color: #ef4444; }

/* ═══════════════════════════════════════════
   FAVORITES PAGE - Glassmorphism Redesign
   ═══════════════════════════════════════════ */

.fav-page {
    min-height: 80vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 25%, #eff6ff 50%, #f5f3ff 75%, #fef3c7 100%);
    background-attachment: fixed;
}

/* ── Hero Header ── */
.fav-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fav-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,86,219,0.08) 0%, rgba(236,72,153,0.06) 50%, rgba(245,158,11,0.06) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.5);
}

.fav-hero-content {
    position: relative;
    padding: 2rem 2rem 1.75rem;
}

.fav-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fav-heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
    animation: fav-pulse 2s ease-in-out infinite;
}

@keyframes fav-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fav-hero-sub {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ── Glass Buttons ── */
.fav-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--gray-700);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fav-btn-glass:hover {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.fav-btn-glass.fav-btn-danger {
    color: #ef4444;
    border-color: rgba(239,68,68,0.15);
}

.fav-btn-glass.fav-btn-danger:hover {
    background: rgba(239,68,68,0.08);
}

.fav-btn-glass.fav-btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

/* ── Stats Strip ── */
.fav-stats-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
    overflow-x: auto;
    scrollbar-width: none;
}

.fav-stats-strip::-webkit-scrollbar { display: none; }

.fav-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.fav-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    flex-shrink: 0;
}

.fav-stat-icon.active { background: rgba(16,185,129,0.08); color: #10b981; }
.fav-stat-icon.sold { background: rgba(59,130,246,0.08); color: #3b82f6; }
.fav-stat-icon.drop { background: rgba(245,158,11,0.08); color: #f59e0b; }
.fav-stat-icon.value { background: rgba(139,92,246,0.08); color: #8b5cf6; }

.fav-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
}

.fav-stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fav-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,0.06);
    flex-shrink: 0;
}

/* ── Collections Bar ── */
.fav-collections-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.5);
    overflow-x: auto;
    scrollbar-width: none;
}

.fav-collections-bar::-webkit-scrollbar { display: none; }

.fav-collection-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    position: relative;
}

.fav-collection-tab:hover {
    background: rgba(255,255,255,0.6);
    color: var(--gray-800);
}

.fav-collection-tab.active {
    background: white;
    color: var(--tab-color, var(--primary));
    border-color: rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fav-tab-count {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.05);
    color: var(--gray-500);
    font-weight: 700;
}

.fav-collection-tab.active .fav-tab-count {
    background: rgba(26,86,219,0.08);
    color: var(--primary);
}

.fav-tab-delete {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    font-size: 0.65rem;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.fav-collection-tab:hover .fav-tab-delete { display: inline-flex; }

.fav-tab-add {
    border: 1px dashed var(--gray-300);
    color: var(--gray-400);
    padding: 0.45rem 0.65rem;
}

.fav-tab-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26,86,219,0.04);
}

/* ── Favorite Cards ── */
.fav-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
}

.fav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    border-color: rgba(26,86,219,0.15);
}

.fav-card-inactive { opacity: 0.7; }
.fav-card-sold .fav-card-img-wrap img { filter: grayscale(0.5); }

.fav-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 16px;
}

.fav-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
}

.fav-status-badge.sold { background: rgba(59,130,246,0.15); color: #1d4ed8; }
.fav-status-badge.expired { background: rgba(107,114,128,0.15); color: #4b5563; }

/* Card actions */
.fav-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s ease;
}

.fav-card:hover .fav-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.fav-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gray-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fav-action-btn:hover { background: white; transform: scale(1.08); }
.fav-remove-btn { color: #ef4444; }
.fav-remove-btn:hover { background: rgba(239,68,68,0.1); }

.fav-action-dropdown { position: relative; }

.fav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 160px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 20;
}

.fav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fav-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.15s;
}

.fav-dropdown-menu button:hover {
    background: rgba(0,0,0,0.04);
}

.fav-dropdown-menu hr {
    margin: 0.25rem 0;
    border-color: rgba(0,0,0,0.06);
}

/* Price change badge */
.fav-price-change {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fav-price-change.drop {
    background: rgba(16,185,129,0.15);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.2);
}

.fav-price-change.rise {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.15);
}

/* Card image */
.fav-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fav-card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
}

.fav-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fav-card:hover .fav-card-img-wrap img {
    transform: scale(1.05);
}

.fav-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
    font-size: 2.5rem;
}

.fav-photo-count,
.fav-saves-badge {
    position: absolute;
    bottom: 8px;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fav-photo-count {
    left: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
}

.fav-saves-badge {
    right: 8px;
    background: rgba(239,68,68,0.85);
    color: white;
}

/* Card body */
.fav-card-body {
    padding: 0.875rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fav-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.fav-card-old-price {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.fav-card-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.fav-card-meta {
    font-size: 0.72rem;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
}

.fav-card-note {
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(245,158,11,0.06);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-card-seller {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.fav-seller-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fav-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fav-seller-avatar i { font-size: 0.6rem; color: var(--gray-400); }

.fav-seller-name {
    font-size: 0.72rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-seller-name .bi-patch-check-fill { font-size: 0.6rem; }

/* ── AI Recommendations Section ── */
.fav-ai-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.fav-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.fav-ai-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fav-ai-title .bi-stars {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fav-ai-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0.15rem 0 0;
}

.fav-rec-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.fav-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-color: rgba(245,158,11,0.2);
}

.fav-rec-img {
    height: 150px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.fav-rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fav-rec-card:hover .fav-rec-img img { transform: scale(1.05); }

.fav-rec-ai-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(236,72,153,0.9));
    color: white;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fav-rec-body {
    padding: 0.75rem 0.85rem;
}

/* ── Empty State ── */
.fav-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.fav-empty-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    font-size: 2.5rem;
    color: var(--gray-300);
}

.fav-empty-sparkle {
    position: absolute;
    font-size: 0.85rem;
    animation: fav-sparkle 3s ease-in-out infinite;
}

.fav-sparkle-1 { top: -8px; right: -8px; color: #f59e0b; animation-delay: 0s; }
.fav-sparkle-2 { bottom: -4px; left: -12px; color: #ec4899; animation-delay: 1s; }
.fav-sparkle-3 { top: 4px; left: -16px; color: #8b5cf6; animation-delay: 2s; }

@keyframes fav-sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

/* ── Modals ── */
.fav-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.fav-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.fav-modal {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 440px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}

.fav-modal-backdrop.show .fav-modal {
    transform: translateY(0) scale(1);
}

.fav-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0.75rem;
}

.fav-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fav-modal-close:hover { background: rgba(0,0,0,0.08); }

.fav-modal-body { padding: 0.75rem 1.25rem; }
.fav-modal-footer { padding: 0.75rem 1.25rem 1.25rem; display: flex; justify-content: flex-end; gap: 0.5rem; }

/* Color & icon pickers */
.fav-color-pick {
    cursor: pointer;
    display: inline-block;
}

.fav-color-pick input { display: none; }

.fav-color-pick span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.fav-color-pick input:checked + span {
    border-color: var(--dark);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fav-icon-pick {
    cursor: pointer;
    display: inline-flex;
}

.fav-icon-pick input { display: none; }

.fav-icon-pick i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.fav-icon-pick input:checked + i {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}

/* Move collection options */
.fav-move-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fav-move-option:hover {
    background: rgba(255,255,255,0.8);
    border-color: var(--opt-color, var(--primary));
    color: var(--opt-color, var(--primary));
}

.fav-move-option i { color: var(--opt-color, var(--gray-400)); }

/* ── Toast ── */
.fav-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 9999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fav-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fav-toast.success { background: rgba(16,185,129,0.9); color: white; }
.fav-toast.info { background: rgba(59,130,246,0.9); color: white; }

/* ── Spin animation ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 0.6s linear infinite; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .fav-hero-content { padding: 1.5rem; }
    .fav-hero-title { font-size: 1.4rem; }
    .fav-stats-strip { gap: 0.6rem; }
    .fav-stat-val { font-size: 0.9rem; }
}

@media (max-width: 767.98px) {
    .fav-hero-content { padding: 1.25rem; }
    .fav-hero-title { font-size: 1.2rem; }
    .fav-heart-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .fav-stats-strip { padding: 0.65rem 0.85rem; gap: 0.5rem; }
    .fav-stat-icon { width: 28px; height: 28px; font-size: 0.75rem; }
    .fav-stat-val { font-size: 0.82rem; }
    .fav-stat-label { font-size: 0.6rem; }
    .fav-stat-divider { height: 20px; }
    .fav-card-img-wrap { height: 140px; }
    .fav-card-body { padding: 0.7rem 0.8rem; }
    .fav-card-price { font-size: 0.95rem; }
    .fav-card-title { font-size: 0.8rem; }
    .fav-rec-img { height: 120px; }
    .fav-card-actions { opacity: 1; transform: none; }
    .fav-ai-header { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 575.98px) {
    .fav-hero { border-radius: 14px; }
    .fav-collections-bar { border-radius: 10px; padding: 0.35rem; }
    .fav-card { border-radius: 12px; }
    .fav-card-seller { display: none; }
}

/* ══════════════════════════════════════════
   My Listings – Modern Glassmorphism
   ══════════════════════════════════════════ */

/* Hero area */
.ml-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}
.ml-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 0;
}
.ml-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
}
.ml-hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}
.ml-hero-sub {
    color: rgba(255,255,255,.7);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

/* Create button */
.ml-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}
.ml-btn-create:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.ml-btn-create i {
    font-size: 1.1rem;
}

/* Glass stat cards grid */
.ml-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding-bottom: 0;
}
.ml-stat-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    transition: all .25s ease;
}
.ml-stat-card:hover {
    background: rgba(255,255,255,.20);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.ml-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1rem;
    color: #fff;
}
.ml-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.ml-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

/* Pending banner */
.ml-pending-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,.25);
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #92400e;
    box-shadow: 0 4px 16px rgba(245,158,11,.08);
    position: relative;
}
.ml-pending-pulse {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: ml-pulse 2s infinite;
}
@keyframes ml-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
    50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}
.ml-pending-banner > i {
    font-size: 1.2rem;
    color: #f59e0b;
}

/* Filter pills */
.ml-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ml-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: all .2s ease;
}
.ml-filter-pill:hover {
    background: rgba(255,255,255,.95);
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ml-filter-pill.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102,126,234,.3);
}
.ml-filter-pill.active .ml-filter-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.ml-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: rgba(99,102,241,.1);
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Listing card ── */
.ml-listing-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: all .3s ease;
}
.ml-listing-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    transform: translateY(-4px);
}
.ml-listing-card.ml-card-inactive {
    opacity: .75;
}
.ml-listing-card.ml-card-inactive:hover {
    opacity: 1;
}

/* Card image */
.ml-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}
.ml-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ml-listing-card:hover .ml-card-img {
    transform: scale(1.05);
}
.ml-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d1d5db;
}

/* Status badge */
.ml-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ml-status-active {
    background: rgba(16,185,129,.15);
    color: #065f46;
    border: 1px solid rgba(16,185,129,.2);
}
.ml-status-pending {
    background: rgba(245,158,11,.15);
    color: #92400e;
    border: 1px solid rgba(245,158,11,.2);
}
.ml-status-sold {
    background: rgba(59,130,246,.15);
    color: #1e40af;
    border: 1px solid rgba(59,130,246,.2);
}
.ml-status-expired {
    background: rgba(107,114,128,.15);
    color: #374151;
    border: 1px solid rgba(107,114,128,.2);
}

/* Featured badge */
.ml-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,.35);
}

/* Overlay stats (on image hover) */
.ml-card-overlay-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: all .3s ease;
}
.ml-listing-card:hover .ml-card-overlay-stats {
    opacity: 1;
    transform: translateY(0);
}
.ml-card-overlay-stats i {
    font-size: 0.7rem;
}

/* Card body */
.ml-card-body {
    padding: 16px;
}
.ml-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.3px;
}
.ml-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.4;
    margin: 4px 0;
    transition: color .2s;
}
.ml-card-title:hover {
    color: #6366f1;
}
.ml-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

/* ── Glass action buttons ── */
.ml-card-actions {
    display: flex;
    gap: 6px;
}
.ml-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ml-action-btn i {
    font-size: 0.82rem;
}

/* Edit - primary glass */
.ml-act-edit {
    flex: 1;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.15);
    padding: 0 14px;
}
.ml-act-edit:hover {
    background: rgba(99,102,241,.18);
    color: #4f46e5;
    box-shadow: 0 4px 14px rgba(99,102,241,.15);
    transform: translateY(-1px);
}

/* Boost */
.ml-act-boost {
    width: 36px;
    background: rgba(245,158,11,.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,.15);
}
.ml-act-boost:hover {
    background: rgba(245,158,11,.18);
    color: #d97706;
    box-shadow: 0 4px 14px rgba(245,158,11,.15);
    transform: translateY(-1px);
}

/* View */
.ml-act-view {
    width: 36px;
    background: rgba(59,130,246,.08);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,.15);
}
.ml-act-view:hover {
    background: rgba(59,130,246,.18);
    color: #2563eb;
    box-shadow: 0 4px 14px rgba(59,130,246,.15);
    transform: translateY(-1px);
}

/* Mark Sold */
.ml-act-sold {
    width: 36px;
    background: rgba(16,185,129,.08);
    color: #10b981;
    border: 1px solid rgba(16,185,129,.15);
}
.ml-act-sold:hover {
    background: rgba(16,185,129,.18);
    color: #059669;
    box-shadow: 0 4px 14px rgba(16,185,129,.15);
    transform: translateY(-1px);
}

/* Relist */
.ml-act-relist {
    width: 36px;
    background: rgba(99,102,241,.08);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.15);
}
.ml-act-relist:hover {
    background: rgba(99,102,241,.18);
    color: #4f46e5;
    box-shadow: 0 4px 14px rgba(99,102,241,.15);
    transform: translateY(-1px);
}

/* Delete */
.ml-act-delete {
    width: 36px;
    background: rgba(239,68,68,.06);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.12);
}
.ml-act-delete:hover {
    background: rgba(239,68,68,.15);
    color: #dc2626;
    box-shadow: 0 4px 14px rgba(239,68,68,.12);
    transform: translateY(-1px);
}

/* Sold modal icon */
.ml-sold-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(16,185,129,.25);
}

/* Empty state */
.ml-empty-state {
    text-align: center;
    padding: 60px 20px 80px;
}
.ml-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(118,75,162,.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 20px;
}
.ml-empty-state h4 {
    font-weight: 700;
    color: #1f2937;
}
.ml-empty-state p {
    color: #6b7280;
    max-width: 360px;
    margin: 8px auto 24px;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .ml-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ml-hero-title { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
    .ml-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .ml-stat-card { padding: 14px 8px; }
    .ml-stat-num { font-size: 1.2rem; }
    .ml-hero {
        padding-bottom: 40px;
    }
    .ml-hero-title { font-size: 1.3rem; }
    .ml-btn-create span { display: none; }
    .ml-btn-create { padding: 12px 14px; border-radius: 12px; }
    .ml-card-actions { flex-wrap: wrap; }
    .ml-act-edit { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════════════════════
   LISTING COMMENTS – Enterprise-Level Comment System
   ═══════════════════════════════════════════════════════════ */
.cmt-section {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}
.cmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}
.cmt-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cmt-header-icon {
    font-size: 1.3rem;
    color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.cmt-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}
.cmt-count-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    padding: 0 8px;
}
.cmt-sort {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.cmt-sort-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}
.cmt-sort-btn.active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Compose ─────────────────────────────────────────────── */
.cmt-compose {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.cmt-compose-avatar {
    flex-shrink: 0;
}
.cmt-avatar-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}
.cmt-compose-body {
    flex: 1;
    position: relative;
}
.cmt-textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: .9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    min-height: 46px;
    overflow: hidden;
}
.cmt-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}
.cmt-textarea::placeholder {
    color: #94a3b8;
}
.cmt-compose-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 0 4px;
}
.cmt-emoji-trigger {
    cursor: pointer;
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color .2s;
    display: flex;
    align-items: center;
}
.cmt-emoji-trigger:hover { color: #6366f1; }
.cmt-char-count {
    font-size: .75rem;
    color: #94a3b8;
    flex: 1;
    text-align: right;
}
.cmt-submit-btn {
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
}
.cmt-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.cmt-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* ── Login prompt ────────────────────────────────────────── */
.cmt-login-prompt {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 20px;
}
.cmt-login-prompt a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}
.cmt-login-prompt a:hover { text-decoration: underline; }

/* ── Emoji Picker (composer) ─────────────────────────────── */
.cmt-emoji-picker {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    position: relative;
    z-index: 10;
}
.cmt-emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cmt-emoji-item {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmt-emoji-item:hover {
    background: #f0f0ff;
    transform: scale(1.2);
}

/* ── Reply Bar ───────────────────────────────────────────── */
.cmt-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #eef2ff, #faf5ff);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: .85rem;
    color: #6366f1;
    border-left: 4px solid #6366f1;
}
.cmt-reply-cancel {
    border: none;
    background: transparent;
    font-size: 1.3rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.cmt-reply-cancel:hover { color: #ef4444; }

/* ── Comment Items ───────────────────────────────────────── */
.cmt-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cmt-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    transition: background .2s, transform .2s;
    position: relative;
}
.cmt-item:hover {
    background: #fafbfc;
}
@keyframes cmtHighlight {
    0% { background: rgba(99,102,241,.12); }
    100% { background: transparent; }
}
.cmt-highlight {
    animation: cmtHighlight 2s ease-out;
}
.cmt-reply {
    margin-left: 52px;
    padding-left: 16px;
    border-left: 3px solid #e5e7eb;
}
.cmt-pinned {
    background: linear-gradient(90deg, #fefce8, #fef9c3) !important;
    border: 1px solid #fde68a;
}
.cmt-item-avatar { flex-shrink: 0; padding-top: 2px; }
.cmt-item-body { flex: 1; min-width: 0; }
.cmt-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.cmt-author {
    font-weight: 700;
    font-size: .88rem;
    color: #1e293b;
}
.cmt-badge {
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.cmt-badge-owner {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}
.cmt-badge-verified {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
.cmt-badge-pinned {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    color: #92400e;
}
.cmt-time {
    font-size: .75rem;
    color: #94a3b8;
    margin-left: auto;
}
.cmt-edited {
    font-size: .7rem;
    color: #94a3b8;
    font-style: italic;
}
.cmt-text {
    font-size: .88rem;
    line-height: 1.6;
    color: #334155;
    word-wrap: break-word;
    margin-bottom: 8px;
}
.cmt-text a {
    color: #6366f1;
    text-decoration: underline;
}

/* ── Reactions ───────────────────────────────────────────── */
.cmt-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
}
.cmt-reaction-chip {
    border: 1.5px solid #e5e7eb;
    background: #fafbfc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .15s;
}
.cmt-reaction-chip span {
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
}
.cmt-reaction-chip:hover {
    border-color: #6366f1;
    background: #eef2ff;
}
.cmt-reaction-chip.reacted {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.cmt-reaction-chip.reacted span { color: #6366f1; }
.cmt-reaction-add {
    border: 1.5px dashed #d1d5db;
    background: transparent;
    width: 30px; height: 28px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: .75rem;
    gap: 1px;
    transition: all .15s;
}
.cmt-reaction-add:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

/* Reaction picker popup (inline) */
.cmt-reaction-picker-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    z-index: 50;
    max-width: 300px;
    animation: cmtPopIn .15s ease-out;
}
@keyframes cmtPopIn {
    from { opacity: 0; transform: translateY(8px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cmt-reaction-picker-popup button {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .1s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmt-reaction-picker-popup button:hover {
    background: #f0f0ff;
    transform: scale(1.25);
}

/* ── Actions Dropdown ────────────────────────────────────── */
.cmt-actions-dropdown {
    position: relative;
    margin-left: auto;
}
.cmt-actions-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all .15s;
}
.cmt-actions-btn:hover {
    background: #f1f5f9;
    color: #475569;
}
.cmt-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 170px;
    padding: 6px;
    z-index: 40;
    animation: cmtPopIn .15s ease-out;
}
.cmt-actions-menu.show { display: block; }
.cmt-actions-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: .82rem;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: background .1s;
}
.cmt-actions-menu button:hover { background: #f1f5f9; }
.cmt-actions-menu button.text-danger { color: #ef4444 !important; }
.cmt-actions-menu button.text-danger:hover { background: #fef2f2; }

/* ── Edit inline ─────────────────────────────────────────── */
.cmt-edit-textarea {
    width: 100%;
    border: 2px solid #6366f1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .87rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 60px;
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}
.cmt-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.cmt-edit-save {
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
.cmt-edit-cancel {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: .8rem;
    color: #64748b;
    cursor: pointer;
}

/* ── Load More & Empty ───────────────────────────────────── */
.cmt-load-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.cmt-load-more-btn {
    border: 2px solid #e5e7eb;
    background: #fff;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
    transition: all .2s;
}
.cmt-load-more-btn:hover {
    background: #eef2ff;
    border-color: #6366f1;
}
.cmt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.cmt-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: .5;
}
.cmt-empty-text {
    font-size: .9rem;
    margin: 0;
}
.cmt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #6366f1;
    font-size: .85rem;
}

/* ── Admin Comments Page (Modern) ────────────────────────── */
.cm-page { background: #f8fafc; min-height: 100vh; padding-bottom: 3rem; }

/* Header */
.cm-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a78bfa 100%);
    padding: 2rem 0 2.5rem;
    margin-bottom: -1.5rem;
    position: relative;
    overflow: hidden;
}
.cm-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.cm-header-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
}
.cm-header-pill-alert {
    background: rgba(239,68,68,.35); animation: cmPulse 2s infinite;
}
@keyframes cmPulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* Stat Cards Grid */
.cm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 1.5rem;
    position: relative; z-index: 2;
}
.cm-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); border: 1.5px solid var(--card-bg2);
    border-radius: 16px; padding: 16px 18px;
    text-decoration: none; color: inherit;
    transition: all .2s ease; position: relative; overflow: hidden;
}
.cm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--card-accent) 20%, transparent);
    border-color: var(--card-accent);
    color: inherit; text-decoration: none;
}
.cm-card-active {
    border-color: var(--card-accent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--card-accent) 18%, transparent);
}
.cm-card-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg2); color: var(--card-accent);
    font-size: 1.15rem; flex-shrink: 0;
}
.cm-card-num { font-size: 1.35rem; font-weight: 800; color: var(--card-accent); line-height: 1.1; }
.cm-card-label { font-size: .72rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cm-card-check {
    position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--card-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
}

/* Toolbar */
.cm-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 1rem;
}
.cm-filters-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-filter-pill {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 7px 16px; border-radius: 20px;
    font-size: .8rem; font-weight: 600;
    background: #fff; color: #64748b;
    border: 1.5px solid #e2e8f0;
    text-decoration: none; transition: all .15s;
}
.cm-filter-pill:hover { border-color: #6366f1; color: #6366f1; background: #eef2ff; text-decoration: none; }
.cm-filter-pill.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border-color: transparent;
    box-shadow: 0 3px 10px rgba(99,102,241,.25);
}
.cm-filter-pill.active:hover { color: #fff; }
.cm-filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; font-size: .68rem; font-weight: 700;
    background: rgba(0,0,0,.08); margin-left: 4px;
}
.cm-filter-pill.active .cm-filter-count { background: rgba(255,255,255,.25); }

/* Search */
.cm-search-form { flex-shrink: 0; }
.cm-search-wrap {
    position: relative; display: flex; align-items: center;
}
.cm-search-icon {
    position: absolute; left: 14px; color: #94a3b8; font-size: .85rem;
}
.cm-search-input {
    padding: 8px 38px 8px 38px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #fff;
    font-size: .82rem; width: 260px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.cm-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.cm-search-clear {
    position: absolute; right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .65rem; text-decoration: none;
    transition: all .15s;
}
.cm-search-clear:hover { background: #ef4444; color: #fff; }

/* Filter Tags */
.cm-filter-tags {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 1rem;
}
.cm-filter-tags-label { font-size: .78rem; color: #94a3b8; font-weight: 600; }
.cm-filter-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 4px 10px; font-size: .75rem; font-weight: 600; color: #475569;
}
.cm-tag-x {
    width: 16px; height: 16px; border-radius: 50%; background: #f1f5f9;
    display: inline-flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .55rem; text-decoration: none; transition: all .15s;
}
.cm-tag-x:hover { background: #ef4444; color: #fff; }
.cm-clear-all {
    font-size: .75rem; color: #ef4444; text-decoration: none; font-weight: 600;
}
.cm-clear-all:hover { text-decoration: underline; }

/* Alerts */
.cm-alert {
    border: none; border-radius: 14px; font-size: .85rem; font-weight: 600;
    padding: 12px 20px; margin-bottom: 1rem;
    display: flex; align-items: center;
}
.cm-alert-success { background: #ecfdf5; color: #065f46; }
.cm-alert-danger { background: #fef2f2; color: #991b1b; }

/* Bulk Actions Bar */
.cm-bulk-bar {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 14px; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; color: #fff;
}
.cm-bulk-info { font-size: .85rem; font-weight: 600; }
.cm-bulk-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2); min-width: 26px; height: 26px;
    border-radius: 8px; font-weight: 800; padding: 0 6px; margin-right: 4px;
}
.cm-bulk-btn {
    display: inline-flex; align-items: center;
    padding: 6px 16px; border-radius: 10px;
    font-size: .78rem; font-weight: 700; border: none; cursor: pointer;
    transition: all .15s;
}
.cm-bulk-warn { background: rgba(245,158,11,.2); color: #fbbf24; }
.cm-bulk-warn:hover { background: #f59e0b; color: #fff; }
.cm-bulk-danger { background: rgba(239,68,68,.2); color: #fca5a5; }
.cm-bulk-danger:hover { background: #ef4444; color: #fff; }

/* Table Card */
.cm-table-card {
    background: #fff; border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    overflow: hidden; border: 1px solid #f1f5f9;
}
.cm-table { border-collapse: collapse; }
.cm-table thead th {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; color: #94a3b8;
    background: #fafbfd; padding: 14px 16px;
    border-bottom: 1.5px solid #f1f5f9;
}
.cm-table tbody td {
    padding: 14px 16px; vertical-align: middle;
    font-size: .84rem; border-bottom: 1px solid #f8fafc;
}
.cm-table tbody tr { transition: background .12s; }
.cm-table tbody tr:hover { background: #fafbfe; }
.cm-row-hidden { opacity: .6; }
.cm-row-reported { background: #fffbeb !important; }

/* Checkbox */
.cm-checkbox {
    width: 16px; height: 16px; border-radius: 4px;
    accent-color: #6366f1; cursor: pointer;
}

/* Comment Cell */
.cm-comment-cell { max-width: 320px; }
.cm-tag-pinned {
    display: inline-block; background: #fffbeb; color: #b45309;
    font-size: .65rem; font-weight: 700; padding: 2px 8px;
    border-radius: 6px; margin-bottom: 4px;
}
.cm-tag-reply {
    display: inline-block; background: #f1f5f9; color: #64748b;
    font-size: .65rem; font-weight: 600; padding: 2px 8px;
    border-radius: 6px; margin-bottom: 4px;
}
.cm-comment-text {
    font-size: .84rem; color: #334155; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cm-hidden-reason {
    font-size: .72rem; color: #ef4444; margin-top: 4px;
    background: #fef2f2; padding: 3px 8px; border-radius: 6px;
    display: inline-block;
}

/* User Cell */
.cm-user-cell { display: flex; align-items: center; gap: 10px; }
.cm-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover; border: 2px solid #f1f5f9;
}
.cm-user-name { font-size: .82rem; font-weight: 700; color: #1e293b; white-space: nowrap; }
.cm-verified-tick { color: #6366f1; font-size: .7rem; margin-left: 2px; }

/* Listing Link */
.cm-listing-link {
    font-size: .8rem; color: #6366f1; text-decoration: none;
    font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
    transition: color .15s;
}
.cm-listing-link i { font-size: .6rem; opacity: .5; }
.cm-listing-link:hover { color: #4f46e5; text-decoration: underline; }

/* Status Pill */
.cm-status {
    display: inline-block; font-size: .7rem; font-weight: 700;
    padding: 3px 12px; border-radius: 20px;
}
.cm-status-visible { background: #ecfdf5; color: #059669; }
.cm-status-hidden  { background: #fef2f2; color: #dc2626; }
.cm-status-reported { background: #fffbeb; color: #d97706; }

/* Reactions Badge */
.cm-reactions-badge {
    display: inline-flex; align-items: center;
    background: #fdf2f8; color: #db2777; font-weight: 700;
    font-size: .75rem; padding: 3px 10px; border-radius: 10px;
}
.cm-reactions-zero { color: #d1d5db; font-size: .8rem; }

/* Date Cell */
.cm-date-cell { display: flex; flex-direction: column; }
.cm-date-ago { font-size: .8rem; color: #475569; font-weight: 600; }
.cm-date-exact { font-size: .68rem; color: #94a3b8; }

/* Action Buttons */
.cm-actions { display: flex; gap: 6px; justify-content: flex-end; }
.cm-act-btn {
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: .82rem;
    transition: all .18s; position: relative;
}
.cm-act-view { background: #eef2ff; color: #6366f1; }
.cm-act-view:hover { background: #6366f1; color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.cm-act-hide { background: #fffbeb; color: #f59e0b; }
.cm-act-hide:hover { background: #f59e0b; color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.cm-act-restore { background: #ecfdf5; color: #10b981; }
.cm-act-restore:hover { background: #10b981; color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.cm-act-delete { background: #fef2f2; color: #ef4444; }
.cm-act-delete:hover { background: #ef4444; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.3); }

/* Empty State */
.cm-empty { padding: 2rem 0; }
.cm-empty-icon {
    width: 64px; height: 64px; margin: 0 auto;
    border-radius: 20px; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #cbd5e1;
}

/* Pagination */
.cm-pagination {
    display: flex; justify-content: center; margin-top: 1.5rem;
}
.cm-page-link {
    border-radius: 10px !important; margin: 0 3px;
    border: 1.5px solid #e2e8f0 !important; color: #64748b;
    font-weight: 600; font-size: .82rem;
    min-width: 38px; text-align: center;
    transition: all .15s;
}
.cm-page-link:hover { border-color: #6366f1 !important; color: #6366f1; background: #eef2ff; }
.page-item.active .cm-page-link {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: transparent !important; color: #fff;
}

/* Modal */
.cm-modal { border: none; border-radius: 20px !important; overflow: hidden; }
.cm-modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 1.2rem 1.5rem; display: flex; align-items: center;
    justify-content: space-between;
}
.cm-modal-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.cm-modal-author {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 1rem;
}
.cm-modal-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 3px solid #eef2ff;
}
.cm-modal-body {
    background: #f8fafc; border-radius: 14px; padding: 1rem 1.2rem;
    white-space: pre-line; line-height: 1.7; font-size: .88rem;
    color: #334155; margin-bottom: 1.2rem;
    border-left: 4px solid #6366f1;
}
.cm-modal-meta {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 1rem;
}
.cm-meta-item {
    display: flex; align-items: center; gap: 10px;
    background: #fafbfd; border-radius: 12px; padding: 10px 14px;
}
.cm-meta-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--m-bg); color: var(--m-color);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0;
}
.cm-meta-label { font-size: .68rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* Reports in Modal */
.cm-reports-section {
    background: #fef2f2; border-radius: 14px;
    padding: 1rem; margin-top: .5rem;
}
.cm-reports-title {
    color: #dc2626; font-size: .85rem; font-weight: 800; margin-bottom: .75rem;
}
.cm-report-item {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-radius: 10px; padding: 10px 14px;
    margin-bottom: 8px; font-size: .82rem;
}
.cm-report-body { flex: 1; }
.cm-report-body strong { color: #1e293b; }
.cm-report-body p { color: #475569; margin: 2px 0; font-size: .8rem; }
.cm-report-actions { display: flex; gap: 6px; }

/* Responsive */
@media (max-width: 767.98px) {
    .cm-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .cm-toolbar { flex-direction: column; }
    .cm-search-input { width: 100%; }
    .cm-modal-meta { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .cm-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cm-card { padding: 12px; }
    .cm-card-icon { width: 36px; height: 36px; font-size: 1rem; }
    .cm-card-num { font-size: 1.1rem; }
}

/* Legacy compat */
.cmt-admin-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cmt-admin-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.cmt-admin-filter-btn {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    padding: 7px 18px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
}
.cmt-admin-filter-btn.active,
.cmt-admin-filter-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.cmt-admin-table th {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    border-bottom: 2px solid #f0f0f0;
    padding: 12px 16px;
}
.cmt-admin-table td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: .85rem;
}
.cmt-admin-status {
    font-size: .72rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}
.cmt-admin-status.visible { background: #dcfce7; color: #15803d; }
.cmt-admin-status.hidden { background: #fee2e2; color: #b91c1c; }
.cmt-admin-status.reported { background: #fef3c7; color: #92400e; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cmt-section { padding: 18px 14px; }
    .cmt-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .cmt-reply { margin-left: 20px; }
    .cmt-item { padding: 12px 8px; gap: 8px; }
    .cmt-reaction-picker-popup { max-width: 240px; }
    .cmt-emoji-grid { gap: 2px; }
    .cmt-emoji-item { width: 34px; height: 34px; font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ENTERPRISE FOLLOW SYSTEM                                       */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Follow User List ── */
.follow-user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.follow-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    transition: all 0.2s ease;
}

.follow-user-card:first-child {
    border-radius: 12px 12px 0 0;
}

.follow-user-card:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.follow-user-card:only-child {
    border-radius: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.follow-user-card:hover {
    background: #f8f9ff;
    border-color: var(--bs-primary, #3b82f6);
    z-index: 1;
    position: relative;
}

.follow-user-card-link {
    cursor: pointer;
}

.follow-user-card-link:hover {
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}

/* ── Follow Avatar ── */
.follow-user-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follow-avatar-placeholder {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bs-primary, #3b82f6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.follow-verified {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--bs-primary, #3b82f6);
    box-shadow: 0 0 0 2px #fff;
}

/* ── Follow User Info ── */
.follow-user-info {
    flex: 1;
    min-width: 0;
}

.follow-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.follow-user-name:hover {
    color: var(--bs-primary, #3b82f6);
}

.follow-user-handle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1px;
}

.follow-user-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #6b7280;
}

.follow-user-stats strong {
    color: #374151;
    font-weight: 600;
}

/* ── Mutual Badge ── */
.follow-mutual-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--bs-primary, #3b82f6);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Business Badge in Follow Cards ── */
.badge-business {
    display: inline-block;
    padding: 1px 8px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Follow Action Button ── */
.follow-user-action {
    flex-shrink: 0;
}

.follow-toggle-btn {
    border-radius: 100px !important;
    padding: 6px 18px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    min-width: 110px;
}

.follow-toggle-btn:hover {
    transform: scale(1.03);
}

/* Following button hover to show "Unfollow" */
.follow-toggle-btn.btn-primary:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ── Admin: Follow Trend Chart ── */
.follow-trend-chart {
    position: relative;
}

.follow-trend-bar {
    background: linear-gradient(180deg, var(--bs-primary, #3b82f6), #93c5fd);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-trend-bar:hover {
    background: linear-gradient(180deg, #1d4ed8, #3b82f6);
    transform: scaleY(1.08);
    transform-origin: bottom;
}

.follow-trend-tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.follow-trend-bar:hover .follow-trend-tooltip {
    opacity: 1;
}

/* ── Admin: Follow Activity Feed ── */
.follow-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.follow-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.follow-activity-item:last-child {
    border-bottom: none;
}

.follow-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.follow-activity-content {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Responsive Follow System ── */
@media (max-width: 767.98px) {
    .follow-user-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .follow-user-avatar {
        width: 42px;
        height: 42px;
    }

    .follow-user-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .follow-toggle-btn {
        min-width: 90px;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    .follow-user-name {
        font-size: 0.88rem;
    }
}

@media (max-width: 575.98px) {
    .follow-user-card {
        flex-wrap: wrap;
    }

    .follow-user-action {
        width: 100%;
        margin-top: 4px;
    }

    .follow-toggle-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════
   ADMIN LISTINGS PAGE - Light Modern Theme
   ═══════════════════════════════════════════ */

.alp-page {
    min-height: 100vh;
    background: #f4f6fb;
    position: relative;
}

.alp-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 20% 10%, rgba(99,102,241,0.05) 0%, transparent 60%),
        radial-gradient(500px circle at 85% 50%, rgba(236,72,153,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.alp-page > .container-fluid {
    position: relative;
    z-index: 1;
}

/* ── Hero ── */
.alp-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1 40%, #818cf8);
    box-shadow: 0 4px 24px rgba(79,70,229,0.15);
}

.alp-hero-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg, transparent, transparent 60px,
        rgba(255,255,255,0.04) 60px, rgba(255,255,255,0.04) 61px
    );
    pointer-events: none;
}

.alp-hero-content {
    position: relative;
    padding: 1.75rem 2rem;
}

.alp-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alp-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.1rem;
}

.alp-hero-sub {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
}

/* Buttons */
.alp-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alp-btn-glass:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alp-btn-glass.alp-btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
}

.alp-btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245,158,11,0.25);
    position: relative;
}

.alp-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.35);
    color: #fff;
}

.alp-btn-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    background: #fff;
    color: #f97316;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ── Stat Tiles ── */
.alp-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alp-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.alp-stat-card:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(79,70,229,0.1);
    color: var(--gray-800);
}

.alp-stat-card.alp-stat-active {
    border-color: #a5b4fc;
    box-shadow: 0 4px 16px rgba(79,70,229,0.12);
}

.alp-stat-ring {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--stat-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.6rem;
    box-shadow: 0 3px 10px var(--stat-glow, rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.alp-stat-card:hover .alp-stat-ring {
    transform: scale(1.1) rotate(3deg);
}

.alp-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--gray-800);
}

.alp-stat-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.alp-stat-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: alpPulse 1.5s infinite;
}

@keyframes alpPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.alp-stat-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79,70,229,0.03), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.alp-stat-card:hover .alp-stat-shimmer {
    left: 150%;
}

/* ── Filter Bar ── */
.alp-filter-bar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.alp-search-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.alp-search-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
    pointer-events: none;
}

.alp-search-wrap input {
    padding-left: 2.4rem;
    padding-right: 2rem;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    font-size: 0.84rem;
}

.alp-search-wrap input::placeholder { color: var(--gray-400); }
.alp-search-wrap input:focus {
    background: #fff;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    color: var(--gray-800);
}

.alp-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alp-search-clear:hover { background: #fef2f2; color: #ef4444; }

.alp-select {
    max-width: 170px;
    border-radius: 10px;
    font-size: 0.82rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.4rem 2rem 0.4rem 0.75rem;
}

.alp-select:focus {
    background: #fff;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    color: var(--gray-800);
}

.alp-select option { background: #fff; color: var(--gray-800); }

.alp-results-count {
    font-size: 0.78rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ── Table ── */
.alp-table-wrap {
    border-radius: 16px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.alp-table-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid #e5e7eb;
}

.alp-th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.alp-th-grow { flex: 1; min-width: 0; }
.alp-th-price { min-width: 110px; text-align: right; }
.alp-th-stats { min-width: 110px; display: flex; }
.alp-th-actions { min-width: 155px; text-align: right; }

/* Rows */
.alp-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    animation: alpRowIn 0.3s ease forwards;
    animation-delay: var(--row-delay, 0s);
    opacity: 0;
}

@keyframes alpRowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alp-row:hover {
    background: #f8faff;
}

.alp-row:last-child { border-bottom: none; }

/* Thumbnail */
.alp-row-thumb {
    width: 56px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.alp-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alp-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 1rem;
}

/* Info */
.alp-row-info {
    flex: 1;
    min-width: 0;
}

.alp-row-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-800);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.2s;
}

.alp-row-title:hover { color: #4f46e5; }

.alp-row-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3px;
    flex-wrap: wrap;
}

.alp-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
}

.alp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.alp-meta-tag {
    font-size: 0.72rem;
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.alp-meta-tag i { font-size: 0.65rem; }

.alp-featured-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Price */
.alp-row-price {
    min-width: 110px;
    text-align: right;
}

.alp-price-main {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gray-800);
}

.alp-price-neg {
    font-size: 0.6rem;
    color: var(--gray-400);
    font-weight: 500;
}

.alp-price-contact {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* Stats */
.alp-row-stats {
    min-width: 110px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.alp-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.alp-mini-stat i { font-size: 0.75rem; }

/* Actions */
.alp-row-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 155px;
    justify-content: flex-end;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.alp-row:hover .alp-row-actions {
    opacity: 1;
}

.alp-act-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--gray-100);
    color: var(--gray-500);
}

.alp-act-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
    transform: scale(1.08);
}

.alp-act-approve {
    background: #dcfce7;
    color: #16a34a;
}
.alp-act-approve:hover { background: #bbf7d0; color: #16a34a; box-shadow: 0 0 8px rgba(22,163,74,0.15); }

.alp-act-edit { color: #6366f1; }
.alp-act-edit:hover { background: #eef2ff; color: #4f46e5; }

.alp-act-star { color: var(--gray-300); }
.alp-act-star:hover { background: #fffbeb; color: #f59e0b; }

.alp-act-starred {
    background: #fffbeb;
    color: #f59e0b;
}
.alp-act-starred:hover { background: #fef3c7; }

.alp-act-more { color: var(--gray-400); }

/* Dropdown - ensure it pops above rows */
.alp-row-actions .dropdown { position: static; }
.alp-row-actions .dropdown-menu { position: absolute; z-index: 1050; }
.alp-row { position: relative; }

.alp-dropdown {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    padding: 0.4rem !important;
}

.alp-dropdown .dropdown-item {
    color: var(--gray-700) !important;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
}

.alp-dropdown .dropdown-item:hover {
    background: var(--gray-50) !important;
    color: var(--gray-900) !important;
}

.alp-dropdown .dropdown-item.text-danger { color: #ef4444 !important; }
.alp-dropdown .dropdown-divider { border-color: #f3f4f6 !important; }

/* Empty */
.alp-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.alp-empty-icon {
    font-size: 3rem;
    color: var(--gray-300);
}

.alp-empty h5 { color: var(--gray-600); }
.alp-empty p { color: var(--gray-400); }

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .alp-stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .alp-hero-content { padding: 1.25rem; }
    .alp-hero-title { font-size: 1.25rem; }
    .alp-title-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .alp-stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .alp-stat-card { padding: 0.85rem 0.5rem; }
    .alp-stat-ring { width: 36px; height: 36px; font-size: 0.9rem; }
    .alp-stat-num { font-size: 1.2rem; }
    .alp-filter-bar { padding: 0.6rem 0.75rem; }
    .alp-search-wrap { max-width: none; width: 100%; }
    .alp-select { max-width: none; flex: 1; min-width: 0; }
    .alp-table-head { display: none; }
    .alp-row { flex-wrap: wrap; gap: 0.5rem; padding: 0.85rem; }
    .alp-row-info { width: calc(100% - 70px); }
    .alp-row-actions { width: 100%; justify-content: flex-end; opacity: 1; }
}

@media (max-width: 575.98px) {
    .alp-stats-row { grid-template-columns: repeat(2, 1fr); }
    .alp-stat-card { padding: 0.75rem 0.5rem; }
    .alp-stat-num { font-size: 1.1rem; }
    .alp-stat-ring { width: 32px; height: 32px; font-size: 0.8rem; margin-bottom: 0.4rem; }
}

/* ══════════════════════════════════════════
   Admin Users – Modern Redesign
   ══════════════════════════════════════════ */
.au-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Header */
.au-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-bottom: 24px;
}
.au-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.au-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 2px 0 0;
}

/* Stat filter cards */
.au-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.au-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.au-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity .2s;
}
.au-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.au-card:hover::before {
    opacity: 1;
}
.au-card-active {
    border-color: var(--card-accent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--card-accent) 15%, transparent);
}
.au-card-active::before {
    opacity: 1;
}
.au-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-accent) 12%, transparent);
    color: var(--card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.au-card-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.au-card-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Toolbar */
.au-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}
.au-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
}
.au-search-wrap {
    position: relative;
    flex: 1;
}
.au-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}
.au-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    background: #fff;
    transition: all .2s;
    outline: none;
}
.au-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.au-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}
.au-search-clear:hover { color: #ef4444; }
.au-search-btn {
    padding: 10px 24px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.au-search-btn:hover { background: #4f46e5; }

.au-sort-select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* Active filter tags */
.au-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.au-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.au-filter-tag a {
    color: #6366f1;
    opacity: .6;
    transition: opacity .2s;
}
.au-filter-tag a:hover { opacity: 1; }

/* Table */
.au-table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.au-table {
    width: 100%;
    border-collapse: collapse;
}
.au-table thead th {
    padding: 14px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.au-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.au-table tbody tr:last-child { border-bottom: none; }
.au-table tbody tr:hover { background: #f8fafc; }
.au-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}
.au-row-locked { background: #fef2f2 !important; }
.au-row-locked:hover { background: #fee2e2 !important; }

/* User cell */
.au-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.au-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.au-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.au-avatar-letter {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
}
.au-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #14b8a6;
    color: #fff;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.au-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}
.au-user-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Contact cell */
.au-contact-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.au-email {
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.au-email:hover { color: #6366f1; }
.au-phone {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Location */
.au-location {
    font-size: 0.82rem;
    color: #64748b;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Listing count */
.au-listing-count {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}
.au-listing-active {
    display: block;
    font-size: 0.65rem;
    color: #10b981;
    font-weight: 600;
}

/* Views */
.au-views {
    font-size: 0.82rem;
    color: #64748b;
}

/* Badges */
.au-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--b-color);
    background: var(--b-bg);
    white-space: nowrap;
}

/* Date */
.au-date {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
}
.au-last-seen {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Actions */
.au-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
.au-act-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.au-act-view {
    background: rgba(59,130,246,.08);
    color: #3b82f6;
}
.au-act-view:hover {
    background: rgba(59,130,246,.18);
    color: #2563eb;
}
.au-act-security {
    background: rgba(99,102,241,.08);
    color: #6366f1;
}
.au-act-security:hover {
    background: rgba(99,102,241,.18);
    color: #4f46e5;
}
.au-act-more {
    background: rgba(107,114,128,.08);
    color: #6b7280;
}
.au-act-more:hover {
    background: rgba(107,114,128,.18);
    color: #374151;
}

/* Dropdown */
.au-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
    min-width: 190px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 50;
    display: none;
}
.au-dropdown.show { display: block; }
.au-dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s;
}
.au-dropdown a:hover { background: #f8fafc; }
.au-dropdown a.text-danger { color: #ef4444 !important; }
.au-dropdown a.text-danger:hover { background: #fef2f2; }
.au-dropdown hr {
    margin: 4px 0;
    border-color: #f1f5f9;
}

/* You badge */
.au-you-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .au-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .au-toolbar { flex-wrap: wrap; }
    .au-sort { width: 100%; }
    .au-sort-select { width: 100%; }
}
@media (max-width: 767.98px) {
    .au-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .au-card { padding: 12px; }
    .au-card-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .au-card-num { font-size: 1.1rem; }
    .au-table-wrap { overflow-x: auto; }
    .au-table { min-width: 800px; }
}

/* ═══════════════════════════════════════════
   ADMIN REVIEWS PAGE - Modern Colorful Light
   ═══════════════════════════════════════════ */

.arv-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8ecff 20%, #fdf2f8 45%, #ecfdf5 70%, #eff6ff 100%);
    background-attachment: fixed;
    position: relative;
}

.arv-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 10% 20%, rgba(99,102,241,0.06) 0%, transparent 60%),
        radial-gradient(500px circle at 85% 30%, rgba(236,72,153,0.05) 0%, transparent 60%),
        radial-gradient(450px circle at 50% 85%, rgba(16,185,129,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.arv-page > .container-fluid { position: relative; z-index: 1; }

/* ── Hero ── */
.arv-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

.arv-hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.arv-hero-deco-1 {
    width: 200px; height: 200px;
    top: -60px; right: -40px;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
}

.arv-hero-deco-2 {
    width: 160px; height: 160px;
    bottom: -50px; left: 20%;
    background: radial-gradient(circle, rgba(236,72,153,0.06), transparent 70%);
}

.arv-hero-content {
    position: relative;
    padding: 1.75rem 2rem;
}

.arv-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.arv-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.arv-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
}

.arv-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(99,102,241,0.2);
}

.arv-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.6);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.arv-btn-glass:hover {
    background: rgba(255,255,255,0.8);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Stat Cards ── */
.arv-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.arv-stat-card {
    text-align: center;
    padding: 1.15rem 0.75rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.arv-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--sc-glow, rgba(0,0,0,0.05));
    background: rgba(255,255,255,0.8);
}

.arv-stat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--sc-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 14px var(--sc-glow, rgba(0,0,0,0.1));
    transition: transform 0.25s;
}

.arv-stat-card:hover .arv-stat-icon {
    transform: scale(1.1) rotate(3deg);
}

.arv-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    line-height: 1;
}

.arv-stat-label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* ── Rating Distribution Bar ── */
.arv-dist-bar {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
}

.arv-dist-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
}

.arv-dist-label i { color: #6366f1; }

.arv-dist-track {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    gap: 2px;
    background: #f1f5f9;
}

.arv-dist-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    transition: width 0.5s ease;
    min-width: 0;
}

.arv-dist-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.arv-dist-legend span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.arv-dist-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Filter Bar ── */
.arv-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.65);
    flex-wrap: wrap;
}

.arv-filters {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.arv-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: #64748b;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.arv-filter-pill i { font-size: 0.7rem; }

.arv-filter-pill:hover {
    background: rgba(255,255,255,0.8);
    color: var(--pill-c, #6366f1);
    border-color: var(--pill-c, #6366f1);
}

.arv-filter-pill.arv-pill-active {
    background: var(--pill-c, #6366f1);
    color: #fff;
    border-color: var(--pill-c, #6366f1);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--pill-c, #6366f1) 25%, transparent);
}

.arv-search-form { display: flex; }

.arv-search-wrap {
    position: relative;
    min-width: 220px;
}

.arv-search-wrap > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.arv-search-wrap input {
    width: 100%;
    padding: 0.4rem 2rem 0.4rem 2.2rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
}

.arv-search-wrap input::placeholder { color: #94a3b8; }

.arv-search-wrap input:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.arv-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.15s;
}

.arv-search-clear:hover { background: #fee2e2; color: #ef4444; }

/* ── Review Cards ── */
.arv-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.arv-review {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    animation: arvRowIn 0.35s ease forwards;
    animation-delay: var(--row-delay, 0s);
    opacity: 0;
}

@keyframes arvRowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.arv-review:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.arv-review.arv-review-hidden {
    border-color: rgba(239,68,68,0.15);
}

.arv-hidden-banner {
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239,68,68,0.06);
    border-bottom: 1px solid rgba(239,68,68,0.08);
}

.arv-review-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
}

/* People section */
.arv-review-people {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 260px;
    flex-shrink: 0;
}

.arv-person {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arv-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #6366f1;
    font-weight: 700;
    font-size: 0.85rem;
}

.arv-avatar-seller {
    background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    color: #ec4899;
}

.arv-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.arv-person-info { min-width: 0; }

.arv-person-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1e293b;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.arv-person-name:hover { color: #6366f1; }

.arv-person-role {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.arv-review-arrow {
    color: #cbd5e1;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Content section */
.arv-review-content {
    flex: 1;
    min-width: 0;
}

.arv-stars {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: #f59e0b;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.arv-rating-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    margin-left: 0.35rem;
}

.arv-review-text {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arv-no-text { color: #94a3b8; font-style: italic; }

.arv-reply-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59,130,246,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.25rem;
}

.arv-review-time {
    font-size: 0.68rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.arv-helpful {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #10b981;
    font-weight: 600;
}

/* Actions */
.arv-review-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.arv-review:hover .arv-review-actions { opacity: 1; }

.arv-act-btn {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(0,0,0,0.03);
    color: #64748b;
}

.arv-act-btn:hover {
    transform: scale(1.08);
}

.arv-act-view:hover { background: rgba(59,130,246,0.1); color: #3b82f6; }
.arv-act-show { color: #10b981; }
.arv-act-show:hover { background: rgba(16,185,129,0.1); color: #10b981; }
.arv-act-hide:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.arv-act-delete { color: #ef4444; }
.arv-act-delete:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ── Empty State ── */
.arv-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.arv-empty-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    color: #6366f1;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.arv-empty-ring {
    position: absolute;
    border-radius: 20px;
    border: 2px solid rgba(99,102,241,0.1);
    pointer-events: none;
}

.arv-empty-ring-1 { inset: -8px; animation: rgnRingPulse 3s ease-in-out infinite; }
.arv-empty-ring-2 { inset: -18px; animation: rgnRingPulse 3s ease-in-out 0.5s infinite; opacity: 0.5; }

.arv-empty h5 { color: #334155; font-weight: 700; }
.arv-empty p { color: #94a3b8; font-size: 0.88rem; margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .arv-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .arv-review-body { flex-wrap: wrap; gap: 0.75rem; }
    .arv-review-people { min-width: auto; width: 100%; }
    .arv-review-actions { width: 100%; justify-content: flex-end; opacity: 1; }
}

@media (max-width: 767.98px) {
    .arv-hero-content { padding: 1.25rem; }
    .arv-title { font-size: 1.25rem; }
    .arv-title-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .arv-stats { grid-template-columns: repeat(2, 1fr); }
    .arv-stat-card { padding: 0.85rem 0.5rem; }
    .arv-stat-num { font-size: 1.2rem; }
    .arv-filter-bar { flex-direction: column; align-items: stretch; }
    .arv-search-wrap { min-width: auto; width: 100%; }
    .arv-review-people { flex-wrap: wrap; }
    .arv-person-name { max-width: 80px; }
}

@media (max-width: 575.98px) {
    .arv-stats { grid-template-columns: repeat(2, 1fr); }
    .arv-stat-card:last-child { grid-column: span 2; }
}

/* ═══════════════════════════════════════════
   ADMIN MESSAGES PAGE - Modern Colorful Light
   ═══════════════════════════════════════════ */

.amsg-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eef2ff 0%, #f0fdf4 25%, #eff6ff 50%, #fdf4ff 75%, #f0f9ff 100%);
    background-attachment: fixed;
}

.amsg-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 15% 25%, rgba(99,102,241,0.06) 0%, transparent 55%),
        radial-gradient(500px circle at 80% 50%, rgba(16,185,129,0.05) 0%, transparent 55%),
        radial-gradient(450px circle at 50% 85%, rgba(236,72,153,0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.amsg-page > .container-fluid { position: relative; z-index: 1; }

/* ── Hero ── */
.amsg-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

.amsg-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.amsg-hero-orb-1 {
    width: 180px; height: 180px;
    top: -50px; right: -30px;
    background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 70%);
}

.amsg-hero-orb-2 {
    width: 140px; height: 140px;
    bottom: -40px; left: 15%;
    background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%);
}

.amsg-hero-body {
    position: relative;
    padding: 1.75rem 2rem;
}

.amsg-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.amsg-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(6,182,212,0.25);
}

.amsg-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0.35rem 0 0;
}

.amsg-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.6);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.amsg-btn-glass:hover {
    background: rgba(255,255,255,0.8);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Stats ── */
.amsg-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.amsg-stat {
    text-align: center;
    padding: 1.1rem 0.75rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.amsg-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--st-glow, rgba(0,0,0,0.05));
    background: rgba(255,255,255,0.85);
}

.amsg-stat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--st-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 14px var(--st-glow, rgba(0,0,0,0.1));
    transition: transform 0.25s;
}

.amsg-stat:hover .amsg-stat-icon {
    transform: scale(1.1) rotate(3deg);
}

.amsg-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    line-height: 1;
}

.amsg-stat-lbl {
    font-size: 0.67rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* ── Toolbar ── */
.amsg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.65);
    flex-wrap: wrap;
}

.amsg-view-tabs { display: flex; gap: 0.35rem; }

.amsg-vtab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: #64748b;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.amsg-vtab i { font-size: 0.75rem; }

.amsg-vtab:hover {
    background: rgba(255,255,255,0.7);
    color: var(--tab-c, #6366f1);
    border-color: var(--tab-c, #6366f1);
}

.amsg-vtab.amsg-vtab-active {
    background: var(--tab-c, #6366f1);
    color: #fff;
    border-color: var(--tab-c, #6366f1);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--tab-c, #6366f1) 25%, transparent);
}

.amsg-search-form { display: flex; }

.amsg-search-wrap {
    position: relative;
    min-width: 260px;
}

.amsg-search-wrap > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.amsg-search-wrap input {
    width: 100%;
    padding: 0.42rem 2rem 0.42rem 2.2rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
}

.amsg-search-wrap input::placeholder { color: #94a3b8; }

.amsg-search-wrap input:focus {
    background: #fff;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
}

.amsg-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-decoration: none;
}

.amsg-search-clear:hover { background: #fee2e2; color: #ef4444; }

/* ── List Wrapper ── */
.amsg-list-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}

/* ── Table Head ── */
.amsg-table-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(0,0,0,0.015);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.amsg-th {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.amsg-th-grow { flex: 1; min-width: 0; }
.amsg-th-listing { width: 160px; }
.amsg-th-status { width: 80px; }
.amsg-th-time { width: 90px; }
.amsg-th-act { width: 40px; }

/* ── Message Row ── */
.amsg-msg-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s;
    animation: amsgRowIn 0.3s ease forwards;
    animation-delay: var(--row-d, 0s);
    opacity: 0;
}

@keyframes amsgRowIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.amsg-msg-row:hover { background: rgba(255,255,255,0.5); }
.amsg-msg-row:last-child { border-bottom: none; }

.amsg-msg-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-weight: 700;
    font-size: 0.85rem;
}

.amsg-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.amsg-msg-content { flex: 1; min-width: 0; }

.amsg-msg-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
}

.amsg-msg-sender {
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b;
}

.amsg-msg-arrow { font-size: 0.6rem; color: #cbd5e1; }

.amsg-msg-receiver {
    font-weight: 500;
    font-size: 0.82rem;
    color: #64748b;
}

.amsg-msg-text {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.amsg-msg-listing { width: 160px; flex-shrink: 0; }

.amsg-listing-link {
    font-size: 0.72rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.amsg-listing-link:hover { color: #4f46e5; text-decoration: underline; }
.amsg-no-listing { color: #cbd5e1; font-size: 0.8rem; }

.amsg-msg-status { width: 80px; flex-shrink: 0; display: flex; }

.amsg-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 700;
}

.amsg-read { background: rgba(59,130,246,0.08); color: #3b82f6; }
.amsg-unread { background: rgba(245,158,11,0.1); color: #f59e0b; }

.amsg-msg-time {
    width: 90px;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #94a3b8;
}

.amsg-msg-act { width: 40px; flex-shrink: 0; text-align: right; }

.amsg-act-btn {
    width: 32px; height: 32px;
    border-radius: 9px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: rgba(0,0,0,0.03);
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.4;
}

.amsg-msg-row:hover .amsg-act-btn,
.amsg-conv-row:hover .amsg-act-btn { opacity: 1; }

.amsg-act-del:hover { background: rgba(239,68,68,0.08); color: #ef4444; transform: scale(1.08); }

/* ── Conversation Row ── */
.amsg-conv-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s;
    animation: amsgRowIn 0.3s ease forwards;
    animation-delay: var(--row-d, 0s);
    opacity: 0;
}

.amsg-conv-row:hover { background: rgba(255,255,255,0.5); }
.amsg-conv-row:last-child { border-bottom: none; }

.amsg-conv-row.amsg-conv-unread {
    background: rgba(99,102,241,0.03);
}

.amsg-conv-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.amsg-conv-av {
    width: 38px; height: 38px;
    border-radius: 11px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.amsg-conv-av img { width: 100%; height: 100%; object-fit: cover; }

.amsg-conv-av-1 {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #6366f1;
}

.amsg-conv-av-2 {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #ec4899;
}

.amsg-conv-link-icon {
    font-size: 0.55rem;
    color: #cbd5e1;
}

.amsg-conv-info { flex: 1; min-width: 0; }

.amsg-conv-names {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.amsg-conv-names i { font-size: 0.55rem; color: #cbd5e1; }

.amsg-conv-preview {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0.15rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amsg-conv-badges {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: center;
}

.amsg-badge-msgs {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(99,102,241,0.08);
    color: #6366f1;
}

.amsg-badge-unread {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

.amsg-conv-time {
    font-size: 0.7rem;
    color: #94a3b8;
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}

.amsg-conv-act { flex-shrink: 0; }

/* ── Empty State ── */
.amsg-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.amsg-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    color: #6366f1;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.amsg-empty h5 { color: #334155; font-weight: 700; }
.amsg-empty p { color: #94a3b8; font-size: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .amsg-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .amsg-hero-body { padding: 1.25rem; }
    .amsg-title { font-size: 1.25rem; }
    .amsg-title-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .amsg-stats { grid-template-columns: repeat(2, 1fr); }
    .amsg-stat:last-child { grid-column: span 2; }
    .amsg-toolbar { flex-direction: column; align-items: stretch; }
    .amsg-search-wrap { min-width: auto; width: 100%; }
    .amsg-table-head { display: none; }
    .amsg-msg-row { flex-wrap: wrap; }
    .amsg-msg-content { width: calc(100% - 55px); }
    .amsg-msg-act { width: auto; }
    .amsg-conv-row { flex-wrap: wrap; gap: 0.5rem; }
    .amsg-conv-info { width: calc(100% - 100px); }
    .amsg-conv-badges { width: 100%; }
    .amsg-conv-time { text-align: left; }
}

@media (max-width: 575.98px) {
    .amsg-stats { grid-template-columns: repeat(2, 1fr); }
    .amsg-conv-avatars { gap: 2px; }
    .amsg-conv-av { width: 32px; height: 32px; font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════
   ADMIN REPORTS PAGE - Modern Colorful Light
   ═══════════════════════════════════════════ */

.arpt-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eef2ff 0%, #fdf4ff 25%, #ecfdf5 50%, #eff6ff 75%, #fefce8 100%);
    background-attachment: fixed;
}

.arpt-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(600px circle at 10% 20%, rgba(99,102,241,0.06) 0%, transparent 55%),
        radial-gradient(500px circle at 85% 40%, rgba(16,185,129,0.05) 0%, transparent 55%),
        radial-gradient(400px circle at 50% 90%, rgba(236,72,153,0.04) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}

.arpt-page > .container-fluid { position: relative; z-index: 1; }

/* ── Hero ── */
.arpt-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

.arpt-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.arpt-hero-orb-1 { width: 200px; height: 200px; top: -60px; right: -40px; background: radial-gradient(circle, rgba(236,72,153,0.07), transparent 70%); }
.arpt-hero-orb-2 { width: 160px; height: 160px; bottom: -50px; left: 10%; background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%); }
.arpt-hero-orb-3 { width: 120px; height: 120px; top: -20px; left: 45%; background: radial-gradient(circle, rgba(16,185,129,0.05), transparent 70%); }

.arpt-hero-body { position: relative; padding: 1.75rem 2rem; }

.arpt-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.arpt-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(236,72,153,0.25);
}

.arpt-subtitle { color: #64748b; font-size: 0.82rem; margin: 0.35rem 0 0; }
.arpt-subtitle strong { color: #334155; }

/* Range tabs */
.arpt-range-tabs {
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
}

.arpt-range-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s;
    border-right: 1px solid rgba(0,0,0,0.04);
}

.arpt-range-tab:last-child { border-right: none; }

.arpt-range-tab:hover { background: rgba(255,255,255,0.6); color: #6366f1; }

.arpt-range-tab.arpt-range-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

.arpt-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.6);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.arpt-btn-glass:hover {
    background: rgba(255,255,255,0.8);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Metric Cards ── */
.arpt-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.arpt-metric {
    position: relative;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.25s ease;
    animation: arptMetIn 0.4s ease forwards;
    animation-delay: var(--md, 0s);
    opacity: 0;
}

@keyframes arptMetIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.arpt-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--mc1) 12%, transparent);
    background: rgba(255,255,255,0.85);
}

.arpt-metric-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--mbg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mc1);
    font-size: 1rem;
    margin: 0 auto 0.45rem;
    transition: transform 0.25s;
}

.arpt-metric:hover .arpt-metric-icon {
    transform: scale(1.12) rotate(3deg);
}

.arpt-metric-val {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mc1), var(--mc2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.arpt-metric-lbl {
    font-size: 0.63rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

.arpt-metric-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.arpt-metric:hover .arpt-metric-shimmer { left: 150%; }

/* ── Cards ── */
.arpt-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.arpt-card-head {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.arpt-card-head h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arpt-card-head h6 i { font-size: 0.9rem; }

.arpt-card-badge {
    display: inline-flex;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(99,102,241,0.08);
    color: #6366f1;
    margin-left: 0.3rem;
}

.arpt-card-body { padding: 1rem 1.15rem; }

/* ── Bar charts ── */
.arpt-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.arpt-bar-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arpt-bar-label i { font-size: 0.72rem; flex-shrink: 0; }

.arpt-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.04);
    overflow: hidden;
}

.arpt-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.arpt-bar-val {
    min-width: 30px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

/* ── User Breakdown ── */
.arpt-breakdown-section { margin-bottom: 0.5rem; }

.arpt-breakdown-title {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.arpt-bd-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.arpt-bd-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.arpt-bd-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.arpt-bd-count {
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.arpt-bd-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 0.5rem 0;
}

/* ── Top Viewed Items ── */
.arpt-top-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.arpt-top-item:last-child { border-bottom: none; }

.arpt-top-rank {
    width: 24px; height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    color: #6366f1;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arpt-top-info { flex: 1; min-width: 0; }

.arpt-top-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arpt-top-title:hover { color: #6366f1; }

.arpt-top-meta {
    font-size: 0.65rem;
    color: #94a3b8;
}

.arpt-top-views {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(6,182,212,0.08);
    color: #06b6d4;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .arpt-metrics { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 991.98px) {
    .arpt-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .arpt-hero-body { padding: 1.25rem; }
    .arpt-title { font-size: 1.25rem; }
    .arpt-title-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .arpt-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .arpt-metric { padding: 0.75rem 0.4rem; }
    .arpt-metric-val { font-size: 1.15rem; }
    .arpt-metric-icon { width: 32px; height: 32px; font-size: 0.85rem; }
    .arpt-bar-label { min-width: 80px; font-size: 0.72rem; }
}

@media (max-width: 575.98px) {
    .arpt-metrics { grid-template-columns: repeat(2, 1fr); }
    .arpt-range-tabs { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   ADMIN VERIFICATIONS - Modern Colorful Light
   ═══════════════════════════════════════════ */

.avrf-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #ecfdf5 0%, #eef2ff 25%, #f0fdf4 50%, #fdf4ff 75%, #eff6ff 100%);
    background-attachment: fixed;
}

.avrf-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(600px circle at 20% 20%, rgba(16,185,129,0.06) 0%, transparent 55%),
        radial-gradient(500px circle at 80% 45%, rgba(99,102,241,0.05) 0%, transparent 55%),
        radial-gradient(400px circle at 40% 85%, rgba(236,72,153,0.04) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}

.avrf-page > .container-fluid { position: relative; z-index: 1; }

/* Hero */
.avrf-hero {
    position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.avrf-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.avrf-orb-1 { width: 180px; height: 180px; top: -50px; right: -30px; background: radial-gradient(circle, rgba(16,185,129,0.07), transparent 70%); }
.avrf-orb-2 { width: 140px; height: 140px; bottom: -40px; left: 20%; background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%); }
.avrf-hero-body { position: relative; padding: 1.75rem 2rem; }

.avrf-title {
    font-size: 1.6rem; font-weight: 800; color: #1e293b; margin: 0;
    display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px;
}
.avrf-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(16,185,129,0.25);
}
.avrf-subtitle { color: #64748b; font-size: 0.82rem; margin: 0.35rem 0 0; }

.avrf-btn-glass {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem;
    border-radius: 10px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6);
    color: #475569; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.avrf-btn-glass:hover { background: rgba(255,255,255,0.8); color: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.avrf-btn-glass.avrf-btn-sm { padding: 0.35rem 0.65rem; font-size: 0.72rem; }

/* Stats */
.avrf-stats {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.65rem; margin-bottom: 1.25rem;
}
.avrf-stat {
    position: relative; text-align: center; padding: 1rem 0.5rem; border-radius: 14px;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-decoration: none; color: #1e293b; transition: all 0.25s;
}
.avrf-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px color-mix(in srgb, var(--sc) 12%, transparent); background: rgba(255,255,255,0.8); color: #1e293b; }
.avrf-stat.avrf-stat-active { border-color: var(--sc); box-shadow: 0 4px 16px color-mix(in srgb, var(--sc) 15%, transparent); background: rgba(255,255,255,0.8); }

.avrf-stat-icon {
    width: 36px; height: 36px; border-radius: 10px; background: var(--sbg); color: var(--sc);
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem;
    margin: 0 auto 0.4rem; transition: transform 0.25s;
}
.avrf-stat:hover .avrf-stat-icon { transform: scale(1.1) rotate(3deg); }
.avrf-stat-num { font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--sc); }
.avrf-stat-lbl { font-size: 0.6rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
.avrf-stat-pulse { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: alpPulse 1.5s infinite; }

/* Toolbar */
.avrf-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.65rem 1rem; margin-bottom: 1.25rem; border-radius: 12px;
    background: rgba(255,255,255,0.5); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.avrf-search-form { display: flex; flex: 1; max-width: 380px; }
.avrf-search-wrap { position: relative; width: 100%; }
.avrf-search-wrap > i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.8rem; pointer-events: none; }
.avrf-search-wrap input { width: 100%; padding: 0.42rem 2rem 0.42rem 2.2rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.6); font-size: 0.82rem; color: #1e293b; outline: none; transition: all 0.2s; }
.avrf-search-wrap input::placeholder { color: #94a3b8; }
.avrf-search-wrap input:focus { background: #fff; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.avrf-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; text-decoration: none; }
.avrf-search-clear:hover { background: #fee2e2; color: #ef4444; }
.avrf-toolbar-info { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; }

/* List */
.avrf-list-wrap {
    border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 2px 14px rgba(0,0,0,0.03);
}
.avrf-table-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; background: rgba(0,0,0,0.015); border-bottom: 1px solid rgba(0,0,0,0.04); }
.avrf-th { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8; }
.avrf-th-grow { flex: 1; min-width: 0; }

.avrf-row {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.2s;
    animation: amsgRowIn 0.3s ease forwards; animation-delay: var(--row-d, 0s); opacity: 0;
}
.avrf-row:hover { background: rgba(255,255,255,0.5); }
.avrf-row:last-child { border-bottom: none; }

.avrf-row-avatar {
    width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #d1fae5); display: flex; align-items: center; justify-content: center;
    color: #10b981; font-weight: 700; font-size: 0.82rem;
}
.avrf-row-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avrf-row-info { flex: 1; min-width: 0; }
.avrf-row-info-grow { flex: 1; }
.avrf-row-name { font-weight: 600; font-size: 0.84rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avrf-row-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: #94a3b8; margin-top: 1px; flex-wrap: wrap; }
.avrf-row-meta i { font-size: 0.62rem; }

.avrf-type-pill {
    display: inline-flex; padding: 0.1rem 0.4rem; border-radius: 50px;
    font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
    background: color-mix(in srgb, var(--tp) 10%, transparent); color: var(--tp);
}
.avrf-type-badge {
    display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 50px; margin-top: 0.4rem;
    font-size: 0.65rem; font-weight: 700; background: color-mix(in srgb, var(--tb) 10%, transparent); color: var(--tb);
}

.avrf-doc-badge {
    display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15rem 0.45rem;
    border-radius: 6px; font-size: 0.6rem; font-weight: 600;
    background: rgba(99,102,241,0.06); color: #6366f1;
}

.avrf-row-docs { display: flex; gap: 0.3rem; flex-shrink: 0; }
.avrf-row-status { flex-shrink: 0; }
.avrf-status-chip { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 50px; font-size: 0.65rem; font-weight: 700; }
.avrf-row-time { font-size: 0.7rem; color: #94a3b8; flex-shrink: 0; min-width: 70px; }
.avrf-row-email { font-size: 0.75rem; color: #64748b; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 200px; flex-shrink: 0; }
.avrf-row-badge { width: 60px; flex-shrink: 0; justify-content: center; display: flex; }
.avrf-row-num { width: 55px; flex-shrink: 0; text-align: center; font-size: 0.8rem; font-weight: 700; color: #475569; }
.avrf-row-act { flex-shrink: 0; text-align: right; }

.avrf-review-btn {
    display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0.65rem;
    border-radius: 8px; font-size: 0.72rem; font-weight: 700; text-decoration: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2); transition: all 0.2s;
}
.avrf-review-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.3); color: #fff; }

.avrf-action-small {
    display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.3rem 0.6rem;
    border-radius: 8px; font-size: 0.7rem; font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.avrf-action-verify { background: rgba(16,185,129,0.08); color: #10b981; }
.avrf-action-verify:hover { background: rgba(16,185,129,0.15); color: #059669; }
.avrf-action-remove { background: rgba(239,68,68,0.06); color: #ef4444; }
.avrf-action-remove:hover { background: rgba(239,68,68,0.12); color: #dc2626; }

/* Cards */
.avrf-card {
    border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.avrf-card-head { padding: 0.85rem 1.15rem; border-bottom: 1px solid rgba(0,0,0,0.04); display: flex; justify-content: space-between; align-items: center; }
.avrf-card-head h6 { margin: 0; font-weight: 700; font-size: 0.88rem; color: #1e293b; display: flex; align-items: center; gap: 0.4rem; }
.avrf-card-body { padding: 1.25rem; }

.avrf-info-chip { padding: 0.65rem 0.85rem; border-radius: 10px; background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04); }
.avrf-info-chip small { font-size: 0.65rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.avrf-info-chip strong { display: block; font-size: 0.85rem; color: #1e293b; margin-top: 0.15rem; }

.avrf-section-title { font-weight: 700; font-size: 0.85rem; color: #334155; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.avrf-section-title i { color: #6366f1; }

/* Doc card */
.avrf-doc-card { border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); padding: 0.75rem; background: rgba(255,255,255,0.4); }
.avrf-doc-label { font-size: 0.7rem; font-weight: 700; color: #64748b; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.avrf-doc-img { width: 100%; max-height: 350px; object-fit: contain; border-radius: 8px; background: #f8fafc; cursor: pointer; transition: transform 0.2s; }
.avrf-doc-img:hover { transform: scale(1.02); }
.avrf-doc-pdf { text-align: center; padding: 2rem 0; color: #ef4444; font-size: 3rem; }
.avrf-doc-pdf span { display: block; font-size: 0.8rem; color: #64748b; margin-top: 0.3rem; }

/* Checklist */
.avrf-checklist { display: flex; flex-direction: column; gap: 0.4rem; }
.avrf-check { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 10px; font-size: 0.82rem; }
.avrf-check i { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.avrf-check small { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.avrf-check-pass { background: rgba(16,185,129,0.06); color: #10b981; }
.avrf-check-pass span { color: #334155; }
.avrf-check-warn { background: rgba(245,158,11,0.06); color: #f59e0b; }
.avrf-check-warn span { color: #92400e; }
.avrf-check-fail { background: rgba(239,68,68,0.06); color: #ef4444; }
.avrf-check-fail span { color: #991b1b; }

/* Result banner */
.avrf-result-banner { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.82rem; }
.avrf-result-approved { background: rgba(16,185,129,0.08); color: #059669; }
.avrf-result-rejected { background: rgba(239,68,68,0.08); color: #dc2626; }
.avrf-result-banner i { font-size: 1.1rem; margin-top: 1px; }

/* User sidebar */
.avrf-user-avatar {
    position: relative; width: 64px; height: 64px; border-radius: 16px;
    overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d1fae5, #e0e7ff); color: #10b981; font-size: 1.4rem; font-weight: 800;
}
.avrf-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avrf-verified-badge { position: absolute; bottom: -2px; right: -2px; color: #3b82f6; font-size: 0.85rem; background: #fff; border-radius: 50%; padding: 1px; }
.avrf-user-details { text-align: left; margin-top: 0.75rem; }
.avrf-user-details div { padding: 0.4rem 0; font-size: 0.78rem; color: #475569; border-bottom: 1px solid rgba(0,0,0,0.04); display: flex; align-items: center; gap: 0.4rem; }
.avrf-user-details div:last-child { border-bottom: none; }
.avrf-user-details i { color: #94a3b8; font-size: 0.72rem; }

/* Action buttons */
.avrf-action-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.6rem;
    border-radius: 10px; font-size: 0.82rem; font-weight: 700; border: none; cursor: pointer;
    text-decoration: none; transition: all 0.2s; margin-bottom: 0.5rem;
}
.avrf-action-approve { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,0.25); }
.avrf-action-approve:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.3); color: #fff; }
.avrf-action-reject { background: rgba(239,68,68,0.06); color: #ef4444; border: 1px solid rgba(239,68,68,0.15); }
.avrf-action-reject:hover { background: rgba(239,68,68,0.1); }
.avrf-action-confirm-reject { background: #ef4444; color: #fff; box-shadow: 0 3px 10px rgba(239,68,68,0.2); }
.avrf-action-confirm-reject:hover { background: #dc2626; color: #fff; }
.avrf-reject-form { border-radius: 10px; border: 1px solid rgba(239,68,68,0.1); padding: 0.75rem; background: rgba(239,68,68,0.02); }

/* Empty */
.avrf-empty { text-align: center; padding: 3.5rem 1rem; }
.avrf-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #e0e7ff, #d1fae5); color: #6366f1; font-size: 1.6rem; margin-bottom: 0.75rem; }
.avrf-empty h5 { color: #334155; font-weight: 700; }
.avrf-empty p { color: #94a3b8; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1199.98px) { .avrf-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) {
    .avrf-hero-body { padding: 1.25rem; }
    .avrf-title { font-size: 1.25rem; }
    .avrf-title-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .avrf-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .avrf-stat { padding: 0.75rem 0.4rem; }
    .avrf-stat-num { font-size: 1.1rem; }
    .avrf-toolbar { flex-direction: column; align-items: stretch; }
    .avrf-search-form { max-width: none; }
    .avrf-table-head { display: none; }
    .avrf-row { flex-wrap: wrap; gap: 0.4rem; }
    .avrf-row-act { width: 100%; text-align: right; }
}

/* ══════════════════════════════════════════════════════════════
   Security Dashboard (Modern)
   ══════════════════════════════════════════════════════════════ */
.sd-page { background: #f8fafc; min-height: 100vh; padding-bottom: 3rem; }

/* ── Header ── */
.sd-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    padding: 2rem 0 2.8rem;
    margin-bottom: -1.8rem;
    position: relative; overflow: hidden;
}
.sd-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(99,102,241,.25) 0%, transparent 55%),
                radial-gradient(circle at 10% 90%, rgba(16,185,129,.15) 0%, transparent 50%);
}
.sd-header-btn {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
    color: #fff; padding: 7px 16px; border-radius: 10px;
    font-size: .78rem; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(255,255,255,.12);
    transition: all .18s;
}
.sd-header-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.sd-header-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
}
.sd-header-pill-alert {
    background: rgba(239,68,68,.3); animation: sdPulse 2s infinite;
}
@keyframes sdPulse { 0%,100%{opacity:1} 50%{opacity:.65} }

/* ── Stat Cards ── */
.sd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px; margin-bottom: 1.5rem;
    position: relative; z-index: 2;
}
.sd-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--card-bg); border: 1.5px solid var(--card-bg2);
    border-radius: 16px; padding: 18px 20px;
    transition: all .2s ease; position: relative;
}
.sd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--card-accent) 18%, transparent);
    border-color: var(--card-accent);
}
.sd-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg2); color: var(--card-accent);
    font-size: 1.2rem; flex-shrink: 0;
}
.sd-card-num { font-size: 1.4rem; font-weight: 800; color: var(--card-accent); line-height: 1.1; }
.sd-card-label { font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Metrics Card ── */
.sd-metrics-card {
    background: #fff; border-radius: 18px; padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #f1f5f9; height: 100%;
}
.sd-metrics-title {
    font-size: .82rem; font-weight: 800; color: #1e293b;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .5px;
}
.sd-metric-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f8fafc;
}
.sd-metric-row:last-child { border-bottom: none; }
.sd-metric-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--mi-bg); color: var(--mi-color);
    font-size: .75rem; flex-shrink: 0;
}
.sd-metric-label { flex: 1; font-size: .78rem; color: #64748b; font-weight: 600; }
.sd-metric-value { font-size: .95rem; font-weight: 800; min-width: 30px; text-align: right; }

/* ── Chart Card ── */
.sd-chart-card {
    background: #fff; border-radius: 18px; padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #f1f5f9; height: 100%;
}
.sd-chart-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1rem;
}
.sd-chart-legend { display: flex; gap: 14px; }
.sd-legend-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: #64748b; font-weight: 600; }
.sd-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ── Section Cards ── */
.sd-section-card {
    background: #fff; border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #f1f5f9; overflow: hidden;
}
.sd-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid #f8fafc;
}
.sd-section-header-left { display: flex; align-items: center; gap: 10px; }
.sd-section-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--si-bg); color: var(--si-color);
    font-size: .9rem; flex-shrink: 0;
}
.sd-link-btn {
    font-size: .78rem; font-weight: 700; color: #6366f1;
    text-decoration: none; display: flex; align-items: center;
    padding: 5px 12px; border-radius: 8px;
    background: #eef2ff; transition: all .15s;
}
.sd-link-btn:hover { background: #6366f1; color: #fff; }

/* ── Alert List ── */
.sd-alert-list { padding: 4px 0; }
.sd-alert-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 1.25rem; border-bottom: 1px solid #f8fafc;
    transition: background .12s;
}
.sd-alert-item:last-child { border-bottom: none; }
.sd-alert-item:hover { background: #fafbfe; }
.sd-alert-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ai-bg); color: var(--ai-color);
    font-size: .85rem; flex-shrink: 0;
}
.sd-alert-body { flex: 1; min-width: 0; }
.sd-alert-title { font-size: .82rem; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-alert-user { font-size: .72rem; color: #94a3b8; }
.sd-alert-meta { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.sd-alert-time { font-size: .72rem; color: #94a3b8; }
.sd-badge-open {
    font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 6px;
    background: #fef2f2; color: #dc2626;
}
.sd-badge-resolved {
    font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 6px;
    background: #ecfdf5; color: #059669;
}

/* ── Risk List ── */
.sd-risk-list { padding: 4px 0; }
.sd-risk-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 1.25rem; border-bottom: 1px solid #f8fafc;
    transition: background .12s;
}
.sd-risk-item:last-child { border-bottom: none; }
.sd-risk-item:hover { background: #fafbfe; }
.sd-risk-img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #f1f5f9; }
.sd-risk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-risk-name {
    font-size: .82rem; font-weight: 700; color: #6366f1;
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-risk-name:hover { text-decoration: underline; }
.sd-risk-email { font-size: .7rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; }
.sd-risk-score-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; width: 100px; }
.sd-risk-bar { flex: 1; height: 6px; border-radius: 3px; background: #f1f5f9; overflow: hidden; }
.sd-risk-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.sd-risk-score {
    font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 6px;
    min-width: 30px; text-align: center;
}
.sd-risk-ip { font-size: .68rem; color: #94a3b8; flex-shrink: 0; }

/* ── Empty State ── */
.sd-empty { text-align: center; padding: 2rem 1rem; }
.sd-empty-icon {
    width: 56px; height: 56px; margin: 0 auto; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ei-bg); color: var(--ei-color);
    font-size: 1.5rem;
}

/* ── Login Table ── */
.sd-table thead th {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; color: #94a3b8;
    background: #fafbfd; padding: 12px 16px;
    border-bottom: 1.5px solid #f1f5f9;
}
.sd-table tbody td {
    padding: 12px 16px; vertical-align: middle;
    font-size: .84rem; border-bottom: 1px solid #f8fafc;
}
.sd-table tbody tr { transition: background .12s; }
.sd-table tbody tr:hover { background: #fafbfe; }
.sd-login-user {
    font-weight: 700; color: #6366f1; text-decoration: none;
    font-size: .82rem;
}
.sd-login-user:hover { text-decoration: underline; }
.sd-login-status {
    display: inline-flex; align-items: center;
    font-size: .72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 8px;
    color: var(--ls-color); background: var(--ls-bg);
}
.sd-login-reason { font-size: .68rem; color: #94a3b8; margin-top: 2px; }
.sd-ip-code {
    font-size: .75rem; background: #f1f5f9; color: #475569;
    padding: 2px 8px; border-radius: 6px;
}
.sd-login-time { font-size: .78rem; color: #94a3b8; }

/* ── Quick Actions Grid ── */
.sd-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 2rem;
}
.sd-quick-btn {
    display: flex; align-items: center; gap: 10px;
    background: var(--qa-bg); border: 1.5px solid var(--qa-bg2);
    border-radius: 14px; padding: 14px 16px;
    text-decoration: none; color: var(--qa-color);
    font-weight: 700; font-size: .82rem;
    transition: all .2s;
}
.sd-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--qa-color) 15%, transparent);
    border-color: var(--qa-color); color: var(--qa-color);
    text-decoration: none;
}
.sd-quick-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--qa-bg2); font-size: 1rem;
}
.sd-quick-label { flex: 1; }
.sd-quick-arrow { font-size: .7rem; opacity: .4; transition: opacity .15s; }
.sd-quick-btn:hover .sd-quick-arrow { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .sd-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .sd-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-risk-ip { display: none; }
}
@media (max-width: 575.98px) {
    .sd-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sd-card { padding: 14px; }
    .sd-card-icon { width: 36px; height: 36px; font-size: 1rem; }
    .sd-card-num { font-size: 1.1rem; }
    .sd-quick-grid { grid-template-columns: 1fr 1fr; }
    .sd-risk-score-wrap { width: 70px; }
}

/* ═══════════════════════════════════════════
   ADMIN ANNOUNCEMENTS - Modern Colorful Light
   ═══════════════════════════════════════════ */

.aann-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #fdf4ff 0%, #eef2ff 25%, #f0fdfa 50%, #fefce8 75%, #eff6ff 100%);
    background-attachment: fixed;
}
.aann-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(600px circle at 15% 30%, rgba(236,72,153,0.05) 0%, transparent 55%),
        radial-gradient(500px circle at 80% 20%, rgba(99,102,241,0.05) 0%, transparent 55%),
        radial-gradient(450px circle at 50% 80%, rgba(245,158,11,0.04) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}
.aann-page > .container-fluid { position: relative; z-index: 1; }

/* ── Hero ── */
.aann-hero {
    position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 4px 24px rgba(0,0,0,0.035), inset 0 1px 0 rgba(255,255,255,0.8);
}
.aann-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.aann-orb-1 { width: 200px; height: 200px; top: -60px; right: -40px; background: radial-gradient(circle, rgba(236,72,153,0.08), transparent 70%); }
.aann-orb-2 { width: 150px; height: 150px; bottom: -50px; left: 15%; background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%); }
.aann-orb-3 { width: 120px; height: 120px; top: 10px; left: 55%; background: radial-gradient(circle, rgba(245,158,11,0.05), transparent 70%); }
.aann-hero-body { position: relative; padding: 1.75rem 2rem; }

.aann-title {
    font-size: 1.6rem; font-weight: 800; color: #1e293b; margin: 0;
    display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px;
}
.aann-title-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(236,72,153,0.25);
}
.aann-subtitle { color: #64748b; font-size: 0.82rem; margin: 0.3rem 0 0; }

.aann-btn-glass {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem;
    border-radius: 10px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6);
    color: #475569; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.aann-btn-glass:hover { background: rgba(255,255,255,0.85); color: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* ── Stats ── */
.aann-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }

.aann-stat {
    position: relative; text-align: center; padding: 1.1rem 0.5rem 0.9rem; border-radius: 16px;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.25s; overflow: hidden;
}
.aann-stat::before {
    content: ''; position: absolute; inset: -1px; border-radius: 16px; opacity: 0; transition: opacity 0.25s;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 8%, transparent), transparent 60%);
}
.aann-stat:hover::before { opacity: 1; }
.aann-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px color-mix(in srgb, var(--sc) 12%, transparent); }

.aann-stat-icon {
    width: 40px; height: 40px; border-radius: 12px; background: var(--sbg); color: var(--sc);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
    margin: 0 auto 0.45rem; position: relative; transition: transform 0.25s;
}
.aann-stat:hover .aann-stat-icon { transform: scale(1.12) rotate(3deg); }
.aann-stat-num { font-size: 1.45rem; font-weight: 800; color: var(--sc); line-height: 1; position: relative; }
.aann-stat-lbl { font-size: 0.6rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; position: relative; }

.aann-stat-bar { width: 70%; height: 4px; border-radius: 99px; background: rgba(0,0,0,0.04); margin: 0.5rem auto 0; position: relative; overflow: hidden; }
.aann-stat-bar-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }

/* ── Cards ── */
.aann-card {
    border-radius: 18px; overflow: hidden;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 2px 14px rgba(0,0,0,0.03);
}
.aann-card-head {
    padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 0.55rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.aann-card-head h6 { margin: 0; font-weight: 700; font-size: 0.88rem; color: #1e293b; flex: 1; }
.aann-card-head-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.78rem; flex-shrink: 0; }
.aann-head-badge { padding: 0.15rem 0.55rem; border-radius: 50px; font-size: 0.62rem; font-weight: 700; background: rgba(99,102,241,0.08); color: #6366f1; }
.aann-card-body { padding: 1.25rem; }

/* ── Compose Form ── */
.aann-compose { position: relative; }
.aann-field { margin-bottom: 0.85rem; }
.aann-field label {
    display: flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 700;
    color: #475569; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.aann-field label i { font-size: 0.72rem; color: #94a3b8; }
.aann-req { color: #ef4444; font-size: 0.68rem; }
.aann-opt { font-weight: 500; color: #94a3b8; text-transform: none; letter-spacing: 0; font-size: 0.68rem; }

.aann-field input,
.aann-field textarea,
.aann-field select {
    width: 100%; padding: 0.55rem 0.85rem; border-radius: 10px; font-size: 0.84rem; color: #1e293b;
    border: 1px solid rgba(0,0,0,0.07); background: rgba(255,255,255,0.6);
    outline: none; transition: all 0.2s; font-family: inherit;
}
.aann-field input::placeholder,
.aann-field textarea::placeholder { color: #b0b8c4; }
.aann-field input:focus,
.aann-field textarea:focus,
.aann-field select:focus {
    border-color: #8b5cf6; background: #fff;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.08);
}
.aann-field small { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: #94a3b8; }
.aann-field textarea { resize: vertical; min-height: 80px; }
.aann-field select { cursor: pointer; appearance: auto; }

.aann-submit-btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    width: 100%; padding: 0.7rem; border: none; border-radius: 12px; cursor: pointer;
    font-size: 0.88rem; font-weight: 700; color: #fff; font-family: inherit; overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    box-shadow: 0 4px 18px rgba(99,102,241,0.3); transition: all 0.25s; margin-top: 0.5rem;
}
.aann-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.35); }
.aann-submit-btn:active { transform: translateY(0); }
.aann-submit-shine {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.aann-submit-btn:hover .aann-submit-shine { left: 100%; }

/* ── History ── */
.aann-history { }
.aann-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.2s;
    animation: amsgRowIn 0.3s ease forwards; animation-delay: var(--row-d, 0s); opacity: 0;
}
.aann-item:last-child { border-bottom: none; }
.aann-item:hover { background: rgba(255,255,255,0.45); }

.aann-item-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform 0.2s;
}
.aann-item:hover .aann-item-icon { transform: scale(1.1) rotate(3deg); }

.aann-item-info { flex: 1; min-width: 0; }
.aann-item-title { font-weight: 700; font-size: 0.84rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aann-item-body { font-size: 0.74rem; color: #94a3b8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aann-item-meta { display: flex; gap: 0.6rem; margin-top: 0.25rem; font-size: 0.66rem; color: #94a3b8; }
.aann-item-meta i { font-size: 0.58rem; }

.aann-item-stats { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.aann-mini-stat { text-align: center; min-width: 36px; }
.aann-mini-val { font-size: 0.9rem; font-weight: 800; display: block; line-height: 1; }
.aann-mini-lbl { font-size: 0.52rem; font-weight: 700; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.04em; }

/* Mini ring */
.aann-mini-ring {
    width: 42px; height: 42px; border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--rc) calc(var(--rp)), rgba(0,0,0,0.04) 0);
}
.aann-mini-ring::before {
    content: ''; position: absolute; inset: 4px; border-radius: 50%; background: rgba(255,255,255,0.75);
}
.aann-mini-ring span { position: relative; font-size: 0.56rem; font-weight: 800; color: var(--rc); }

/* ── Empty ── */
.aann-empty { text-align: center; padding: 3rem 1rem; }
.aann-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fdf4ff, #eef2ff); color: #ec4899; font-size: 1.5rem;
    animation: aannPulse 2s ease infinite;
}
.aann-empty h6 { font-weight: 700; color: #334155; margin-bottom: 0.25rem; }
.aann-empty p { font-size: 0.82rem; color: #94a3b8; }

@keyframes aannPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ── Responsive ── */
@media (max-width: 991.98px) { .aann-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
    .aann-hero-body { padding: 1.25rem; }
    .aann-title { font-size: 1.2rem; }
    .aann-title-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .aann-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .aann-stat { padding: 0.85rem 0.4rem; }
    .aann-stat-num { font-size: 1.2rem; }
    .aann-item { flex-wrap: wrap; gap: 0.5rem; }
    .aann-item-stats { width: 100%; justify-content: flex-start; padding-left: 55px; gap: 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   Admin Categories (Modern)
   ══════════════════════════════════════════════════════════════ */
.ac-page { background: #f8fafc; min-height: 100vh; padding-bottom: 3rem; }

/* ── Header ── */
.ac-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    padding: 2rem 0 2.8rem;
    margin-bottom: -1.8rem;
    position: relative; overflow: hidden;
}
.ac-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 60%),
                radial-gradient(circle at 15% 85%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.ac-header-btn {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
    color: #fff; padding: 7px 16px; border-radius: 10px;
    font-size: .78rem; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(255,255,255,.15);
    transition: all .18s; cursor: pointer;
}
.ac-header-btn:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

/* ── Stats Grid ── */
.ac-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px; margin-bottom: 1.5rem;
    position: relative; z-index: 2;
}
.ac-stat-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--sc-bg); border: 1.5px solid var(--sc-bg2);
    border-radius: 16px; padding: 18px 20px;
    transition: all .2s ease;
}
.ac-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--sc-color) 18%, transparent);
    border-color: var(--sc-color);
}
.ac-stat-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--sc-bg2); color: var(--sc-color);
    font-size: 1.2rem; flex-shrink: 0;
}
.ac-stat-num { font-size: 1.35rem; font-weight: 800; color: var(--sc-color); line-height: 1.1; }
.ac-stat-label { font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Alerts ── */
.ac-alert {
    border: none; border-radius: 14px; font-size: .85rem; font-weight: 600;
    padding: 12px 20px; margin-bottom: 1rem;
    display: flex; align-items: center;
}
.ac-alert-success { background: #ecfdf5; color: #065f46; }
.ac-alert-danger { background: #fef2f2; color: #991b1b; }

/* ── Section Card ── */
.ac-section-card {
    background: #fff; border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #f1f5f9; overflow: hidden;
    margin-bottom: 1.5rem;
}
.ac-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9;
}
.ac-section-header-left { display: flex; align-items: center; gap: 12px; }
.ac-section-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--si-bg); color: var(--si-color);
    font-size: .95rem; flex-shrink: 0;
}

/* ── Category Tiles Grid ── */
.ac-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px; padding: 1.25rem;
}
.ac-tile {
    background: var(--t-bg); border: 1.5px solid var(--t-bg2);
    border-radius: 16px; padding: 18px 20px;
    transition: all .22s ease; position: relative;
}
.ac-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--t-color) 16%, transparent);
    border-color: var(--t-color);
}
.ac-tile-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.ac-tile-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--t-bg2); color: var(--t-color);
    font-size: 1.2rem;
}
.ac-tile-order {
    font-size: .65rem; font-weight: 700; color: var(--t-color);
    background: var(--t-bg2); padding: 2px 8px; border-radius: 8px;
    opacity: .7;
}
.ac-tile-name {
    font-size: .95rem; font-weight: 800; color: #1e293b;
    margin-bottom: 2px; line-height: 1.2;
}
.ac-tile-slug {
    font-size: .7rem; color: #94a3b8; font-weight: 500;
    margin-bottom: 4px; display: flex; align-items: center;
}
.ac-tile-desc {
    font-size: .72rem; color: #64748b; line-height: 1.4;
    margin-bottom: 4px;
}
.ac-tile-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--t-bg2) 90%, var(--t-color));
}
.ac-tile-count { display: flex; align-items: baseline; gap: 4px; }
.ac-tile-count-num {
    font-size: 1.1rem; font-weight: 800; color: var(--t-color);
}
.ac-tile-count-label { font-size: .68rem; color: #94a3b8; font-weight: 600; }
.ac-tile-actions { display: flex; gap: 6px; }
.ac-tile-btn {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: .78rem;
    transition: all .18s; text-decoration: none;
}
.ac-tile-btn-edit { background: var(--t-bg2); color: var(--t-color); }
.ac-tile-btn-edit:hover { background: var(--t-color); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--t-color) 30%, transparent); }
.ac-tile-btn-delete { background: #fef2f2; color: #ef4444; }
.ac-tile-btn-delete:hover { background: #ef4444; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.3); }

/* ── Add Form ── */
.ac-form-label {
    font-size: .75rem; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: .4px;
    margin-bottom: 6px; display: block;
}
.ac-input-wrap {
    position: relative; display: flex; align-items: center;
}
.ac-input-icon {
    position: absolute; left: 14px; color: #94a3b8; font-size: .82rem;
    pointer-events: none;
}
.ac-input {
    width: 100%; padding: 10px 14px 10px 38px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #fff;
    font-size: .84rem; outline: none; transition: all .2s;
    font-family: inherit;
}
.ac-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
textarea.ac-input { resize: vertical; }
.ac-icon-link {
    font-size: .7rem; color: #6366f1; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center;
    margin-top: 4px;
}
.ac-icon-link:hover { text-decoration: underline; }
.ac-submit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: .84rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.25);
    min-height: 44px;
}
.ac-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

/* Preview */
.ac-preview {
    display: flex; align-items: center; gap: 12px;
    margin-top: 16px; padding: 12px 16px;
    background: #f8fafc; border-radius: 12px;
    border: 1px dashed #e2e8f0;
}
.ac-preview-label {
    font-size: .72rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .3px;
}
.ac-preview-tile {
    display: flex; align-items: center; gap: 10px;
    background: #eef2ff; border: 1.5px solid #e0e7ff;
    border-radius: 10px; padding: 8px 14px;
}
.ac-preview-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #e0e7ff; color: #6366f1; font-size: 1rem;
}

/* ── Modal ── */
.ac-modal { border: none; border-radius: 20px !important; overflow: hidden; }
.ac-modal-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 1.2rem 1.5rem; display: flex; align-items: center;
    justify-content: space-between;
}
.ac-modal-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.ac-modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid #f1f5f9;
    display: flex; justify-content: flex-end; gap: 8px;
}
.ac-cancel-btn {
    padding: 8px 20px; border-radius: 10px; border: 1.5px solid #e2e8f0;
    background: #fff; color: #64748b; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.ac-cancel-btn:hover { border-color: #94a3b8; color: #334155; }
.ac-save-btn {
    padding: 8px 20px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: .82rem; font-weight: 700;
    cursor: pointer; transition: all .18s;
    box-shadow: 0 3px 10px rgba(99,102,241,.25);
}
.ac-save-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(99,102,241,.35); }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .ac-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .ac-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ac-tiles-grid { grid-template-columns: 1fr; }
    .ac-stat-card { padding: 14px; }
}

/* ═══════════════════════════════════════════
   ADMIN CONTACT SETTINGS - Modern Colorful Light
   ═══════════════════════════════════════════ */

.acst-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eff6ff 0%, #eef2ff 25%, #f0fdfa 50%, #fdf4ff 75%, #fefce8 100%);
    background-attachment: fixed;
}
.acst-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(600px circle at 15% 25%, rgba(99,102,241,0.05) 0%, transparent 55%),
        radial-gradient(500px circle at 85% 40%, rgba(236,72,153,0.04) 0%, transparent 55%),
        radial-gradient(400px circle at 45% 85%, rgba(16,185,129,0.04) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}
.acst-page > .container-fluid { position: relative; z-index: 1; }

/* ── Hero ── */
.acst-hero {
    position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 4px 24px rgba(0,0,0,0.035), inset 0 1px 0 rgba(255,255,255,0.8);
}
.acst-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.acst-orb-1 { width: 200px; height: 200px; top: -60px; right: -40px; background: radial-gradient(circle, rgba(99,102,241,0.07), transparent 70%); }
.acst-orb-2 { width: 160px; height: 160px; bottom: -50px; left: 10%; background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 70%); }
.acst-orb-3 { width: 120px; height: 120px; top: 15px; left: 50%; background: radial-gradient(circle, rgba(236,72,153,0.05), transparent 70%); }
.acst-hero-body { position: relative; padding: 1.75rem 2rem; }

.acst-title { font-size: 1.6rem; font-weight: 800; color: #1e293b; margin: 0; display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px; }
.acst-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.05rem; box-shadow: 0 4px 16px rgba(99,102,241,0.25); }
.acst-subtitle { color: #64748b; font-size: 0.82rem; margin: 0.3rem 0 0; }

.acst-btn-glass { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: 10px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6); color: #475569; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s; backdrop-filter: blur(8px); cursor: pointer; font-family: inherit; }
.acst-btn-glass:hover { background: rgba(255,255,255,0.85); color: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.acst-btn-glass.acst-btn-sm { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
.acst-btn-glow { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 14px rgba(99,102,241,0.25); }
.acst-btn-glow:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.3); color: #fff; }
.acst-version-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.7rem; border-radius: 8px; background: rgba(139,92,246,0.08); color: #8b5cf6; font-size: 0.72rem; font-weight: 700; }

/* ── Stats ── */
.acst-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.65rem; margin-bottom: 1.25rem; }
.acst-stat { position: relative; text-align: center; padding: 1rem 0.5rem; border-radius: 14px; background: rgba(255,255,255,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 2px 10px rgba(0,0,0,0.025); transition: all 0.25s; overflow: hidden; }
.acst-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 22px color-mix(in srgb, var(--sc) 12%, transparent); }
.acst-stat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--sbg); color: var(--sc); display: inline-flex; align-items: center; justify-content: center; font-size: 0.92rem; margin: 0 auto 0.35rem; transition: transform 0.25s; }
.acst-stat:hover .acst-stat-icon { transform: scale(1.1) rotate(3deg); }
.acst-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--sc); line-height: 1; }
.acst-stat-lbl { font-size: 0.58rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
.acst-stat-pulse { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: alpPulse 1.5s infinite; }
.acst-stat-bar { width: 65%; height: 4px; border-radius: 99px; background: rgba(0,0,0,0.04); margin: 0.4rem auto 0; overflow: hidden; }
.acst-stat-bar-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }

/* ── Tabs ── */
.acst-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; padding: 0.3rem; background: rgba(255,255,255,0.45); border-radius: 14px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.6); flex-wrap: wrap; }
.acst-tab { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.95rem; border-radius: 10px; font-size: 0.78rem; font-weight: 600; color: #64748b; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.acst-tab:hover { background: rgba(255,255,255,0.5); color: #1e293b; }
.acst-tab-active { background: #fff; color: #1e293b; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.acst-tab-count { padding: 0.1rem 0.4rem; border-radius: 50px; font-size: 0.6rem; font-weight: 700; background: rgba(0,0,0,0.04); color: #94a3b8; }
.acst-tab-active .acst-tab-count { background: rgba(99,102,241,0.08); color: #6366f1; }
.acst-tab-urgent { background: rgba(239,68,68,0.1) !important; color: #ef4444 !important; animation: alpPulse 1.5s infinite; }

/* ── Cards ── */
.acst-card { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 2px 14px rgba(0,0,0,0.03); }
.acst-card-head { padding: 0.85rem 1.15rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.04); }
.acst-card-head h6 { margin: 0; font-weight: 700; font-size: 0.85rem; color: #1e293b; flex: 1; }
.acst-ch-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; flex-shrink: 0; }
.acst-head-badge { padding: 0.12rem 0.5rem; border-radius: 50px; font-size: 0.6rem; font-weight: 700; background: rgba(99,102,241,0.08); color: #6366f1; }
.acst-card-body { padding: 1.15rem; }

/* ── Form Fields ── */
.acst-field { position: relative; }
.acst-field label { display: block; font-size: 0.7rem; font-weight: 700; color: #475569; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.acst-field input, .acst-field textarea, .acst-field select { width: 100%; padding: 0.5rem 0.8rem; border-radius: 10px; font-size: 0.82rem; color: #1e293b; border: 1px solid rgba(0,0,0,0.07); background: rgba(255,255,255,0.6); outline: none; transition: all 0.2s; font-family: inherit; }
.acst-field input::placeholder, .acst-field textarea::placeholder { color: #b0b8c4; }
.acst-field input:focus, .acst-field textarea:focus, .acst-field select:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,0.07); }
.acst-field textarea { resize: vertical; min-height: 60px; }
.acst-field select { cursor: pointer; appearance: auto; }
.acst-field small { display: block; margin-top: 0.2rem; font-size: 0.65rem; color: #94a3b8; }
.acst-hint { font-size: 0.68rem; color: #94a3b8; }
.acst-hint i { margin-right: 0.2rem; }
.acst-file-input { font-size: 0.78rem !important; }

/* Social field */
.acst-social-field { position: relative; }
.acst-social-field .acst-social-icon { position: absolute; left: 0.65rem; bottom: 0.55rem; font-size: 0.92rem; pointer-events: none; }
.acst-social-field input { padding-left: 2.2rem; }

/* Toggle */
.acst-toggle { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.78rem; color: #475569; user-select: none; }
.acst-toggle input { display: none; }
.acst-toggle-slider { width: 36px; height: 20px; border-radius: 99px; background: #d1d5db; position: relative; transition: all 0.2s; flex-shrink: 0; }
.acst-toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: all 0.2s; }
.acst-toggle input:checked + .acst-toggle-slider { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.acst-toggle input:checked + .acst-toggle-slider::after { left: 18px; }
.acst-toggle-text { font-weight: 600; }

/* Hero preview */
.acst-hero-preview { border-radius: 8px; overflow: hidden; max-height: 80px; }
.acst-hero-preview img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; }

/* ── Save Bar ── */
.acst-save-bar { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.5rem; }
.acst-save-note { flex: 1; margin: 0; }
.acst-save-note input { height: 100%; }
.acst-save-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1.2rem; border: none; border-radius: 12px; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: #fff; font-family: inherit; overflow: hidden; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 16px rgba(99,102,241,0.25); transition: all 0.25s; white-space: nowrap; }
.acst-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.acst-save-btn.acst-save-sm { padding: 0.4rem 0.85rem; font-size: 0.75rem; }
.acst-save-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.5s; }
.acst-save-btn:hover .acst-save-shine { left: 100%; }

/* ── Live Preview ── */
.acst-preview-sticky { position: sticky; top: 1rem; }
.acst-preview-live { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #10b981; padding: 0.2rem 0.5rem; border-radius: 50px; background: rgba(16,185,129,0.08); }
.acst-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: alpPulse 1.5s infinite; }

.acst-preview-frame { border-radius: 0 0 16px 16px; overflow: hidden; background: #f8fafc; }
.acst-pv-hero { min-height: 100px; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); background-size: cover; background-position: center; position: relative; }
.acst-pv-hero-overlay { padding: 1.5rem 1.25rem; position: relative; background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(51,65,85,0.7)); }
.acst-pv-hero h3 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 0.2rem; }
.acst-pv-hero p { color: rgba(255,255,255,0.7); font-size: 0.7rem; margin: 0; }

.acst-pv-body { padding: 1rem 1.25rem; }
.acst-pv-body h5 { font-size: 0.85rem; font-weight: 800; color: #1e293b; margin: 0 0 0.3rem; }
.acst-pv-sub { font-size: 0.68rem; color: #94a3b8; margin: 0 0 0.75rem; min-height: 14px; }

.acst-pv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.acst-pv-info-card { background: rgba(99,102,241,0.04); border-radius: 8px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.1rem; }
.acst-pv-info-card i { color: #6366f1; font-size: 0.7rem; }
.acst-pv-info-card strong { font-size: 0.68rem; color: #1e293b; }
.acst-pv-info-card span { font-size: 0.6rem; color: #64748b; min-height: 12px; word-break: break-all; }

.acst-pv-form { background: rgba(0,0,0,0.02); border-radius: 8px; padding: 0.6rem; }
.acst-pv-input { height: 24px; border-radius: 5px; background: #fff; border: 1px solid #e2e8f0; margin-bottom: 0.35rem; }
.acst-pv-textarea { height: 40px; border-radius: 5px; background: #fff; border: 1px solid #e2e8f0; margin-bottom: 0.4rem; }
.acst-pv-btn { text-align: center; padding: 0.35rem; border-radius: 6px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 0.6rem; font-weight: 700; }

/* ── Departments ── */
.acst-dept-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.15rem; border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.2s; animation: amsgRowIn 0.3s ease forwards; animation-delay: var(--row-d, 0s); opacity: 0; }
.acst-dept-row:last-child { border-bottom: none; }
.acst-dept-row:hover { background: rgba(255,255,255,0.4); }
.acst-dept-color { width: 4px; height: 36px; border-radius: 4px; flex-shrink: 0; }
.acst-dept-info { flex: 1; min-width: 0; }
.acst-dept-name { font-weight: 700; font-size: 0.84rem; color: #1e293b; display: flex; align-items: center; gap: 0.4rem; }
.acst-dept-default { font-size: 0.55rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 50px; background: rgba(245,158,11,0.1); color: #f59e0b; }
.acst-dept-meta { display: flex; gap: 0.75rem; font-size: 0.68rem; color: #94a3b8; margin-top: 0.1rem; }
.acst-dept-meta i { font-size: 0.6rem; margin-right: 0.15rem; }
.acst-dept-status { padding: 0.15rem 0.5rem; border-radius: 50px; font-size: 0.6rem; font-weight: 700; flex-shrink: 0; }
.acst-dept-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

.acst-icon-btn { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; font-size: 0.72rem; text-decoration: none; }
.acst-icon-edit { background: rgba(99,102,241,0.06); color: #6366f1; }
.acst-icon-edit:hover { background: rgba(99,102,241,0.12); color: #4f46e5; }
.acst-icon-del { background: rgba(239,68,68,0.06); color: #ef4444; }
.acst-icon-del:hover { background: rgba(239,68,68,0.12); color: #dc2626; }

/* ── Filter Pills ── */
.acst-filter-pills { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.acst-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.8rem; border-radius: 50px; font-size: 0.76rem; font-weight: 600; color: #64748b; text-decoration: none; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(8px); transition: all 0.2s; }
.acst-pill:hover { background: rgba(255,255,255,0.8); color: var(--pc); }
.acst-pill span { font-size: 0.62rem; font-weight: 700; padding: 0.05rem 0.35rem; border-radius: 50px; background: rgba(0,0,0,0.04); }
.acst-pill-active { background: rgba(255,255,255,0.85); color: var(--pc); border-color: color-mix(in srgb, var(--pc) 20%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--pc) 10%, transparent); }
.acst-pill-active span { background: color-mix(in srgb, var(--pc) 10%, transparent); color: var(--pc); }

/* ── Submissions ── */
.acst-sub-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.15rem; border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.2s; animation: amsgRowIn 0.3s ease forwards; animation-delay: var(--row-d, 0s); opacity: 0; }
.acst-sub-row:hover { background: rgba(255,255,255,0.4); }
.acst-sub-row:last-child { border-bottom: none; }
.acst-sub-unread { background: rgba(99,102,241,0.02); }
.acst-sub-unread:hover { background: rgba(99,102,241,0.04); }
.acst-sub-star { flex-shrink: 0; font-size: 0.8rem; cursor: pointer; }
.acst-sub-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #e0e7ff, #d1fae5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acst-sub-avatar span { font-weight: 700; font-size: 0.75rem; color: #6366f1; }
.acst-sub-info { flex: 1; min-width: 0; }
.acst-sub-name { font-weight: 600; font-size: 0.82rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acst-sub-email { font-weight: 400; color: #94a3b8; font-size: 0.72rem; margin-left: 0.3rem; }
.acst-sub-msg { font-size: 0.72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.acst-sub-msg strong { color: #475569; font-weight: 600; }
.acst-sub-dept { padding: 0.12rem 0.45rem; border-radius: 50px; font-size: 0.58rem; font-weight: 700; background: rgba(99,102,241,0.06); color: #6366f1; flex-shrink: 0; white-space: nowrap; }
.acst-sub-time { font-size: 0.68rem; color: #94a3b8; flex-shrink: 0; min-width: 60px; text-align: right; }
.acst-sub-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* Modal */
.acst-modal { border-radius: 16px; border: none; box-shadow: 0 16px 64px rgba(0,0,0,0.12); }
.acst-info-chip { padding: 0.5rem 0.7rem; border-radius: 8px; background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04); }
.acst-info-chip small { font-size: 0.6rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.acst-info-chip strong, .acst-info-chip a { display: block; font-size: 0.8rem; color: #1e293b; margin-top: 0.1rem; }
.acst-info-chip a { color: #6366f1; text-decoration: none; }
.acst-msg-bubble { background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.03)); border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.82rem; color: #334155; line-height: 1.6; border: 1px solid rgba(99,102,241,0.06); }

/* ── Version Timeline ── */
.acst-version-timeline { padding: 1.25rem; }
.acst-ver-item { display: flex; gap: 1rem; position: relative; padding-bottom: 1.25rem; animation: amsgRowIn 0.3s ease forwards; animation-delay: var(--row-d, 0s); opacity: 0; }
.acst-ver-item:last-child { padding-bottom: 0; }
.acst-ver-item::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: rgba(0,0,0,0.04); }
.acst-ver-item:last-child::before { display: none; }
.acst-ver-dot { width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1; }
.acst-ver-latest .acst-ver-dot { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.acst-ver-card { flex: 1; background: rgba(255,255,255,0.4); border-radius: 10px; padding: 0.65rem 0.85rem; border: 1px solid rgba(0,0,0,0.04); }
.acst-ver-latest .acst-ver-card { border-color: rgba(99,102,241,0.1); background: rgba(99,102,241,0.02); }

.acst-ver-head { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.acst-ver-num { font-size: 0.82rem; font-weight: 800; color: #1e293b; }
.acst-ver-current { font-size: 0.55rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 50px; background: rgba(16,185,129,0.08); color: #10b981; text-transform: uppercase; }
.acst-ver-time { font-size: 0.68rem; color: #94a3b8; margin-left: auto; }
.acst-ver-meta { margin-top: 0.25rem; display: flex; gap: 0.6rem; font-size: 0.7rem; color: #64748b; flex-wrap: wrap; }
.acst-ver-meta i { font-size: 0.6rem; }
.acst-ver-note { color: #8b5cf6; font-style: italic; }

/* ── Empty ── */
.acst-empty { text-align: center; padding: 3rem 1rem; }
.acst-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0.7rem; background: linear-gradient(135deg, #eef2ff, #d1fae5); color: #6366f1; font-size: 1.4rem; animation: aannPulse 2s ease infinite; }
.acst-empty h6 { font-weight: 700; color: #334155; margin-bottom: 0.2rem; }
.acst-empty p { font-size: 0.8rem; color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 1199.98px) { .acst-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) { .acst-preview-sticky { position: static; } }
@media (max-width: 767.98px) {
    .acst-hero-body { padding: 1.25rem; }
    .acst-title { font-size: 1.2rem; }
    .acst-title-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .acst-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .acst-stat { padding: 0.75rem 0.4rem; }
    .acst-stat-num { font-size: 1.1rem; }
    .acst-tabs { gap: 0.25rem; }
    .acst-tab { padding: 0.45rem 0.65rem; font-size: 0.72rem; }
    .acst-save-bar { flex-direction: column; }
    .acst-sub-row { flex-wrap: wrap; }
    .acst-sub-actions { width: 100%; justify-content: flex-end; }
    .acst-sub-dept, .acst-sub-time { display: none; }
    .acst-pv-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WATERMARK SETTINGS - Modern Colorful Light
   ═══════════════════════════════════════════ */

.wmk-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eff6ff 0%, #eef2ff 25%, #f0fdfa 50%, #fdf4ff 75%, #fefce8 100%);
    background-attachment: fixed;
}
.wmk-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(600px circle at 20% 25%, rgba(6,182,212,0.05) 0%, transparent 55%),
        radial-gradient(500px circle at 80% 40%, rgba(99,102,241,0.05) 0%, transparent 55%),
        radial-gradient(400px circle at 50% 85%, rgba(236,72,153,0.04) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}
.wmk-page > .container-fluid { position: relative; z-index: 1; }

/* Hero */
.wmk-hero {
    position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 4px 24px rgba(0,0,0,0.035), inset 0 1px 0 rgba(255,255,255,0.8);
}
.wmk-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.wmk-orb-1 { width: 200px; height: 200px; top: -60px; right: -30px; background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 70%); }
.wmk-orb-2 { width: 160px; height: 160px; bottom: -50px; left: 12%; background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%); }
.wmk-orb-3 { width: 120px; height: 120px; top: 15px; left: 50%; background: radial-gradient(circle, rgba(236,72,153,0.05), transparent 70%); }
.wmk-hero-body { position: relative; padding: 1.75rem 2rem; }

.wmk-title { font-size: 1.6rem; font-weight: 800; color: #1e293b; margin: 0; display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px; }
.wmk-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; font-size: 1.05rem; box-shadow: 0 4px 16px rgba(6,182,212,0.25); }
.wmk-subtitle { color: #64748b; font-size: 0.82rem; margin: 0.3rem 0 0; }

.wmk-btn-glass { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: 10px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6); color: #475569; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s; backdrop-filter: blur(8px); }
.wmk-btn-glass:hover { background: rgba(255,255,255,0.85); color: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* Stats */
.wmk-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.65rem; margin-bottom: 1.5rem; }
.wmk-stat { position: relative; text-align: center; padding: 0.9rem 0.4rem; border-radius: 14px; background: rgba(255,255,255,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 2px 10px rgba(0,0,0,0.025); transition: all 0.25s; }
.wmk-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 22px color-mix(in srgb, var(--sc) 12%, transparent); }
.wmk-stat-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--sbg); color: var(--sc); display: inline-flex; align-items: center; justify-content: center; font-size: 0.88rem; margin: 0 auto 0.3rem; transition: transform 0.25s; }
.wmk-stat:hover .wmk-stat-icon { transform: scale(1.1) rotate(3deg); }
.wmk-stat-num { font-size: 1.2rem; font-weight: 800; color: var(--sc); line-height: 1; }
.wmk-stat-lbl { font-size: 0.55rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.12rem; }

/* Cards */
.wmk-card { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 2px 14px rgba(0,0,0,0.03); margin-bottom: 0.75rem; padding: 1rem 1.15rem; }
.wmk-card-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.15rem; border-bottom: 1px solid rgba(0,0,0,0.04); margin: -1rem -1.15rem 0; }
.wmk-card-head h6 { margin: 0; font-weight: 700; font-size: 0.85rem; color: #1e293b; flex: 1; }
.wmk-ch-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; flex-shrink: 0; }

.wmk-card-label { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.75rem; }
.wmk-card-label i { font-size: 0.85rem; color: #6366f1; }

/* Toggle card */
.wmk-toggle-card { background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04)); border-color: rgba(99,102,241,0.1); }
.wmk-toggle-title { font-size: 0.92rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 0.4rem; }
.wmk-toggle-title i { color: #6366f1; }
.wmk-toggle-desc { font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; }

/* Custom switch */
.wmk-switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.wmk-switch input { display: none; }
.wmk-switch-slider { position: absolute; inset: 0; border-radius: 99px; background: #d1d5db; cursor: pointer; transition: all 0.25s; }
.wmk-switch-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: all 0.25s; }
.wmk-switch input:checked + .wmk-switch-slider { background: linear-gradient(135deg, #10b981, #06b6d4); }
.wmk-switch input:checked + .wmk-switch-slider::after { left: 27px; }

/* Slider */
.wmk-slider-row { display: flex; align-items: center; gap: 0.65rem; }
.wmk-slider-end { font-size: 0.68rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.wmk-range { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(99,102,241,0.3)); outline: none; }
.wmk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); cursor: pointer; box-shadow: 0 2px 8px rgba(99,102,241,0.3); border: 3px solid #fff; transition: box-shadow 0.2s; }
.wmk-range::-webkit-slider-thumb:hover { box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.wmk-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); cursor: pointer; box-shadow: 0 2px 8px rgba(99,102,241,0.3); border: 3px solid #fff; }
.wmk-slider-badge { background: rgba(99,102,241,0.08); color: #6366f1; font-weight: 800; font-size: 0.85rem; border-radius: 8px; padding: 0.25rem 0.55rem; min-width: 48px; text-align: center; flex-shrink: 0; }

/* Option grids */
.wmk-opt-grid { display: grid; gap: 0.4rem; }
.wmk-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wmk-cols-4 { grid-template-columns: repeat(4, 1fr); }

.wmk-opt {
    border: 2px solid rgba(0,0,0,0.05); border-radius: 10px; padding: 0.55rem 0.4rem;
    text-align: center; cursor: pointer; transition: all 0.2s; user-select: none;
    background: rgba(255,255,255,0.4);
}
.wmk-opt i { display: block; font-size: 1.1rem; margin-bottom: 0.15rem; color: #94a3b8; transition: all 0.2s; }
.wmk-opt span { font-size: 0.7rem; font-weight: 600; color: #64748b; }
.wmk-opt:hover { border-color: color-mix(in srgb, var(--oc, #6366f1) 30%, transparent); background: color-mix(in srgb, var(--oc, #6366f1) 4%, transparent); }
.wmk-opt:hover i { color: var(--oc, #6366f1); }
.wmk-opt.active { border-color: var(--oc, #6366f1); background: color-mix(in srgb, var(--oc, #6366f1) 6%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc, #6366f1) 8%, transparent); }
.wmk-opt.active i { color: var(--oc, #6366f1); }
.wmk-opt.active span { color: var(--oc, #6366f1); font-weight: 700; }
.wmk-opt-sm { padding: 0.4rem 0.3rem; }
.wmk-opt-sm span { font-size: 0.62rem; }

/* Presets */
.wmk-presets { display: flex; gap: 0.3rem; margin-top: 0.6rem; flex-wrap: wrap; }
.wmk-preset-btn { padding: 0.25rem 0.55rem; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.5); font-size: 0.68rem; font-weight: 700; color: #64748b; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.wmk-preset-btn:hover { background: rgba(99,102,241,0.06); color: #6366f1; border-color: rgba(99,102,241,0.15); }

/* Swatches */
.wmk-swatch-row { display: flex; gap: 0.5rem; align-items: center; }
.wmk-swatch { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; position: relative; }
.wmk-swatch:hover { transform: scale(1.12); }
.wmk-swatch.active { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.wmk-swatch.active::after { content: '\f26e'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.wmk-swatch[data-color="white"].active::after { color: #6366f1; text-shadow: none; }

/* Mini toggle checkbox */
.wmk-mini-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: #475569; font-weight: 600; cursor: pointer; user-select: none; }
.wmk-mini-toggle input { display: none; }
.wmk-mini-toggle-box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #d1d5db; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.wmk-mini-toggle-box::after { content: '\f26e'; font-family: 'bootstrap-icons'; font-size: 0.6rem; color: transparent; transition: color 0.2s; }
.wmk-mini-toggle input:checked + .wmk-mini-toggle-box { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: #6366f1; }
.wmk-mini-toggle input:checked + .wmk-mini-toggle-box::after { color: #fff; }

/* Field */
.wmk-field { }
.wmk-field label { display: block; font-size: 0.7rem; font-weight: 700; color: #475569; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.wmk-field input, .wmk-field textarea { width: 100%; padding: 0.5rem 0.8rem; border-radius: 10px; font-size: 0.82rem; color: #1e293b; border: 1px solid rgba(0,0,0,0.07); background: rgba(255,255,255,0.6); outline: none; transition: all 0.2s; font-family: inherit; }
.wmk-field input::placeholder { color: #b0b8c4; }
.wmk-field input:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,0.07); }
.wmk-field small { display: block; margin-top: 0.2rem; font-size: 0.65rem; color: #94a3b8; }

/* Save bar */
.wmk-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-radius: 14px; padding: 0.85rem 1.15rem; background: rgba(255,255,255,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 2px 10px rgba(0,0,0,0.025); margin-top: 0.25rem; flex-wrap: wrap; }
.wmk-save-note { font-size: 0.74rem; color: #94a3b8; }
.wmk-save-note i { color: #6366f1; margin-right: 0.2rem; }
.wmk-save-note strong { color: #475569; }
.wmk-save-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1.3rem; border: none; border-radius: 12px; cursor: pointer; font-size: 0.84rem; font-weight: 700; color: #fff; font-family: inherit; overflow: hidden; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 16px rgba(99,102,241,0.25); transition: all 0.25s; white-space: nowrap; }
.wmk-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.wmk-save-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: left 0.5s; }
.wmk-save-btn:hover .wmk-save-shine { left: 100%; }

/* Preview */
.wmk-preview-sticky { position: sticky; top: 1rem; }
.wmk-preview-card { padding: 0; margin-bottom: 0; }
.wmk-preview-card .wmk-card-head { margin: 0; }
.wmk-live-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #10b981; padding: 0.2rem 0.5rem; border-radius: 50px; background: rgba(16,185,129,0.08); }
.wmk-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: alpPulse 1.5s infinite; }

.wmk-canvas-wrap { position: relative; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); aspect-ratio: 4 / 3; overflow: hidden; }
.wmk-canvas-wrap canvas { display: block; width: 100%; height: 100%; }

/* Tips */
.wmk-tips { padding: 1rem 1.15rem; border-top: 1px solid rgba(0,0,0,0.04); }
.wmk-tips h6 { font-size: 0.78rem; font-weight: 700; color: #1e293b; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.4rem; }
.wmk-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wmk-tip-item { display: flex; align-items: flex-start; gap: 0.45rem; padding: 0.55rem; border-radius: 10px; background: color-mix(in srgb, var(--tc) 4%, transparent); }
.wmk-tip-item i { font-size: 0.85rem; color: var(--tc); flex-shrink: 0; margin-top: 1px; }
.wmk-tip-item strong { display: block; font-size: 0.68rem; color: #1e293b; }
.wmk-tip-item span { display: block; font-size: 0.6rem; color: #94a3b8; line-height: 1.3; }

/* Responsive */
@media (max-width: 1199.98px) { .wmk-stats { grid-template-columns: repeat(3, 1fr); } .wmk-tips-grid { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .wmk-preview-sticky { position: static; } .wmk-page .row { flex-direction: column-reverse; } }
@media (max-width: 767.98px) {
    .wmk-hero-body { padding: 1.25rem; }
    .wmk-title { font-size: 1.2rem; }
    .wmk-title-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .wmk-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .wmk-stat { padding: 0.7rem 0.3rem; }
    .wmk-stat-num { font-size: 1rem; }
    .wmk-save-bar { flex-direction: column; text-align: center; }
    .wmk-tips-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE CTA – Call to Action Section
   ═══════════════════════════════════════════════════════════ */
.hp-cta {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.hp-cta-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hp-cta-overlay {
    position: absolute; inset: 0;
    z-index: 2;
}
.hp-cta-particles {
    position: absolute; inset: 0; z-index: 2; overflow: hidden;
}
.hp-cta-particles span {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    animation: ctaFloat 8s infinite ease-in-out;
}
.hp-cta-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 8px; height: 8px; }
.hp-cta-particles span:nth-child(2) { left: 30%; top: 70%; animation-delay: 1.5s; }
.hp-cta-particles span:nth-child(3) { left: 60%; top: 30%; animation-delay: 3s; width: 10px; height: 10px; }
.hp-cta-particles span:nth-child(4) { left: 80%; top: 60%; animation-delay: 4.5s; }
.hp-cta-particles span:nth-child(5) { left: 50%; top: 80%; animation-delay: 6s; width: 4px; height: 4px; }
@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .15; }
    50% { transform: translateY(-30px) scale(1.5); opacity: .35; }
}
.hp-cta-content {
    position: relative;
    z-index: 3;
}
.hp-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hp-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 38px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,0.25);
    letter-spacing: -0.01em;
}
.hp-cta-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
@media (max-width: 767.98px) {
    .hp-cta { padding: 50px 0; }
    .hp-cta-title { font-size: 1.5rem; }
    .hp-cta-sub { font-size: .92rem; }
    .hp-cta-btn { padding: 12px 28px; font-size: .9rem; }
}

/* ═══════════════════════════════════════════════════════════════
   AI MEDIA OPTIMIZER – Admin Panel Styles
   ═══════════════════════════════════════════════════════════════ */

/* Engine status badge */
.mo-engine-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}
.mo-badge-on {
    background: rgba(16,185,129,0.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
}
.mo-badge-off {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.25);
}
.mo-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: moPulse 2s infinite;
}
.mo-badge-off .mo-badge-dot { animation: none; }

@keyframes moPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Storage ring chart */
.mo-storage-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}
.mo-storage-ring svg { width: 100%; height: 100%; }

/* Storage bars */
.mo-storage-bars { display: flex; flex-direction: column; gap: 12px; }
.mo-sbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}
.mo-sbar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #475569;
}
.mo-sbar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mo-sbar-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

/* Queue stats */
.mo-queue-stats { display: flex; flex-direction: column; gap: 10px; }
.mo-qs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    font-size: 0.88rem;
}
.mo-qs-item span:first-child { flex-shrink: 0; }
.mo-qs-item span:nth-child(2) { flex: 1; color: #475569; }
.mo-qs-item strong { font-size: 1rem; color: #1e293b; }
.mo-qs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mo-qs-pulse {
    animation: moPulse 1.5s infinite;
}

/* Action buttons */
.mo-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}
.mo-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.mo-act-blue { background: rgba(59,130,246,0.1); color: #2563eb; }
.mo-act-blue:hover { background: rgba(59,130,246,0.2); }
.mo-act-green { background: rgba(16,185,129,0.1); color: #059669; }
.mo-act-green:hover { background: rgba(16,185,129,0.2); }
.mo-act-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.mo-act-purple:hover { background: rgba(139,92,246,0.2); }
.mo-act-orange { background: rgba(245,158,11,0.1); color: #d97706; }
.mo-act-orange:hover { background: rgba(245,158,11,0.2); }

/* Capability list */
.mo-cap-list { display: flex; flex-direction: column; }
.mo-cap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.88rem;
}
.mo-cap-item:last-child { border-bottom: none; }
.mo-cap-item span:first-child { color: #475569; }
.mo-cap-ok { color: #10b981; font-weight: 600; }
.mo-cap-no { color: #ef4444; font-weight: 600; }

/* Media table */
.mo-media-table {
    width: 100%;
    border-collapse: collapse;
}
.mo-media-table thead th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
}
.mo-media-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
    font-size: 0.88rem;
}
.mo-media-table tbody tr:hover { background: rgba(99,102,241,0.03); }

/* Thumbnail preview */
.mo-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mo-thumb i { font-size: 1.2rem; color: #94a3b8; }

/* Status badges */
.mo-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.mo-st-ok { background: rgba(16,185,129,0.1); color: #059669; }
.mo-st-proc { background: rgba(59,130,246,0.1); color: #2563eb; }
.mo-st-fail { background: rgba(239,68,68,0.1); color: #dc2626; }
.mo-st-pend { background: rgba(245,158,11,0.1); color: #d97706; }

/* Saved badge */
.mo-saved-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16,185,129,0.1);
    color: #059669;
}

/* Format badges */
.mo-format-badges { white-space: nowrap; }
.mo-fmt {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 3px;
}
.mo-fmt-webp { background: rgba(139,92,246,0.1); color: #7c3aed; }
.mo-fmt-avif { background: rgba(6,182,212,0.1); color: #0891b2; }
.mo-fmt-thumb { background: rgba(245,158,11,0.1); color: #d97706; }

/* Range slider */
.mo-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    outline: none;
    margin: 8px 0;
}
.mo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #8b5cf6;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.mo-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.mo-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #8b5cf6;
    cursor: pointer;
}

/* Guide items */
.mo-guide { display: flex; flex-direction: column; gap: 16px; }
.mo-guide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.mo-guide-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Code block */
.mo-code-block {
    background: #1e293b;
    color: #a5f3fc;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    overflow-x: auto;
    margin: 8px 0;
}

/* File info in table */
.mo-file-info strong {
    font-size: 0.85rem;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 991.98px) {
    .mo-storage-ring { width: 120px; height: 120px; }
}
@media (max-width: 767.98px) {
    .mo-media-table thead th,
    .mo-media-table tbody td { padding: 8px 10px; font-size: 0.8rem; }
    .mo-thumb { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════
   SMALL PHONE COVERAGE (320px - 374px)
   Targets budget Android, older iPhones (SE 1st gen), narrow devices
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 374.98px) {
    /* Typography scale-down */
    body { font-size: 0.88rem; }
    h1, .h1 { font-size: 1.4rem; }
    h2, .h2 { font-size: 1.2rem; }
    h3, .h3 { font-size: 1.05rem; }

    /* Container tighter padding */
    .container, .container-fluid { padding-left: 10px; padding-right: 10px; }

    /* Navbar compact */
    .navbar { padding: 0.4rem 0; }
    .navbar-brand img { max-height: 28px; }

    /* Listing cards compact */
    .listing-card .card-body { padding: 0.6rem; }
    .listing-card .card-body h6 { font-size: 0.82rem; }
    .listing-card .card-img-top,
    .listing-card .placeholder-img { height: 140px; }

    /* List view cards */
    .lcl-image { flex: 0 0 80px; width: 80px; height: 75px; }
    .lcl-body h6 { font-size: 0.8rem; }

    /* Buttons compact */
    .btn { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
    .btn-lg { padding: 0.5rem 1rem; font-size: 0.88rem; }

    /* Forms stacked tighter */
    .form-control, .form-select { font-size: 0.88rem; padding: 0.5rem 0.65rem; }

    /* Hero sections smaller */
    .ct-hero, .sp-hero, .prof-hero { padding: 4.5rem 0 1rem; }
    .ct-hero-title, .sp-hero-title { font-size: 1.2rem; }

    /* Search bar */
    .search-bar .form-control { font-size: 0.85rem; }

    /* Admin panels */
    .acst-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .acst-card-body { padding: 0.75rem; }
    .acst-tabs { gap: 2px; overflow-x: auto; flex-wrap: nowrap; }
    .acst-tab { font-size: 0.72rem; padding: 8px 10px; white-space: nowrap; }
    .acst-hero-body h1 { font-size: 1.1rem; }

    /* Gallery */
    .gallery-modern-thumbs { gap: 4px; }
    .gallery-modern-thumb { width: 48px; height: 48px; }

    /* Profile */
    .prof-hero-avatar { width: 65px; height: 65px; }
    .nc-avatar { width: 70px; height: 70px; }

    /* Tables scroll */
    .table-responsive { font-size: 0.8rem; }

    /* Footer compact */
    footer .container { padding: 1rem 10px; }

    /* View toggle */
    .view-toggle .btn { padding: 4px 8px; font-size: 0.75rem; }

    /* Category pills */
    .category-pills { gap: 4px; }
    .category-pills .badge { font-size: 0.7rem; padding: 4px 8px; }

    /* Glass cards (listing detail) */
    .vd-glass-card { padding: 0.75rem; }
    .vd-card-header { gap: 8px; }
    .vd-card-icon { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════════
   OVERFLOW SAFETY – Mobile catch-all guards
   Prevents ANY element from causing horizontal scroll
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Force all containers to respect viewport width */
    .container, .container-fluid, .container-sm, .container-md,
    .container-lg, .container-xl, .container-xxl {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Fluid row safety */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .row > * {
        max-width: 100%;
    }

    /* Tables always scrollable */
    table:not(.table-borderless) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent fixed-width elements from overflowing */
    .d-flex { flex-wrap: wrap; }

    /* Long text safety */
    .text-truncate { max-width: 100%; }
    pre { white-space: pre-wrap; }

    /* Admin tabs scrollable */
    .acst-tabs, .nav-tabs, .nav-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .acst-tabs::-webkit-scrollbar,
    .nav-tabs::-webkit-scrollbar,
    .nav-pills::-webkit-scrollbar { display: none; }

    /* Filter pills scrollable */
    .acst-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Admin hero title smaller */
    .acst-title { font-size: 1.15rem; }
    .acst-subtitle { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════
   FLASH TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
.flash-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: flashToastSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition: opacity 0.3s, transform 0.3s;
}

.flash-toast.flash-toast-hiding {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes flashToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.flash-toast-body {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.flash-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.flash-toast-close:hover {
    background: rgba(0,0,0,0.06);
    color: #374151;
}

.flash-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 12px;
    animation: flashToastProgress 5s linear forwards;
}

@keyframes flashToastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Success variant */
.flash-toast-success {
    border-left-color: #10b981;
}
.flash-toast-success .flash-toast-icon {
    background: #ecfdf5;
    color: #10b981;
}
.flash-toast-success .flash-toast-progress {
    background: #10b981;
}

/* Error variant */
.flash-toast-error {
    border-left-color: #ef4444;
}
.flash-toast-error .flash-toast-icon {
    background: #fef2f2;
    color: #ef4444;
}
.flash-toast-error .flash-toast-progress {
    background: #ef4444;
}

/* Info variant */
.flash-toast-info {
    border-left-color: #3b82f6;
}
.flash-toast-info .flash-toast-icon {
    background: #eff6ff;
    color: #3b82f6;
}
.flash-toast-info .flash-toast-progress {
    background: #3b82f6;
}

/* Dark mode */
[data-bs-theme="dark"] .flash-toast {
    background: #1e1e2e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
[data-bs-theme="dark"] .flash-toast-body {
    color: #e5e5f0;
}
[data-bs-theme="dark"] .flash-toast-close {
    color: #6b6b80;
}
[data-bs-theme="dark"] .flash-toast-close:hover {
    background: rgba(255,255,255,0.08);
    color: #a1a1b5;
}
[data-bs-theme="dark"] .flash-toast-success .flash-toast-icon {
    background: rgba(16,185,129,0.15);
}
[data-bs-theme="dark"] .flash-toast-error .flash-toast-icon {
    background: rgba(239,68,68,0.15);
}
[data-bs-theme="dark"] .flash-toast-info .flash-toast-icon {
    background: rgba(59,130,246,0.15);
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .flash-toast-container {
        top: 12px;
        right: 12px;
        width: calc(100% - 24px);
    }
    .flash-toast {
        padding: 12px 14px;
    }
}

/* ═══════════════════════════════════════
   MOBILE OFFCANVAS MENU
   ═══════════════════════════════════════ */
#mobileMenu {
    width: 300px !important;
    max-width: 85vw !important;
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.3) inset;
    border-right: none !important;
}

#mobileMenu .offcanvas-header {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-color: rgba(0,0,0,0.06) !important;
}

#mobileMenu .offcanvas-body {
    background: transparent;
    overflow-y: auto;
}

#mobileMenu ~ .offcanvas-backdrop,
#mobileMenu + .offcanvas-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background-color: rgba(0,0,0,0.2) !important;
}

.mobile-nav-list {
    display: flex !important;
    flex-direction: column !important;
}

.mobile-nav-section {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
    padding: 8px 20px 4px;
}

.mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-primary, #1f2937);
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(0,0,0,0.04);
    color: var(--text-primary, #1f2937);
    text-decoration: none !important;
}

.mobile-nav-link i:first-child {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-secondary, #4b5563);
}

.mobile-nav-link.text-danger i:first-child {
    color: var(--bs-danger);
}

.mobile-nav-sub {
    padding: 9px 20px 9px 52px;
    font-size: 0.85rem;
    font-weight: 400;
}

.mobile-nav-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.mobile-nav-link[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(180deg);
}

.mobile-nav-cta {
    background: linear-gradient(135deg, var(--bs-primary), #7c3aed) !important;
    color: #fff !important;
    border-radius: 10px;
    margin: 4px 16px;
    padding: 12px 20px;
    justify-content: center;
    font-weight: 600;
}

.mobile-nav-cta i:first-child {
    color: #fff !important;
}

.mobile-nav-cta:hover {
    background: linear-gradient(135deg, #1545b8, #6927c4) !important;
    color: #fff !important;
}

/* Mobile theme row */
.mobile-theme-row {
    display: flex;
    gap: 8px;
    padding: 8px 20px;
}

.mobile-theme-btn {
    flex: 1;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #6b7280);
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: center;
}

.mobile-theme-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* Mobile auth buttons for guests */
.mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px;
}

/* Dark mode overrides for mobile menu */
[data-bs-theme="dark"] #mobileMenu {
    background: rgba(22,22,37,0.8) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
    color: #e5e5f0;
}

[data-bs-theme="dark"] #mobileMenu .offcanvas-header {
    background: rgba(30,30,46,0.6);
    border-color: rgba(255,255,255,0.06) !important;
}

[data-bs-theme="dark"] #mobileMenu .offcanvas-body {
    background: transparent;
}

[data-bs-theme="dark"] .mobile-nav-section {
    border-color: rgba(255,255,255,0.06);
}

[data-bs-theme="dark"] .mobile-nav-link {
    color: #e5e5f0;
}

[data-bs-theme="dark"] .mobile-nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

[data-bs-theme="dark"] .mobile-nav-link i:first-child {
    color: #a1a1b5;
}

[data-bs-theme="dark"] .mobile-theme-btn {
    background: #1e1e2e;
    border-color: #2d2d3f;
    color: #a1a1b5;
}

[data-bs-theme="dark"] .mobile-theme-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
