/* =========================================================
   SecureSite – Global Styles (style.css)
   Desktop & base design only. Responsive rules → responsive.css
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-secondary: #64748b;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-header-bg: #0f172a;
    --color-header-text: #f1f5f9;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --header-h: 64px;
    --sidebar-w: 260px;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 32px 0 48px;
}

/* ---------- Header / Navbar ---------- */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-header-text);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo i { font-size: 1.35rem; color: var(--color-primary-light); }

.main-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.925rem;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-greeting {
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hamburger – hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-header-text);
}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Menu (off-canvas right) ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--color-surface);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-header-bg);
    color: #fff;
}
.mobile-menu-header .logo { font-size: 1.05rem; }
.menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.mobile-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--color-text);
    font-weight: 500;
    transition: background var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active {
    background: #f1f5f9;
    color: var(--color-primary);
}

body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
    line-height: 1.25;
}
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.site-header .btn-outline {
    color: #e2e8f0;
    border-color: #475569;
}
.site-header .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #94a3b8;
}
.site-header .btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-warning { background: var(--color-warning); color: #fff; border-color: var(--color-warning); }
.btn-warning:hover { background: #b45309; color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 0.925rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-icon {
    position: relative;
}
.input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}
.input-icon input {
    padding-left: 40px;
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.95rem;
}
.password-toggle:hover { color: var(--color-primary); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: #fafbfc;
}
.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}
.card-body { padding: 20px; }

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.925rem;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert span { flex: 1; }
.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    padding: 0 4px;
}
.alert-close:hover { opacity: 1; }
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 60px 20px 48px;
}
.hero-content { max-width: 640px; margin: 0 auto; }
.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--color-text);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Features ---------- */
.features { padding: 20px 0 40px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: #eff6ff;
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ---------- Auth ---------- */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 36px 32px;
}
.auth-card-wide { max-width: 560px; }
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.auth-header p {
    color: var(--color-text-muted);
    font-size: 0.925rem;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ---------- Page sections ---------- */
.page-section { padding: 8px 0; }
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
}
.text-muted { color: var(--color-text-muted); }

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.mb-3 { margin-bottom: 16px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}
.info-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    padding: 22px;
}
.info-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #eff6ff;
    color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.info-card-body h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.info-card-body p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---------- Detail list ---------- */
.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
}
.detail-list dt {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.detail-list dd { font-size: 0.925rem; }

.action-panel .action-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.action-panel .action-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.action-panel h3 {
    font-size: 0.925rem;
    margin-bottom: 10px;
}
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Tables ---------- */
.table-responsive { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.data-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    background: #f8fafc;
    white-space: nowrap;
}
.data-table tbody tr:hover { background: #f8fafc; }
.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

/* ---------- Filters ---------- */
.filters-form { margin-bottom: 20px; }
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filters-row .form-group {
    margin-bottom: 0;
    min-width: 140px;
}
.filter-search { flex: 1; min-width: 200px; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--transition), border-color var(--transition);
}
.pagination-btn:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}
.pagination-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-header-bg);
    color: #94a3b8;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Error page ---------- */
.error-section {
    text-align: center;
    padding: 80px 20px;
}
.error-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.error-content p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* =========================================================
   Admin Panel
   ========================================================= */
.admin-body {
    background: #f1f5f9;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--color-header-bg);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 900;
    transition: transform 0.28s ease;
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.sidebar-brand i { color: var(--color-primary-light); }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: background var(--transition), color var(--transition);
}
.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar-link i { width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
    display: block;
    padding: 0 14px 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: 56px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 6px;
}
.topbar-title {
    font-weight: 600;
    font-size: 1.05rem;
    flex: 1;
}
.topbar-actions { display: flex; gap: 8px; }

