  :root {
    --primary: #a30023;
    --primary-light: #c41e4a;
    --primary-dark: #7a001a;
    --accent: #fdba5b;
    --accent-light: #ffe0a6;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
  body {
    font-family: 'Figtree', sans-serif;
    background: linear-gradient(180deg, #fdf8f8 0%, var(--bg) 120px);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  button { font-family: inherit; cursor: pointer; border: none; }
  input, select, textarea { font-family: inherit; font-size: 0.85rem; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius); font-weight: 500;
    font-size: 0.85rem; transition: all var(--transition);
  }
  /* Shimmer CTA button */
  .btn-primary { width: 100%; background: var(--primary); color: white; font-weight: 700; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(163,0,35,0.25); }
  .btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: btnShimmer 3s ease-in-out infinite; }
  @keyframes btnShimmer { 0% { left: -100%; } 50%,100% { left: 100%; } }
  .btn-primary:hover { opacity: 0.95; }
  .btn-primary:active { transform: scale(0.97); }
  /* Login context: solid white button for contrast on dark bg */
  .login-card .btn-primary { background: white; color: var(--primary-dark); box-shadow: 0 4px 20px rgba(255,255,255,0.2); }
  .login-card .btn-primary::after { background: linear-gradient(90deg, transparent, rgba(163,0,35,0.12), transparent); }
  .btn-outline { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.15); }
  .btn-outline:hover { border-color: rgba(255,255,255,0.3); color: white; background: rgba(255,255,255,0.05); }
  .btn-ghost { background: transparent; color: var(--primary); padding: 8px 16px; }
  .btn-cancel { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }

  .icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); color: var(--text); font-size: 1rem;
    transition: all var(--transition);
  }
  .icon-btn:hover { background: var(--border); }
  .icon-btn.danger { color: var(--danger); }

  /* LOGIN */
  .login-screen {
    display: flex; justify-content: center; align-items: center;
    min-height: 100dvh; padding: 24px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, #1a0008 0%, var(--primary-dark) 30%, var(--primary) 60%, var(--primary-light) 100%);
  }
  /* Animated floating orbs */
  .login-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: orbFloat 8s ease-in-out infinite; }
  .login-orb:nth-child(1) { width: 300px; height: 300px; background: var(--accent); top: -80px; left: -60px; }
  .login-orb:nth-child(2) { width: 200px; height: 200px; background: #ff6b9d; bottom: -40px; right: -40px; animation-delay: -3s; }
  .login-orb:nth-child(3) { width: 150px; height: 150px; background: var(--accent-light); top: 40%; left: 60%; animation-delay: -5s; }
  @keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.1); } 66% { transform: translate(-20px,20px) scale(0.95); } }
  /* Rotating mandala ring */
  .login-ring { position: absolute; width: 500px; height: 500px; border: 1px solid rgba(253,186,91,0.08); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: ringRotate 60s linear infinite; }
  .login-ring::before { content: ''; position: absolute; inset: 30px; border: 1px solid rgba(255,255,255,0.04); border-radius: 50%; }
  .login-ring::after { content: ''; position: absolute; inset: 60px; border: 1px dashed rgba(253,186,91,0.06); border-radius: 50%; }
  @keyframes ringRotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
  /* Glassmorphism card */
  .login-card {
    width: 100%; max-width: 380px; position: relative; z-index: 2;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 28px;
    padding: 44px 28px 36px; box-shadow: 0 25px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: center; animation: cardIn 0.8s cubic-bezier(0.16,1,0.3,1) both;
  }
  @keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .login-card h1 {
    font-size: 1.3rem; font-weight: 700; color: white;
    margin-bottom: 4px; line-height: 1.4;
  }
  .login-card p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 32px; }
  .input-group { position: relative; margin-bottom: 16px; text-align: left; }
  .input-group > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.4); font-size: 0.9rem; transition: color 0.3s;
  }
  .input-group:has(input:focus) > i { color: rgba(255,255,255,0.9); }
  .input-group input {
    width: 100%; padding: 16px 16px 16px 46px;
    background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); color: white; outline: none; font-size: 0.9rem;
    transition: all 0.3s;
  }
  .input-group input::placeholder { color: rgba(255,255,255,0.35); text-transform: none; }
  .input-group input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
  .pw-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    color: rgba(255,255,255,0.4); font-size: 0.9rem; line-height: 1;
    transition: color 0.2s;
  }
  .pw-toggle:hover { color: rgba(255,255,255,0.9); }
  .login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0; color: rgba(255,255,255,0.3); font-size: 0.75rem;
  }
  .login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
  }
  .login-feedback {
    display: none; background: rgba(239,68,68,0.15); color: #fca5a5;
    padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.8rem;
    margin-bottom: 16px; border: 1px solid rgba(239,68,68,0.2);
    animation: shakeX 0.4s ease;
  }
  @keyframes shakeX { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

  /* STICKY CHROME — wraps top-bar + filter-bar + pills + result + admin-stats */
  .sticky-chrome {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }

  /* TOP BAR — Glass effect */
  .top-bar {
    position: relative;
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 12px 16px;
  }
  .top-bar::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, rgba(163,0,35,0.1), rgba(253,186,91,0.15), rgba(163,0,35,0.1));
  }
  .top-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .top-bar h2 {
    font-size: 1.1rem; font-weight: 600;
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    white-space: nowrap;
  }
  .user-id-label { font-size: 0.65rem; color: var(--text-secondary); font-weight: 500; margin-top: 1px; -webkit-text-fill-color: var(--text-secondary); }
  .top-actions { display: flex; gap: 4px; }

  /* ACTIVE FILTER PILLS STRIP */
  .active-filters-strip {
    display: flex; gap: 6px;
    padding: 0 16px 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .active-filters-strip::-webkit-scrollbar { display: none; }
  .filter-pill {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    padding: 4px 10px; border-radius: 50px; flex-shrink: 0;
    background: rgba(163,0,35,0.07); border: 1px solid rgba(163,0,35,0.15);
    color: var(--primary); font-size: 0.72rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s;
  }
  .filter-pill:active { background: rgba(163,0,35,0.14); }
  .filter-pill i { font-size: 0.6rem; opacity: 0.75; }

  /* FILTER BAR */
  .filter-bar {
    padding: 8px 16px; display: flex; gap: 8px; align-items: center;
  }
  .search-box { flex: 1; min-width: 160px; position: relative; }
  .search-box > i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); font-size: 0.85rem;
  }
  .search-box input {
    width: 100%; padding: 10px 36px 10px 36px;
    border: 1.5px solid var(--border); border-radius: 50px;
    background: var(--bg); outline: none; font-size: 0.85rem;
  }
  .search-box input:focus { border-color: var(--primary); }
  .search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-secondary); font-size: 0.65rem; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; border: none; line-height: 1; }
  .search-clear i { font-size: inherit; line-height: 1; }
  .search-clear:active { background: var(--text-secondary); color: white; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 50px; font-size: 0.8rem;
    font-weight: 500; white-space: nowrap; transition: all var(--transition);
    background: var(--bg); border: 1.5px solid var(--border); color: var(--text);
  }
  .chip.active { background: var(--primary); color: white; border-color: var(--primary); }
  .chip .count { background: rgba(0,0,0,0.1); padding: 1px 8px; border-radius: 50px; font-size: 0.7rem; }
  .chip.active .count { background: rgba(255,255,255,0.25); }

  /* Filter icon button in search bar */
  .filter-search-btn {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--bg);
    color: var(--text-secondary); font-size: 0.88rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: all var(--transition);
  }
  .filter-search-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(163,0,35,0.05); }
  .filter-search-badge {
    position: absolute; top: -3px; right: -3px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--primary); color: white;
    font-size: 0.55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; line-height: 1;
  }

  /* Grid / Feed view toggle — pill shape */
  .view-toggle {
    display: flex; border: 1.5px solid var(--border);
    border-radius: 50px; overflow: hidden; flex-shrink: 0;
    background: var(--bg);
  }
  .view-btn {
    width: 34px; height: 34px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 0.78rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s, color 0.15s;
    border-radius: 50px;
  }
  .view-btn.active { background: var(--primary); color: white; }


  /* ADMIN STATS */
  .admin-stats { display: flex; gap: 8px; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
  .admin-stats::-webkit-scrollbar { display: none; }
  .stat-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 50px; font-size: 0.75rem;
    font-weight: 500; white-space: nowrap; cursor: pointer;
    background: var(--bg); border: 1.5px solid var(--border); color: var(--text);
    transition: all var(--transition);
  }
  .stat-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
  .stat-divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

  /* PROFILE */
  .profile-container { flex: 1; padding: 0; overflow-y: auto; }
  .profile-card {
    background: var(--surface); border-radius: 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04); overflow: hidden; position: relative;
  }
  .photo-carousel { position: relative; width: 100%; aspect-ratio: 3/4; background: #f0f0f0; overflow: hidden; }
  .photo-carousel img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.4s ease;
  }
  .photo-carousel img.visible { opacity: 1; animation: kenBurns 12s ease-in-out infinite alternate; }
  @keyframes kenBurns { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.08) translate(-1%,-1%); } }
  /* Gradient overlay for name on photo */
  .photo-carousel::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 140px; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); pointer-events: none; z-index: 1; }
  /* Name overlay on photo */
  .photo-name-overlay { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 20px; }
  .photo-name-overlay .overlay-name { font-size: 1.5rem; font-weight: 700; color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
  .photo-name-overlay .overlay-age { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-top: 2px; }
  .photo-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
  .photo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all var(--transition); }
  .photo-dot.active { background: white; width: 24px; border-radius: 4px; }
  .photo-nav { position: absolute; top: 0; width: 50%; height: 100%; background: transparent; z-index: 3; }
  .photo-nav.left { left: 0; }
  .photo-nav.right { right: 0; }
  .photo-badge {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    background: rgba(0,0,0,0.5); color: white; padding: 4px 10px;
    border-radius: 50px; font-size: 0.7rem; backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 5px;
  }
  /* No-photo banner for profiles without photos */
  .no-photo-banner {
    width: 100%; aspect-ratio: 3/2;
    background: linear-gradient(160deg, #f5f0f0 0%, #ede8e8 60%, #e8e0e0 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .no-photo-banner::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(163,0,35,0.04); filter: blur(60px);
    top: -60px; right: -80px;
  }
  .no-photo-initial {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(163,0,35,0.08);
    border: 2px solid rgba(163,0,35,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; color: var(--primary);
    margin-bottom: 14px;
  }
  .no-photo-name {
    font-size: 1.4rem; font-weight: 700; color: var(--text);
  }
  .no-photo-age {
    font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px;
  }
  /* Action button row between photo and details */
  .card-actions { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .action-btn { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08); background: var(--surface); border: 1.5px solid var(--border); color: var(--text-secondary); }
  .action-btn:active { transform: scale(0.85); }
  .action-btn.bookmark-action.active { color: var(--accent); }
  .action-btn.whatsapp-action, .action-btn.call-action { text-decoration: none; }
  .action-btn.whatsapp-action i { font-size: 1.3rem; }
  /* Bookmark pop animation */
  @keyframes bookmarkPop { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }
  .bookmark-pop { animation: bookmarkPop 0.4s ease; }
  /* Detail bookmark celebration */
  @keyframes detBookmarkPop { 0% { transform: scale(1); } 25% { transform: scale(1.4); } 60% { transform: scale(0.92); } 100% { transform: scale(1); } }
  .det-bookmark-pop { animation: detBookmarkPop 0.45s cubic-bezier(0.34,1.56,0.64,1); }
  @keyframes sparkFly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx),var(--dy)) scale(0); opacity: 0; } }
  .bookmark-spark { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #fdba5b); pointer-events: none; z-index: 9999; animation: sparkFly 0.45s ease-out forwards; margin-left: -3px; margin-top: -3px; }
  .profile-info { padding: 16px 20px 20px; }
  .profile-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
  .profile-name { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--text); }
  .profile-age { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }
  .profile-quick-info { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .quick-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px; background: linear-gradient(135deg, rgba(163,0,35,0.04), rgba(253,186,91,0.06)); border: 1px solid rgba(163,0,35,0.06); border-radius: 50px;
    font-size: 0.75rem; color: var(--text-secondary);
  }

  .section { margin-bottom: 16px; }
  .section-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--primary);
    margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid rgba(163,0,35,0.08);
    display: flex; align-items: center; gap: 8px;
  }
  .section-title i { font-size: 0.7rem; opacity: 0.6; }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-item { padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.03); }
  .detail-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
  .detail-value { font-size: 0.85rem; font-weight: 500; }
  .detail-item.full { grid-column: 1 / -1; }

  .contact-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; background: var(--bg); border-radius: var(--radius-sm);
    margin-bottom: 8px; text-decoration: none; color: var(--text);
    border-left: 3px solid transparent; transition: all 0.2s;
  }
  .contact-row:active { background: var(--border); border-left-color: var(--primary); }
  .contact-text { font-size: 0.85rem; }
  .contact-label { font-size: 0.65rem; color: var(--text-secondary); }
  /* WhatsApp + Share — two equal buttons in one row */
  .contact-wa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
  .contact-wa-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 11px 8px; background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.25);
    border-radius: var(--radius-sm); color: #16a34a; font-size: 0.72rem; font-weight: 600;
    text-decoration: none; cursor: pointer; font-family: inherit;
    transition: background 0.15s;
  }
  .contact-wa-btn:active { background: rgba(37,211,102,0.18); }
  .contact-wa-btn i { font-size: 1.1rem; }
  .notes-box {
    padding: 14px; background: var(--bg); border-radius: var(--radius-sm);
    font-size: 0.85rem; line-height: 1.6; color: var(--text-secondary);
    border-left: 3px solid var(--accent);
  }

  .admin-actions { display: flex; gap: 8px; padding: 12px 0 4px; flex-wrap: wrap; }
  .admin-actions button { flex: 1; padding: 10px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; }
  .admin-actions .btn-approve { background: var(--success); color: white; }
  .admin-actions .btn-delete { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
  .admin-actions .btn-view-as { flex-basis: 100%; background: rgba(253,186,91,0.12); color: #92400e; border: 1px solid rgba(253,186,91,0.4); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .btn-wa-share { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 32px); margin: 8px 16px 0; padding: 13px 16px; background: #25D366; color: white; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; }
  .btn-wa-share i { font-size: 1.2rem; }

  /* View As banner */
  #view-as-banner { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: linear-gradient(90deg, #fef3c7, #fde68a); border-bottom: 1px solid #fcd34d; font-size: 0.78rem; font-weight: 500; color: #78350f; position: relative; z-index: 51; }
  #view-as-banner i { color: #d97706; flex-shrink: 0; }
  #view-as-banner span { flex: 1; }
  #view-as-banner button { background: #92400e; color: white; border: none; border-radius: 99px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

  /* Compatibility highlight card — negative side margins cancel .profile-info padding so the
     card runs full-width and its section-title aligns flush with other section headers. */
  .compat-highlight { margin: 0 -20px 16px; padding: 14px 20px; background: linear-gradient(135deg, rgba(163,0,35,0.05) 0%, rgba(163,0,35,0.02) 100%); border-top: 1px solid rgba(163,0,35,0.12); border-bottom: 1px solid rgba(163,0,35,0.12); border-left: 3px solid var(--primary); border-radius: 0; position: relative; overflow: hidden; }
  .compat-highlight::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(163,0,35,0.06), transparent); animation: btnShimmer 4s ease-in-out infinite; pointer-events: none; }
  .compat-highlight .section-title { border-bottom-color: rgba(163,0,35,0.12); }
  .compat-highlight .detail-item { background: rgba(255,255,255,0.75); }

  /* Ashtakoot score bar */
  .compat-score-wrap { margin-bottom: 14px; }
  .compat-score-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
  .compat-score-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
  .compat-score-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
  .compat-score-denom { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-left: 1px; }
  .compat-bar-track { height: 8px; background: rgba(163,0,35,0.10); border-radius: 99px; overflow: hidden; position: relative; }
  .compat-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #c0392b, #a30023 60%, #fdba5b); position: relative; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
  .compat-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%); animation: btnShimmer 2.4s ease-in-out infinite; border-radius: inherit; }
  .compat-footer-row { margin-top: 9px; }
  .compat-link { background: none; border: none; padding: 0; font-size: 0.7rem; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
  .compat-link:hover { color: var(--primary); }

  /* Guna breakdown sheet */
  .guna-sheet-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(10,0,5,0.65); backdrop-filter: blur(5px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.3s; }
  .guna-sheet-overlay.show { opacity: 1; }
  .guna-sheet { background: var(--surface); border-radius: 28px 28px 0 0; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; padding: 0 22px 40px; position: relative; transform: translateY(110%); transition: transform 0.52s cubic-bezier(0.16,1,0.3,1); overscroll-behavior: contain; }
  .guna-sheet-overlay.show .guna-sheet { transform: translateY(0); }
  .guna-sheet-handle { width: 44px; height: 4px; border-radius: 99px; background: var(--border); margin: 14px auto 22px; }
  .guna-sheet-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.9rem; }
  /* Score ring */
  .gs-ring-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto 16px; }
  .gs-ring-svg { transform: rotate(-90deg); }
  .gs-ring-track { fill: none; stroke: rgba(163,0,35,0.10); stroke-width: 10; }
  .gs-ring-fill { fill: none; stroke: url(#gsGrad); stroke-width: 10; stroke-linecap: round; }
  .gs-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .gs-ring-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
  .gs-ring-denom { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; }
  /* Verdict (optional) */
  .gs-verdict { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .gs-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
  /* Breakdown rows */
  .gs-breakdown-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); margin: 18px 0 10px; display: flex; align-items: center; gap: 6px; }
  .gs-breakdown-title i { color: var(--primary); }
  .gs-rows { display: flex; flex-direction: column; }
  .gs-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .gs-row:last-child { border-bottom: none; }
  .gs-name { flex: 1; font-size: 0.8rem; font-weight: 600; color: var(--text); }
  .gs-bar-wrap { flex: 2; background: rgba(163,0,35,0.08); border-radius: 99px; height: 6px; overflow: hidden; }
  .gs-bar { height: 100%; border-radius: 99px; }
  .gs-bar.gs-bar-high { background: var(--success); }
  .gs-bar.gs-bar-mid { background: var(--warning); }
  .gs-bar.gs-bar-low { background: var(--danger); }
  .gs-max { font-size: 0.7rem; color: var(--text-secondary); width: 24px; text-align: right; flex-shrink: 0; }
  .gs-score { width: 22px; font-size: 0.8rem; font-weight: 700; text-align: right; flex-shrink: 0; }
  .gs-score-high { color: var(--success); }
  .gs-score-mid { color: var(--warning); }
  .gs-score-low { color: var(--danger); }
  /* Share row */
  .gs-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .gs-share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: filter 0.15s, transform 0.15s; }
  .gs-share-btn:active { filter: brightness(0.9); transform: scale(0.97); }
  .gs-share-wa { background: #25D366; color: #fff; }
  .gs-share-copy { background: var(--bg); border: 1.5px solid var(--border); color: var(--text); }
  /* Confetti */
  .gs-confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 501; overflow: hidden; }
  .gs-c-dot { position: absolute; border-radius: 50%; width: var(--sz); height: var(--sz); background: var(--col); left: var(--ox); top: var(--oy); opacity: 0; animation: gsCFloat var(--dur) cubic-bezier(0.2,0.6,0.4,1) var(--del) forwards; }
  @keyframes gsCFloat { 0% { opacity: 1; transform: translate(0,0) scale(1); } 75% { opacity: 0.7; } 100% { opacity: 0; transform: translate(var(--tx),var(--ty)) scale(0.2); } }
  /* Disclaimer */
  .guna-sheet-disclaimer { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.5; margin-top: 20px; display: flex; gap: 6px; align-items: center; font-style: italic; text-align: left; }
  .guna-sheet-disclaimer i { color: var(--primary); flex-shrink: 0; }
  /* Feed compat chip */
  .fcard-compat-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.68rem; font-weight: 700; color: var(--primary); background: rgba(163,0,35,0.07); border: 1px solid rgba(163,0,35,0.18); border-radius: 99px; padding: 2px 7px; white-space: nowrap; position: relative; overflow: hidden; }
  .fcard-compat-chip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); animation: btnShimmer 3s ease-in-out infinite; }

  /* Interest state banner */
  .det-interest-banner { margin: 4px 16px 2px; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .det-interest-banner.sent { background: rgba(253,186,91,0.12); color: #92400e; border: 1px solid rgba(253,186,91,0.35); }
  .det-interest-banner.received { background: rgba(16,185,129,0.08); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
  .det-interest-banner.matched { background: linear-gradient(90deg, rgba(163,0,35,0.07), rgba(253,186,91,0.1)); color: var(--primary); border: 1px solid rgba(163,0,35,0.15); position: relative; overflow: hidden; }
  .det-interest-banner.matched::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: btnShimmer 3s ease-in-out infinite; pointer-events: none; }

  /* Photo expand button — inline inside detail-bottom-right */
  .photo-expand-btn { background: rgba(0,0,0,0.45); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; font-size: 0.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); flex-shrink: 0; }

  /* Photo fullscreen overlay */
  @keyframes fsIn { from { opacity: 0; } to { opacity: 1; } }
  .photo-fullscreen-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.96); display: flex; align-items: center; justify-content: center; animation: fsIn 0.18s ease; }
  .photo-fullscreen-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .photo-fullscreen-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.15); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

  /* PROFILE NAV */
  .profile-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
  .nav-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text); transition: all var(--transition);
  }
  .nav-arrow:active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-color: transparent; transform: scale(0.9); }
  .profile-counter { font-size: 0.85rem; color: var(--text-secondary); }
  .profile-counter strong { color: var(--text); }
  .swipe-hint { text-align: center; padding: 8px; font-size: 0.7rem; color: var(--text-secondary); opacity: 0.6; }

  /* BOTTOM NAV */
  :root { --emulator-bar: 0px; }
  body[data-emulator] { --emulator-bar: 56px; }

  .bottom-nav {
    position: fixed; bottom: calc(12px + var(--emulator-bar)); left: 24px; right: 24px;
    height: var(--nav-height);
    padding: 8px 4px;
    padding-bottom: calc(8px + max(var(--safe-bottom), env(safe-area-inset-bottom, 0px)));
    background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: space-around; z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(255,255,255,0.15);
  }
  .nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 16px; background: none; color: var(--text);
    font-size: 0.6rem; font-weight: 500; transition: color var(--transition);
    position: relative;
  }
  .nav-item i { font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; transition: all var(--transition); }
  .nav-item.active { color: var(--primary); }
  .nav-item.active i { background: rgba(163,0,35,0.08); }
  .nav-badge {
    position: absolute; top: 2px; right: 8px;
    background: var(--danger); color: white;
    font-size: 0.55rem; padding: 1px 5px; border-radius: 50px; font-weight: 700;
  }

  /* FORM */
  .form-section { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .form-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; font-weight: 600; font-size: 0.9rem;
    background: none; width: 100%; text-align: left; color: var(--text);
  }
  .form-section-header i.fa-chevron-down { font-size: 0.75rem; color: var(--text-secondary); transition: transform var(--transition); }
  .form-section.open .form-section-header i.fa-chevron-down { transform: rotate(180deg); }
  .form-fields { padding: 0 16px 16px; }
  .form-section:not(.open) .form-fields { display: none; }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
  .field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg); outline: none;
    transition: border var(--transition);
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: white; }
  .field .error { font-size: 0.7rem; color: var(--danger); margin-top: 4px; display: none; }
  .field.invalid input, .field.invalid select { border-color: var(--danger); }
  .field.invalid .error { display: block; }
  .register-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  }
  .register-header h3 { font-size: 1rem; font-weight: 600; }
  .register-body { padding: 16px; flex: 1; overflow-y: auto; }
  .register-footer {
    padding: 16px; background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: calc(16px + var(--safe-bottom));
  }
  .photo-upload-area {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 24px; text-align: center; color: var(--text-secondary);
    transition: all var(--transition); cursor: pointer;
  }
  .photo-upload-area:hover { border-color: var(--primary); background: #fef7f7; }
  .photo-upload-area i { font-size: 2rem; margin-bottom: 8px; color: var(--primary); }
  .photo-upload-area p { font-size: 0.8rem; }
  .photo-previews { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .photo-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
  .photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .photo-thumb .remove {
    position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(0,0,0,0.6); color: white; font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }

  /* MODAL */
  .modal { display: none; position: fixed; z-index: 360; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); align-items: center; justify-content: center; }
  .modal.show { display: flex; }
  .modal-content { background: var(--surface); border-radius: var(--radius-lg); width: 90%; max-width: 480px; max-height: 85vh; overflow-y: auto; animation: modalIn 0.3s; }
  .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .modal-header h3 { font-size: 1rem; font-weight: 600; }
  .modal-body { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  @keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  .confirm-dialog { text-align: center; padding: 32px 24px; }
  .confirm-dialog i { font-size: 2.5rem; color: var(--danger); margin-bottom: 16px; }
  .confirm-dialog h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .confirm-dialog p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
  .confirm-dialog .btn-row { display: flex; gap: 8px; }
  .confirm-dialog .btn-row .btn { flex: 1; }

  /* TOAST */
  .toast { position: fixed; bottom: calc(var(--nav-height) + 44px + var(--emulator-bar)); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: white; padding: 12px 24px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 350; opacity: 0; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); pointer-events: none; display: flex; align-items: center; gap: 8px; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* CELEBRATION OVERLAY */
  .celeb-overlay {
    position: fixed; inset: 0; z-index: 400;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, rgba(26,0,8,0.92) 0%, rgba(122,0,26,0.92) 40%, rgba(163,0,35,0.88) 100%);
    transition: opacity 0.3s ease;
  }
  .celeb-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

  /* Floating hearts background */
  .celeb-heart {
    position: absolute; bottom: -30px;
    color: rgba(255,255,255,0.08);
    animation: celebFloat 5s ease-in infinite;
  }
  @keyframes celebFloat {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
  }

  /* Confetti fall */
  .celeb-confetti {
    position: absolute; top: -12px;
    border-radius: 2px;
    animation: celebConfetti 2.5s linear forwards;
  }
  @keyframes celebConfetti {
    0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
  }

  /* Card */
  .celeb-card {
    width: 88%; max-width: 340px;
    background: var(--surface); border-radius: 28px;
    padding: 36px 24px; text-align: center;
    position: relative; z-index: 2;
    animation: celebPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  }
  .celeb-card-sent { padding: 32px 24px; }
  .celeb-card-sent .celeb-btn { width: fit-content; min-width: 140px; margin: 16px auto 0; }
  @keyframes celebPop {
    from { opacity: 0; transform: scale(0.8) translateY(40px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }

  .celeb-emoji { font-size: 2.8rem; margin-bottom: 8px; animation: celebBounce 1s ease infinite; }
  @keyframes celebBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

  .celeb-title { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .celeb-subtitle { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 24px; }

  /* Avatars */
  .celeb-avatars {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; position: relative;
  }
  .celeb-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #fde8e8, #f3e8ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--primary);
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .celeb-avatar:last-of-type { margin-left: -18px; }
  .celeb-heart-badge {
    position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 3px 10px rgba(163,0,35,0.3);
  }

  .celeb-names { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
  .celeb-names span { color: var(--primary); }
  .celeb-detail { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 24px; }

  /* Buttons */
  .celeb-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .celeb-btn {
    padding: 13px; border-radius: var(--radius); font-size: 0.85rem;
    font-weight: 600; border: none; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform 0.15s; font-family: inherit;
  }
  .celeb-btn:active { transform: scale(0.97); }
  .celeb-btn-wa { background: #25D366; color: white; }
  .celeb-btn-view { background: var(--primary); color: white; }

  /* LOADING */
  .loading-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
  .loading-overlay.active { display: flex; }
  .loader-ring { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .loading-overlay span { font-size: 0.85rem; color: var(--text-secondary); }

  /* ADMIN TABLE */
  .admin-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
  .admin-table th, .admin-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
  .admin-table th { font-weight: 600; color: var(--text-secondary); font-size: 0.7rem; text-transform: uppercase; }

  /* ADMIN LIST (mobile-friendly) */
  .admin-list { display: flex; flex-direction: column; gap: 2px; }
  .admin-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-sm); }
  .admin-list-item:nth-child(odd) { background: rgba(0,0,0,0.02); }
  .admin-list-info { min-width: 0; flex: 1; }
  .admin-list-name { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-list-sub { font-size: 0.7rem; color: var(--text-secondary); margin-top: 1px; }
  .admin-list-meta { font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; margin-left: 12px; flex-shrink: 0; }

  .no-profiles { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
  .no-profiles i { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; display: block; }

  /* SKELETON SHIMMER LOADER */
  .skeleton-card { background: var(--surface); overflow: hidden; }
  .skeleton-photo { width: 100%; aspect-ratio: 3/4; background: var(--bg); position: relative; overflow: hidden; }
  .skeleton-actions { display: flex; justify-content: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .skeleton-circle { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); }
  .skeleton-info { padding: 16px 20px; }
  .skeleton-tags { display: flex; gap: 6px; margin-bottom: 18px; }
  .skeleton-tag { width: 72px; height: 26px; border-radius: 50px; background: var(--bg); }
  .skeleton-tag:nth-child(2) { width: 100px; }
  .skeleton-tag:nth-child(3) { width: 56px; }
  .skeleton-title { width: 140px; height: 12px; border-radius: 4px; background: var(--bg); margin-bottom: 14px; }
  .skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
  .skeleton-block { height: 52px; border-radius: var(--radius-sm); background: var(--bg); }
  .skeleton-shimmer { position: relative; overflow: hidden; }
  .skeleton-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); animation: skeletonShimmer 1.5s ease-in-out infinite; }
  @keyframes skeletonShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

  /* FLOATING PANEL OVERLAY */
  .panel-overlay { position: fixed; inset: 0; z-index: 90; background: transparent; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .panel-overlay.open { opacity: 1; pointer-events: auto; }

  /* FLOATING PANELS (Sort / Filter) */
  .floating-panel { position: fixed; left: 24px; right: 24px; bottom: calc(var(--nav-height) + 28px + 12px + var(--emulator-bar)); z-index: 95; background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 -4px 30px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(255,255,255,0.15); transform: translateY(20px); opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
  .floating-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .floating-panel-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
  .floating-panel-title button { background: none; color: var(--text-secondary); font-size: 0.8rem; font-weight: 500; }

  /* FILTER PANEL INNER */
  .filter-panel-inner { display: flex; flex-wrap: wrap; gap: 14px; max-height: 82vh; overflow-y: auto; }
  .filter-group { flex: 1; min-width: 120px; }
  .filter-group label { display: block; font-size: 0.65rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
  .filter-group input[type="number"], .filter-group input[type="text"] { width: 100%; padding: 10px 12px; font-size: 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); outline: none; box-sizing: border-box; }
  .filter-group input[type="number"]:focus, .filter-group input[type="text"]:focus { border-color: var(--primary); background: white; }
  .filter-group select { width: 100%; padding: 10px 12px; font-size: 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); outline: none; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
  .filter-group select:focus { border-color: var(--primary); background-color: white; }
  .filter-range-label { font-weight: 600; color: var(--primary); text-transform: none; letter-spacing: 0; margin-left: 6px; }
  /* Dual-handle age slider */
  .age-slider-wrap { position: relative; height: 24px; margin: 4px 8px 0; user-select: none; -webkit-user-select: none; }
  .age-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--border); }
  .age-slider-fill { position: absolute; height: 100%; border-radius: 1px; background: var(--primary); }
  .age-slider-thumb { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; margin-left: -8px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 1px 5px rgba(163,0,35,0.35); cursor: grab; touch-action: none; transition: transform 0.1s; z-index: 1; }
  .age-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
  /* Filter chips */
  .filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-chip { padding: 5px 12px; font-size: 0.75rem; font-weight: 500; border-radius: 50px; border: 1.5px solid var(--border); background: rgba(255,255,255,0.6); color: var(--text-secondary); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
  .filter-chip:active { transform: scale(0.95); }
  .filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
  .filter-actions { width: 100%; display: flex; gap: 8px; margin-top: 6px; }
  .filter-actions button { flex: 1; padding: 10px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; }
  .btn-filter-clear { background: rgba(255,255,255,0.6); color: var(--text-secondary); border: 1px solid var(--border); }
  /* CSS-styled select wrapper for forms */
  .select-wrapper { position: relative; }
  .select-wrapper select { appearance: none; -webkit-appearance: none; padding-right: 32px; }
  .select-wrapper::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--text-secondary); pointer-events: none; }

  /* SORT PANEL RADIO OPTIONS */
  .sort-options { display: flex; flex-direction: column; gap: 2px; }
  .sort-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-size: 0.85rem; font-weight: 400; transition: background 0.15s; cursor: pointer; width: 100%; text-align: left; }
  .sort-option:hover { background: rgba(0,0,0,0.04); }
  .sort-option.active { background: rgba(163,0,35,0.08); color: var(--primary); font-weight: 600; }
  .sort-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); position: relative; flex-shrink: 0; transition: border-color 0.15s; }
  .sort-option.active .sort-radio { border-color: var(--primary); }
  .sort-option.active .sort-radio::after { content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

  /* Sliding active indicator pill under nav items */
  .detail-id-badge { cursor: pointer; }
  .nav-filter-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: white; font-size: 0.55rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .nav-bookmark-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--text); font-size: 0.55rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

  /* BOOKMARK BUTTON ON CARD */
  .bookmark-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-secondary); font-size: 1.1rem; transition: all 0.2s ease; flex-shrink: 0; }
  .bookmark-btn:active { transform: scale(0.85); }
  .bookmark-btn.bookmarked { color: var(--accent); }

  /* WHATSAPP SHARE BUTTON */
  .btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; margin-top: 12px; background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; transition: all var(--transition); }
  .btn-whatsapp:active { background: var(--surface); transform: scale(0.98); }
  .btn-whatsapp i { font-size: 1rem; color: #25D366; }

  /* RESULT SUMMARY */
  .result-summary { padding: 0 16px 6px; font-size: 0.75rem; color: var(--text-secondary); }
  .result-summary strong { color: var(--text); }

  @media (min-width: 768px) {
    .profile-container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
    .profile-card { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
    .login-card { padding: 48px 36px; }
    .bottom-nav { max-width: 420px; left: 50%; right: auto; transform: translateX(-50%); }
  }
  input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  input[type=number] { -moz-appearance: textfield; }

  /* ===== REGISTRATION / EDIT FORM ===== */
  .register-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .register-header h3 { font-size: 1rem; font-weight: 600; }
  .register-body { padding: 16px; padding-bottom: 100px; max-width: 600px; margin: 0 auto; }
  .register-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 16px; padding-bottom: calc(12px + var(--safe-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    display: flex; gap: 10px; max-width: 600px; margin: 0 auto;
  }
  .register-footer .btn { flex: 1; max-width: none; margin: 0; }
  .register-footer .btn-outline { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
  .register-footer .btn-outline:hover { background: var(--border); }

  .form-section { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden; }
  .form-section-header {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 16px; background: none; border: none;
    font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer;
  }
  .form-section-header i { transition: transform 0.3s; color: var(--text-secondary); font-size: 0.8rem; }
  .form-section.open .form-section-header i { transform: rotate(180deg); }
  .form-fields { display: none; padding: 0 16px 16px; }
  .form-section.open .form-fields { display: block; }

  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 5px; }
  .field .req { color: var(--danger); }
  .field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text);
    background: var(--bg); outline: none; transition: border-color 0.2s;
  }
  .field select {
    appearance: none; -webkit-appearance: none; padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: white; }
  .field textarea { resize: vertical; min-height: 70px; }
  .field-error { display: none; font-size: 0.72rem; color: var(--danger); margin-top: 4px; }
  .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fef2f2; }
  .field.invalid .field-error { display: block; }

  /* Edit profile modal overlay */
  .edit-overlay {
    position: fixed; inset: 0; z-index: 330;
    background: var(--bg); overflow-y: auto;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* Photo manager in edit form */
  .photo-manager { display: flex; flex-wrap: wrap; gap: 10px; }
  .photo-empty { font-size: 0.8rem; color: var(--text-secondary); padding: 12px 0; }
  .photo-thumb-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); }
  .photo-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
  .photo-remove-btn { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.6); color: white; font-size: 0.55rem; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; cursor: pointer; }
  .photo-remove-btn:active { background: var(--danger); }
  .photo-primary-btn { position: absolute; bottom: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.6); color: white; font-size: 0.55rem; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; cursor: pointer; }
  .photo-thumb-item.photo-primary { border-color: gold; border-width: 2px; }
  .photo-upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; border: 2px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; margin-top: 10px; }
  .photo-upload-area i { font-size: 1.5rem; margin-bottom: 6px; }
  .photo-upload-area p { font-size: 0.8rem; margin: 0; }
  .photo-upload-area:active, .photo-upload-area.dragover { border-color: var(--primary); color: var(--primary); background: rgba(163,0,35,0.04); }
  .upload-progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 10px; }
  .upload-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0; transition: width 0.3s; }
  .upload-progress-text { font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; }

  /* Interest button states on profile card */
  .action-btn.interest-action { color: var(--text-secondary); }
  .action-btn.interest-action.sent { color: var(--primary); }
  .action-btn.interest-action.matched { color: var(--primary); position: relative; overflow: hidden; }
  .action-btn.interest-action.matched::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); animation: btnShimmer 3s ease-in-out infinite; }
  .action-btn.interest-action.received { color: var(--primary); }

  /* ===== GRID VIEW ===== */
  #profile-grid {
    display: none; /* shown by grid.js */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
  }

  .grid-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
    animation: profileCardIn 0.3s ease both;
  }
  .grid-card:active { transform: scale(0.97); }

  /* Photo area — 3:4 aspect ratio */
  .grid-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fde8e8, #f3e8ff);
    position: relative;
    overflow: hidden;
  }
  .grid-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  .grid-card:active .grid-photo img { transform: scale(1.03); }

  /* Initials placeholder when no photo */
  .grid-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    color: var(--primary); background: linear-gradient(135deg, #fde8e8, #f3e8ff);
  }

  /* Name + age overlay at bottom of photo */
  .grid-photo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    pointer-events: none;
  }
  .grid-name {
    font-size: 0.82rem; font-weight: 600; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .grid-meta { font-size: 0.65rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

  /* Active dot (top-right of photo) */
  .grid-active-dot {
    position: absolute; top: 8px; right: 8px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--success); border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  /* Tags row below photo */
  .grid-info { padding: 8px 10px 10px; }
  .grid-tags { display: flex; flex-wrap: wrap; gap: 4px; }
  .grid-tag {
    font-size: 0.6rem; padding: 3px 8px;
    border-radius: 50px; background: var(--bg);
    color: var(--text-secondary); font-weight: 500;
  }

  /* Matched badge — top-right of photo, non-interactive */
  .grid-match-badge {
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
  }
  .grid-status-chips {
    position: absolute; bottom: 8px; left: 8px;
    display: flex; gap: 4px; flex-wrap: wrap; z-index: 2;
  }
  .grid-status-chip {
    font-size: 0.6rem; font-weight: 600; padding: 2px 7px;
    border-radius: 20px; backdrop-filter: blur(6px);
  }
  .grid-status-chip.pending { background: rgba(251,191,36,0.85); color: #92400e; }
  .grid-status-chip.male    { background: rgba(59,130,246,0.75); color: white; }
  .grid-status-chip.female  { background: rgba(236,72,153,0.75); color: white; }

  /* Empty state */
  .grid-empty {
    grid-column: 1 / -1;
    width: 100%; /* also works in flex context */
    text-align: center; padding: 60px 20px;
    color: var(--text-secondary);
  }
  .grid-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.4; }
  .grid-empty p { font-size: 0.85rem; }

  /* Infinite scroll sentinel */
  .grid-sentinel {
    grid-column: 1 / -1;
    height: 1px;
  }
  .grid-loading-more {
    grid-column: 1 / -1;
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
  }

  /* Skeleton grid cards */
  .skeleton-grid-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .skeleton-grid-photo {
    width: 100%; aspect-ratio: 3 / 4;
    background: var(--border);
  }
  .skeleton-grid-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }

  /* Reload button spin animation */
  @keyframes spin { to { transform: rotate(360deg); } }
  #reloadBtn.spinning i { animation: spin 0.8s linear; }

  /* ── FEED VIEW ─────────────────────────────────────────────────────── */
  .profile-feed {
    padding: 4px 12px calc(var(--nav-height) + 40px);
    display: flex; flex-direction: column; gap: 14px;
  }

  /* Card entrance animation */
  @keyframes profileCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .fcard {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: transform 0.15s;
    animation: profileCardIn 0.32s ease both;
  }
  .fcard:active { transform: scale(0.99); }
  .fcard.interest-sent     { border-top: 3px solid var(--primary); }
  .fcard.interest-matched  { border-top: 3px solid var(--accent); }
  .fcard.interest-received { border-top: 3px solid var(--success); }

  /* Photo */
  .fcard-photo {
    position: relative; width: 100%; aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fde8e8, #f3e8ff);
    overflow: hidden;
  }
  .fcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenBurns 12s ease-in-out infinite alternate; }
  .fcard-photo-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent 35%, rgba(10,8,20,0.45) 68%, rgba(10,8,20,0.80) 100%);
  }

  /* Name / age overlay */
  .fcard-overlay {
    position: absolute; bottom: 0; left: 0; right: 52px;
    padding: 14px 14px 14px 16px; z-index: 2;
  }
  .fcard-name { font-size: 1.2rem; font-weight: 700; color: white; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
  .fcard-age-loc { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 3px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

  /* Bookmark overlaid bottom-right of photo */
  .fcard-bookmark {
    position: absolute; bottom: 12px; right: 12px; z-index: 4;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
    border: none; color: rgba(255,255,255,0.85); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s, transform 0.1s;
  }
  .fcard-bookmark.active { background: rgba(253,186,91,0.85); color: white; }
  .fcard-bookmark:active { transform: scale(0.88); }

  /* Photo count badge top-left */
  .fcard-photo-count {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    color: white; font-size: 0.6rem; font-weight: 500; padding: 3px 8px;
    border-radius: 50px; display: flex; align-items: center; gap: 4px;
  }

  /* Active recently label top-right */
  .fcard-active-label {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4);
    backdrop-filter: blur(6px); color: #d1fae5;
    font-size: 0.58rem; font-weight: 600; padding: 3px 8px; border-radius: 50px;
  }

  /* No-photo initials */
  .fcard-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .fcard-initials { font-size: 4rem; font-weight: 700; color: var(--primary); opacity: 0.18; line-height: 1; }

  /* Card body */
  .fcard-body { padding: 10px 14px 11px; position: relative; }
  .fcard-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
    padding-right: 20px;
  }
  .fcard-tag {
    font-size: 0.65rem; padding: 3px 9px; border-radius: 50px;
    background: linear-gradient(135deg, rgba(163,0,35,0.04), rgba(253,186,91,0.06));
    border: 1px solid rgba(163,0,35,0.07);
    color: var(--text-secondary); font-weight: 500; white-space: nowrap;
  }

  /* Interest state — passive inline pill */
  .fcard-state-icon {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.62rem; font-weight: 600; padding: 3px 8px;
    border-radius: 50px; white-space: nowrap;
  }
  .fcard-state-icon.sent     { background: rgba(163,0,35,0.07);  color: var(--primary); }
  .fcard-state-icon.matched  { background: rgba(253,186,91,0.2); color: #92400e; }
  .fcard-state-icon.received { background: rgba(16,185,129,0.1); color: #065f46; }

  /* Subtle directional hint — not a button */
  .fcard-chevron {
    position: absolute; right: 12px; bottom: 50%; transform: translateY(50%);
    font-size: 0.7rem; color: var(--border); pointer-events: none;
  }

  /* Feed skeleton — mirrors fcard layout */
  .skeleton-feed-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
  }
  .skeleton-feed-photo { width: 100%; aspect-ratio: 3 / 4; background: var(--border); }
  .skeleton-feed-body { padding: 10px 14px 11px; display: flex; gap: 6px; }
  .skeleton-feed-tag { height: 22px; border-radius: 50px; background: var(--border); }

  /* ======= PROFILE DETAIL OVERLAY ======= */
  #profile-detail {
    position: fixed; inset: 0; z-index: 310;
    background: var(--bg);
    flex-direction: column;
    overflow: hidden;
  }
  .detail-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* Photo header wrapper — positions back btn + ID badge over the photo */
  .detail-photo-header { position: relative; }
  /* Back button — floating over photo */
  .detail-back-btn {
    position: absolute; top: 14px; left: 14px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    color: white; border: none; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .detail-back-btn:active { background: rgba(0,0,0,0.7); }
  /* Username badge + expand btn — bottom-right row over photo */
  .detail-bottom-right {
    position: absolute; bottom: 14px; right: 14px; z-index: 5;
    display: flex; align-items: center; gap: 6px;
  }
  .detail-id-badge {
    background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9); font-size: 0.68rem; font-weight: 500;
    padding: 4px 10px; border-radius: 50px;
  }

  /* ======= INTERESTS FULL PAGE ======= */
  #interests-page {
    position: fixed; inset: 0; z-index: 300;
    background: var(--bg);
    flex-direction: column; overflow: hidden;
  }
  .int-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .int-header h3 { font-size: 1rem; font-weight: 700; }
  .int-tabs {
    display: flex; background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
  }
  .int-tab {
    flex: 1; padding: 12px 0; text-align: center;
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-secondary);
    border: none; background: none; cursor: pointer;
    position: relative;
  }
  .int-tab.active { color: var(--primary); font-weight: 600; }
  .int-tab.active::after {
    content: ''; position: absolute; bottom: 0;
    left: 20%; right: 20%; height: 3px;
    background: var(--primary); border-radius: 3px 3px 0 0;
  }
  .int-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; font-size: 0.58rem; font-weight: 700;
    background: var(--primary); color: white;
    border-radius: 50px; padding: 0 4px; margin-left: 3px;
  }
  .int-body { padding: 8px 12px; flex: 1; overflow-y: auto; }
  .int-empty {
    text-align: center; padding: 48px 24px;
    color: var(--text-secondary);
  }
  .int-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.4; }
  .int-empty p { font-size: 0.82rem; }

  /* Interest card — contact-row inspired */
  .int-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--surface);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    margin-bottom: 8px; cursor: pointer;
    transition: background 0.15s;
  }
  .int-card:active { background: var(--bg); }
  .int-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(163,0,35,0.06), rgba(253,186,91,0.08));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .int-avatar-img { width: 100%; height: 100%; object-fit: cover; }
  .int-avatar-initial { font-size: 1.1rem; font-weight: 600; color: var(--primary); }
  .int-card-info { flex: 1; min-width: 0; }
  .int-card-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .int-card-meta { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }
  .int-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .int-card-actions { display: flex; gap: 8px; }
  .int-card-time { font-size: 0.62rem; color: var(--text-secondary); }
  .int-admin-card { margin-bottom: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .int-admin-card-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; width: 100%; }
  .int-admin-card-body { flex: 1; min-width: 0; }
  .int-admin-card-row { margin-bottom: 6px; }
  .int-admin-card-label { font-size: 0.72rem; color: var(--text-secondary); }
  .int-admin-card-time { font-size: 0.72rem; color: var(--text-secondary); }
  .int-admin-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .int-admin-card-sub { font-size: 0.72rem; color: var(--text-secondary); }
  .int-admin-stat-count { font-size: 0.82rem; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
  .int-admin-card-name-btn { background: none; border: none; padding: 0; font-size: 0.9rem; font-weight: 600; color: var(--primary); cursor: pointer; text-decoration: underline; text-align: left; line-height: 1.3; }
  .int-admin-card-name-btn i { font-size: 0.65rem; vertical-align: middle; }
  .int-admin-compat { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .int-admin-compat-num { font-size: 0.75rem; font-weight: 700; color: var(--text); white-space: nowrap; }
  .int-admin-compat-denom { font-size: 0.65rem; font-weight: 400; color: var(--text-secondary); }
  .int-admin-bar-track { flex: 1; height: 5px; max-width: 100px; }
  .int-admin-status { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
  .bm-accordion { background: var(--surface); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
  .bm-accordion-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
  .bm-accordion-header:active { background: var(--bg); }
  .bm-accordion-info { flex: 1; min-width: 0; }
  .bm-accordion-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bm-accordion-sub { font-size: 0.7rem; color: var(--text-secondary); }
  .bm-accordion-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .bm-accordion-chevron { font-size: 0.75rem; color: var(--text-secondary); transition: transform 0.2s ease; }
  .bm-accordion-body { border-top: 1px solid var(--border); padding: 6px 0; }
  .bm-accordion-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; }
  .bm-accordion-item:not(:last-child) { border-bottom: 1px solid var(--border); }
  .bm-accordion-item:active { background: var(--bg); }
  .bm-accordion-item-info { flex: 1; min-width: 0; }
  .int-status {
    font-size: 0.65rem; font-weight: 600; padding: 3px 8px;
    border-radius: 50px; color: var(--text-secondary); background: var(--bg);
  }
  .int-status.matched { color: var(--success); background: rgba(16,185,129,0.08); }
  .int-status.declined { color: #ef4444; background: rgba(239,68,68,0.06); }

  /* ======= SETTINGS PAGE ======= */
  #settings-page {
    position: fixed; inset: 0; z-index: 320;
    background: var(--bg);
    flex-direction: column; overflow: hidden;
  }
  .sett-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  .sett-back-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: none; display: flex;
    align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text); cursor: pointer;
  }
  .sett-header h3 { font-size: 1rem; font-weight: 600; }
  .sett-scroll { flex: 1; overflow-y: auto; padding-bottom: 40px; }

  .sett-profile {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 16px; background: var(--surface); margin-bottom: 8px;
  }
  .sett-avatar {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #fde8e8, #f3e8ff);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .sett-profile-info { flex: 1; }
  .sett-profile-name { font-size: 1rem; font-weight: 600; }
  .sett-profile-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
  .sett-edit-btn {
    font-size: 0.78rem; color: var(--primary); font-weight: 500;
    padding: 6px 14px; border: 1.5px solid var(--primary);
    border-radius: 50px; background: none; cursor: pointer; white-space: nowrap;
  }

  .sett-group { background: var(--surface); margin-bottom: 8px; }
  .sett-group-title {
    padding: 12px 16px 4px; font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary);
  }
  .sett-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background 0.15s;
  }
  .sett-item:last-child { border-bottom: none; }
  .sett-item:active { background: var(--bg); }
  .sett-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
  }
  .sett-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
  .sett-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
  .sett-icon-danger { background: rgba(163,0,35,0.08); color: var(--primary); }
  .sett-text { flex: 1; }
  .sett-label { font-size: 0.85rem; font-weight: 500; }
  .sett-desc { font-size: 0.7rem; color: var(--text-secondary); margin-top: 1px; }
  .sett-arrow { color: var(--text-secondary); font-size: 0.75rem; }
  .sett-danger .sett-label { color: var(--primary); }
  .sett-version { text-align: center; padding: 28px 16px 8px; font-size: 0.7rem; color: var(--text-secondary); }

  /* Change password panel — slides in over settings */
  .sett-pw-panel {
    position: absolute; inset: 0; background: var(--bg);
    flex-direction: column; z-index: 5;
  }
  .sett-pw-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .sett-pw-header button {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
    border: none; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text); cursor: pointer;
  }
  .sett-pw-header h4 { font-size: 0.95rem; font-weight: 600; }
  .sett-pw-body { padding: 20px 16px; flex: 1; overflow-y: auto; }
  .sett-pw-hint { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 20px; }
  .sett-pw-error {
    font-size: 0.78rem; color: var(--danger);
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2);
    padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 12px;
  }

  /* ======= HOME PAGE ======= */
  #home-page {
    background: var(--bg);
  }
  .home-hero {
    background: linear-gradient(135deg, #a30023 0%, #5c0014 100%);
    padding: 28px 20px 32px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative; overflow: hidden; flex-shrink: 0;
  }
  .home-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.22; pointer-events: none; }
  .home-orb-1 { width: 180px; height: 180px; background: var(--accent); top: -50px; right: -30px; }
  .home-orb-2 { width: 100px; height: 100px; background: #ff6b9d; bottom: -10px; left: -10px; }
  .home-mandala {
    position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
    width: 200px; height: 200px; opacity: 0.18; pointer-events: none; z-index: 0;
  }
  .home-mandala svg { width: 100%; height: 100%; }
  .home-hero-content { position: relative; z-index: 1; }
  .home-greeting { font-size: 1.3rem; font-weight: 700; color: white; }
  .home-hero-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 3px; }
  .home-name { font-size: 1.4rem; font-weight: 700; color: white; margin-top: 4px; }
  .home-stats { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
  .home-stat { text-align: left; }
  .home-stat-val { font-size: 1.5rem; font-weight: 700; color: white; }
  .home-stat-lbl { font-size: 0.62rem; color: rgba(255,255,255,0.55); margin-top: 1px; text-transform: uppercase; letter-spacing: 0.4px; }
  .home-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.18); }

  /* Scrollable content area */
  .home-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 16px 0;
  }
  .home-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; margin-top: 20px;
  }
  .home-section-header span { font-size: 0.88rem; font-weight: 600; }
  .home-section-header button { font-size: 0.72rem; color: var(--primary); font-weight: 500; background: none; border: none; cursor: pointer; }

  /* Notification cards */
  .home-notif-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-radius: var(--radius);
    padding: 13px 14px; border: 1px solid var(--border);
    margin-bottom: 8px; cursor: pointer; transition: transform 0.15s;
  }
  .home-notif-card:active { transform: scale(0.98); }
  .home-notif-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
  }
  .home-notif-icon.heart { background: rgba(163,0,35,0.08); color: var(--primary); }
  .home-notif-icon.match { background: rgba(16,185,129,0.08); color: var(--success); }
  .home-notif-body { flex: 1; min-width: 0; }
  .home-notif-title { font-size: 0.8rem; font-weight: 500; line-height: 1.3; }
  .home-notif-sub { font-size: 0.68rem; color: var(--text-secondary); margin-top: 2px; }
  .home-notif-time { font-size: 0.65rem; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }

  /* Profile completion */
  .home-progress-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 16px; border: 1px solid var(--border); margin-top: 20px;
  }
  .home-progress-header { display: flex; align-items: center; justify-content: space-between; }
  .home-progress-header span { font-size: 0.82rem; font-weight: 600; }
  .home-progress-pct { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
  .home-progress-bar { height: 6px; background: var(--bg); border-radius: 3px; margin: 10px 0 8px; overflow: hidden; }
  .home-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 3px; transition: width 0.5s ease; }
  .home-progress-hint { font-size: 0.7rem; color: var(--text-secondary); }

  /* Suggested profiles scroll */
  .home-profile-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 6px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .home-profile-scroll::-webkit-scrollbar { display: none; }
  .home-mini-card {
    min-width: 130px; max-width: 130px; scroll-snap-align: start;
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    flex-shrink: 0; cursor: pointer; transition: transform 0.15s;
  }
  .home-mini-card:active { transform: scale(0.96); }
  .home-mini-photo {
    width: 100%; aspect-ratio: 3/4;
    background: linear-gradient(135deg, #fde8e8, #f3e8ff);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .home-mini-badge {
    position: absolute; top: 7px; right: 7px;
    background: var(--success); color: white;
    font-size: 0.55rem; font-weight: 600; padding: 2px 7px; border-radius: 50px;
  }
  .home-mini-info { padding: 8px 10px 10px; }
  .home-mini-name { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .home-mini-meta { font-size: 0.65rem; color: var(--text-secondary); margin-top: 2px; }

  /* Empty state */
  .home-empty { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
  .home-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.3; color: var(--primary); }

/* ═══════════════════════════════════════════════════
   CAMPAIGNS ADMIN PAGE
═══════════════════════════════════════════════════ */
#campaigns-page {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 120;
  flex-direction: column;
  overflow: hidden;
}

.camp-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.camp-header h3 { flex: 1; font-size: 1rem; font-weight: 700; color: var(--text); }
.camp-back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer;
}
.camp-add-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--primary); color: white; border: none;
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit;
}

