:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #f0f9ff;
  --primary-border: #bae6fd;
  --accent: #38bdf8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --vip-gold: #f59e0b;
  --vip-bg: #fef3c7;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 14px;
  --shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  padding-bottom: 75px; /* Space for Bottom Nav */
  min-height: 100vh;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.drawer-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border-radius: 8px;
}
.drawer-trigger-btn:hover {
  background: var(--primary-light);
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-logo span {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-boost {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

/* Kategori Marquee / Horizontal Chips */
.category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-chip.active, .cat-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Main Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

/* Feed Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Profile Card */
.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.15);
  border-color: var(--primary-border);
}

.profile-card.vip {
  border: 1.5px solid #fcd34d;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 110%; /* Rasio foto portrait */
  background: #e2e8f0;
  overflow: hidden;
}
.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vip-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.intent-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.card-age {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.card-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-headline {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.tag-item {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.btn-action-chat {
  flex: 1;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-action-chat:hover {
  background: var(--primary);
  color: #fff;
}

.btn-action-like {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}
.btn-action-like:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: scale(1.05);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 990;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  height: 100%;
}
.nav-tab-item.active {
  color: var(--primary);
}
.nav-tab-item svg {
  width: 22px;
  height: 22px;
}

/* Center Highlight Pill */
.nav-tab-center {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff !important;
  border-radius: 24px;
  height: 44px;
  padding: 0 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  margin: 0 4px;
}
.nav-tab-center svg {
  stroke: #fff;
}

/* Mobile Drawer Sidebar */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.drawer-sidebar.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.drawer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.drawer-tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.drawer-nav-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-grow: 1;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}
.drawer-item:hover, .drawer-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.drawer-item svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}
