
  :root {
    --navy: #0D1B2A;
    --yellow: #F5C400;
    --yellow-light: #FFF3B0;
    --white: #F8F5EE;
    --green: #27AE60;
    --green-light: #D4EDDA;
    --slate: #4A5568;
    --slate-light: #718096;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;
    --bg: #F4F6F9;
    --red: #E53E3E;
    --red-light: #FED7D7;
    --blue: #3182CE;
    --blue-light: #EBF8FF;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--navy); min-height: 100vh; }
  
  /* NAV */
  nav {
    background: var(--navy);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--yellow);
    margin-right: 2.5rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
  }
  .nav-logo span { color: var(--white); }
  .nav-links { display: flex; flex: 1; }
  .nav-link {
    padding: 1.1rem 1.3rem;
    color: rgba(248,245,238,0.6);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }
  .nav-link:hover { color: var(--white); }
  .nav-link.active { color: var(--yellow); border-bottom-color: var(--yellow); }
  button.nav-link-toggle {
    color: rgba(248,245,238,0.6);
    cursor: pointer;
  }
  button.nav-link-toggle:hover { color: var(--white); }
  .nav-cta {
    margin-left: auto;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .nav-cta:hover { opacity: 0.88; }

  /* VIEWS */
  .view { display: none; }
  .view.active { display: block; }

  /* ===== LANDING PAGE ===== */
  .hero {
    background: var(--navy);
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }
  .hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #162338 0%, #0D1B2A 100%);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  }
  .hero-left {
    padding: 6rem 3rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245,196,0,0.12);
    border: 1px solid rgba(245,196,0,0.3);
    color: var(--yellow);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    width: fit-content;
  }
  .hero-eyebrow::before { content: none; }
  .hero-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
  }
  .hero-h1 em { color: var(--yellow); font-style: normal; }
  .hero-sub {
    color: rgba(248,245,238,0.65);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.5rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--yellow);
    color: var(--navy);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,196,0,0.35); }
  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(248,245,238,0.3);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
  .hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow);
  }
  .hero-stat-label {
    font-size: 0.78rem;
    color: rgba(248,245,238,0.5);
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 3rem 3rem 3rem 4rem;
  }
  .hero-visual {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(10px);
  }
  .mini-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
  }
  .mini-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
  }
  .mini-name { color: var(--white); font-size: 0.85rem; font-weight: 600; }
  .mini-role { color: rgba(248,245,238,0.5); font-size: 0.75rem; }
  .mini-badge {
    margin-left: auto;
    background: rgba(39,174,96,0.2);
    color: #2ECC71;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
  }
  .hero-visual-label {
    color: rgba(248,245,238,0.35);
    font-size: 0.72rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
  }

  /* FEATURES SECTION */
  .section { padding: 5rem 4rem; }
  .section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .section-sub {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 3rem;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .feature-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.25s;
    cursor: pointer;
  }
  .feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,27,42,0.1); border-color: var(--yellow); }
  .feature-icon {
    width: 52px; height: 52px;
    background: var(--yellow-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  .feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
  }
  .feature-desc { color: var(--slate); font-size: 0.875rem; line-height: 1.65; }
  .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.83rem;
    margin-top: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    border-bottom: 1px solid var(--yellow);
    cursor: pointer;
  }

  /* PRICING */
  .pricing-bg { background: var(--navy); padding: 5rem 4rem; }
  .pricing-bg .section-title { color: var(--white); }
  .pricing-bg .section-sub { color: rgba(248,245,238,0.6); }
  .pricing-bg .section-label { color: var(--yellow); }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
  }
  .price-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.25s;
  }
  .price-card.featured {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: scale(1.03);
  }
  .price-card:hover:not(.featured) { border-color: rgba(245,196,0,0.4); background: rgba(255,255,255,0.08); }
  .price-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(248,245,238,0.5);
    margin-bottom: 0.75rem;
  }
  .price-card.featured .price-label { color: rgba(13,27,42,0.6); }
  .price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 0.2rem;
  }
  .price-card.featured .price-amount { color: var(--navy); }
  .price-period { font-size: 0.85rem; color: rgba(248,245,238,0.4); margin-bottom: 1.5rem; }
  .price-card.featured .price-period { color: rgba(13,27,42,0.5); }
  .price-features { list-style: none; margin-bottom: 2rem; }
  .price-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: rgba(248,245,238,0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .price-card.featured .price-features li { color: rgba(13,27,42,0.8); }
  .price-features li::before { content: '\2713'; color: var(--yellow); font-weight: 700; margin-right: 0.35rem; }
  .price-card.featured .price-features li::before { color: var(--navy); }
  .btn-price {
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--white);
    transition: all 0.2s;
  }
  .btn-price:hover { background: rgba(255,255,255,0.1); }
  .price-card.featured .btn-price {
    background: var(--navy);
    color: var(--yellow);
    border-color: var(--navy);
  }

  /* CTA SECTION */
  .cta-section {
    background: var(--yellow);
    padding: 5rem 4rem;
    text-align: center;
  }
  .cta-section .section-title { font-size: 2.2rem; }
  .cta-section .section-sub { color: rgba(13,27,42,0.7); margin: 0 auto 2.5rem; }
  .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-dark {
    background: var(--navy);
    color: var(--yellow);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-dark:hover { opacity: 0.88; transform: translateY(-2px); }

  /* ===== TALENT MARKETPLACE ===== */
  .page-header {
    background: var(--navy);
    padding: 2.5rem 4rem;
  }
  .page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
  }
  .page-header p { color: rgba(248,245,238,0.55); font-size: 0.95rem; }
  .marketplace-controls {
    background: var(--card-bg);
    padding: 1.25rem 4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
  }
  .search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
  }
  .search-box input:focus { border-color: var(--yellow); background: white; }
  .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 0.85rem;
  }
  .filter-select {
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: var(--bg);
    cursor: pointer;
    color: var(--navy);
  }
  .filter-select:focus { border-color: var(--yellow); }
  .results-count {
    font-size: 0.85rem;
    color: var(--slate-light);
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    margin-left: auto;
  }
  .profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 2rem 4rem;
  }
  .profile-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.25s;
    cursor: pointer;
  }
  .profile-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,27,42,0.1); border-color: var(--yellow); }
  .profile-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
  .profile-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
    color: var(--navy);
    overflow: hidden;
  }
  .profile-avatar-img,
  .td-avatar.profile-avatar-img,
  .panel-avatar.profile-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }
  .panel-avatar.profile-avatar-img {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
  }
  .td-avatar.profile-avatar-img {
    width: 36px;
    height: 36px;
  }
  .profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.2px;
  }
  .profile-skill { font-size: 0.8rem; color: var(--slate); margin-top: 0.15rem; }
  .availability-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    white-space: nowrap;
  }
  .badge-available { background: var(--green-light); color: var(--green); }
  .badge-busy { background: var(--red-light); color: var(--red); }
  .badge-open { background: var(--blue-light); color: var(--blue); }
  .profile-location {
    font-size: 0.8rem;
    color: var(--slate-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
  }
  .profile-rate {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
  }
  .profile-rate span { font-size: 0.75rem; color: var(--slate-light); font-weight: 400; font-family: 'Inter', sans-serif; }
  .profile-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
  .tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--slate);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
  }
  .profile-actions { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
  .btn-sm {
    flex: 1;
    padding: 0.55rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--navy);
  }
  .btn-sm:hover { background: var(--bg); }
  .btn-sm.primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .btn-sm.primary:hover { background: #162338; }
  .btn-sm.mp-preview-btn {
    flex: none;
    width: auto;
    margin-left: auto;
    padding: 0.55rem 1rem;
    text-align: center;
    white-space: nowrap;
  }

  /* ===== CV BUILDER ===== */
  .cv-layout { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 54px); }
  .cv-sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }
  .cv-sidebar-top {
    background: var(--navy);
    padding: 2rem;
  }
  .cv-sidebar-top h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
  }
  .cv-sidebar-top p { font-size: 0.8rem; color: rgba(248,245,238,0.5); }
  .template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .template-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .template-card:hover { border-color: var(--yellow); }
  .template-card.selected { border-color: var(--yellow); background: var(--yellow-light); }
  .template-preview {
    width: 100%;
    aspect-ratio: 0.707;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    overflow: hidden;
  }
  .template-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
  }
  .template-selected-check {
    display: none;
    font-size: 0.65rem;
    color: var(--green);
    margin-top: 0.2rem;
  }
  .template-card.selected .template-selected-check { display: block; }
  .form-section { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
  .form-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 0.9rem;
  }
  .auth-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }
  .form-group { margin-bottom: 0.75rem; }
  .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.3rem;
  }
  .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
    color: var(--navy);
    resize: vertical;
  }
  .form-group input:focus, .form-group textarea:focus { border-color: var(--yellow); background: white; }
  .form-group textarea { min-height: 70px; }


  .lpza-login-options {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    width: 100%;
    flex-wrap: nowrap !important;
  }

  .lpza-forgot-password {
    color: var(--slate);
    font-size: 0.82rem;
    font-weight: 400 !important;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .lpza-forgot-password:hover {
    text-decoration: underline;
  }

  .lpza-remember-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    margin-left: auto !important;
    width: auto !important;
    text-align: right;
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 400 !important;
    cursor: pointer;
  }

  .lpza-remember-row input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
  }

  .lpza-remember-row span {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
  }

  @media (max-width: 360px) {
    .lpza-login-options {
      align-items: flex-start !important;
      flex-direction: column;
    }

    .lpza-remember-row {
      margin-left: 0 !important;
    }
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .cv-preview-pane {
    background: #E5E7EB;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
  }
  .cv-paper {
    background: white;
    width: 100%;
    max-width: 600px;
    min-height: 800px;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.3s;
  }
  /* CV Template Styles */
  .cv-header-professional { background: var(--navy); padding: 2rem; color: white; }
  .cv-header-modern { background: var(--yellow); padding: 2rem; }
  .cv-header-creative { background: linear-gradient(135deg, #667EEA, #764BA2); padding: 2rem; color: white; }
  .cv-header-minimal { background: white; padding: 2rem; border-bottom: 3px solid var(--navy); }
  .cv-header-bold { background: var(--red); padding: 2rem; color: white; }
  .cv-header-graduate { background: #1A365D; padding: 2rem; color: white; }
  .cv-header-executive { background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%); padding: 2rem; color: white; }
  .cv-header-elegant { background: #F7FAFC; padding: 2rem; border-bottom: 4px solid #1A202C; }
  .cv-header-tech { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); padding: 2rem; color: white; }
  .cv-header-corporate { background: #2C5282; padding: 2rem; color: white; }
  .cv-header-academic { background: #744210; padding: 2rem; color: white; }
  .cv-header-vibrant { background: linear-gradient(120deg, #F56565 0%, #ED8936 50%, #ECC94B 100%); padding: 2rem; color: white; }
  .cv-header-compact { background: white; padding: 1.25rem 2rem; border-bottom: 3px solid var(--navy); }
  .cv-name-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
  }
  .cv-title-display { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }
  .cv-contact-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.75;
  }
  .cv-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .cv-contact-icon {
    flex-shrink: 0;
    display: block;
  }
  .cv-body { padding: 1.5rem 2rem; }
  .cv-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
  }
  .cv-section { margin-bottom: 1.25rem; }
  .cv-language-item {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }
  .cv-language-name {
    font-weight: 600;
    color: var(--navy);
  }
  .cv-language-level {
    color: var(--slate-light);
    font-weight: 500;
  }
  .cv-hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }
  .cv-hobby-item {
    font-weight: 600;
    color: var(--navy);
  }
  .cv-placeholder-line {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    margin-bottom: 6px;
  }
  .cv-placeholder-line.short { width: 60%; }
  .cv-placeholder-line.xshort { width: 35%; }

  /* ===== RECRUITER DASHBOARD ===== */
  .dashboard-layout { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 54px); }
  .dashboard-main { overflow-y: auto; }
  .dashboard-header {
    background: var(--navy);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dashboard-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
  }
  .dashboard-header p { color: rgba(248,245,238,0.5); font-size: 0.85rem; margin-top: 0.2rem; }
  .dashboard-date {
    font-size: 0.8rem;
    color: rgba(248,245,238,0.4);
    font-family: 'Space Grotesk', sans-serif;
  }
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: rgba(13,27,42,0.04);
    border-bottom: 1px solid var(--border);
  }
  .stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
  }
  .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -1px;
  }
  .stat-label { font-size: 0.78rem; color: var(--slate-light); margin-top: 0.1rem; }
  .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }
  .stat-change.up { color: var(--green); }
  .stat-change.down { color: var(--red); }
  .table-controls {
    padding: 1.25rem 2.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
  }
  .candidate-table { width: 100%; border-collapse: collapse; }
  .candidate-table th {
    background: var(--bg);
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  .candidate-table th:first-child { padding-left: 2.5rem; }
  .candidate-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.855rem;
    vertical-align: middle;
  }
  .candidate-table td:first-child { padding-left: 2.5rem; }
  .candidate-table tr { cursor: pointer; transition: background 0.15s; }
  .candidate-table tr:hover { background: var(--bg); }
  .candidate-table tr.selected-row { background: var(--yellow-light); }
  .td-name { display: flex; align-items: center; gap: 0.75rem; }
  .td-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
    color: var(--navy);
  }
  .td-fullname {
    font-weight: 600;
    color: var(--navy);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
  }
  .td-sub { font-size: 0.73rem; color: var(--slate-light); }
  
  /* SIDE PANEL */
  .side-panel {
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
  }
  .panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--slate-light);
  }
  .panel-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
  .panel-empty p { font-size: 0.85rem; }
  .panel-header {
    background: var(--navy);
    padding: 1.5rem;
  }
  .panel-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
    color: var(--navy);
  }
  .panel-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
  }
  .panel-role { font-size: 0.85rem; color: rgba(248,245,238,0.55); margin-top: 0.15rem; }
  .panel-body { padding: 1.5rem; }
  .panel-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
  }
  .panel-section-title:first-child { margin-top: 0; }
  .panel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.83rem;
  }
  .panel-info-label { color: var(--slate-light); }
  .panel-info-value { font-weight: 600; color: var(--navy); }
  .panel-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
  .btn-panel-primary {
    flex: 1;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-panel-primary:hover { opacity: 0.85; }
  .btn-panel-secondary {
    flex: 1;
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-panel-secondary:hover { background: var(--bg); }
  .btn-panel-secondary.shortlisted {
    background: var(--yellow-light);
    border-color: var(--yellow);
    color: var(--navy);
  }
  .btn-panel-hire {
    flex: 1;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
  }
  .btn-panel-hire:hover { opacity: 0.9; }
  .panel-bio {
    font-size: 0.83rem;
    color: #4A5568;
    line-height: 1.65;
    margin: 0;
  }
  .panel-info-email { font-size: 0.78rem; word-break: break-all; }
  .panel-skill-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .panel-actions { flex-wrap: wrap; }

  /* Marketplace modals */
  body.mp-modal-open { overflow: hidden; }
  .mp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 18, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  .mp-modal.hidden { display: none !important; }
  .mp-modal-dialog {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 60px rgba(13, 27, 42, 0.25);
  }
  .mp-profile-dialog { max-width: 560px; padding: 0; overflow: hidden; position: relative; }
  .mp-profile-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    color: rgba(255,255,255,0.85);
  }
  .mp-profile-dialog .panel-header { border-radius: 16px 16px 0 0; text-align: center; }
  .mp-profile-dialog .panel-body { padding: 1.5rem; }
  .mp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .mp-modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--navy);
    margin: 0;
  }
  .mp-modal-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--slate-light);
    padding: 0.25rem 0.5rem;
  }

  .mp-login-dialog { max-width: 440px; }
  .mp-login-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
  .mp-login-modal-message { margin: 0 0 1rem; color: var(--slate); line-height: 1.5; }
  .mp-contact-form { padding: 1rem 1.5rem 1.5rem; }
  .mp-contact-intro { font-size: 0.9rem; color: var(--slate); margin-bottom: 1rem; }
  .mp-contact-form .form-group { margin-bottom: 1rem; }
  .mp-contact-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
  }
  .mp-contact-form input,
  .mp-contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
  }
  .mp-contact-status {
    min-height: 1.25rem;
    font-size: 0.82rem;
    color: var(--green);
    margin: 0.5rem 0;
  }
  .mp-contact-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  /* Youth marketplace listing */
  .youth-listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
  }
  .youth-listing-copy h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 0.35rem;
  }
  .youth-listing-copy p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--slate);
    max-width: 520px;
  }
  .youth-listing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
  }
  .youth-listing-toggle input { display: none; }
  .youth-listing-slider {
    width: 48px;
    height: 28px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
  }
  .youth-listing-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  }
  .youth-listing-toggle input:checked + .youth-listing-slider {
    background: var(--green);
  }
  .youth-listing-toggle input:checked + .youth-listing-slider::after {
    transform: translateX(20px);
  }
  .youth-listing-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
  }
  .youth-listing-status {
    width: 100%;
    margin: 0;
    font-size: 0.82rem;
    color: var(--green);
  }

  .skill-chip {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--slate);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    margin: 0.2rem;
    font-weight: 500;
  }

  /* Utility */
  .hidden { display: none !important; }
  .text-center { text-align: center; }
  footer {
    background: var(--navy);
    padding: 2rem 4rem;
    color: rgba(248,245,238,0.4);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  footer span { color: var(--yellow); }


/* ── Marketplace disabled notice ────────────────────────── */
.lpza-marketplace-disabled-notice {
  text-align: center;
  padding: 64px 24px;
  max-width: 420px;
  margin: 40px auto;
}
.lpza-marketplace-disabled-icon {
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.lpza-marketplace-disabled-notice h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy, #0d1b2a);
  margin: 0 0 10px;
}
.lpza-marketplace-disabled-notice p {
  color: var(--slate, #526070);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* LaunchPad marketplace profile pages and showcase fields */
.profile-card { text-decoration: none; color: inherit; display: block; }
.mp-profile-page { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.mp-back-link { display: inline-flex; margin-bottom: 1rem; color: var(--navy); font-weight: 700; text-decoration: none; }
.mp-profile-page-card { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.mp-preview-banner { background: #FFF3B0; color: #1a1a1a; text-align: center; font-size: 0.78rem; padding: 0.55rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.profile-gallery-item { min-height: 92px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.profile-gallery-item span { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--slate); font-weight: 500; text-align: center; padding: 0 0.5rem; }
.profile-products { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.profile-product-chip { background: var(--yellow-light); color: var(--navy); border: 1px solid var(--yellow); border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.78rem; font-weight: 700; }
.mp-showcase-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mp-showcase-intro { color: var(--slate); font-size: 0.85rem; margin: 0.35rem 0 1.25rem; }
.form-group-full { grid-column: 1 / -1; width: 100%; }
.mp-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.5rem 1rem; margin-top: 0.5rem; }
.mp-checkbox-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--slate); font-weight: 500; cursor: pointer; }
.mp-checkbox-item input { width: auto; margin: 0; accent-color: var(--navy); }
.mp-showcase-form { display: grid; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; padding-bottom: 1.25rem; }
.mp-showcase-form .form-section:first-child { border-top: none; }
.mp-showcase-form .form-section-title { margin-bottom: 0.75rem; }
.mp-showcase-form > .mp-showcase-form-actions, .mp-showcase-form > p.youth-listing-status { margin-left: 1.25rem; margin-right: 1.25rem; }
.mp-showcase-form-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.mp-showcase-readonly .form-section { pointer-events: none; opacity: 0.65; user-select: none; }
.mp-row-fields { grid-template-columns: 1.4fr 1.4fr 1fr; }
.mp-shared-note { font-size: 0.76rem; color: var(--slate-light); margin: -0.25rem 0 0.85rem; }
.cv-photo-hint { font-size: 0.76rem; color: var(--slate-light); margin-top: 0.4rem; }
.mp-radio-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mp-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: var(--bg);
}
.mp-radio-pill input { margin: 0; }
.mp-radio-pill:has(input:checked) { border-color: var(--yellow); background: var(--yellow-light); }
.mp-cv-attach-current {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.mp-cv-attach-name { flex: 1; font-weight: 600; font-size: 0.85rem; color: var(--navy); word-break: break-all; }
.mp-cv-attach-icon { font-size: 1.1rem; }

.youth-profile-media-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr); gap: 1.25rem; }
.youth-profile-media-copy h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--navy); margin: 0 0 0.35rem; }
.youth-profile-media-copy p { margin: 0; font-size: 0.88rem; color: var(--slate); }
.profile-media-fields { display: grid; gap: 1rem; }
.profile-media-fields label { display: grid; gap: 0.4rem; font-weight: 700; color: var(--navy); font-size: 0.85rem; }
.profile-media-fields textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 0.75rem; font-family: 'Inter', sans-serif; resize: vertical; }
@media (max-width: 768px) { .mp-profile-page { padding: 1.25rem 1rem 2.5rem; } .youth-profile-media-card { grid-template-columns: 1fr; } }