.camp-scroll { flex: 1; overflow-y: auto; padding-bottom: 32px; }

/* Stats */
.camp-stats-row { display: flex; gap: 10px; padding: 14px 16px 10px; }
.camp-stat {
  flex: 1; background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border); padding: 12px; text-align: center;
}
.camp-stat-val { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.camp-stat-lbl { font-size: 0.65rem; color: var(--text-secondary); margin-top: 2px; }

.camp-section-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); padding: 8px 16px 4px;
}

/* List */
#camp-list { padding: 0 16px; }
.camp-spinner { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 1.2rem; }
.camp-item {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: opacity 0.2s;
}
.camp-item.camp-inactive { opacity: 0.55; }
.camp-item-bar { height: 3px; }
.camp-item-body { padding: 12px 14px; }
.camp-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 8px; border-radius: 50px; margin-bottom: 5px;
}
.camp-title { font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.camp-preview {
  font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px;
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.camp-item-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.camp-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 0.65rem; color: var(--text-secondary);
}
.camp-chip {
  background: var(--bg); border-radius: 50px; padding: 2px 7px;
  font-size: 0.6rem; display: inline-flex; align-items: center; gap: 3px;
}
.camp-chip-mono { font-family: 'Courier New', monospace; font-size: 0.58rem; }
.camp-actions { display: flex; align-items: center; gap: 8px; }
.camp-action-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-secondary); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.camp-action-danger:active { color: var(--danger); border-color: var(--danger); }
.camp-share-row {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px 10px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.camp-share-url {
  flex: 1; font-size: 0.62rem; font-family: 'Courier New', monospace;
  color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.camp-share-btn {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  background: var(--surface); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text-secondary); cursor: pointer;
}
.camp-share-wa { color: #25D366; border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.07); }
.camp-empty { text-align: center; padding: 56px 32px; color: var(--text-secondary); }
.camp-empty i { font-size: 2rem; display: block; margin-bottom: 12px; opacity: 0.25; }
.camp-empty p { font-size: 0.85rem; line-height: 1.6; }

/* Toggle */
.camp-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; }
.camp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.camp-toggle-slider {
  position: absolute; inset: 0; border-radius: 50px;
  background: var(--border); transition: background 0.2s;
}
.camp-toggle-slider::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; top: 3px; left: 3px; transition: transform 0.2s;
}
.camp-toggle input:checked + .camp-toggle-slider { background: var(--success); }
.camp-toggle input:checked + .camp-toggle-slider::after { transform: translateX(16px); }

