﻿/**
 * E-handa portal Â· TheHunt-inspired premium UI
 */
:root {
    --hunt-primary: #0f766e;
    --hunt-primary-dark: #0d5e58;
    --hunt-primary-light: #ecfdf5;
    --hunt-primary-bright: #14b8a6;
    --hunt-accent: #059669;
    --hunt-accent-light: #d1fae5;
    --hunt-green-deep: #064e3b;
    --hunt-glow: rgba(15, 118, 110, 0.35);
    --hunt-dark: #1a2332;
    --hunt-dark-2: #2d3748;
    --hunt-muted: #6b7280;
    --hunt-border: #e8ecf1;
    --hunt-bg: #f0f3f8;
    --hunt-white: #ffffff;
    --hunt-success: #10b981;
    --hunt-warning: #f59e0b;
    --hunt-radius: 10px;
    --hunt-radius-lg: 16px;
    --hunt-radius-xl: 22px;
    --hunt-shadow: 0 8px 30px rgba(26, 35, 50, 0.08);
    --hunt-shadow-lg: 0 20px 50px rgba(26, 35, 50, 0.14);
    --hunt-shadow-soft: 0 2px 12px rgba(26, 35, 50, 0.06);
    --teal-700: var(--hunt-primary);
    --teal-600: var(--hunt-primary-dark);
    --teal-500: var(--hunt-primary);
    --teal-50: var(--hunt-primary-light);
    --ink-900: var(--hunt-dark);
    --ink-700: var(--hunt-dark-2);
    --ink-500: var(--hunt-muted);
    --ink-100: var(--hunt-bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: var(--hunt-bg);
    color: var(--hunt-dark);
    min-height: 100vh;
}

.portal-body {
    background:
        radial-gradient(ellipse 80% 50% at 0% -20%, rgba(15, 118, 110, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 184, 166, 0.08), transparent 45%),
        var(--hunt-bg);
}

body::before { display: none; }

a { text-decoration: none; color: inherit; }

/* â€”â€” Page enter â€”â€” */
.page-enter { animation: pageFade 0.45s ease; }
@keyframes pageFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* â€”â€” Breadcrumb & page header â€”â€” */
.hunt-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.hunt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--hunt-muted);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hunt-breadcrumb a:hover { color: var(--hunt-primary); }
.hunt-breadcrumb .sep { opacity: 0.4; font-size: 0.7rem; }
.hunt-breadcrumb .current { color: var(--hunt-dark); font-weight: 800; }

.hunt-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* â€”â€” Navbar â€”â€” */
.navbar-custom {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hunt-border);
    padding: 0;
    box-shadow: var(--hunt-shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-custom::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--hunt-green-deep), var(--hunt-primary), var(--hunt-primary-bright));
}

.navbar-custom .container { max-width: 1200px; }

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--hunt-dark) !important;
    padding: 16px 0;
    gap: 12px;
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hunt-primary) 0%, var(--hunt-primary-bright) 100%);
    box-shadow: 0 8px 20px var(--hunt-glow);
    transition: transform 0.25s;
}

.navbar-brand:hover .brand-logo { transform: scale(1.05) rotate(-3deg); }

.nav-link {
    color: var(--hunt-dark-2) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 20px 14px !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover { color: var(--hunt-primary) !important; background: transparent; }

.nav-link.active,
.nav-link.show {
    color: var(--hunt-primary) !important;
    background: transparent !important;
    border-bottom-color: var(--hunt-primary);
    box-shadow: none;
}

.navbar-toggler {
    border: 1px solid var(--hunt-border);
    border-radius: 8px;
    padding: 8px 10px;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25); }

.portal-menu {
    border: 1px solid var(--hunt-border);
    border-radius: var(--hunt-radius-lg);
    box-shadow: var(--hunt-shadow-lg);
    padding: 10px;
    margin-top: 6px;
    animation: menuPop 0.2s ease;
}

@keyframes menuPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-menu .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: 0.15s;
}

.portal-menu .dropdown-item i { width: 20px; color: var(--hunt-primary); }

.portal-menu .dropdown-item:hover {
    background: var(--hunt-primary-light);
    color: var(--hunt-primary);
    transform: translateX(4px);
}

.nav-cta-wrap {
    flex-shrink: 0;
}

.nav-profile-dropdown {
    position: relative;
}

