/* ============================================================
   MEMBER DIRECTORY — Custom Stylesheet
   Stack: Bootstrap 5.3 + Bootstrap Icons + Custom CSS
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
    --primary:        #2563EB;
    --primary-dark:   #1d4ed8;
    --primary-light:  #eff6ff;
    --primary-muted:  rgba(37, 99, 235, 0.12);
    --dark-navy:      #0d1b2a;
    --dark-navy-2:    #112236;
    --text:           #1e293b;
    --text-muted:     #64748b;
    --bg-light:       #f8fafc;
    --border:         #e2e8f0;
    --white:          #ffffff;
    --success:        #10b981;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --sidebar-width:  260px;
    --topbar-height:  64px;
    --transition:     0.2s ease;
    --radius:         12px;
    --radius-sm:      8px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.05);
    --shadow-md:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
}

/* ------------------------------------------------------------
   2. Global Resets & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------
   2b. Brand Name (centralized two-tone treatment)
       Change APP_BRAND_FIRST / APP_BRAND_SECOND in .env to rebrand.
   ------------------------------------------------------------ */
.brand-name {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-accent {
    color: var(--primary);
}

/* Dark background context — first part white, accent stays blue */
.site-navbar .brand-name,
.admin-sidebar .brand-name,
.site-footer .brand-name,
.admin-login-page .brand-name {
    color: var(--white);
}

/* Light background context — first part dark */
.login-card .brand-name,
.vcard-header .brand-name {
    color: var(--text);
}

/* ------------------------------------------------------------
   2c. Site Logo Image Sizes
   ------------------------------------------------------------ */
.site-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Dark backgrounds — invert to white */
.site-logo--navbar  { height: 36px; filter: brightness(0) invert(1); }
.site-logo--footer  { height: 30px; filter: brightness(0) invert(1); }
.site-logo--sidebar { height: 30px; filter: brightness(0) invert(1); }
.site-logo--vcard   { height: 28px; }
.site-logo--login   { height: 48px; margin: 0 auto 4px; }

/* ------------------------------------------------------------
   3. PUBLIC NAVBAR
   ------------------------------------------------------------ */
.site-navbar {
    background: var(--dark-navy);
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.site-navbar .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: -0.3px;
}

.site-navbar .navbar-brand span {
    color: var(--primary);
}

.site-navbar .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0 !important;
    margin: 0 12px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.site-navbar .nav-link:hover {
    color: var(--white) !important;
}

.site-navbar .nav-link.active {
    color: #93c5fd !important;
    border-bottom-color: #93c5fd;
}

.site-navbar .admin-circle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--white) !important;
    font-size: 1.5rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-navbar .admin-circle-btn:hover {
    background: var(--primary) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.site-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.3);
    padding: 0.3rem 0.55rem;
}

.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .dropdown-menu {
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin-top: 8px !important;
}

.site-navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all var(--transition);
}

.site-navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--white);
    padding-left: 24px;
}

/* Mobile navbar collapse background */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: var(--dark-navy);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius-sm);
    }

    .site-navbar .navbar-nav {
        flex-direction: column;
    }

    .site-navbar .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0 !important;
        border-bottom: none !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .site-navbar .nav-link:hover {
        padding-left: 0.5rem;
    }
}

/* ------------------------------------------------------------
   4. HERO SECTION
   ------------------------------------------------------------ */
.hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #112a4a 45%, #0d1b2a 100%);
    min-height: calc(100vh - var(--topbar-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Full-screen sections */
.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(37,99,235,.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37,99,235,.2);
    border: 1px solid rgba(37,99,235,.4);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.1rem;
}

.hero-section h1 .highlight { color: #60a5fa; }

.hero-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none;
}

.hero-section .hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-search {
    background: var(--white);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    max-width: 540px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.975rem;
    color: var(--text);
    background: transparent;
    padding-right: 12px;
}

.hero-search input::placeholder { color: #94a3b8; }

.hero-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.hero-search button:hover { background: var(--primary-dark); }

/* Search suggestions dropdown */
.search-suggestions-dropdown {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 600px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    display: none;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-search {
    position: relative;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
    padding-left: 20px;
}

.suggestion-item.selected {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.suggestion-item:hover .suggestion-icon {
    transform: scale(1.08);
}

.suggestion-icon-member {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary);
}

.suggestion-icon-business {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: #d97706;
}

.suggestion-icon-category {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0284c7;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.suggestion-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.suggestion-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.suggestion-empty::before {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--primary-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trust {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,.5);
    font-size: 0.8rem;
}

.hero-trust span { color: var(--success); }

/* ------------------------------------------------------------
   5. SECTION STYLES
   ------------------------------------------------------------ */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 520px;
}

/* "View all" link */
.view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.view-all-link:hover { gap: 8px; color: var(--primary-dark); }

/* ------------------------------------------------------------
   6. CATEGORY CARDS
   ------------------------------------------------------------ */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-bg {
    opacity: 0.15;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover .category-card-content {
    box-shadow: var(--shadow-md);
    border-color: rgba(37,99,235,.25);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(37,99,235,.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text);
    flex-grow: 1;
}

.category-card .cat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
}

.category-card-animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* ------------------------------------------------------------
   7. MEMBER CARDS
   ------------------------------------------------------------ */
.member-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem 1.25rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--border);
}

.member-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--border);
}

