/* ============================================================
   FLANAGAN TALENT DATABASE - Main Stylesheet
   White, Grey, Gold Theme — Sleek & Minimal
   ============================================================ */

:root {
    --primary: #2C2C2C;
    --primary-light: #3a3a3a;
    --accent: #8E793E;
    --accent-hover: #7a6835;
    --gold: #AD974F;
    --gold-light: #c4ad6a;
    --gold-dark: #8E793E;
    --text: #333333;
    --text-light: #888888;
    --bg: #f5f4f0;
    --white: #ffffff;
    --cream: #FAF8F5;
    --grey-light: #f0eeea;
    --grey: #e8e5df;
    --border: #e0ddd6;
    --border-gold: rgba(173,151,79,0.3);
    --shadow: 0 2px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 10px;
    --transition: all 0.3s ease;
}

/* Scoped reset for plugin — prevent theme interference */
.fdb-wrap,
.fdb-wrap *,
.fdb-wrap *::before,
.fdb-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fdb-wrap {
    font-family: 'Inter', -apple-system, sans-serif !important;
    color: var(--text);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.fdb-wrap a { text-decoration: none; color: inherit; }
.fdb-wrap img { max-width: 100%; height: auto; }
.fdb-wrap h1, .fdb-wrap h2, .fdb-wrap h3, .fdb-wrap h4, .fdb-wrap h5, .fdb-wrap h6 {
    font-family: 'Inter', -apple-system, sans-serif !important;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.3;
}
.fdb-wrap p { margin: 0; }
.fdb-wrap button { font-family: 'Inter', -apple-system, sans-serif; }
.fdb-wrap input, .fdb-wrap select, .fdb-wrap textarea { font-family: 'Inter', -apple-system, sans-serif; }

/* ============================================================
   HEADER — Compact, White/Gold
   ============================================================ */
.site-header {
    background: var(--white);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    border-bottom: 2px solid var(--gold);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.site-logo span { color: var(--gold); }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-primary-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
}

.btn-primary-gold:hover { background: linear-gradient(135deg, var(--accent), var(--gold)); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(173,151,79,0.3);
}

.btn-gold:hover { background: linear-gradient(135deg, var(--accent), var(--gold)); transform: translateY(-1px); }

/* ============================================================
   HERO / CAROUSEL — Compact
   ============================================================ */
/* ============================================================
   HERO — Full-Width Video Background (Compact)
   ============================================================ */
.hero-video {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 16:9 ratio trick: make iframe container large enough to always cover */
    width: max(100%, calc(220px * 16 / 9));
    height: max(100%, calc(100vw * 9 / 16));
    transform: translate(-50%, -50%);
}

.hero-video-bg iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

@supports not (width: max(1px, 2px)) {
    .hero-video-bg {
        width: 180%;
        height: 180%;
    }
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}

.hero-carousel-track {
    text-align: center;
    color: white;
    position: relative;
}

.hero-slide {
    display: none;
    animation: heroFadeIn 0.6s ease;
}

.hero-slide.active {
    display: block;
}

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

.hero-slide h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-slide p {
    font-size: 0.9rem;
    color: var(--gold-light);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-carousel-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 5px;
}

.hero-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 3;
}

.hero-arrow {
    pointer-events: all;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* ============================================================
   TOOLBAR / SEARCH BAR
   ============================================================ */
.toolbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--grey);
}

.search-wrap {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--grey-light);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(173,151,79,0.15);
}

.search-wrap .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-select {
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.filter-toggle {
    position: relative;
}

.profile-count {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================
   SPOTLIGHT SIDEBAR
   ============================================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 40px;
    display: flex;
    gap: 30px;
}

.spotlight-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.spotlight-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.spotlight-header {
    background: linear-gradient(135deg, var(--grey-light), var(--white));
    color: var(--gold);
    padding: 14px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--gold);
}

.spotlight-body {
    padding: 15px;
}

.spotlight-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--grey);
}

.spotlight-profile:last-child { border: none; }

.spotlight-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-gold);
}

.spotlight-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.spotlight-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.spotlight-info p {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ============================================================
   PROFILE GRID — 4 per row
   ============================================================ */
.profiles-area { flex: 1; position: relative; }

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}

.profile-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--gold);
}

.profile-card.boosted {
    border: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(173,151,79,0.2);
}

.profile-card.boosted::before {
    content: 'BOOSTED';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.5px;
}

.card-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--grey-light), var(--grey));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .card-image img { transform: scale(1.05); }

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    background: linear-gradient(135deg, var(--grey-light), var(--grey));
}

.card-image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.card-image-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.card-image-dot.active { background: var(--gold); }

.card-body { padding: 16px; }