.admin-content {
    padding: 24px;
    flex: 1;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 850;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.admin-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-icon-primary { background: #eff6ff; color: var(--color-primary); }
.stat-icon-success { background: #f0fdf4; color: var(--color-success); }
.stat-icon-danger  { background: #fef2f2; color: var(--color-danger); }
.stat-icon-warning { background: #fffbeb; color: var(--color-warning); }
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

/* ---------- Navbar 1300px centered ---------- */
.header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
}
.logo-img-sm {
    height: 24px;
    max-width: 80px;
}

/* Nav profile (logged-in) */
.nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    transition: background var(--transition);
}
.nav-profile:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.header-admin-btn {
    margin-left: 4px;
}

/* ---------- Profile page ---------- */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-hero-info {
    flex: 1;
    min-width: 180px;
}
.profile-hero-info h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
}
.meta-item {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.profile-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.card-header h2 i {
    margin-right: 8px;
    color: var(--color-primary);
}

/* ---------- Settings accordion ---------- */
.settings-form {
    max-width: 100%;
    width: 100%;
}
.settings-accordion {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fafbfc;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: background var(--transition);
}
.accordion-header:hover {
    background: #f1f5f9;
}
.accordion-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.accordion-title { flex: 1; }
.accordion-chevron {
    color: var(--color-text-muted);
    transition: transform 0.25s ease;
}
.accordion-header[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}
.accordion-body {
    padding: 20px;
    border-top: 1px solid var(--color-border);
}
.accordion-body.is-collapsed {
    display: none;
}
.logo-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.logo-preview img {
    max-height: 48px;
    max-width: 160px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    padding: 4px;
    background: #fff;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.settings-actions {
    margin-top: 8px;
}
.content-block p {
    margin-bottom: 12px;
    line-height: 1.7;
}
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 0.925rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    resize: vertical;
    min-height: 80px;
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---------- Announcements ---------- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.type-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    text-align: center;
    color: var(--color-text);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.type-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary);
    color: var(--color-text);
}
.type-card h2 {
    font-size: 1.15rem;
    margin: 12px 0 6px;
}
.type-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.type-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.type-icon-estate { background: #eff6ff; color: #2563eb; }
.type-icon-vehicle { background: #f0fdf4; color: #16a34a; }
.type-icon-job { background: #fff7ed; color: #ea580c; }

.form-card { max-width: 720px; }
.form-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 8px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.form-section-title i { margin-right: 8px; color: var(--color-primary); }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ann-list {
    display: grid;
    gap: 14px;
}
.ann-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}
.ann-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ann-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.ann-card-title a { color: var(--color-text); }
.ann-card-title a:hover { color: var(--color-primary); }
.ann-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.ann-card-meta i { margin-right: 4px; }
.ann-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ann-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ann-type-real_estate { background: #dbeafe; color: #1e40af; }
.ann-type-vehicle { background: #dcfce7; color: #166534; }
.ann-type-job { background: #ffedd5; color: #9a3412; }

.ann-detail-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.ann-detail-desc {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--color-text);
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}
.empty-state p { margin-bottom: 16px; }

.stats-grid-sm .stat-card { padding: 14px 16px; }
.stats-grid-sm .stat-value { font-size: 1.25rem; }

/* ---------- Modern hero ---------- */
.hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    color: #fff;
    padding: 56px 20px 48px;
    margin: -32px -20px 40px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.main-content > .container > .hero-modern {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
}
.hero-modern-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.hero-modern h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.25;
}
.hero-modern-sub {
    opacity: 0.85;
    margin-bottom: 28px;
    font-size: 1.05rem;
}
.hero-filter {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 24px;
}
.hero-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-filter-field {
    flex: 1;
    min-width: 140px;
}
.hero-filter-q { flex: 2; min-width: 180px; }
.hero-filter-field select,
.hero-filter-field input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.925rem;
    background: #fff;
    color: var(--color-text);
}
.hero-filter-btn {
    padding: 12px 22px;
    white-space: nowrap;
}
.hero-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--transition), transform var(--transition);
}
.hero-cat:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-1px);
}
.hero-cat-add {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---------- Home carousels ---------- */
.home-section {
    margin-bottom: 40px;
}
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.home-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-section-title i { color: var(--color-primary); }
.carousel-nav {
    display: flex;
    gap: 8px;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.carousel-btn:disabled:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
}
.carousel-wrap {
    overflow: hidden;
    margin: 0 -6px;
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s ease;
    padding: 4px 6px 8px;
}
.listing-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.listing-card-img {
    position: relative;
    height: 160px;
    background: #e2e8f0;
    overflow: hidden;
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}
.listing-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15,23,42,0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
}
.listing-card-body { padding: 14px 14px 16px; }
.listing-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 2.6em;
}
.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.listing-price {
    font-weight: 700;
    color: var(--color-primary) !important;
}
.listing-extra {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.home-empty { padding: 12px 0; }

/* Gallery */
.ann-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.ann-gallery-item {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 1;
}
.ann-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.photo-preview-list img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

/* ---------- Hero Pro (refined) ---------- */
.hero-pro {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    padding: 48px 28px 40px;
    background: linear-gradient(145deg, #0b1220 0%, #132337 40%, #1e3a5f 100%);
    color: #fff;
}
.hero-pro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(37,99,235,0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(14,165,233,0.15), transparent 50%);
    pointer-events: none;
}
.hero-pro-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.hero-pro-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(147,197,253,0.12);
    border: 1px solid rgba(147,197,253,0.25);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero-pro h1 {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-pro-lead {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-bottom: 28px;
}
.hero-search-inner {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    text-align: left;
}
.hero-search-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 16px;
    min-width: 140px;
}
.hero-search-grow { flex: 1; min-width: 0; }
.hero-search-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 2px;
}
.hero-search-item select,
.hero-search-item input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    padding: 0;
    width: 100%;
}
.hero-search-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 12px 0;
    flex-shrink: 0;
}
.hero-search-submit {
    margin: 8px;
    border-radius: 10px !important;
    padding: 0 22px;
    gap: 8px;
}

.hero-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hero-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-quick-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}
.hq-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.hq-estate { background: #dbeafe; color: #1d4ed8; }
.hq-car { background: #dcfce7; color: #15803d; }
.hq-job { background: #ffedd5; color: #c2410c; }
.hq-add { background: #2563eb; color: #fff; }
.hero-quick-cta {
    background: rgba(37,99,235,0.25);
    border-color: rgba(37,99,235,0.4);
}

.home-empty-box {
    text-align: center;
    padding: 36px 20px;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text-muted);
}
.home-empty-box i {
    font-size: 1.75rem;
    opacity: 0.35;
    margin-bottom: 10px;
    display: block;
}
.home-empty-box p { margin-bottom: 12px; }

/* Hide broken full-bleed old hero if still in DOM */
.hero-modern { display: none !important; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.listing-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.listing-card-link:hover {
    color: inherit;
}
