:root {
  --bg-main: #0c0e15;
  --bg-content: #121520;
  --bg-card: #181d2c;
  --bg-card-hover: #20273a;
  --bg-sidebar: #151926;
  --bg-glass: rgba(24, 29, 44, 0.85);
  
  --primary-gradient: linear-gradient(135deg, #fd267d 0%, #ff6036 50%, #7928ca 100%);
  --accent-pink: #fd267d;
  --accent-orange: #ff6036;
  --accent-purple: #a855f7;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(253, 38, 125, 0.45);
  
  --text-main: #ffffff;
  --text-sub: #e2e8f0;
  --text-muted: #94a3b8;
}

/* CUSTOM DARK THEME SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0c0e15;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 2px solid #0c0e15;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fd267d, #7928ca);
}

/* FIREFOX SCROLLBAR */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) #141722;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(253, 38, 125, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(121, 40, 202, 0.05) 0%, transparent 60%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MODERN FLOATING ISLAND NAVBAR */
.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 21, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  height: 74px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.portal-nav-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND LOGO */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  cursor: pointer;
}
.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 18px rgba(253, 38, 125, 0.4);
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo-text span {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}
.brand-logo-text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* PURE MINIMALIST TRANSPARENT NAVIGATION (NO BACKGROUND, NO BORDER) */
.portal-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  border: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
}

.nav-link-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  box-shadow: none !important;
}

.nav-icon-circle {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: inherit;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  background: transparent !important;
  color: #ffffff;
}

.nav-link-btn.active {
  background: transparent !important;
  color: #fd267d !important;
  font-weight: 600;
  border: none !important;
  box-shadow: none !important;
}

.nav-link-btn.active .nav-icon-circle {
  color: #fd267d !important;
}

.nav-bubble-count {
  background: #fd267d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 2px;
}

/* USER ACTION BUTTONS (TRANSPARENT & CLEAN) */
.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-action-icon-btn {
  height: 36px;
  border-radius: 4px;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  padding: 6px 8px;
  cursor: pointer;
}

.nav-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff;
}

.nav-action-icon-btn.logout:hover {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #f87171 !important;
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent !important;
  border: none !important;
  padding: 4px 6px;
  border-radius: 0;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  box-shadow: none !important;
}

.nav-user-pill:hover {
  background: transparent !important;
  opacity: 0.85;
}
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}
.nav-avatar-ring {
  position: relative;
  width: 36px;
  height: 36px;
}
.nav-avatar {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  border: 2px solid #fd267d;
}
.nav-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #10b981;
  border: 2px solid #090a0f;
}
.nav-user-info-box {
  display: flex;
  flex-direction: column;
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.nav-user-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-nav-register {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(253, 38, 125, 0.35);
}

/* MAIN CONTENT CONTAINER */
.portal-main-content {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 5px;
  padding-top: 20px;
  flex: 1;
  position: relative;
}

/* SEARCH & FILTER BAR (KÖŞELİ) */
.portal-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.1fr 1.1fr 1.1fr auto;
  gap: 10px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.filter-input, .filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
}
.filter-input:focus, .filter-select:focus {
  border-color: #fd267d;
  background: rgba(253, 38, 125, 0.05);
}
.filter-select option {
  background: #12151e;
  color: #fff;
}

.btn-filter-search {
  background: var(--primary-gradient);
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  box-shadow: 0 4px 14px rgba(253, 38, 125, 0.35);
  transition: all 0.2s ease;
}
.btn-filter-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(253, 38, 125, 0.5);
}

/* POPULAR MEMBERS SLIDER */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}
/* POPULAR MEMBERS SLIDER (MEKÂNIN ENLERİ - FULL PHOTO COVER) */
.featured-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.featured-card {
  flex: 0 0 115px;
  height: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: #fd267d;
  box-shadow: 0 8px 25px rgba(253, 38, 125, 0.35);
}
.featured-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-card:hover .featured-card-bg {
  transform: scale(1.06);
}
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 20, 0.95) 0%, rgba(12, 14, 20, 0.4) 50%, rgba(12, 14, 20, 0.1) 100%);
  pointer-events: none;
}
.featured-card-content {
  position: relative;
  z-index: 2;
  padding: 8px 10px;
  text-align: left;
}
.featured-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.featured-sub {
  font-size: 11px;
  color: #38bdf8;
  margin-top: 2px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.featured-online-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #10b981;
  border: 1.5px solid #141722;
  box-shadow: 0 0 8px #10b981;
  z-index: 3;
}
.featured-top-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(253, 38, 125, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  z-index: 3;
  line-height: 1;
}