/* Marketplace profile – Portfolio image uploads */
.mp-field-hint { font-size: 0.76rem; color: var(--slate-light); margin: -0.15rem 0 0.75rem; }
.mp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.mp-portfolio-empty { grid-column: 1 / -1; font-size: 0.8rem; color: var(--slate-light); margin: 0; }
.mp-portfolio-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.mp-portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-portfolio-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(13,27,42,0.75);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-portfolio-remove:hover { background: var(--navy); }
.mp-portfolio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-decoration: none;
}
.profile-gallery-item-image { padding: 0; overflow: hidden; border-style: solid; }
.profile-gallery-item-image img { width: 100%; height: 100%; min-height: 92px; object-fit: cover; display: block; }

.mp-contact-note {
  margin: -0.35rem 0 1rem;
  color: var(--muted, #667085);
  font-size: 0.9rem;
  line-height: 1.5;
}


.profile-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-share-btn,
.profile-download-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: #fff;
  color: #0d1b2a;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.profile-share-btn:hover,
.profile-download-cv:hover {
  transform: translateY(-1px);
}

/* Profile header action row */
.profile-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-top: 0.9rem;
  width: 100%;
}
.profile-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}
.profile-header-action.profile-share-btn,
.profile-header-action.profile-download-cv {
  cursor: pointer;
  background: #fff;
  color: #0d1b2a;
}
.profile-header-action.profile-share-btn:hover,
.profile-header-action.profile-download-cv:hover,
.profile-share-modal-btn:hover {
  transform: translateY(-1px);
}
.profile-private-blur {
  display: inline-block;
  filter: blur(4px);
  user-select: none;
  opacity: 0.72;
}
.mp-share-dialog {
  max-width: 440px;
}
.mp-share-body {
  padding: 1rem 1.25rem 1.25rem;
}
.profile-share-modal-options {
  display: grid;
  gap: 0.65rem;
}
.profile-share-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  background: #fff;
  color: #0d1b2a;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
