@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --primary:        #CFD500;
  --primary-light:  rgba(207, 213, 0, 0.12);
  --primary-dark:   #a8b000;
  --primary-hover:  #b8bc00;
  --text:           #000000;
  --text-muted:     #555555;
  --text-light:     #999999;
  --border:         #d9d9d9;
  --border-light:   #f0f0f0;
  --bg:             #ffffff;
  --white:          #ffffff;
  --success:        #16a34a;
  --success-light:  #dcfce7;
  --warning:        #fa9f04;
  --warning-light:  #fff4dc;
  --danger:         #dc2626;
  --shadow-xs:      0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm:      0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow:         0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md:      0 8px 16px -4px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-lg:      0 20px 40px -8px rgb(0 0 0 / 0.12), 0 8px 16px -8px rgb(0 0 0 / 0.06);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --header-h:       68px;
}

/* ─── Night Mode ─────────────────────────────────────────── */
body.night-mode {
  --bg:            #000000;
  --white:         #111111;
  --text:          #ffffff;
  --text-muted:    #aaaaaa;
  --text-light:    #555555;
  --border:        #2a2a2a;
  --border-light:  #1a1a1a;
  --primary-light: rgba(207, 213, 0, 0.15);
  --success-light: rgba(22, 163, 74, 0.15);
  --warning-light: rgba(250, 159, 4, 0.15);
  --shadow-xs:     0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-sm:     0 1px 3px 0 rgb(0 0 0 / 0.5);
  --shadow:        0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-md:     0 8px 16px -4px rgb(0 0 0 / 0.5);
  --shadow-lg:     0 20px 40px -8px rgb(0 0 0 / 0.6);
}

body.night-mode .site-header {
  background: #111111;
  border-bottom-color: #2a2a2a;
}

body.night-mode .sidebar-card,
body.night-mode .profile-card,
body.night-mode .modal-box,
body.night-mode .sidebar-info-card,
body.night-mode .sidebar-links-card,
body.night-mode .jgmx-seal-card {
  background: #111111;
  border-color: #2a2a2a;
}

body.night-mode .header-search input {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #ffffff;
}

body.night-mode .category-tabs {
  background: #111111;
  border-bottom-color: #2a2a2a;
}

body.night-mode .category-tab:hover {
  background: #1a1a1a;
}