.profile-trigger {
    border: none;
    background: transparent;
    padding: 0;
    line-height: 0;
    border-radius: 14px;
    display: inline-flex;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-trigger::after {
    display: none !important;
}

.profile-trigger:hover,
.profile-trigger:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.28);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--hunt-primary);
    box-shadow: 0 4px 14px var(--hunt-glow);
    display: block;
}

.profile-menu {
    min-width: 290px;
    border: 1px solid var(--hunt-border);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(6, 78, 59, 0.18);
    padding: 8px;
    margin-top: 10px !important;
    z-index: 1300;
    animation: menuPop 0.22s ease;
}

.profile-menu-head {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu-head-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #064e3b, #0f766e, #14b8a6);
    color: #fff;
}

.profile-menu-avatar-mini {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-menu-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-menu-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-menu-meta strong {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-role {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #ecfdf5;
}

.profile-menu-email {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-divider {
    margin: 6px 4px;
    opacity: 0.35;
}

.profile-menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--hunt-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.15s;
}

.profile-menu .dropdown-item i {
    width: 20px;
    color: var(--hunt-primary);
    text-align: center;
}

.profile-menu .dropdown-item:hover,
.profile-menu .dropdown-item:focus {
    background: var(--hunt-primary-light);
    color: var(--hunt-primary);
}

.profile-menu-logout {
    color: #dc2626 !important;
}

.profile-menu-logout i {
    color: #dc2626 !important;
}

.profile-menu-logout:hover,
.profile-menu-logout:focus {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* â€”â€” Buttons â€”â€” */
.btn-teal {
    background: linear-gradient(135deg, var(--hunt-primary), var(--hunt-primary-bright));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--hunt-radius);
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 6px 18px var(--hunt-glow);
    transition: 0.22s;
}

.btn-teal:hover {
    background: linear-gradient(135deg, var(--hunt-primary-dark), var(--hunt-primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--hunt-glow);
}

.btn-ghost {
    background: var(--hunt-white);
    color: var(--hunt-dark);
    border: 1px solid var(--hunt-border);
    padding: 10px 18px;
    border-radius: var(--hunt-radius);
    font-weight: 700;
    font-size: 0.88rem;
    transition: 0.2s;
}

.btn-ghost:hover {
    border-color: var(--hunt-primary);
    color: var(--hunt-primary);
    background: var(--hunt-primary-light);
}

.btn-soft {
    background: var(--hunt-primary-light);
    color: var(--hunt-primary);
    border: none;
    padding: 9px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.82rem;
    transition: 0.2s;
}

.btn-soft:hover {
    background: var(--hunt-primary);
    color: #fff;
}

/* â€”â€” Hero â€”â€” */
.hunt-hero {
    background:
        linear-gradient(125deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 118, 110, 0.78) 55%, rgba(20, 184, 166, 0.4) 100%),
        url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1400&q=65') center/cover no-repeat;
    border-radius: var(--hunt-radius-xl);
    padding: 44px 40px 48px;
    margin-bottom: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--hunt-shadow-lg);
}

.hunt-hero::before,
.hunt-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hunt-hero::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.35), transparent 70%);
}

.hunt-hero::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -40px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
}

.hunt-hero-inner { position: relative; z-index: 1; }

.hunt-hero .badge-pill,
.hunt-badge-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.hunt-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.hunt-hero .lead {
    opacity: 0.92;
    font-size: 1.02rem;
    margin-bottom: 22px;
    max-width: 520px;
    line-height: 1.65;
    font-weight: 500;
}

.hunt-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.hunt-hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hunt-hero-stat i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.hunt-hero-stat b {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.hunt-hero-stat small {
    opacity: 0.75;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hunt-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.hunt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.2s;
}

.hunt-tag:hover {
    background: var(--hunt-primary);
    border-color: var(--hunt-primary);
    color: #fff;
    transform: translateY(-2px);
}

.hunt-search {
    display: flex;
    flex-wrap: wrap;
    background: var(--hunt-white);
    border-radius: var(--hunt-radius-lg);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    max-width: 760px;
}

.hunt-search .field {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-right: 1px solid var(--hunt-border);
}

.hunt-search .field:last-of-type { border-right: none; }

.hunt-search .field i { color: var(--hunt-primary); }

.hunt-search input,
.hunt-search select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hunt-dark);
    background: transparent;
}