@media (max-width: 560px) {
  .profile-header-actions {
    gap: 0.35rem;
  }
  .profile-header-action {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.35rem;
    font-size: 0.68rem;
  }
}


/* v5.1 profile header and modal refinements */
.profile-header-actions {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
  margin-top: 0.85rem;
}
.profile-header-actions-left,
.profile-header-actions-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.profile-header-actions-right { margin-left: auto; }
.profile-header-action,
.profile-share-btn,
.profile-download-cv {
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  line-height: 1;
}
.profile-header-action.profile-share-btn,
.profile-header-action.profile-download-cv {
  min-height: 32px;
  padding: 0.38rem 0.78rem;
}
.mp-modal-dialog { font-size: 0.9rem; }
.mp-modal-header { padding: 1rem 1.25rem 0.45rem; }
.mp-modal-header h2 { font-size: 1rem; }
.mp-modal-close { font-size: 1.35rem; }
.mp-login-modal-body,
.mp-contact-form,
.mp-share-body { padding: 0.9rem 1.25rem 1.15rem; }
.mp-login-modal-message,
.mp-contact-intro,
.mp-contact-note { font-size: 0.84rem; line-height: 1.45; }
.mp-contact-form label { font-size: 0.74rem; }
.mp-contact-form input,
.mp-contact-form textarea {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}
.profile-share-modal-btn {
  min-height: 36px;
  font-size: 0.84rem;
  border-radius: 10px;
}
@media (max-width: 560px) {
  .profile-header-actions {
    align-items: stretch;
    gap: 0.45rem;
  }
  .profile-header-actions-left,
  .profile-header-actions-right {
    flex: 1 1 0;
    gap: 0.3rem;
  }
  .profile-header-action {
    min-height: 30px;
    padding: 0.35rem 0.34rem;
    font-size: 0.66rem;
  }
}