.card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.card-talent-id {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--grey-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-statement {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.skill-tag {
    background: var(--grey-light);
    color: var(--text);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.stars { display: flex; gap: 2px; }

.star {
    color: #ddd;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.star.filled { color: var(--gold); }
.star:hover { color: var(--gold-light); }

.rating-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.card-stats {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    font-size: 0.7rem;
    color: var(--text-light);
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--grey);
}

.card-actions .btn { flex: 1; justify-content: center; padding: 7px 10px; font-size: 0.72rem; }

.btn-contact { background: var(--grey-light); color: var(--text); border: 1px solid var(--border); }
.btn-contact:hover { border-color: var(--gold); color: var(--gold); }

.btn-boost { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--white); }
.btn-boost:hover { background: linear-gradient(135deg, var(--accent), var(--gold)); }

.btn-like {
    background: var(--grey-light);
    color: var(--text);
    flex: 0 !important;
    padding: 7px 12px !important;
    border: 1px solid var(--border);
}

.btn-like:hover { border-color: var(--gold); color: var(--gold); }
.btn-like.liked { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ============================================================
   FILTER POPUP / SLIDE PANEL
   ============================================================ */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-overlay.active { opacity: 1; visibility: visible; }

.fdb-wrap .filter-panel,
.filter-panel {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important;
    width: 420px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--white) !important;
    z-index: 201 !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.fdb-wrap .filter-panel.active,
.filter-panel.active { right: 0 !important; }

.filter-header {
    padding: 18px 25px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--grey-light);
}

.filter-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.filter-close:hover { background: var(--grey); color: var(--text); }

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.filter-section {
    margin-bottom: 18px;
}

.filter-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(173,151,79,0.15);
}

.filter-row {
    display: flex;
    gap: 12px;
}

.filter-half {
    flex: 1;
}

.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-range input {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.filter-range input:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-range span { color: var(--text-light); font-size: 0.85rem; }

.filter-footer {
    padding: 18px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.filter-footer .btn { flex: 1; justify-content: center; }

.btn-reset {
    background: var(--grey-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-reset:hover { background: var(--grey); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.fdb-wrap .modal,
.modal {
    background: var(--white) !important;
    border-radius: var(--radius) !important;
    width: 500px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal .modal-body {
    overflow-y: auto;
    flex: 1;
}

.modal-header {
    padding: 18px 25px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--grey-light);
}

.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }

.modal-body { padding: 25px; }

.modal-body .form-group { margin-bottom: 16px; }

.modal-body label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(173,151,79,0.12);
}

.modal-body textarea { height: 120px; resize: vertical; }

.modal-footer {
    padding: 18px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BOOST MODAL
   ============================================================ */
.boost-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.boost-plan {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.boost-plan:hover { border-color: var(--gold); }
.boost-plan.selected { border-color: var(--gold); background: rgba(173,151,79,0.06); }

.boost-plan .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.boost-plan .duration {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================================
   NEWSLETTER / FOOTER — White/Gold
   ============================================================ */
.site-footer {
    background: var(--grey-light);
    color: var(--text);
    padding: 50px 30px;
    margin-top: 60px;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.newsletter p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.newsletter-form input::placeholder { color: var(--text-light); }

.footer-info {
    text-align: right;
}

.footer-info .logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.footer-info .logo span { color: var(--gold); }

.footer-info p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay.active { display: flex; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--grey);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 400;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #27ae60; }
.toast.error { background: #c0392b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .spotlight-sidebar { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-info { text-align: left; }
}

@media (max-width: 768px) {
    /* Prevent layout shifting on mobile */
    html, body { overflow-x: hidden; max-width: 100vw; }
    .hero-video { height: 150px; }
    .hero-slide h1 { font-size: 1rem; letter-spacing: 0.5px; }
    .hero-slide p { font-size: 0.7rem; }
    .hero-carousel-nav { margin-top: 8px; }
    .hero-dot { width: 8px; height: 8px; }
    .hero-dot.active { width: 18px; }
    .filter-panel { width: 100vw; max-width: 100vw; }
    .filter-body { padding: 16px; }
    .toolbar { flex-direction: column; align-items: stretch; padding: 16px 12px; }
    .search-wrap { max-width: 100%; }
    .toolbar-right { justify-content: space-between; flex-wrap: nowrap; max-width: 100%; }
    .profile-count { display: none; }
    .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* hero-carousel replaced by hero-video */
    .boost-plans { grid-template-columns: 1fr !important; }
    .newsletter-form { flex-direction: column; }
    .card { overflow: hidden; }
    .card-image { height: 200px; }
    .card-body { padding: 10px; overflow: hidden; }
    .card-name { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .card-talent-id { font-size: 0.55rem; padding: 1px 5px; }
    .card-statement { font-size: 0.72rem; margin: 4px 0; overflow: hidden; }
    .card-skills { gap: 3px; margin: 5px 0; overflow: hidden; }
    .skill-tag { font-size: 0.58rem; padding: 2px 6px; white-space: nowrap; }
    .card-rating { margin: 5px 0; }
    .star { font-size: 0.75rem; }
    .card-stats { font-size: 0.62rem; gap: 6px; margin: 5px 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
    .card-actions { flex-direction: column; gap: 5px; margin-top: 8px; padding-top: 8px; }
    .card-actions .btn { font-size: 0.72rem; padding: 8px 10px !important; width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .btn-like { flex: 1 !important; width: 100% !important; }
    .site-logo { font-size: 1rem; }
    /* Modal mobile fixes */
    .modal { width: 95vw !important; max-height: 85vh !important; }
    #create-profile-modal .modal { width: 95vw !important; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
    .modal-footer .btn { font-size: 0.78rem; padding: 8px 14px; }
    #cp-submit { width: 100%; justify-content: center; }
    .cp-social-row { flex-direction: column; gap: 8px; padding: 8px 10px; }
    .cp-social-fields { flex-direction: column; }
    .cp-social-count { max-width: 100%; }
    /* Profile detail mobile */
    .profile-actions-bar { flex-direction: column; }
    .profile-actions-bar .btn { width: 100%; justify-content: center; }
    /* Visitor counter bar mobile */
    .main-content { overflow: hidden; }
}

.hide-mobile { display: inline; }
.profile-count-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

@media (max-width: 480px) {
    .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-image { height: 160px; }
    .form-row { flex-direction: column; gap: 0; }
    .cp-image-slots { flex-wrap: wrap; justify-content: center; }
    .cp-image-slot { width: 90px; height: 110px; }
    .main-content { padding: 0 12px 30px; }
    .toolbar { padding: 16px 12px; }
}

/* ============================================================
   CREATE PROFILE MODAL
   ============================================================ */
.cp-step { display: none; }
.cp-step.active { display: block; }

.cp-progress {
    width: 100%;
    height: 4px;
    background: var(--grey);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.cp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-half { flex: 1; }

.cp-image-slots {
    display: flex;
    gap: 14px;
}

.cp-image-slot {
    width: 120px;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--grey-light);
}

.cp-image-slot:hover { border-color: var(--gold); }

.cp-slot-placeholder {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.cp-slot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cp-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cp-slot-remove:hover { background: #c0392b; }

#create-profile-modal .modal-body input:not([type="checkbox"]):not([type="file"]),
#create-profile-modal .modal-body textarea,
#create-profile-modal .modal-body select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

#create-profile-modal .modal-body input:not([type="checkbox"]):not([type="file"]):focus,
#create-profile-modal .modal-body textarea:focus,
#create-profile-modal .modal-body select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(173,151,79,0.12);
}

#create-profile-modal .modal-body label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

#create-profile-modal .form-group {
    margin-bottom: 14px;
}

/* ============================================================
   SOCIAL MEDIA ROWS
   ============================================================ */
.cp-social-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--grey-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cp-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-social-fields {
    flex: 1;
    display: flex;
    gap: 8px;
}

.cp-social-input {
    flex: 1;
}

.cp-social-count {
    max-width: 120px;
}

/* Social Stats Display */
.social-stats-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.social-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: var(--text-light);
    background: var(--grey-light);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.social-stat-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-stat-icon svg {
    width: 10px;
    height: 10px;
}

/* ============================================================
   LOCATION AUTOCOMPLETE
   ============================================================ */
.location-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.location-autocomplete-results .loc-result {
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid var(--grey-light);
    transition: background 0.15s;
}
.location-autocomplete-results .loc-result:hover,
.location-autocomplete-results .loc-result.active {
    background: var(--cream);
}
.location-autocomplete-results .loc-result .loc-path {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 6px;
}
.location-autocomplete-results .loc-result:last-child {
    border-bottom: none;
}

/* ============================================================
   COMMUNITY CHECKBOXES
   ============================================================ */
.cp-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--grey-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cp-checkbox {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
    padding: 0 !important;
}

.cp-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cp-checkbox-label {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.cp-check-link {
    color: var(--gold) !important;
    font-weight: 600 !important;
    text-decoration: underline;
}

.cp-check-link:hover {
    color: var(--accent) !important;
}

/* ============================================================
   CAPTCHA
   ============================================================ */
.cp-captcha {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--grey-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cp-captcha-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.cp-captcha input {
    max-width: 100px !important;
    width: 100px !important;
}

/* ============================================================
   PHYSICAL ATTRIBUTES (Filter & Profile)
   ============================================================ */
/* Filter Checkbox Group (multi-select specialties) */
.filter-check-group {
    max-height: 180px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--white);
}

.filter-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    padding: 5px 0;
    cursor: pointer;
    color: var(--text);
    border-bottom: 1px solid var(--grey-light);
}

.filter-check-label:last-child {
    border-bottom: none;
}

.filter-check-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-check-label:hover {
    color: var(--gold);
}