.hunt-search button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--hunt-primary), var(--hunt-primary-bright));
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: 0.2s;
}

.hunt-search button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}

.hero-card {
    background:
        linear-gradient(125deg, rgba(26, 35, 50, 0.95), rgba(45, 55, 72, 0.88)),
        url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1200&q=50') center/cover;
    border-radius: var(--hunt-radius-xl);
    padding: 44px 36px;
    box-shadow: var(--hunt-shadow-lg);
    color: #fff;
}

.hero-card::before, .hero-card::after { display: none; }
.hero-card h1 { font-size: 1.85rem; font-weight: 800; }
.hero-card .badge-pill { background: var(--hunt-primary); }

/* â€”â€” Categories â€”â€” */
.hunt-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.hunt-cat {
    background: var(--hunt-white);
    border: 1px solid var(--hunt-border);
    border-radius: var(--hunt-radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: var(--hunt-shadow-soft);
    position: relative;
    overflow: hidden;
}

.hunt-cat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-color, var(--hunt-primary));
    transform: scaleX(0);
    transition: transform 0.25s;
}

.hunt-cat:hover::before { transform: scaleX(1); }

.hunt-cat:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--hunt-shadow);
}

.hunt-cat:nth-child(1) { --cat-color: #0f766e; }
.hunt-cat:nth-child(2) { --cat-color: #059669; }
.hunt-cat:nth-child(3) { --cat-color: #14b8a6; }
.hunt-cat:nth-child(4) { --cat-color: #10b981; }

.hunt-cat .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--hunt-primary-light);
    color: var(--cat-color, var(--hunt-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.25s;
}

.hunt-cat:hover .icon {
    background: var(--cat-color, var(--hunt-primary));
    color: #fff;
    transform: scale(1.08);
}

.hunt-cat b {
    display: block;
    font-size: 0.9rem;
    color: var(--hunt-dark);
    font-weight: 800;
}

.hunt-cat small {
    color: var(--hunt-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

/* â€”â€” Stats â€”â€” */
.stat-card {
    background: var(--hunt-white);
    border: 1px solid var(--hunt-border);
    border-radius: var(--hunt-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--hunt-shadow-soft);
    transition: 0.28s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--hunt-primary), var(--hunt-primary-bright));
    opacity: 0;
    transition: opacity 0.25s;
}

.stat-card:hover {
    box-shadow: var(--hunt-shadow);
    transform: translateY(-4px);
}

.stat-card:hover::after { opacity: 1; }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hunt-primary-light), #fff);
    color: var(--hunt-primary);
    font-size: 1.15rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.stat-card h3 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--hunt-dark);
    letter-spacing: -0.02em;
}

.stat-card p {
    color: var(--hunt-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.stat-card .stat-trend {
    font-size: 0.75rem;
    color: var(--hunt-success);
    font-weight: 700;
    margin-top: 6px;
}

/* â€”â€” Panels & listings â€”â€” */
.hunt-panel {
    background: var(--hunt-white);
    border: 1px solid var(--hunt-border);
    border-radius: var(--hunt-radius-xl);
    overflow: hidden;
    box-shadow: var(--hunt-shadow-soft);
    margin-bottom: 24px;
}

.hunt-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--hunt-border);
    background: linear-gradient(180deg, #fafbfc, var(--hunt-white));
}

.hunt-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hunt-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hunt-panel-head h2 i { color: var(--hunt-primary); }

.hunt-panel-body { padding: 16px 20px 20px; }

/* â€”â€” Dashboard home blocks â€”â€” */
.dashboard-lead {
    color: var(--hunt-dark-2);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 14px;
}

.dashboard-overview-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-overview-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hunt-dark-2);
    line-height: 1.45;
}

.dashboard-overview-list li i {
    color: var(--hunt-primary);
    margin-top: 3px;
    width: 18px;
    flex-shrink: 0;
}

.dashboard-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
}

.dashboard-news-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--hunt-border);
}

.dashboard-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-news-date {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hunt-muted);
    margin-bottom: 4px;
}

.dashboard-news-item h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--hunt-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}

.dashboard-news-item p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--hunt-muted);
    line-height: 1.55;
    font-weight: 600;
}

.dashboard-overview .see-all,
.dashboard-news .see-all {
    margin-top: 4px;
}

/* Portal directory (dashboard) */
.portal-directory {
    padding: 8px 16px 20px;
}