.member-card .member-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.member-card .member-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.member-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.member-card .btn-profile {
    margin-top: auto;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 100%;
    transition: background var(--transition), color var(--transition);
}

.member-card .btn-profile:hover {
    background: var(--primary);
    color: var(--white);
}

/* Online indicator dot */
.member-card.is-featured .member-avatar,
.member-card.is-featured .member-avatar-placeholder {
    box-shadow: 0 0 0 2px var(--success);
}

/* ------------------------------------------------------------
   8. STATS SECTION (Homepage)
   ------------------------------------------------------------ */
.stats-section {
    background: var(--bg-light);
}

.stat-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

.stat-photo-grid img {
    border-radius: var(--radius-sm);
    object-fit: cover;
    width: 100%;
    height: 160px;
}

.stat-photo-grid img:first-child {
    grid-row: span 2;
    height: 100%;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ------------------------------------------------------------
   9. PUBLIC FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background: var(--dark-navy);
    color: rgba(255,255,255,.65);
    padding: 60px 0 28px;
}

.site-footer .footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

.site-footer .footer-brand span { color: var(--primary); }

.site-footer .footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,.5);
    max-width: 260px;
}

.site-footer h6 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.site-footer a {
    color: rgba(255,255,255,.5);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

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

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.65);
    font-size: 0.9rem;
    margin-right: 6px;
    margin-bottom: 0;
    transition: background var(--transition), color var(--transition);
}

.site-footer .footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: rgba(255,255,255,.35);
}

/* ------------------------------------------------------------
   10. LISTING PAGE — Category Header & Filters
   ------------------------------------------------------------ */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 20px;
}

.breadcrumb-nav {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb-nav a { color: var(--primary); }
.breadcrumb-nav span { margin: 0 6px; }

.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-filter {
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
}

.btn-filter:hover { border-color: var(--primary); color: var(--primary); }

/* ------------------------------------------------------------
   11. VCARD / PROFILE PAGE
   ------------------------------------------------------------ */
.vcard-body {
    background: #f0f4f8;
    min-height: 100vh;
}

.vcard-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.vcard-header .vcard-brand {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.vcard-header .vcard-brand span { color: var(--primary); }

.vcard-actions {
    display: flex;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.vcard-actions a,
.vcard-actions button {
    /* width: 34px; */
    height: 34px;
    /* border-radius: 50%; */
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.vcard-actions a:hover,
.vcard-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Custom vCard Share Menu */
.vcard-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    padding: 0;
}

.vcard-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vcard-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 10000;
}

.vcard-share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vcard-share-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-align: left;
}

.vcard-share-option i {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.vcard-share-option:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.vcard-actions {
    position: relative;
}

.vcard-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* Profile hero card */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--border);
    margin-bottom: 1rem;
}

.profile-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--border);
}

.profile-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    margin-bottom: 0.2rem;
}

.profile-card .profile-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.profile-membership {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* Contact buttons row */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.contact-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
    display: block;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.contact-btn .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 0.6rem;
}

.contact-btn.whatsapp .contact-icon {
    background: #dcfce7;
    color: #16a34a;
}

.contact-btn.phone .contact-icon,
.contact-btn.office .contact-icon {
    background: #f1f5f9;
    color: var(--text);
}

.contact-btn.email .contact-icon {
    background: var(--primary-muted);
    color: var(--primary);
}

.contact-btn .contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.contact-btn .contact-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* vCard content sections */
.vcard-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.4rem 1.5rem;
    margin-bottom: 16px;
}

.vcard-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.vcard-section-title i {
    color: var(--primary);
    font-size: 1rem;
}

.vcard-section p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Business card within profile */
.biz-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.biz-card:last-child { margin-bottom: 0; }

.biz-card:hover { border-color: var(--primary); }

.biz-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--bg-light);
}

.biz-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(37,99,235,.15);
    flex-shrink: 0;
}