/* Bottom sheet */
.camp-overlay {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.camp-sheet {
  width: 100%; background: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.32,0.72,0,1);
}
.camp-sheet.camp-sheet-open { transform: translateY(0); }
.camp-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 0; flex-shrink: 0;
}
.camp-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.camp-sheet-header h3 { font-size: 1rem; font-weight: 700; }
.camp-icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer;
}
.camp-sheet-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.camp-sheet-footer {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-shrink: 0;
}
.camp-btn {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  border: none; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.camp-btn-outline { background: var(--bg); border: 1.5px solid var(--border); color: var(--text); }
.camp-btn-primary { background: var(--primary); color: white; }

/* Form */
.camp-field { display: flex; flex-direction: column; gap: 5px; }
.camp-field label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.camp-field input, .camp-field textarea {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 0.85rem; font-family: inherit; color: var(--text);
  outline: none; transition: border-color 0.2s; width: 100%;
}
.camp-field input:focus, .camp-field textarea:focus { border-color: var(--primary); }
.camp-field textarea { resize: vertical; min-height: 72px; }
.camp-field-hint { font-size: 0.68rem; color: var(--text-secondary); }
.camp-field-row { flex-direction: row; align-items: center; justify-content: space-between; }
.camp-req { color: var(--danger); }
.camp-hint-label { color: var(--text-secondary); font-weight: 400; }
.camp-type-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.camp-type-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.72rem; font-weight: 600;
  background: var(--bg); color: var(--text-secondary);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}