.portal-section {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--hunt-border);
}

.portal-section:first-child {
    padding-top: 8px;
}

.portal-section:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.portal-directory .section-label {
    margin: 0 0 14px;
    padding: 0 2px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #64748b;
}

.portal-section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hunt-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: var(--hunt-primary); }

.section-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hunt-muted);
    margin: 20px 0 10px;
    padding-left: 4px;
}

.menu-card,
.hunt-listing {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fafbfb;
    border: 1px solid var(--hunt-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.menu-card::before,
.hunt-listing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--hunt-primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.menu-card:hover::before,
.hunt-listing:hover::before { opacity: 1; }

.menu-card:hover,
.hunt-listing:hover {
    border-color: rgba(15, 118, 110, 0.35);
    background: var(--hunt-white);
    box-shadow: var(--hunt-shadow-soft);
    transform: none;
    color: inherit;
}

.menu-card .menu-icon,
.hunt-listing .listing-logo,
.listing-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hunt-primary-light), #fff);
    color: var(--hunt-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.menu-content {
    flex: 1;
    min-width: 0;
}

.menu-title,
.menu-content h4,
.hunt-listing h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hunt-dark);
    line-height: 1.35;
    display: block;
}

.menu-content .meta,
.hunt-listing .meta {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--hunt-muted);
    font-weight: 600;
}

.menu-card .arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--hunt-primary);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--hunt-primary-light);
    border: 1px solid rgba(15, 118, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.menu-card:hover .arrow {
    background: var(--hunt-primary);
    color: #fff;
    transform: none;
}

/* â€”â€” Badges â€”â€” */
.hunt-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hunt-badge-active { background: #d1fae5; color: #065f46; }
.hunt-badge-approved { background: #dbeafe; color: #1e40af; }
.hunt-badge-proposed { background: #fef3c7; color: #92400e; }
.hunt-badge-inactive { background: #f1f5f9; color: #64748b; }

/* â€”â€” Site & quote rows â€”â€” */
.hunt-site-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hunt-border);
    transition: 0.15s;
}

.hunt-site-row:last-child { border-bottom: none; }

.hunt-site-row:hover { padding-left: 6px; }

.hunt-site-row .info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hunt-dark);
}

.hunt-site-row .info span {
    font-size: 0.8rem;
    color: var(--hunt-muted);
    font-weight: 600;
}

.hunt-quote {
    background: var(--hunt-bg);
    border-left: 4px solid var(--hunt-primary);
    border-radius: 0 var(--hunt-radius) var(--hunt-radius) 0;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.hunt-quote p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--hunt-dark-2);
    font-style: italic;
}

.hunt-quote cite {
    font-size: 0.78rem;
    color: var(--hunt-muted);
    font-weight: 700;
    font-style: normal;
}

.glass-card {
    background: var(--hunt-white);
    border: 1px solid var(--hunt-border);
    border-radius: var(--hunt-radius-xl);
    padding: 24px;
    box-shadow: var(--hunt-shadow-soft);
}

.glass-card-highlight {
    border-color: rgba(15, 118, 110, 0.2);
    background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}

/* IEC portal styles: assets/css/iec-portal.css */

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hunt-primary);
    font-weight: 800;
    font-size: 0.88rem;
    margin-top: 12px;
    transition: 0.2s;
}

.see-all:hover {
    color: var(--hunt-primary-dark);
    gap: 10px;
}

/* â€”â€” Forms & flash â€”â€” */
.form-label {
    color: var(--hunt-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control, .form-select {
    border-radius: var(--hunt-radius);
    border: 1px solid var(--hunt-border);
    padding: 12px 14px;
    font-weight: 600;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hunt-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12) !important;
}

.flash {
    border-radius: var(--hunt-radius);
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash.success {
    background: linear-gradient(90deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* â€”â€” Footer â€”â€” */
.hunt-footer {
    background: linear-gradient(180deg, var(--hunt-dark) 0%, #0f1419 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0 28px;
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}

.hunt-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hunt-green-deep), var(--hunt-primary), var(--hunt-primary-bright));
}

.hunt-footer h6 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.hunt-footer a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    transition: 0.2s;
}

.hunt-footer a:hover { color: var(--hunt-primary); padding-left: 4px; }

.hunt-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hunt-footer-brand .logo-mini {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hunt-primary), var(--hunt-primary-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* â€”â€” Content pages â€”â€” */
.content-body {
    color: var(--hunt-dark-2);
    line-height: 1.85;
    font-size: 0.96rem;
}

.content-body ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.content-body li { margin-bottom: 0.5rem; }
.content-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hunt-dark);
    margin: 1.5rem 0 0.75rem;
}

