*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --of-blue: #00aff0;
  --of-blue-hover: #0091d9;
  --bg: #f7f7f8;
  --white: #ffffff;
  --border: #e8e8e8;
  --text: #242529;
  --muted: #8a96a3;
  --sidebar-w: 268px;
  --header-h: 60px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --luxe-dark: #0f0e14;
  --luxe-surface: #17161f;
  --luxe-border: rgba(255, 255, 255, 0.07);
  --luxe-gold: #c9a45c;
  --luxe-gold-soft: rgba(201, 164, 92, 0.14);
  --luxe-text: #f4f2f7;
  --luxe-muted: #8b8798;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #c9a45c, #a67c3a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1408;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(201, 164, 92, 0.3);
}

.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0 24px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .15s, background .15s;
}

.header-search input:focus {
  border-color: var(--of-blue);
  background: var(--white);
}

.header-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

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

.header-actions .icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.header-actions .icon-btn:hover { background: #f0f0f0; color: var(--text); }

/* ── Layout ── */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

.sidebar {
  width: 268px;
  min-width: 268px;
  background: linear-gradient(180deg, #0f0e14 0%, #13121a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 18px 24px;
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-sizing: border-box;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.sidebar-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c9a45c 0%, #e8c878 50%, #a67c3a 100%);
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(201, 164, 92, 0.25);
}

.sidebar-brand-text {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f2f7;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #8b8798;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-label {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b8798;
  padding: 0 12px;
  margin: 18px 0 10px;
  text-align: left;
}

.sidebar-label:first-of-type { margin-top: 0; }

.sidebar-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8b8798;
  margin-bottom: 4px;
  transition: color .2s, background .2s;
  position: relative;
  border: 1px solid transparent;
  text-align: left;
  box-sizing: border-box;
}

.sidebar .sidebar-nav a .nav-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.85;
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sidebar .sidebar-nav a:hover {
  color: #f4f2f7;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.sidebar .sidebar-nav a.active {
  color: #f4f2f7;
  background: rgba(201, 164, 92, 0.14);
  border-color: rgba(201, 164, 92, 0.22);
  box-shadow: inset 3px 0 0 #c9a45c;
}

.sidebar .sidebar-nav a.active .nav-svg {
  stroke: #c9a45c;
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  width: 100%;
}

.sidebar-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,164,92,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(201, 164, 92, 0.2);
}

.sidebar-premium-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9a45c, #a67c3a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-premium-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4f2f7;
  margin-bottom: 2px;
}

.sidebar-premium-text span {
  font-size: 0.72rem;
  color: #8b8798;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px;
  max-width: 1100px;
}

/* ── Home feed ── */
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn,
a.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--of-blue);
  border-color: var(--of-blue);
  color: white;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}

.model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.model-card-cover {
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.model-card-cover .online-dot {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.55);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.model-card-body {
  padding: 0 16px 16px;
  position: relative;
}

.model-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-top: -36px;
  object-fit: cover;
  background: #ddd;
}

.model-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: var(--of-blue);
  font-size: 0.85rem;
}

.model-card-username {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.model-card-bio {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.model-card-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.model-card-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: blur(22px) brightness(0.75);
  transform: scale(1.1);
}

.model-card-preview .preview-free img {
  filter: none;
  transform: none;
}

.model-card-preview .preview-locked {
  position: relative;
}

.model-card-preview .preview-locked::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1rem;
}

.model-card-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--of-blue);
}

/* ── Profile page ── */
.profile-header {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.profile-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.profile-info {
  padding: 0 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.profile-avatar-wrap { margin-top: -50px; }

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--white);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-details { flex: 1; min-width: 200px; padding-top: 8px; }

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-username { color: var(--muted); font-size: 0.9rem; }

.profile-bio {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #444;
  max-width: 500px;
}

.profile-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .12s, transform .1s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

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

.btn-primary:hover { background: var(--of-blue-hover); }

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

.btn-outline:hover { background: #f5f5f5; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 16px;
}

.tab {
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab.active {
  color: var(--of-blue);
  border-bottom-color: var(--of-blue);
}

/* Media grid */
.media-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.media-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-item.locked img {
  filter: blur(28px) brightness(0.7);
  transform: scale(1.12);
}

.media-item.locked .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.media-item.locked .lock-overlay .lock-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.media-item.free .free-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--of-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.media-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.more-photos-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  border-radius: 8px;
  border: 2px dashed var(--border);
  background: linear-gradient(145deg, rgba(0,175,240,0.06), rgba(255,61,110,0.06));
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-align: center;
  padding: 20px;
}

.more-photos-btn:hover {
  background: rgba(0, 175, 240, 0.12);
  border-color: var(--of-blue);
}

.more-photos-btn .more-icon { font-size: 2.2rem; }

.more-photos-btn .more-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--of-blue);
}

.more-photos-btn .more-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sticky unlock bar */
.unlock-bar {
  position: fixed;
  bottom: 0; left: var(--sidebar-w); right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.unlock-bar-text {
  font-size: 0.9rem;
}

.unlock-bar-text strong { color: var(--of-blue); }

.unlock-bar .btn-primary {
  padding: 12px 28px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-wrap { position: relative; }

/* Profile page bottom padding for sticky bar */
.profile-page .main { padding-bottom: 90px; }

/* Empty state */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .unlock-bar { left: 0; }
  .header-search { display: none; }
}

@media (max-width: 500px) {
  .main { padding: 16px; }
  .models-grid { grid-template-columns: 1fr; }
  .profile-info { flex-direction: column; align-items: flex-start; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