.biz-name {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.biz-role {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.biz-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    transition: opacity 0.25s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-item .gallery-caption {
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Social footprint */
.social-footprint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.social-chip:hover {
    background: var(--primary-muted);
    border-color: var(--primary);
    color: var(--primary);
}

.social-chip.linkedin:hover  { background: #eff6ff; border-color: #0077b5; color: #0077b5; }
.social-chip.twitter:hover   { background: #f0f9ff; border-color: #1da1f2; color: #1da1f2; }
.social-chip.facebook:hover  { background: #eff6ff; border-color: #1877f2; color: #1877f2; }
.social-chip.instagram:hover { background: #fdf4f9; border-color: #e1306c; color: #e1306c; }
.social-chip.whatsapp:hover  { background: #f0fdf4; border-color: #25d366; color: #16a34a; }
.social-chip.website:hover   { background: var(--primary-muted); border-color: var(--primary); color: var(--primary); }

/* Vcard minimal footer */
.vcard-footer {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ------------------------------------------------------------
   12. PAGINATION
   ------------------------------------------------------------ */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

/* ------------------------------------------------------------
   13. ADMIN SIDEBAR
   ------------------------------------------------------------ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: #1e293b;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
}

.sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

.sidebar-logo-text span { color: var(--primary); }

.sidebar-logo-badge {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(37,99,235,.25);
    color: #93c5fd;
    padding: 2px 7px;
    border-radius: 50px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: 12px 8px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.07);
    color: var(--white);
}

.sidebar-link.active {
    background: rgba(37,99,235,.2);
    color: #93c5fd;
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: 8px 0;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,.4);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1039;
}

/* ------------------------------------------------------------
   14. ADMIN TOPBAR
   ------------------------------------------------------------ */
.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
}

.topbar-page-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

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

.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition);
}

.admin-user-btn:hover { border-color: var(--primary); }

.admin-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ------------------------------------------------------------
   15. ADMIN MAIN CONTENT
   ------------------------------------------------------------ */
.admin-main {
    flex: 1;
    padding: 28px 24px;
}

/* Page header inside admin */
.admin-page-header {
    margin-bottom: 24px;
}

.admin-page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    margin-bottom: 0.2rem;
}

.admin-page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   16. ADMIN STAT CARDS (Dashboard)
   ------------------------------------------------------------ */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

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

.stat-card-icon.blue   { background: var(--primary-muted); color: var(--primary); }
.stat-card-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-card-icon.orange { background: #fef3c7; color: #d97706; }
.stat-card-icon.purple { background: #ede9fe; color: #7c3aed; }

.stat-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ------------------------------------------------------------
   17. ADMIN TABLE CARD
   ------------------------------------------------------------ */
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-table {
    margin: 0;
    font-size: 0.875rem;
}

.admin-table thead th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    border-top: none;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg-light); }

/* Table avatar */
.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.table-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-muted);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

/* Status badges */
.badge-active   { background: #dcfce7; color: #15803d; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.badge-inactive { background: #f1f5f9; color: #64748b; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.badge-featured { background: #fef3c7; color: #b45309; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }

/* Action buttons in table */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }

/* ------------------------------------------------------------
   18. ADMIN FORMS
   ------------------------------------------------------------ */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 20px;
}

.form-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-card-title i { color: var(--primary); }

.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    font-size: 0.875rem;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-text {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Icon Picker */
.icon-preview-box {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: border-color 0.2s ease;
}

.icon-preview-box.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(37,99,235,.05) 100%);
}

.icon-preview-display {
    color: var(--primary);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
}

.icon-picker-btn {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text);
    transition: all 0.2s ease;
    padding: 0;
}

.icon-picker-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.icon-picker-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37,99,235,.25);
}

/* Repeater rows */
.repeater-row {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    position: relative;
}

.repeater-remove {
    background: none;
    border: 1px solid #fca5a5;
    color: var(--danger);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: background var(--transition);
}

.repeater-remove:hover { background: #fff5f5; }

.btn-repeater-add {
    background: none;
    border: 1.5px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color var(--transition), color var(--transition);
    margin-top: 8px;
}

.btn-repeater-add:hover { border-color: var(--primary); color: var(--primary); }

/* Gallery upload zone */
.gallery-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.gallery-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239,68,68,.9);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-thumb:hover .gallery-thumb-delete { opacity: 1; }

.gallery-thumb .thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.5);
    color: var(--white);
    font-size: 0.65rem;
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   19. PRIMARY/SECONDARY BUTTONS
   ------------------------------------------------------------ */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.btn-secondary-custom {
    background: var(--white);
    color: var(--text) !important;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* ------------------------------------------------------------
   20. ALERT / FLASH MESSAGES
   ------------------------------------------------------------ */
.flash-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.flash-alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.flash-alert .close-btn { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 1rem; }
.flash-alert .close-btn:hover { opacity: 1; }

.flash-alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.flash-alert.error   { background: #fff5f5; border-color: #fca5a5; color: #dc2626; }
.flash-alert.warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.flash-alert.info    { background: var(--primary-light); border-color: #bfdbfe; color: var(--primary-dark); }

/* Admin login page */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #112a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0,0,0,.3);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-logo span { color: var(--primary); }

/* ------------------------------------------------------------
   21. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

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

    .sidebar-overlay.active { display: block; }

    .admin-content { margin-left: 0; }

    .sidebar-toggle-btn { display: flex; }

    .admin-main { padding: 20px 16px; }

    .hero-section { min-height: 60vh; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.9rem; }
    .hero-search { flex-direction: column; padding: 10px; gap: 8px; border-radius: 16px; }
    .hero-search input { width: 100%; }
    .hero-search button { width: 100%; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-photo-grid img:first-child { height: auto; }
    .login-card { padding: 2rem 1.25rem; }
}