/* â€”â€” Stagger animation â€”â€” */
.stagger > * {
    animation: staggerIn 0.5s ease backwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }

@keyframes staggerIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* â€”â€” Responsive â€”â€” */
@media (max-width: 991px) {
    .hunt-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hunt-hero { padding: 28px 22px 32px; border-radius: var(--hunt-radius-lg); }
    .hunt-hero-stats { gap: 14px; }
    .hunt-search { flex-direction: column; }
    .hunt-search .field {
        border-right: none;
        border-bottom: 1px solid var(--hunt-border);
    }
    .hunt-search button { width: 100%; }
    .hunt-categories { grid-template-columns: 1fr 1fr; }
    .hunt-page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hunt-categories { grid-template-columns: 1fr; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROFILE PAGE (green coastal theme)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.profile-page { padding-top: 1rem; padding-bottom: 2rem; }

.profile-header {
    background: var(--hunt-white);
    border-radius: var(--hunt-radius-xl);
    box-shadow: var(--hunt-shadow);
    overflow: hidden;
    border: 1px solid var(--hunt-border);
    margin-bottom: 1.5rem;
}

.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--hunt-green-deep) 0%, var(--hunt-primary) 45%, var(--hunt-primary-bright) 100%);
    position: relative;
}

.profile-cover::before,
.profile-cover::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.profile-cover::before {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -60px;
}

.profile-cover::after {
    width: 180px;
    height: 180px;
    bottom: -80px;
    left: -40px;
}

.profile-body {
    padding: 0 28px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 16px 24px;
    margin-top: -64px;
    position: relative;
    z-index: 1;
}

.profile-avatar-block { grid-row: 1 / 3; align-self: end; }

.avatar-wrap {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 50%;
    width: 128px;
    height: 128px;
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--hunt-white);
    box-shadow: 0 12px 32px rgba(6, 78, 59, 0.25);
}

.avatar-wrap .overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(6, 78, 59, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    transition: 0.25s;
}

.avatar-wrap:hover .overlay,
.avatar-wrap:focus-within .overlay { opacity: 1; }

.profile-info {
    grid-column: 2;
    padding-top: 72px;
    min-width: 0;
}

.profile-info h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--hunt-dark);
    letter-spacing: -0.02em;
}