/* v5.2 slimmer profile header buttons/pills */
.profile-header-actions {
  gap: 0.75rem;
  margin-top: 0.72rem;
}
.profile-header-actions-left,
.profile-header-actions-right {
  gap: 0.35rem;
}
.profile-header-action,
.profile-share-btn,
.profile-download-cv,
.profile-header-actions .availability-badge,
.profile-header-mini {
  min-height: 28px !important;
  height: auto;
  padding: 0.28rem 0.62rem !important;
  border-radius: 999px;
  font-size: 0.70rem !important;
  line-height: 1 !important;
  font-weight: 750;
}
.profile-header-action.profile-share-btn,
.profile-header-action.profile-download-cv {
  min-height: 28px !important;
  padding: 0.28rem 0.68rem !important;
}
@media (max-width: 560px) {
  .profile-header-actions {
    gap: 0.35rem;
  }
  .profile-header-actions-left,
  .profile-header-actions-right {
    gap: 0.25rem;
  }
  .profile-header-action,
  .profile-share-btn,
  .profile-download-cv,
  .profile-header-actions .availability-badge,
  .profile-header-mini {
    min-height: 26px !important;
    padding: 0.24rem 0.46rem !important;
    font-size: 0.62rem !important;
  }
}


.lpza-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 99999;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px));
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.lpza-toast.show { opacity: 1; transform: translate(-50%, -50%); }
.lpza-toast.error { background: #b91c1c; }
.lpza-toast.success { background: #047857; }


/* Centered gallery lightbox for candidate profile images */
.profile-gallery-open {
  cursor: pointer;
  width: 100%;
  font: inherit;
}
.profile-gallery-open:focus-visible {
  outline: 3px solid rgba(13, 27, 42, 0.25);
  outline-offset: 2px;
}
.lpza-gallery-viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.lpza-gallery-viewer.show { display: flex; }
.lpza-gallery-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
}
.lpza-gallery-viewer-dialog {
  position: relative;
  width: min(92vw, 980px);
  height: min(84vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 64px;
  z-index: 1;
}
.lpza-gallery-large-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  background: #fff;
}
.lpza-gallery-close,
.lpza-gallery-nav {
  position: absolute;
  border: 0;
  background: #fff;
  color: #0d1b2a;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  cursor: pointer;
}
.lpza-gallery-close {
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}
.lpza-gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}
.lpza-gallery-prev { left: 8px; }
.lpza-gallery-next { right: 8px; }
.lpza-gallery-count {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(15,23,42,0.65);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
body.lpza-gallery-opened { overflow: hidden; }
@media (max-width: 640px) {
  .lpza-gallery-viewer-dialog { padding: 48px 44px; width: 100vw; height: 88vh; }
  .lpza-gallery-nav { width: 38px; height: 38px; font-size: 1.7rem; }
}

/* Skills Marketplace content redesign */
.lpza-marketplace-shell {
  background: #ffffff;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.4rem;
}
.lpza-marketplace-hero.page-header {
  background: #ffffff;
  padding: 2.1rem 0 1.25rem;
  border-bottom: 1px solid #e7ebf3;
}
.lpza-marketplace-hero.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  color: #111827;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 0.65rem;
}
.lpza-marketplace-hero.page-header p {
  color: #526070;
  font-size: 1rem;
  margin: 0;
}
.lpza-marketplace-controls.marketplace-controls {
  background: #ffffff;
  padding: 1rem 0 1.7rem;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(170px, 0.86fr) minmax(170px, 1fr) minmax(150px, 0.85fr) minmax(145px, 0.78fr) auto;
  gap: 0.9rem;
  align-items: center;
}
.lpza-marketplace-controls .search-box { min-width: 0; }
.lpza-marketplace-controls .search-box input,
.lpza-marketplace-controls .filter-select {
  height: 46px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.lpza-marketplace-controls .search-box input:focus,
.lpza-marketplace-controls .filter-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.11);
}
.lpza-marketplace-search-btn {
  height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 1.55rem;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: #ffffff;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}
.lpza-marketplace-controls .results-count {
  grid-column: 1 / -1;
  justify-self: end;
  margin: -0.35rem 0 0;
  color: #64748b;
}
.profiles-grid {
  background: #ffffff;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.45rem;
  padding: 0.5rem 0 3rem;
}
.profile-card.lpza-market-card {
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #e4e8ef;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.05);
}
.profile-card.lpza-market-card:hover {
  transform: translateY(-2px);
  border-color: #cfd6e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.lpza-card-photo-wrap {
  height: 218px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8edf5, #f8fafc);
}
.lpza-card-photo.profile-avatar,
.lpza-card-photo.profile-avatar-img,
.profile-avatar-img.lpza-card-photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: #1f2937;
}
.lpza-role-pill {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 800;
  border-radius: 5px;
  padding: 0.46rem 0.62rem;
  background: linear-gradient(135deg, #6553f2, #4f46e5);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
}
.lpza-card-favourite {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lpza-card-body { padding: 1rem 1rem 0.9rem; }
.lpza-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.lpza-card-title-row .profile-name {
  font-size: 1rem;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}
.lpza-card-age {
  font-size: 0.86rem;
  color: #475569;
  white-space: nowrap;
}
.lpza-market-card .profile-location {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3454d1;
  font-size: 0.77rem;
  font-weight: 700;
}
.lpza-location-dot,
.lpza-availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.lpza-location-dot { background: #4f46e5; }
.lpza-availability-dot { background: #16a34a; }
.lpza-availability-line {
  float: right;
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #16a34a;
  font-size: 0.77rem;
  font-weight: 800;
}
.lpza-card-detail {
  clear: both;
  border-bottom: 1px solid #e8edf3;
  padding: 1.05rem 0 0.85rem;
  min-height: 74px;
}
.lpza-card-detail span {
  display: block;
  color: #111827;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.lpza-card-detail strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.25;
}
.lpza-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  color: #344054;
}
.lpza-market-card .profile-rate {
  color: #344054;
  font-size: 0.95rem;
  font-weight: 700;
}
.lpza-rate-type {
  color: #475569;
  font-size: 0.9rem;
}
@media (max-width: 1180px) {
  .profiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lpza-marketplace-controls.marketplace-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .lpza-marketplace-shell { padding: 0 1rem; }
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.5rem 0 2rem; }
  .lpza-marketplace-controls.marketplace-controls { grid-template-columns: 1fr; }
  .lpza-marketplace-search-btn { width: 100%; }
}
@media (max-width: 560px) {
  .profiles-grid { grid-template-columns: 1fr; }
  .lpza-card-photo-wrap { height: 240px; }
}

/* ===== Single Profile Page redesign ===== */
.lpza-fp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lpza-fp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
  background: none;
  padding: 0;
  margin: 0;
  position: static;
  box-shadow: none;
  z-index: auto;
  top: auto;
}
.lpza-fp-breadcrumb a { color: #64748b; text-decoration: none; }
.lpza-fp-breadcrumb a:hover { color: #4f46e5; }
.lpza-fp-breadcrumb-current { color: #111827; font-weight: 700; }
.lpza-fp-topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.lpza-fp-btn-primary,
.lpza-fp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.lpza-fp-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
}
.lpza-fp-btn-primary:hover { opacity: 0.92; }
.lpza-fp-btn-ghost {
  border: 1px solid #d9e0ea;
  background: #ffffff;
  color: #111827;
}
.lpza-fp-btn-ghost:hover { border-color: #4f46e5; color: #4f46e5; }
.lpza-fp-btn-ghost.shortlisted { border-color: #f5c400; background: #fff9e0; color: #7a5d00; }

.lpza-fp-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #e7ebf3;
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.lpza-fp-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8edf5, #f8fafc);
  min-height: 260px;
}
.lpza-fp-photo.profile-avatar,
.lpza-fp-photo.profile-avatar-img,
.profile-avatar-img.lpza-fp-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #1f2937;
}
.lpza-fp-avail-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.lpza-fp-hero-main { min-width: 0; }
.lpza-fp-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 0.4rem;
}
.lpza-fp-meta { color: #4f46e5; font-size: 0.92rem; font-weight: 700; margin-bottom: 0.9rem; }
.lpza-fp-meta span:not(.lpza-fp-meta-location) { color: #64748b; font-weight: 600; margin-left: 0.15rem; }
.lpza-fp-worktype { margin-bottom: 1rem; }
.lpza-fp-worktype-label { display: block; font-size: 0.78rem; color: #64748b; font-weight: 700; margin-bottom: 0.15rem; }
.lpza-fp-worktype-value { font-size: 1.05rem; color: #111827; }
.lpza-fp-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  margin-bottom: 1rem;
}
.lpza-fp-stat { display: flex; align-items: center; gap: 0.55rem; }
.lpza-fp-stat-icon { font-size: 1.1rem; }
.lpza-fp-stat strong { display: block; font-size: 0.88rem; color: #111827; }
.lpza-fp-stat span { font-size: 0.74rem; color: #64748b; }
.lpza-fp-bio { color: #475569; line-height: 1.65; font-size: 0.92rem; margin: 0 0 1.1rem; }
.lpza-fp-cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.lpza-fp-contact-card {
  background: #f8fafc;
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  padding: 1.25rem;
  align-self: start;
}
.lpza-fp-contact-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #111827;
  margin: 0 0 0.9rem;
}
.lpza-fp-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e7ebf3;
}
.lpza-fp-contact-row:last-of-type { border-bottom: 0; }
.lpza-fp-contact-icon { font-size: 0.9rem; margin-top: 0.1rem; }
.lpza-fp-contact-label { display: block; font-size: 0.72rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.lpza-fp-contact-value { display: block; font-size: 0.86rem; color: #111827; font-weight: 700; }
.profile-private-blur { filter: blur(4px); user-select: none; opacity: 0.75; }
.lpza-fp-contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
}

.lpza-fp-tabs {
  display: flex;
  gap: 1.75rem;
  border-bottom: 1px solid #e7ebf3;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.lpza-fp-tab {
  border: 0;
  background: none;
  padding: 0.9rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.lpza-fp-tab:hover { color: #111827; }
.lpza-fp-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; }

.lpza-fp-tab-panel { display: none; }
.lpza-fp-tab-panel.active { display: block; }
.lpza-fp-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.lpza-fp-panel-col { display: grid; gap: 1.5rem; min-width: 0; }

.lpza-fp-card {
  background: #ffffff;
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  padding: 1.4rem;
}
.lpza-fp-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: #111827;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lpza-fp-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef0ff;
  color: #4f46e5;
  flex: 0 0 auto;
}
.lpza-fp-icon-badge svg { width: 15px; height: 15px; display: block; }
.lpza-fp-tab-panel > .lpza-fp-card + .lpza-fp-card {
  margin-top: 1.5rem;
}
.lpza-fp-card-heading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.lpza-fp-card-heading-row h3 { margin: 0; }
.lpza-fp-link-btn { border: 0; background: none; color: #4f46e5; font-weight: 800; font-size: 0.82rem; cursor: pointer; padding: 0; }
.lpza-fp-link-btn:hover { text-decoration: underline; }

.lpza-fp-chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lpza-fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f0f4ff;
  color: #164e8f;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.lpza-fp-chip-alt { background: #fff8e0; color: #7a5d00; }
.lpza-fp-empty-note { color: #94a3b8; font-size: 0.86rem; font-style: italic; margin: 0; }

.lpza-fp-exp-item { padding: 0.85rem 0; border-bottom: 1px solid #eef1f6; }
.lpza-fp-exp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lpza-fp-exp-item:first-child { padding-top: 0; }
.lpza-fp-exp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.lpza-fp-exp-top strong { font-size: 0.92rem; color: #111827; }
.lpza-fp-exp-duration { font-size: 0.78rem; color: #64748b; white-space: nowrap; }
.lpza-fp-exp-company { font-size: 0.84rem; color: #475569; margin-top: 0.2rem; }

.lpza-fp-quick-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #eef1f6; }
.lpza-fp-quick-row:last-child { border-bottom: 0; }
.lpza-fp-quick-row span { font-size: 0.84rem; color: #64748b; }
.lpza-fp-quick-row strong { font-size: 0.86rem; color: #111827; text-align: right; }
.lpza-fp-quick-available { color: #16a34a !important; }

.lpza-fp-gallery-preview.profile-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0; }
.lpza-fp-gallery-preview .profile-gallery-item-image { min-height: 84px; }

@media (max-width: 1024px) {
  .lpza-fp-hero { grid-template-columns: 220px minmax(0, 1fr); }
  .lpza-fp-contact-card { grid-column: 1 / -1; }
  .lpza-fp-panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lpza-fp-hero { grid-template-columns: 1fr; padding: 1.25rem; }
  .lpza-fp-photo-wrap { min-height: 200px; }
  .lpza-fp-photo.profile-avatar, .lpza-fp-photo.profile-avatar-img { min-height: 200px; }
  .lpza-fp-topbar { flex-direction: column; align-items: stretch; }
  .lpza-fp-topbar-actions { justify-content: stretch; }
  .lpza-fp-topbar-actions .lpza-fp-btn-primary,
  .lpza-fp-topbar-actions .lpza-fp-btn-ghost { flex: 1; justify-content: center; }
  .lpza-fp-stats-row { gap: 1rem; }
  .lpza-fp-tabs { gap: 1.1rem; }
  .lpza-fp-gallery-preview.profile-gallery { grid-template-columns: repeat(3, 1fr); }
}


.lpza-fp-tabs .lpza-fp-tab { display: inline-flex; align-items: center; gap: 0.4rem; }
.lpza-fp-tab-icon { font-size: 0.95em; line-height: 1; }
.lpza-fp-worktype-value.lpza-fp-grey-pill,
.lpza-fp-grey-pill { display: inline-flex; align-items: center; width: fit-content; background: #eef1f5; color: var(--navy); border: 1px solid #dde3ea; border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.82rem; font-weight: 800; }
.lpza-fp-stats-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; }
.lpza-fp-stat { display: inline-flex; align-items: center; }
.lpza-fp-btn-ghost.profile-header-action,
button.lpza-fp-btn-ghost,
button.profile-download-cv { cursor: pointer; }

/* Profile header refinement: align rate, experience and role type stats in a single premium row */
.lpza-fp-stats-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start !important;
  gap: 1.15rem !important;
  padding: 0.95rem 0 !important;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  margin-bottom: 1rem;
}

.lpza-fp-stat {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start !important;
  min-width: 0;
}

.lpza-fp-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  margin-top: 1px;
  line-height: 1;
  font-size: 1rem !important;
}

.lpza-fp-stat > div {
  display: grid;
  grid-template-rows: 22px 18px;
  align-items: start;
  min-width: 0;
}

.lpza-fp-stat strong {
  display: block;
  margin: 0;
  line-height: 22px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.lpza-fp-stat > div > span {
  display: block;
  margin: 0;
  line-height: 18px;
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
}

.lpza-fp-worktype-value.lpza-fp-grey-pill,
.lpza-fp-grey-pill {
  min-height: 32px;
  padding: 0.32rem 0.8rem;
  background: #f3f4f6;
  border-color: #dde3ea;
}

@media (max-width: 720px) {
  .lpza-fp-stats-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Marketplace card/profile work type pills */
.lpza-pill-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.lpza-grey-pill,
.lpza-card-detail .lpza-grey-pill,
.lpza-fp-worktype .lpza-grey-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #dde3ea;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}
.lpza-grey-pill-empty {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}
.lpza-card-pill-list {
  margin-top: 0.35rem;
}
.lpza-card-detail strong {
  display: inline-flex;
}


/* v5.2 mobile responsiveness and image performance refinements */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.profile-avatar-img,
.lpza-card-photo.profile-avatar-img,
.lpza-fp-photo.profile-avatar-img,
.profile-gallery-item-image img,
.mp-portfolio-thumb img {
  background: #eef2f7;
  transform: translateZ(0);
}
.lpza-marketplace-shell,
.mp-profile-page,
.youth-dashboard,
.cv-builder,
.auth-card,
.page-header {
  width: 100%;
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .lpza-marketplace-shell { padding: 0 0.85rem; }
  .lpza-marketplace-hero.page-header { padding: 1.4rem 0 0.9rem; }
  .lpza-marketplace-hero.page-header h1 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
  .lpza-marketplace-controls.marketplace-controls { gap: 0.65rem; padding: 0.75rem 0 1.1rem; }
  .lpza-marketplace-controls .search-box input,
  .lpza-marketplace-controls .filter-select,
  .lpza-marketplace-search-btn { min-height: 48px; width: 100%; font-size: 0.95rem; }
  .profiles-grid { gap: 1rem; padding-bottom: 1.5rem; }
  .profile-card.lpza-market-card { border-radius: 12px; }
  .lpza-card-photo-wrap { height: min(58vw, 250px); }
  .lpza-card-body { padding: 0.95rem; }
  .lpza-card-title-row { align-items: flex-start; }
  .lpza-card-title-row .profile-name { font-size: 1.05rem; }
  .lpza-availability-line { float: none; margin-left: 0.75rem; }
  .lpza-card-footer { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .lpza-pill-list { max-width: 100%; }

  .mp-modal-dialog { width: calc(100vw - 1.25rem); max-height: calc(100vh - 1.25rem); overflow-y: auto; }
  .mp-contact-actions { flex-direction: column-reverse; align-items: stretch; }
  .mp-contact-actions .btn-sm { width: 100%; justify-content: center; }

  .lpza-fp-page.mp-profile-page { padding: 1rem 0.75rem 2rem; }
  .lpza-fp-topbar-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .lpza-fp-topbar-actions .lpza-fp-btn-primary,
  .lpza-fp-topbar-actions .lpza-fp-btn-ghost { width: 100%; justify-content: center; }
  .lpza-fp-hero { gap: 1rem; border-radius: 14px; padding: 1rem; }
  .lpza-fp-photo-wrap { min-height: 220px; }
  .lpza-fp-photo.profile-avatar,
  .lpza-fp-photo.profile-avatar-img { min-height: 220px; }
  .lpza-fp-name { font-size: clamp(1.45rem, 8vw, 1.85rem); }
  .lpza-fp-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.45rem; }
  .lpza-fp-stats-row { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
  .lpza-fp-cta-row { display: grid; grid-template-columns: 1fr; }
  .lpza-fp-cta-row > * { width: 100%; justify-content: center; }
  .lpza-fp-card { padding: 1rem; }
  .lpza-fp-exp-top,
  .lpza-fp-quick-row { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .lpza-fp-quick-row strong { text-align: left; }
  .lpza-fp-gallery-preview.profile-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .lpza-marketplace-shell { padding: 0 0.65rem; }
  .lpza-card-photo-wrap { height: 230px; }
  .lpza-role-pill { top: 10px; left: 10px; font-size: 0.7rem; }
  .lpza-card-favourite { top: 8px; right: 8px; }
  .lpza-fp-photo-wrap,
  .lpza-fp-photo.profile-avatar,
  .lpza-fp-photo.profile-avatar-img { min-height: 200px; }
  .profile-gallery { grid-template-columns: 1fr 1fr; }
}