/* ═══════════════════════════════════════════════════
   HOME — CAMPAIGN STRIP
═══════════════════════════════════════════════════ */
.home-camp-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-camp-strip::-webkit-scrollbar { display: none; }

.home-camp-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.home-camp-card:active { transform: scale(0.97); }
.home-camp-card-bar { height: 4px; flex-shrink: 0; }
.home-camp-card-inner { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.home-camp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 2px 7px; border-radius: 50px;
  align-self: flex-start; margin-bottom: 2px;
}
.home-camp-counter { margin-left: 4px; font-weight: 500; opacity: 0.7; }
.home-camp-title {
  font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.25;
}
.home-camp-body {
  font-size: 0.72rem; color: var(--text-secondary); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-camp-cta {
  font-size: 0.72rem; font-weight: 700; margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* Dots */
.home-camp-dots {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 2px 0 12px;
}
.home-camp-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); transition: all 0.2s;
}
.home-camp-dot.active { background: var(--primary); width: 14px; border-radius: 3px; }

/* ── repeatable rows & type hint (admin form) ── */
.camp-rep-item {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 10px 10px 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.camp-rep-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.camp-rep-fields input, .camp-rep-fields textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 7px 10px;
  font-size: 0.8rem; font-family: inherit; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.camp-rep-fields input:focus, .camp-rep-fields textarea:focus { border-color: var(--primary); }
.camp-rep-fields textarea { resize: vertical; min-height: 52px; }
.camp-rep-remove {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: none; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--text-secondary); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.camp-rep-remove:active { border-color: var(--danger); color: var(--danger); }
.camp-add-rep-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; width: 100%;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; margin-top: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.camp-add-rep-btn:active { border-color: var(--primary); color: var(--primary); }
.camp-type-hint {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 0.72rem; color: var(--text-secondary); line-height: 1.5;
  display: flex; gap: 8px; align-items: flex-start;
}
.camp-type-hint i { color: var(--primary); margin-top: 1px; flex-shrink: 0; }
.camp-field-group-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); padding: 2px 0;
}