/* MEMBERS GRID (KÖŞELİ KARTLAR) */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}
.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.member-photo-box {
  width: 100%;
  height: 270px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.member-card:hover .member-photo {
  transform: scale(1.03);
}
.member-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.95) 0%, transparent 100%);
  pointer-events: none;
}
.member-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.member-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.member-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.member-bio {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.member-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn-card-action {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-card-msg {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: #fff;
}
.btn-card-msg:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-card-like {
  background: rgba(253, 38, 125, 0.12);
  border: 1px solid rgba(253, 38, 125, 0.3);
  color: #fd267d;
}
.btn-card-like.liked, .btn-card-like:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; }

/* MESSAGES PAGE (ALIGNED WITH HEADER - 1320PX) */
.messages-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 30px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  height: 720px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.conversations-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.01);
}
.conversations-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.conversations-list { flex: 1; overflow-y: auto; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.15s ease;
}
.conv-item:hover, .conv-item.active { background: rgba(255,255,255,0.05); }
.conv-item.active { border-left: 3px solid #fd267d; }
.conv-avatar { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.conv-info { flex: 1; overflow: hidden; }
.conv-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.conv-last { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-pane { display: flex; flex-direction: column; height: 100%; background: #0b0d13; }
.chat-pane-header { padding: 14px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.015); }
.chat-messages-area { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-input-row { padding: 14px 20px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; background: rgba(255, 255, 255, 0.015); }

/* MODAL OVERLAYS (KÖŞELİ) */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px); z-index: 1000;
  display: none; justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.open { display: flex; }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* INSTAGRAM-STYLE 2-COLUMN PHOTO LIGHTBOX WITH COMMENTS */
.insta-modal-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: 100%;
  max-width: 960px;
  height: 600px;
  max-height: 90vh;
  background: #0f121b;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.insta-modal-photo-side {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
}
.insta-modal-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.insta-modal-info-side {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #12151e;
  border-left: 1px solid var(--border-color);
}
.insta-modal-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.insta-modal-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fd267d;
}
.insta-modal-username {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.insta-modal-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.btn-modal-close-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}
.btn-modal-close-icon:hover { color: #fff; }

.insta-modal-comments-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.insta-modal-comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.insta-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.insta-comment-content {
  flex: 1;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  word-break: break-word;
}
.insta-comment-author {
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
}
.insta-comment-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.insta-modal-actions-bar {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}
.insta-modal-action-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
}
.btn-modal-action-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-modal-action-icon:hover { transform: scale(1.15); }
.insta-modal-likes-count {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.insta-modal-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.insta-modal-input-form {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.insta-modal-input-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
.insta-modal-input-form input::placeholder {
  color: var(--text-muted);
}
.btn-modal-send-comment {
  background: none;
  border: none;
  color: #fd267d;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}
.btn-modal-send-comment:hover { color: #ff6036; }

@media (max-width: 768px) {
  #photo-viewer-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  .insta-modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  .insta-modal-photo-side {
    height: 48vh !important;
    max-height: 48vh !important;
    width: 100%;
    background: #000;
  }
  .insta-modal-info-side {
    height: 52vh !important;
    max-height: 52vh !important;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .insta-modal-comments-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* HAMBURGER BUTTON & SLIDE-OUT DRAWER */
.btn-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fd267d;
}

@media (max-width: 991px) {
  .btn-hamburger { display: flex; }
  .portal-nav-menu { display: none; }
  .d-desktop-only { display: none !important; }
}

.mobile-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer-content {
  position: absolute; top: 0; right: 0; width: 320px; max-width: 85vw; height: 100%;
  background: #0d1017; border-left: 1px solid var(--border-color); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}
.mobile-drawer-overlay.open .mobile-drawer-content { transform: translateX(0); }
.mobile-drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.btn-drawer-close {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer-user {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color); padding: 12px; border-radius: 16px;
}
.drawer-user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fd267d; }
.drawer-user-name { font-size: 14px; font-weight: 800; color: #fff; }
.drawer-user-city { font-size: 12px; color: var(--text-muted); }
.mobile-drawer-links { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }
.drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  color: var(--text-sub); text-decoration: none !important; font-size: 14px; font-weight: 700; background: transparent; transition: all 0.2s ease;
}
.drawer-link i { font-size: 20px; color: #fd267d; }
.drawer-link:hover, .drawer-link.active { background: rgba(255, 255, 255, 0.06); color: #fff; }
.drawer-link.active { background: rgba(253, 38, 125, 0.15); border: 1px solid rgba(253, 38, 125, 0.3); color: #fff; }

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; width: 100vw; height: 62px;
  background: rgba(9, 10, 15, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color); z-index: 999; justify-content: space-around; align-items: center; padding: 0 10px;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted);
  text-decoration: none !important; font-size: 11px; font-weight: 700; transition: all 0.2s ease; flex: 1; text-align: center;
}
.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item.active { color: #fd267d; }
.mobile-nav-item.active i { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ULTRA-MODERN MOBILE APP EXPERIENCE */
@media (max-width: 991px) {
  .portal-navbar {
    padding: 0 16px;
    height: 64px;
    background: rgba(9, 10, 15, 0.94);
  }
  .brand-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 10px;
  }
  .brand-logo-text span {
    font-size: 18px;
  }
  .brand-logo-text small {
    display: none;
  }
  
  .portal-main-content {
    padding: 14px;
    margin-bottom: 76px; /* Space for bottom floating bar */
  }

  /* Filter Mobile Accordion */
  .portal-filter-card {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .filter-group:first-child {
    grid-column: span 2;
  }
  .btn-filter-search {
    grid-column: span 2;
    width: 100%;
    height: 42px;
    justify-content: center;
    font-size: 14px;
  }

  /* Members Grid in Tablet */
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .member-photo-box {
    height: 220px;
  }
  .member-card-body {
    padding: 12px 14px;
  }
  .member-title {
    font-size: 15px;
  }
  .member-bio {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
  }
  .btn-card-action {
    padding: 8px 6px;
    font-size: 12px;
    border-radius: 4px;
  }

  /* Instagram Profile Mobile */
  .insta-header {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px 14px;
  }
  .insta-username-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .insta-stats-row {
    justify-content: center;
    gap: 24px;
  }
  .insta-tag-chips {
    justify-content: center;
  }
  .insta-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  /* Messages Mobile (Edge-to-Edge Full Screen Mode) */
  body:has(.messages-layout) .portal-main-content {
    padding: 0 !important;
    margin-bottom: 70px !important;
  }
  .messages-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 134px) !important;
    min-height: auto;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  .messages-layout.has-active-chat .conversations-sidebar {
    display: none !important;
  }
  .messages-layout.has-active-chat .chat-pane {
    display: flex !important;
    height: 100% !important;
  }
  .messages-layout.has-active-chat .btn-chat-back-mobile {
    display: inline-flex !important;
  }

  .messages-layout.no-active-chat .conversations-sidebar {
    display: flex !important;
    border-right: none;
    height: 100% !important;
  }
  .messages-layout.no-active-chat .chat-pane {
    display: none !important;
  }

  .chat-input-row {
    padding: 10px 12px;
    gap: 8px;
  }
  .chat-input-field {
    flex: 1 !important;
    width: 100% !important;
    height: 44px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
  }
  .btn-chat-send {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .btn-chat-send .btn-send-text {
    display: none !important;
  }

  /* Profile Edit Mobile 2-Column Collapse */
  div[style*="grid-template-columns: 360px 1fr"],
  div[style*="grid-template-columns:360px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Floating Bottom App Bar (ANGULAR KÖŞELİ) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 60px;
    background: rgba(18, 21, 30, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 576px) {
  .members-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .member-photo-box {
    height: 320px;
  }
  .featured-slider {
    gap: 10px;
  }
  .featured-card {
    flex: 0 0 105px;
    padding: 10px 6px;
  }
  .featured-avatar-box {
    width: 52px;
    height: 52px;
  }
  .featured-name {
    font-size: 11.5px;
  }
  .insta-avatar-wrapper {
    width: 100px;
    height: 100px;
  }
  .insta-username {
    font-size: 18px;
  }
  .insta-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
}