.profile-info .role,
.profile-info .email {
    color: var(--hunt-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.profile-info .role i,
.profile-info .email i {
    color: var(--hunt-primary);
    margin-right: 6px;
    width: 18px;
}

.profile-info .bio {
    margin-top: 10px;
    line-height: 1.7;
    color: var(--hunt-dark-2);
    font-size: 0.92rem;
}

.profile-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.profile-stats > div {
    text-align: center;
    background: var(--hunt-primary-light);
    padding: 16px 12px;
    border-radius: var(--hunt-radius-lg);
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.profile-stats strong {
    display: block;
    font-size: 1.35rem;
    color: var(--hunt-primary);
    font-weight: 800;
}

.profile-stats span {
    font-size: 0.72rem;
    color: var(--hunt-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-form-card .section-title { margin-bottom: 1.25rem; }

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--hunt-border);
    font-size: 0.9rem;
    color: var(--hunt-dark-2);
    font-weight: 600;
}

.info-list li:last-child { border-bottom: none; }

.info-list li i {
    color: var(--hunt-primary);
    width: 20px;
    margin-top: 2px;
}

.info-list li span {
    margin-left: auto;
    text-align: right;
    color: var(--hunt-dark);
    font-weight: 700;
    max-width: 55%;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE ENHANCEMENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1040;
    padding: 4px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow:
        0 -10px 40px rgba(15, 23, 42, 0.1),
        0 -1px 0 rgba(255, 255, 255, 0.8) inset;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-nav li {
    flex: 1;
    max-width: 76px;
    position: relative;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px 6px;
    min-height: 50px;
    border-radius: 14px;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav a i {
    font-size: 1.18rem;
    transition: transform 0.2s, color 0.2s;
}

.bottom-nav a:active {
    transform: scale(0.96);
}

.bottom-nav li.active a {
    color: var(--hunt-primary);
    background: linear-gradient(180deg, #d1fae5 0%, var(--hunt-primary-light) 100%);
    box-shadow:
        0 -3px 14px rgba(15, 118, 110, 0.14),
        0 4px 12px rgba(15, 118, 110, 0.08);
    transform: translateY(-6px);
    padding-top: 10px;
    padding-bottom: 8px;
    min-height: 56px;
}

.bottom-nav li.active a i {
    transform: scale(1.14);
    color: var(--hunt-primary-dark);
}

.bottom-nav li.active a span {
    color: var(--hunt-primary-dark);
}

.bottom-nav li.active a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--hunt-primary-dark), var(--hunt-primary-bright));
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

/* Mobile navbar drawer */
@media (max-width: 991px) {
    .navbar-custom .navbar-collapse {
        background: var(--hunt-white);
        margin: 0 -12px;
        padding: 12px 16px 20px;
        border-top: 1px solid var(--hunt-border);
        border-radius: 0 0 var(--hunt-radius-lg) var(--hunt-radius-lg);
        box-shadow: var(--hunt-shadow);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .navbar-nav {
        gap: 4px;
        width: 100%;
    }

    .navbar-nav .nav-item { width: 100%; }

    .navbar-nav .nav-link {
        padding: 14px 16px !important;
        border-bottom: none;
        border-radius: var(--hunt-radius);
        border-left: 3px solid transparent;
    }

    .navbar-nav .nav-link.active {
        background: var(--hunt-primary-light) !important;
        border-left-color: var(--hunt-primary);
    }

    .portal-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 4px 0 8px 12px;
        box-shadow: none;
        border: 1px dashed var(--hunt-border);
    }

    .nav-cta-wrap {
        width: 100%;
        flex-direction: column;
        margin: 12px 0 0 !important;
        padding-top: 12px;
        border-top: 1px solid var(--hunt-border);
    }

    .nav-cta-wrap .btn-teal {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .nav-cta-wrap .nav-profile-dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-cta-wrap .profile-menu {
        width: min(100%, 320px);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .nav-cta-wrap .profile-trigger {
        margin: 0 auto;
    }

    .nav-cta-wrap .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .navbar-brand small { display: none !important; }
}

@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }

    body.portal-body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-nav { display: block; }

    .hunt-footer {
        margin-top: 32px;
        padding: 32px 0 calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .hunt-footer .row { text-align: center; }
    .hunt-footer-brand { justify-content: center; }

    .hunt-page-actions {
        width: 100%;
    }

    .hunt-page-actions .btn-teal,
    .hunt-page-actions .btn-ghost {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .hunt-hero-stat { flex: 1 1 45%; }
    .hunt-hero-stat b { font-size: 1rem; }

    .hunt-quick-tags { gap: 6px; }
    .hunt-tag { font-size: 0.75rem; padding: 6px 12px; }

    .stat-card { padding: 18px; }
    .stat-card h3 { font-size: 1.5rem; }

    .portal-directory {
        padding: 4px 12px 16px;
    }

    .portal-section {
        padding: 16px 0 12px;
    }

    .portal-directory .section-label {
        margin-bottom: 12px;
    }

    .menu-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .menu-card .menu-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .menu-card .arrow {
        width: 30px;
        height: 30px;
    }

    .hunt-panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Profile mobile */
    .profile-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        padding: 0 18px 22px;
        margin-top: -56px;
    }

    .profile-avatar-block {
        grid-row: auto;
        justify-self: center;
    }

    .avatar-wrap {
        width: 112px;
        height: 112px;
        margin: 0 auto;
    }

    .profile-info {
        grid-column: 1;
        padding-top: 12px;
    }

    .profile-stats {
        grid-column: 1;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .profile-stats > div { padding: 12px 8px; }

    .profile-stats strong { font-size: 1.1rem; }

    .info-list li {
        flex-wrap: wrap;
    }

    .info-list li span {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        text-align: left;
        padding-left: 32px;
        margin-top: 4px;
    }

    .profile-page .glass-card { padding: 18px; }

    .profile-page .btn-teal { width: 100%; }
}

@media (max-width: 380px) {
    .profile-stats { grid-template-columns: 1fr; }
    .hunt-hero-stats { flex-direction: column; }
}