body.night-mode .filter-section { border-bottom-color: #2a2a2a; }

body.night-mode .skill-tag { background: #1a1a1a; color: #aaaaaa; }

body.night-mode .profile-hero { background: #111111; border-color: #2a2a2a; }

body.night-mode .tab-bar { border-bottom-color: #2a2a2a; }
body.night-mode .tab-btn { color: #aaaaaa; }
body.night-mode .tab-btn.active { color: var(--primary); }
body.night-mode .tab-btn:hover { color: #ffffff; background: #1a1a1a; }

body.night-mode .review-card { background: #1a1a1a; border-color: #2a2a2a; }
body.night-mode .endorsement-card { background: #1a1a1a; border-color: #2a2a2a; }

body.night-mode .form-input { background: #1a1a1a; border-color: #2a2a2a; color: #ffffff; }
body.night-mode .form-input::placeholder { color: #555555; }
body.night-mode .form-label { color: #aaaaaa; }

body.night-mode .user-chip { background: #1a1a1a; border-color: #2a2a2a; }

body.night-mode .sort-select { background: #1a1a1a; border-color: #2a2a2a; color: #ffffff; }

body.night-mode .icon-btn:hover { background: #1a1a1a; }

body.night-mode .page-bg { background: #000000; }

body.night-mode .login-page { background: #0a0a0a; }
body.night-mode .login-panel-form { background: #0a0a0a; }
body.night-mode .login-form-box { background: transparent; border-color: transparent; }
body.night-mode .account-tab { color: #888; }
body.night-mode .account-tab.active { background: #1a1a1a; color: #fff; }
body.night-mode .account-type-tabs { background: #0f0f0f; border-color: #2a2a2a; }
body.night-mode .login-clients-bar { background: #0a0a0a; border-top-color: #1a1a1a; }
body.night-mode .clients-overflow::before { background: linear-gradient(to right, #0a0a0a, transparent); }
body.night-mode .clients-overflow::after { background: linear-gradient(to left, #0a0a0a, transparent); }
body.night-mode .social-btn { background: #111; border-color: #2a2a2a; color: #ccc; }
body.night-mode .company-sub-tabs { border-bottom-color: #2a2a2a; }
body.night-mode .company-sub-tab { color: #888; }
body.night-mode .company-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
body.night-mode .social-btn { background: #1a1a1a; border-color: #2a2a2a; color: #ffffff; }

/* Theme toggle button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.theme-toggle:hover { background: var(--border-light); color: var(--text); }

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography helpers ────────────────────────────────── */
.text-sm    { font-size: 0.8125rem; }
.text-xs    { font-size: 0.75rem; }
.font-medium{ font-weight: 500; }
.font-semi  { font-weight: 600; }
.font-bold  { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* ─── Shared Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  font-family: 'Space Grotesk', sans-serif;
}

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

.header-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
}

.header-search input::placeholder { color: var(--text-light); }

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(207 213 0 / 0.15);
  background: var(--white);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover { background: var(--bg); color: var(--text); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.user-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); }

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

.user-chip-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.user-chip { position: relative; }

.user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 170px;
  padding: 0.25rem;
  z-index: 200;
}
.user-menu.open { display: block; }

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}
.user-menu-item:hover { background: var(--bg); }
.user-menu-item.danger { color: #ef4444; }

body.night-mode .user-menu { background: #1a1a1a; border-color: #2a2a2a; }
body.night-mode .user-menu-item:hover { background: #111; }

/* ─── Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.avatar-sm  { width: 44px; height: 44px; font-size: 0.85rem; }
.avatar-md  { width: 60px; height: 60px; font-size: 1.1rem; }
.avatar-lg  { width: 82px; height: 82px; font-size: 1.5rem; }
.avatar-xl  { width: 108px; height: 108px; font-size: 2rem; }

/* ─── Badge / Tags ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-available   { background: var(--success-light); color: #065f46; }
.badge-unavailable { background: var(--warning-light); color: #78350f; }
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  transition: background 0.15s;
}

.tag:hover { background: #ddd6fe; }

.tag-overflow {
  background: var(--border-light);
  color: var(--text-muted);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.18s;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 1px 2px rgb(207 213 0 / 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgb(207 213 0 / 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Star Rating ───────────────────────────────────────── */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; }
.rating-score { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.rating-count { color: var(--text-muted); font-size: 0.78rem; }

/* ─── Form elements ─────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(207 213 0 / 0.15);
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Notifications dropdown ──────────────────────────────── */
.notif-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  width: 340px; max-height: 400px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  z-index: 100; padding: 0;
}
.notif-dropdown.open { display: block; }
body.night-mode .notif-dropdown { background: #111; border-color: #2a2a2a; }
.notif-header {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-header-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.notif-mark-read { font-size: 0.72rem; color: var(--primary); cursor: pointer; background: none; border: none; font-weight: 600; }
.notif-item {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light);
  cursor: default; transition: background 0.1s;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(250,159,4,0.04); }
.notif-item-title { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.notif-item-msg { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.3; }
.notif-item-time { font-size: 0.68rem; color: var(--text-light); margin-top: 0.25rem; }
.notif-empty { padding: 2rem 1rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; border-radius: 100px;
  background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.notif-btn-wrap { position: relative; }

@media (max-width: 768px) {
  .notif-dropdown { width: calc(100vw - 1rem); right: -3rem; }
}

/* ─── Site footer ─────────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  color: #fff;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.site-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-footer-back:hover { color: rgba(255,255,255,0.8); }
.site-footer-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.site-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
  display: flex;
}
.site-footer-social a:hover { color: #fff; }

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }
}

/* ─── Vacancy identifier FAB ──────────────────────────────── */
.vacancy-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #CFD500;
  color: #000000;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(207,213,0,0.35);
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.vacancy-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(207,213,0,0.5); }
.vacancy-fab.visible { display: flex; }

.vacancy-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.vacancy-overlay.open { display: flex; }
.vacancy-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  width: calc(100% - 2rem); max-width: 540px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18); animation: fbIn 0.2s ease;
  max-height: 90vh; overflow-y: auto;
}
body.night-mode .vacancy-box { background: #111; border: 1px solid #2a2a2a; }
.vacancy-close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-muted); background: none; border: none; transition: background 0.15s;
}
.vacancy-close:hover { background: var(--bg); color: var(--text); }
.vacancy-results {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; min-height: 80px; font-size: 0.85rem; color: var(--text); line-height: 1.5;
}
body.night-mode .vacancy-results { background: #0a0a0a; border-color: #2a2a2a; }
.vacancy-result-item {
  display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.vacancy-result-item:last-child { border-bottom: none; }
.vacancy-result-num {
  width: 22px; height: 22px; border-radius: 50%; background: #CFD500; color: #000000;
  font-size: 0.68rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 0.1rem;
}
.vacancy-result-title { font-weight: 600; color: var(--text); }
.vacancy-result-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

@media (max-width: 768px) {
  .vacancy-fab { bottom: 1rem; right: 1rem; padding: 0.65rem 1rem; font-size: 0.78rem; }
  .vacancy-box { padding: 1.5rem 1rem; }
}

/* ─── Feedback modal (shared) ─────────────────────────────── */
.feedback-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.feedback-overlay.open { display: flex; }
.feedback-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  width: calc(100% - 2rem); max-width: 460px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18); animation: fbIn 0.2s ease;
}
@keyframes fbIn { from{opacity:0;transform:scale(0.95) translateY(-8px)} to{opacity:1;transform:scale(1) translateY(0)} }
body.night-mode .feedback-box { background: #111; border: 1px solid #2a2a2a; }
.feedback-close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-muted); background: none; border: none; transition: background 0.15s;
}
.feedback-close:hover { background: var(--bg); color: var(--text); }
.feedback-textarea {
  width: 100%; min-height: 120px; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem; font-family: inherit;
  font-size: 0.875rem; color: var(--text); background: var(--white); resize: vertical;
}
.feedback-textarea:focus { outline: none; border-color: var(--primary); }
body.night-mode .feedback-textarea { background: #0a0a0a; border-color: #2a2a2a; color: #fff; }
.feedback-char {
  text-align: right; font-size: 0.72rem; color: var(--text-light); margin-top: 0.3rem;
}
.feedback-char.warn { color: #ef4444; }
.feedback-success {
  text-align: center; padding: 1.5rem 0;
}

@media (max-width: 480px) {
  .feedback-box { padding: 1.5rem 1rem; }
}

/* ─── Card ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ─── Checkbox ───────────────────────────────────────────── */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.2rem 0;
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.check-item label {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
}

.check-item:hover label { color: var(--text); }
.check-item input:checked + label { color: var(--text); font-weight: 500; }

/* ─── ════════════════════════════════════════════════════ ─── */
/* ─── LOGIN PAGE ─────────────────────────────────────────── */
/* ─── ════════════════════════════════════════════════════ ─── */

.login-page {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

/* Left panel */
.login-panel-brand {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.login-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.login-bg-slide.active { opacity: 1; }

.login-panel-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
}

.login-panel-brand::after {
  content: none;
}

.brand-content { position: relative; z-index: 2; max-width: 400px; }

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.brand-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  font-family: 'Space Grotesk', sans-serif;
}

.brand-headline {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

.brand-headline span { color: #CFD500; }

.brand-sub {
  font-size: 1rem;
  color: rgba(255 255 255 / 0.7);
  line-height: 1.35;
  margin-bottom: 2.5rem;
}

.brand-stats {
  display: flex;
  gap: 2rem;
}

.brand-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.brand-stat-label {
  font-size: 0.8rem;
  color: rgba(255 255 255 / 0.6);
  font-weight: 500;
}

/* Right panel */
.login-panel-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--white);
  overflow-y: auto;
}

/* Mobile login logo */
.mobile-login-logo {
  display: none;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.login-form-box { width: 100%; max-width: 400px; margin: 0 auto; }

.login-form-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
}

.login-form-box > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.925rem;
}

.login-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-input-wrapper { position: relative; }

.form-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.form-input-wrapper .form-input { padding-left: 2.75rem; }

.form-input-wrapper .toggle-pass {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.form-input-wrapper .toggle-pass:hover { color: var(--text); }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.login-row a { color: #111; font-weight: 500; }
.login-row a:hover { text-decoration: underline; }

.login-register {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-register a { color: #111; font-weight: 600; }
.login-register a:hover { text-decoration: underline; }

body.night-mode .login-form-box a { color: #fff !important; }

/* ─── ════════════════════════════════════════════════════ ─── */
/* ─── INDEX / MARKETPLACE PAGE ──────────────────────────── */
/* ─── ════════════════════════════════════════════════════ ─── */

.marketplace-layout {
  display: grid;
  grid-template-columns: 276px 1fr;
  min-height: calc(100vh - var(--header-h));
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}

/* ─── Sidebar Filters ───────────────────────────────────── */
.filters-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.filters-sidebar::-webkit-scrollbar { width: 4px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filters-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filters-clear {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.15s;
}
.filters-clear:hover { opacity: 0.75; }

.mobile-filter-close { display: none; }
.filter-section { margin-bottom: 1.5rem; }

.filter-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.filter-options { display: flex; flex-direction: column; gap: 0.1rem; }

.filter-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.25rem 0 1.5rem;
}

/* Rating filter */
.rating-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.rating-option:hover { background: var(--bg); }

.rating-option input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.rating-option-stars { color: #f59e0b; font-size: 0.8rem; }
.rating-option-label { font-size: 0.85rem; color: var(--text-muted); }

/* Rate range */
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.range-input {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 4px;
  border-radius: 10px;
}

/* ─── Main Content ──────────────────────────────────────── */
.main-content { padding: 1.75rem 2rem 3rem; min-width: 0; }

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.results-count strong { color: var(--text); font-weight: 700; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  height: 38px;
  padding: 0 2rem 0 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.15s;
}

.sort-select:focus { border-color: var(--primary); }

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}

.view-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-light);
  transition: all 0.15s;
}

.view-btn.active { background: var(--white); color: var(--text); box-shadow: var(--shadow-xs); }
.view-btn:hover:not(.active) { color: var(--text-muted); }

/* Active filters chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.active-filter-chip:hover { background: #ddd6fe; }
.active-filter-chip .remove { font-size: 1rem; line-height: 1; }

/* ─── Profile Cards Grid ────────────────────────────────── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.profile-card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-icon {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified-icon svg { width: 9px; height: 9px; }

.card-title {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-bio {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  gap: 0.5rem;
}

.card-rate {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.card-rate span { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

/* ─── Empty state ───────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.9rem; }

/* ─── ════════════════════════════════════════════════════ ─── */
/* ─── PROFILE PAGE ───────────────────────────────────────── */
/* ─── ════════════════════════════════════════════════════ ─── */

.profile-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
}
.back-nav:hover { color: var(--primary); }

/* Profile hero */
.profile-hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--hero-accent, var(--primary));
}

.hero-main { flex: 1; min-width: 0; }

.hero-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.hero-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-family: 'Space Grotesk', sans-serif;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta-item svg { flex-shrink: 0; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.rate-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.rate-card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.rate-card-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.rate-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.rate-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.rate-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rate-detail-value { font-weight: 600; color: var(--text); }

/* Profile content layout */
.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.profile-main-col { min-width: 0; }
.profile-side-col { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* Sections */
.profile-section {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.section-title svg { color: var(--primary); }

/* About section */
.about-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Skills section */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}

.skill-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Work history */
.timeline { position: relative; }

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-body { padding-top: 0.1rem; }

.timeline-role {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.timeline-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.timeline-period {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Education */
.edu-list { display: flex; flex-direction: column; gap: 1rem; }

.edu-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.edu-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1rem;
}

.edu-degree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.edu-institution { font-size: 0.82rem; color: var(--text-muted); }
.edu-year { font-size: 0.77rem; color: var(--text-light); margin-top: 0.1rem; }

/* Links section */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.875rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
}

.link-card:hover {
  border-color: var(--link-color, var(--primary));
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  color: white;
}

.link-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.link-sub { font-size: 0.75rem; color: var(--text-muted); }

/* Side info card */
.side-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.side-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.875rem;
}

.side-info-list { display: flex; flex-direction: column; gap: 0.625rem; }

.side-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.side-info-icon { color: var(--text-light); flex-shrink: 0; margin-top: 1px; }
.side-info-content { color: var(--text-muted); line-height: 1.35; }
.side-info-content strong { color: var(--text); display: block; font-weight: 600; }

/* ─── Skeleton loader ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position: 700px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 700px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

/* ─── Responsive ─────────────────────────────────────────── */

/* Defaults: mobile logo hidden, desktop logo visible */
.header-logo-mobile { display: none !important; }
.header-desktop-only { display: flex; }
.info-bar-help-mobile { display: none; }

/* ── Tablets landscape / small desktops (1100px)
   iPad Pro 12.9, Galaxy Tab S9+, large tablets ── */
@media (max-width: 1100px) {
  .profile-content-grid { grid-template-columns: 1fr; }
  .profile-side-col { position: static; }
}

/* ── Tablets portrait (900px)
   iPad Air/Pro 11, iPad 10, Galaxy Tab S9, Huawei MatePad ── */
@media (max-width: 900px) {
  .marketplace-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .profile-hero { flex-direction: column; }
  .hero-sidebar { width: 100%; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Header — switch to hamburger on tablets */
  .site-header { padding: 0 0.75rem; height: 52px; position: relative; }
  .header-search { display: none; }
  .header-logo-desktop { display: none !important; }
  .header-logo-mobile { display: flex !important; }
  .header-desktop-only { display: none !important; }
  .mobile-filter-btn { display: none !important; }
}

/* ── Galaxy Z Fold unfolded + small tablets (768px)
   Galaxy Z Fold 6/5/4 unfolded (717px), iPad Mini, Galaxy Tab A, Huawei MatePad SE ── */
@media (max-width: 768px) {
  /* Login */
  .login-layout { grid-template-columns: 1fr; }
  .login-panel-brand { display: none; }
  .mobile-login-logo { display: flex; }
  .login-panel-form { padding: 1.5rem 1rem; }
  .login-form-box { padding: 1.5rem 1rem; }
  .account-type-tabs { flex-wrap: wrap; }
  .account-tab { font-size: 0.8rem; min-width: 0; }
  .login-clients-bar { padding: 1rem 0; }

  /* Info bar */
  .info-bar { flex-direction: column; gap: 0.5rem; font-size: 0.78rem; padding: 0.65rem 1rem; justify-content: center; }
  .info-bar-help-desktop { display: none; }
  .info-bar-help-mobile { display: block; }

  /* Profiles */
  .profiles-grid { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Pagination */
  .pagination { flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
  .pagination button { min-width: 34px; height: 34px; font-size: 0.78rem; }

  /* Profile page */
  .profile-hero { padding: 1.25rem; }
  .hero-name { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-sidebar { width: 100%; }
  .links-grid { grid-template-columns: 1fr; }
  .profile-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 0; }
  .profile-tab { white-space: nowrap; font-size: 0.8rem; padding: 0.6rem 0.75rem; }
  .profile-main-col { min-width: 0; }
}

/* ── Standard phones (430px)
   iPhone 16 Pro Max, 15 Plus, Galaxy S25 Ultra, Xiaomi 15 Pro, Huawei P60 Pro ── */
@media (max-width: 430px) {
  .login-panel-form { padding: 1rem 0.75rem; }
  .login-form-box { padding: 1.25rem 0.75rem; max-width: 100%; }
  .site-header { padding: 0 0.5rem; }
  .logo-name { font-size: 0.82rem; }
  .info-bar { font-size: 0.72rem; padding: 0.55rem 0.75rem; }
  .info-bar-help-mobile { font-size: 0.72rem; padding: 0.45rem 0.75rem; }
  .profile-hero { padding: 1rem; }
  .hero-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .hero-name { font-size: 1.2rem; }
  .hero-meta { flex-direction: column; gap: 0.3rem; }
  h2 { font-size: 1.05rem; }
}

/* ── Compact phones (393px)
   iPhone 16/15/14 Pro, Galaxy S25/S24, Pixel 9, Xiaomi 14/15, Huawei P60 ── */
@media (max-width: 393px) {
  .login-panel-form { padding: 0.75rem 0.6rem; }
  .login-form-box { padding: 1rem 0.6rem; }
  .account-tab { font-size: 0.72rem; padding: 0 0.25rem; }
  .logo-name { font-size: 0.78rem; }
  .logo-mark { width: 32px; height: 32px; }
  .profiles-grid { gap: 0.6rem; }
  .pagination button { min-width: 30px; height: 30px; font-size: 0.72rem; }
}

/* ── Small phones (375px)
   iPhone SE 3rd gen, iPhone 13 Mini, Galaxy A15, Xiaomi Redmi 13C ── */
@media (max-width: 375px) {
  .site-header { height: 48px; }
  .logo-name span { display: none; }
  .info-bar { font-size: 0.68rem; }
  .info-bar-help-mobile { font-size: 0.68rem; }
  .hero-name { font-size: 1.1rem; }
  .hero-avatar { width: 48px; height: 48px; font-size: 1rem; }
  .profile-hero { padding: 0.85rem; }
  h2 { font-size: 1rem; }
}

/* ── Galaxy Z Fold cover screen + very small phones (344px)
   Galaxy Z Fold 6/5/4 cover (344px), Galaxy Z Flip cover (300px) ── */
@media (max-width: 344px) {
  .login-panel-form { padding: 0.5rem 0.4rem; }
  .login-form-box { padding: 0.75rem 0.5rem; }
  .account-tab { font-size: 0.68rem; height: 32px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-name { font-size: 0.72rem; }
  .logo-name span { display: none; }
  .mobile-logo-menu { min-width: 180px; }
  .mobile-logo-menu-item { font-size: 0.78rem; padding: 0.5rem 0.6rem; }
  .info-bar { font-size: 0.65rem; padding: 0.5rem 0.5rem; }
  .info-bar-help-mobile { font-size: 0.65rem; padding: 0.4rem 0.5rem; }
  .profiles-grid { gap: 0.5rem; }
  .hero-name { font-size: 1rem; }
  .hero-avatar { width: 44px; height: 44px; font-size: 0.9rem; }
  .profile-hero { padding: 0.75rem; }
  .pagination button { min-width: 28px; height: 28px; font-size: 0.68rem; }
  h2 { font-size: 0.95rem; }
}

/* ── Ultra narrow (280px)
   Galaxy Z Flip 6/5 cover screen ── */
@media (max-width: 280px) {
  .site-header { height: 44px; padding: 0 0.35rem; }
  .logo-mark { width: 24px; height: 24px; }
  .logo-name { font-size: 0.68rem; }
  .login-panel-form { padding: 0.4rem 0.3rem; }
  .login-form-box { padding: 0.6rem 0.4rem; }
  .account-tab { font-size: 0.62rem; }
  .form-input { font-size: 0.8rem; padding: 0.5rem; }
  .btn-lg { padding: 0.6rem 1rem; font-size: 0.82rem; }
}
