/* css/style.css */
/* UlaChat — Dark Magenta / Deep Navy Modern Mobile Chat Theme */
/* Matches UlaChat Reference UI Design (6 Screens) */

:root {
  --bg-dark: #060814;
  --bg-dark-secondary: #0b0e22;
  --bg-card: #0d122b;
  --bg-surface: #13193a;
  --bg-surface-hover: #1c244f;
  --border-subtle: rgba(139, 92, 246, 0.16);
  --border-accent: rgba(255, 42, 133, 0.3);
  --border-glow: rgba(0, 229, 255, 0.25);
  
  --primary-pink: #ff2a85;
  --primary-magenta: #d90466;
  --neon-cyan: #00e5ff;
  --neon-blue: #38bdf8;
  --accent-purple: #7c3aed;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --glow-pink: 0 0 16px rgba(255, 42, 133, 0.35);
  --glow-cyan: 0 0 16px rgba(0, 229, 255, 0.35);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.25);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #150d30 0%, #060814 60%), #060814;
  color: var(--text-main);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Mobil Uygulama Deneyimi: Scrollbar'ı gizle, kaydırma işlevini tam aktif tut */
html,
body,
.phone-shell,
#screen,
.main-tab-content,
.ref-scroll-area,
.home-scroll-area,
.chat-messages-scroll,
.lang-grid-2col,
.lang-vertical-list {
  scrollbar-width: none; /* Firefox, Chrome 121+, Edge 121+, Safari 18+ */
  -ms-overflow-style: none; /* IE ve Edge Legacy */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.phone-shell::-webkit-scrollbar,
#screen::-webkit-scrollbar,
.main-tab-content::-webkit-scrollbar,
.ref-scroll-area::-webkit-scrollbar,
.home-scroll-area::-webkit-scrollbar,
.chat-messages-scroll::-webkit-scrollbar,
.lang-grid-2col::-webkit-scrollbar,
.lang-vertical-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

button, input, textarea {
  font: inherit;
  border: none;
  background: none;
}

/* App Shell & Compact Phone Frame (Centered on Desktop) */
.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.auth-screen, .phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #060814;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(124, 58, 237, 0.12);
}

.phone-shell {
  padding-bottom: 60px; /* Space for compact bottom nav */
}

/* ============================================================
   SCREEN 1: GİRİŞ EKRANI (Login Screen - Reference Top-Left)
   ============================================================ */

.auth-screen {
  justify-content: space-between;
  align-items: center;
  padding: 48px 24px 36px;
  background: radial-gradient(circle at 50% 25%, rgba(217, 4, 102, 0.2) 0%, rgba(124, 58, 237, 0.15) 35%, #060814 80%), #060814;
  text-align: center;
}

.auth-top-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.auth-3d-logo-wrap {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 25px rgba(255, 42, 133, 0.45));
}

.auth-brand-name {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-name span {
  color: var(--primary-pink);
}

.auth-slogan {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -6px;
  letter-spacing: 0.3px;
}

.auth-action-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}

.google-login-btn {
  width: 100%;
  max-width: 320px;
  height: 52px;
  border-radius: 28px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

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

.google-btn-icon {
  width: 20px;
  height: 20px;
}

.auth-security-note {
  font-size: 12px;
  color: var(--text-dim);
}

.auth-bottom-community {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-avatars-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #060814;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.auth-avatar-mini:first-child {
  margin-left: 0;
}

.auth-community-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  text-align: center;
}

.auth-error-text {
  color: #ff4757;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

/* ============================================================
   KOMPAKT ALT GEZİNME MENÜSÜ (Bottom Nav - Compact)
   ============================================================ */

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(6, 8, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #818cf8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 12px;
  border-radius: 12px;
  position: relative;
}

.nav-tab-btn .nav-icon-wrap {
  position: relative;
  font-size: 18px;
  line-height: 1;
}

.nav-tab-btn small {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s;
}

.nav-tab-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 14px;
  text-align: center;
  line-height: 1.1;
  border: 1px solid #060814;
}

.nav-tab-btn.active {
  color: var(--primary-pink);
}

.nav-tab-btn.active small {
  color: var(--primary-pink);
  font-weight: 700;
}

.nav-tab-btn.active .nav-icon-wrap {
  filter: drop-shadow(0 0 8px rgba(255, 42, 133, 0.6));
}

/* ============================================================
   SCREEN 2: SOHBETLER EKRANI (Chats Tab - Reference Top-Center)
   ============================================================ */

.main-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
  overflow-y: auto;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.app-brand-logo span {
  color: var(--primary-pink);
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.header-round-btn:hover {
  background: rgba(255, 42, 133, 0.15);
  border-color: rgba(255, 42, 133, 0.35);
}

.header-round-btn .btn-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #060814;
  box-sizing: border-box;
}

/* Compact Pill Search Bar */
.search-pill-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.search-pill-input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  background: #11152d;
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #ffffff;
  padding: 0 16px 0 38px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}

.search-pill-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
  background: #151a37;
}

.search-pill-input::placeholder {
  color: #64748b;
}

.search-pill-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}

/* Animated Expandable Search Container */
.chat-search-expand-wrap {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  overflow: hidden;
  margin-bottom: 0;
  pointer-events: none;
  transition: max-height 220ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease,
              transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
              margin-bottom 200ms ease;
}

.chat-search-expand-wrap.open {
  max-height: 52px;
  opacity: 1;
  transform: translateY(0) scale(1);
  margin-bottom: 12px;
  pointer-events: auto;
}

/* Compact Search Bar inside Expand Wrap */
.chat-search-compact-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0 12px;
  height: 36px;
  transition: all 0.2s ease;
  cursor: text;
}

.chat-search-compact-bar:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 42, 133, 0.45);
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.2);
}

.chat-search-compact-icon {
  font-size: 13.5px;
  margin-right: 8px;
  opacity: 0.65;
  pointer-events: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.chat-search-compact-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  height: 100%;
  font-family: inherit;
}

.chat-search-compact-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.header-round-btn.active {
  background: rgba(255, 42, 133, 0.2);
  border-color: rgba(255, 42, 133, 0.5);
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.25);
}

/* Compact Chat Rows List */
.chat-rows-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease;
  user-select: none;
}

.chat-row-item:hover, .chat-row-item:active {
  background: rgba(255, 255, 255, 0.04);
}

.chat-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #d90466);
}

.online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #060814;
}

.chat-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.chat-row-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row-time {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.chat-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-row-msg {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-unread-badge {
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   SCREEN 3: SOHBET / MESAJ EKRANI (Chat Conversation - Reference Top-Right)
   ============================================================ */

.chat-conversation-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  background: #060814;
}

.chat-nav-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(6, 8, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  z-index: 30;
}

.chat-header-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin-left: 4px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-status {
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 500;
}

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

.chat-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s;
}

.chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.chat-header-btn.delete-btn {
  color: #ff4757;
}

.chat-header-btn.delete-btn:hover {
  background: rgba(255, 71, 87, 0.15);
}

/* Chat Messages Feed */
.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.incoming-row {
  justify-content: flex-start;
}

.outgoing-row {
  justify-content: flex-end;
}

.chat-bubble {
  width: fit-content;
  max-width: 80%;
  padding: 6px 9px 5px 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Gelen Mesaj Balonu (Dark Navy / Grey) */
.chat-bubble.incoming {
  background: #151b33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 14px 3px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Giden Mesaj Balonu (Pembe -> Magenta Gradient) */
.chat-bubble.outgoing {
  background: linear-gradient(135deg, #ff2a85 0%, #d90466 100%);
  border-radius: 14px 14px 3px 14px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 4, 102, 0.35);
}

.chat-bubble-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.chat-msg-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.msg-orig-text {
  font-size: 14px;
  line-height: 1.35;
  color: #ffffff;
}

/* Çeviri Metni Görünümü (Cyan) */
.msg-trans-text {
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 1px;
}

.incoming .msg-trans-text {
  color: var(--neon-cyan);
}

.outgoing .msg-trans-text {
  color: #ffd1e6; /* Soft light pink on magenta */
}

.chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 1px;
}

.bubble-time-text {
  font-size: 9.5px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
}

.bubble-check-icon {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.msg-menu-trigger {
  opacity: 0.5;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  padding: 0 1px;
  line-height: 1;
  transition: opacity 0.15s;
}

.msg-menu-trigger:hover {
  opacity: 1;
}

.chat-toggle-trans-btn {
  align-self: flex-start;
  font-size: 11px;
  color: var(--neon-cyan);
  cursor: pointer;
  margin-top: 4px;
  padding: 2px 0;
  text-decoration: underline;
  opacity: 0.85;
}

.outgoing .chat-toggle-trans-btn {
  color: #ffe4f0;
}

/* Compact Bottom Input Bar (Reference Right-Top) */
.chat-input-container {
  padding: 8px 12px;
  background: rgba(6, 8, 20, 0.95);
  border-top: 1px solid rgba(139, 92, 246, 0.14);
}

/* Live Translation Character Balance & Counter Hint Bar */
.chat-balance-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 10px 6px 10px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.chat-balance-hint-bar .hint-balance-val {
  color: #c084fc;
}

.chat-balance-hint-bar .hint-char-counter {
  color: #cbd5e1;
}

.chat-balance-hint-bar .hint-calc-val {
  color: #38bdf8;
  font-weight: 600;
}

.chat-balance-hint-bar.same-lang {
  color: #38bdf8;
}

.chat-balance-hint-bar.same-lang .hint-lang-status {
  color: #38bdf8;
  font-weight: 500;
}

.chat-balance-hint-bar.insufficient {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.chat-balance-hint-bar.insufficient .hint-balance-val {
  color: #fca5a5;
}

.chat-balance-hint-bar.insufficient .hint-calc-val {
  color: #ef4444;
  font-weight: 700;
}

.chat-compact-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  border-radius: 22px;
  background: #11152d;
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0 4px 0 10px;
  transition: border-color 0.2s;
}

.chat-compact-bar:focus-within {
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
}

.chat-compact-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  background: transparent;
}

.chat-compact-input::placeholder {
  color: #64748b;
}

.input-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}

.input-tool-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.send-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-pink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(255, 42, 133, 0.4);
}

.send-round-btn:hover {
  background: #ff4797;
  transform: scale(1.05);
}

.send-round-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Attachment Menu */
.chat-attach-wrapper {
  position: relative;
}

.chat-attach-menu {
  position: absolute;
  bottom: 46px;
  right: 0;
  background: #11152d;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 40;
}

.chat-attach-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-attach-menu-item:hover {
  background: rgba(255, 42, 133, 0.15);
  color: var(--primary-pink);
}

/* ============================================================
   SCREEN 4: KİŞİLER EKRANI (Contacts Screen - Reference Bottom-Left)
   ============================================================ */

.contacts-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.contacts-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.contacts-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px;
}

.contacts-list-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.18s;
  cursor: pointer;
}

.contact-user-row:hover {
  background: #14193c;
  border-color: rgba(255, 42, 133, 0.25);
}

.contact-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.contact-row-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-row-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-add-pill-btn {
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

.contact-add-pill-btn:hover {
  background: #ff4797;
  transform: scale(1.04);
}

/* ============================================================
   SCREEN 5: DİL SEÇİM MODALI (Language Modal - Reference Bottom-Center)
   ============================================================ */

.lang-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.lang-modal-card {
  width: min(100%, 420px);
  max-height: 85vh;
  border-radius: 24px;
  background: #0d1127;
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(124, 58, 237, 0.2);
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lang-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.lang-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lang-vertical-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.lang-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  color: #ffffff;
  width: 100%;
  text-align: left;
}

.lang-row-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-row-btn.selected {
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.35);
}

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

.lang-flag-badge {
  font-size: 20px;
  line-height: 1;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-row-names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.lang-native-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.lang-sub-name {
  font-size: 11.5px;
  color: var(--text-dim);
}

.lang-check-icon {
  color: var(--primary-pink);
  font-size: 16px;
  font-weight: 700;
}

/* ============================================================
   SCREEN 6: DAHA FAZLA (More Screen - Reference Bottom-Right)
   ============================================================ */

.more-header-bar {
  margin-bottom: 14px;
}

.more-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.more-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.18);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.more-profile-card:hover {
  background: #14193c;
  border-color: rgba(255, 42, 133, 0.3);
}

.more-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-pink);
}

.more-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.more-profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-profile-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-chevron {
  color: #64748b;
  font-size: 18px;
}

/* More Menu Group */
.more-menu-group {
  display: flex;
  flex-direction: column;
  background: #0f132e;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  overflow: hidden;
  margin-bottom: 16px;
}

.more-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  transition: background 0.15s;
}

.more-menu-item:last-child {
  border-bottom: none;
}

.more-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.more-item-icon {
  font-size: 16px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* Standalone Logout Button */
.more-logout-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.25);
  color: #ff4757;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.more-logout-card-btn:hover {
  background: rgba(255, 71, 87, 0.18);
  border-color: rgba(255, 71, 87, 0.45);
}

/* ============================================================
   MEDYA GÖRÜNÜMÜ & LIGHTBOX & İLERLEME (Preserved Components)
   ============================================================ */

.chat-media-img {
  max-width: 240px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  transition: transform 0.2s;
}

.chat-media-img:hover {
  transform: scale(1.02);
}

.chat-video-card {
  position: relative;
  max-width: min(340px, 100%);
  width: fit-content;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-video-preview {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-video-thumb {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.chat-video-player-wrap {
  width: 100%;
  max-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.chat-video-element {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  outline: none;
  background: #000;
}

.chat-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 4, 102, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.chat-video-dur-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
}

.chat-media-preview-bar {
  padding: 8px 12px;
  background: #0f132e;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.chat-preview-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.chat-preview-item {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.chat-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.chat-preview-remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-media-upload-status {
  padding: 8px 12px;
  background: #11152d;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--neon-cyan);
}

.upload-progress-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--primary-pink));
  border-radius: 3px;
  transition: width 0.2s ease;
}

/* Lightbox Modal */
.media-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.lightbox-header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Empty Panel */
.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
}

.empty-panel .empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.empty-panel h2 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 6px;
}

.empty-panel p {
  font-size: 13px;
  max-width: 260px;
  line-height: 1.4;
}

/* Action Modal (Benden Sil / Herkesten Sil) */
.msg-action-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

.msg-action-card {
  width: min(100%, 430px);
  background: #11152d;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.msg-action-btn {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}

.msg-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.msg-action-btn.danger {
  color: #ff4757;
}

/* Subpage Common Layout */
.subpage-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.subpage-header h2 {
  font-size: 18px;
  color: #ffffff;
}

.subpage-card {
  background: #0f132e;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  margin-bottom: 12px;
}

/* Utility Hidden */
.hidden {
  display: none !important;
}


/* ============================================================
   WHATSAPP STİLİ PROFİL EKRANI
   ============================================================ */
.profile-screen-wrap {
  padding: 16px 12px 24px;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 0 22px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-pink);
  box-shadow: 0 0 22px rgba(255, 42, 133, 0.35);
  margin-bottom: 14px;
  background: #11152d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
}

.profile-user-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.profile-user-email {
  font-size: 13.5px;
  color: var(--text-muted);
}

.profile-cards-group {
  background: #0f132e;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  overflow: hidden;
  margin-top: 10px;
}

.profile-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  cursor: pointer;
  transition: background 0.15s;
}

.profile-card-item:last-child {
  border-bottom: none;
}

.profile-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.profile-card-icon {
  font-size: 20px;
}

.profile-card-texts {
  display: flex;
  flex-direction: column;
}

.profile-card-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.profile-card-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.profile-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-pink);
}

.profile-card-chevron {
  font-size: 18px;
  color: #64748b;
}

.profile-admin-badge {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 8px;
}

/* ============================================================
   2 SÜTUNLU DİL SEÇİCİ GRID & KARTLAR
   ============================================================ */
.lang-grid-2col {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-right: 3px;
  max-height: 60vh;
}

.lang-col-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 0;
  text-align: left;
  box-sizing: border-box;
}

.lang-col-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.lang-col-btn.selected {
  background: rgba(255, 42, 133, 0.14);
  border-color: rgba(255, 42, 133, 0.45);
}

.lang-col-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.lang-col-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-col-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.lang-col-native {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-col-sub {
  font-size: 10.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-col-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-col-code {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-col-check {
  color: var(--primary-pink);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   ULACHAT NASIL GELİŞTİRİLİYOR? EKRANI
   ============================================================ */
.development-screen-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 4px 24px;
}

.development-card {
  background: #0f132e;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.development-card h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-pink);
}

.development-card strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.development-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.development-note {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-cyan);
  padding-top: 8px;
  font-style: italic;
}

/* ============================================================
   YÖNETİCİYE YAZIN & ÖNERİ VE ŞİKAYETLERİNİZ
   ============================================================ */
.admin-contact-hero {
  text-align: center;
  padding: 24px 16px 20px;
}

.admin-contact-avatar {
  font-size: 42px;
  margin-bottom: 8px;
}

.admin-contact-hero h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.feedback-page-shell {
  padding: 16px 4px 24px;
}

.feedback-intro {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-type-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.feedback-type-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.feedback-type-opt:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feedback-type-opt input[type="radio"] {
  accent-color: var(--primary-pink);
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.feedback-textarea {
  width: 100%;
  padding: 12px;
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.feedback-textarea:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
}

.feedback-counter {
  text-align: right;
  font-size: 11px;
  color: #64748b;
}

.feedback-submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 42, 133, 0.35);
  transition: opacity 0.2s;
}

.feedback-submit-btn:hover {
  opacity: 0.92;
}

.feedback-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================
   ALT SAYFA BAŞLIĞI VE BELİRGİN GERİ TUŞU (← Geri)
   ============================================================ */
.global-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  box-sizing: border-box;
}

.global-header-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* Koyu zeminde çok net görünen, çerçeveli ve tıklanabilir Geri butonu */
.global-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
  flex-shrink: 0;
}

.global-back-btn:hover {
  background: rgba(255, 42, 133, 0.18);
  border-color: var(--primary-pink);
  color: #ffffff;
  transform: translateX(-2px);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.3);
}

.global-back-btn:active {
  transform: scale(0.96);
}

.global-back-btn .back-arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--primary-pink);
  font-weight: 700;
}

.global-back-btn .back-text {
  font-size: 13px;
  line-height: 1;
  color: #ffffff;
  font-weight: 600;
}

.global-header-center {
  flex: 2;
  text-align: center;
  min-width: 0;
  padding: 0 6px;
}

.global-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.global-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.global-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.global-lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.35);
}


/* ============================================================
   ULACHAT BRAND LOGO & ICON STYLES
   ============================================================ */
.app-brand-logo {
  display: flex;
  align-items: center;
}

.app-brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.auth-icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(255, 42, 133, 0.45));
}

.auth-brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-full-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin: 4px auto 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

@media (max-width: 480px) {
  .app-brand-logo-img {
    height: 28px;
    max-width: 125px;
  }
  .auth-full-logo-img {
    height: 38px;
    max-width: 190px;
  }
  .auth-icon-img {
    width: 80px;
    height: 80px;
  }
}


/* ============================================================
   SCREEN 0: YENİ ANA SAYFA (Mobil Ekrana Tam Oturma & Sıfır Taşma)
   ============================================================ */

/* Kök Düzey ve Shell Yönetimi */
.phone-shell:has(.home-ref-header) {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}

#screen:has(.home-ref-header) {
  padding: 0;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Masaüstü Ekranlarda Aşırı Dikey Boşluğu Engelleyen Sınır */
@media (min-width: 501px) and (min-height: 851px) {
  .phone-shell:has(.home-ref-header) {
    height: min(100dvh, 850px);
    max-height: 850px;
    min-height: 0;
    margin: auto;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(124, 58, 237, 0.2);
  }
}

/* 1. Header (Kompakt Üst Alan) */
.home-ref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 1.2vh, 10px) 14px 4px;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.home-brand-logo-img {
  height: clamp(26px, 3.6vh, 32px);
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.home-brand-sub {
  font-size: clamp(9.5px, 2.4vw, 10.5px);
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.ref-icon-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ref-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ref-header-svg {
  stroke: #cbd5e1;
  width: 18px;
  height: 18px;
}

.ref-notif-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a85;
  box-shadow: 0 0 6px #ff2a85;
  border: 1px solid #060814;
}

/* Ana Kaydırma Alanı: PWA altındaki phantom boşluk kaldırıldı, scrollbar gizlendi */
.ref-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 2.4vh, 18px);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ref-scroll-area::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 2. Hero Görsel Alanı - Referans Tasarıma Uygun Doğal Zemin Geçişi */
.home-hero-art-container {
  width: calc(100% + 24px);
  max-width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
  margin-top: -4px;
  margin-bottom: -10px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  line-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-hero-art-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(6, 8, 20, 0.75) 0%,
    rgba(6, 8, 20, 0.15) 6%,
    transparent 14%,
    transparent 78%,
    rgba(6, 8, 20, 0.6) 88%,
    rgba(6, 8, 20, 0.95) 96%,
    #060814 100%
  );
}

.home-hero-art-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 4%,
    black 88%,
    rgba(0, 0, 0, 0.6) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 4%,
    black 88%,
    rgba(0, 0, 0, 0.6) 95%,
    transparent 100%
  );
}

/* 3. Ana Başlık & Açıklama */
.home-headline-block {
  text-align: center;
  padding: 2px 4px 0;
  box-sizing: border-box;
}

.home-main-title {
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.home-main-title .brand-cyan {
  color: #00e5ff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.home-main-desc {
  font-size: clamp(11px, 2.8vw, 12.8px);
  color: #94a3b8;
  line-height: 1.34;
  margin-top: 3px;
  margin-bottom: 0;
}

/* 4. Ana Butonlar */
.home-main-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 8px);
  width: 100%;
  box-sizing: border-box;
}

.ref-btn-start-chat {
  width: 100%;
  max-width: 100%;
  height: clamp(44px, 5.8vh, 50px);
  border-radius: 25px;
  background: linear-gradient(90deg, #00b4d8 0%, #0077b6 25%, #d90466 75%, #ff007a 100%);
  color: #ffffff;
  font-size: clamp(13.8px, 3.6vw, 15.2px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 3px 18px rgba(255, 0, 122, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  padding: 0 16px;
}

.ref-btn-start-chat:active {
  transform: scale(0.98);
}

.ref-btn-start-chat .btn-chat-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ref-btn-start-chat .btn-text {
  white-space: nowrap;
}

.ref-btn-start-chat .btn-arrow {
  position: absolute;
  right: 18px;
  font-size: 15px;
  font-weight: 800;
}

.ref-btn-find-contact {
  width: 100%;
  max-width: 100%;
  height: clamp(39px, 5.1vh, 44px);
  border-radius: 22px;
  background: rgba(13, 18, 43, 0.7);
  border: 1.5px solid rgba(0, 229, 255, 0.38);
  color: #ffffff;
  font-size: clamp(13.2px, 3.4vw, 14.2px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  box-sizing: border-box;
  padding: 0 16px;
}

.ref-btn-find-contact:active {
  transform: scale(0.98);
  background: rgba(20, 28, 65, 0.85);
}

.ref-btn-find-contact .btn-contact-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ref-btn-find-contact .btn-text {
  white-space: nowrap;
}

/* 5. 3 Özellik Kartı */
.home-ref-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(4px, 1.2vw, 6px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ref-feat-card {
  background: #090e23;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  padding: clamp(9px, 1.4vh, 12px) clamp(5px, 1.3vw, 7px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2.5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.ref-feat-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.ref-feat-icon {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.ref-feat-icon svg {
  width: clamp(20px, 4.4vw, 24px);
  height: clamp(20px, 4.4vw, 24px);
}

.feat-cyan {
  color: #00e5ff;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}

.feat-pink {
  color: #ff2a85;
  filter: drop-shadow(0 0 6px rgba(255, 42, 133, 0.4));
}

.feat-green {
  color: #10b981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.ref-feat-title {
  font-size: clamp(10.5px, 2.8vw, 12px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.ref-feat-desc {
  font-size: clamp(8.4px, 2.2vw, 9.6px);
  color: #94a3b8;
  line-height: 1.26;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* 6. Nasıl kullanılır? (Yatay Akış) */
.home-ref-how-card {
  background: #090e23;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 15px;
  padding: clamp(9px, 1.4vh, 13px) clamp(6px, 1.8vw, 10px);
  width: 100%;
  max-width: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.ref-how-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(5px, 1vh, 8px);
}

.ref-how-title {
  font-size: clamp(12.5px, 3.2vw, 14px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ref-how-more {
  font-size: clamp(9.8px, 2.5vw, 11px);
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.ref-how-more:hover {
  text-decoration: underline;
}

.ref-how-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1px, 0.8vw, 3px);
  width: 100%;
}

.ref-step-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.ref-step-icon-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.ref-step-badge {
  width: clamp(16px, 4vw, 18px);
  height: clamp(16px, 4vw, 18px);
  border-radius: 50%;
  font-size: clamp(9px, 2.3vw, 10px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-blue {
  background: #0ea5e9;
  box-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
}

.badge-pink {
  background: #ec4899;
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.4);
}

.badge-purple {
  background: #a855f7;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}

.ref-step-svg-icon {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ref-step-svg-icon svg {
  width: clamp(14px, 3.5vw, 16px);
  height: clamp(14px, 3.5vw, 16px);
}

.ref-step-heading {
  font-size: clamp(9.5px, 2.5vw, 11px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.ref-step-caption {
  font-size: clamp(7.8px, 2vw, 9.2px);
  color: #94a3b8;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.ref-step-divider {
  color: #475569;
  font-size: 9px;
  margin-top: 2px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* 7. PWA Kurulum Kartı */
.home-ref-pwa-card {
  background: #090e23;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 15px;
  padding: clamp(8px, 1.2vh, 11px) clamp(6px, 2vw, 11px);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 8px);
  width: 100%;
  max-width: 100%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.ref-pwa-phone-icon {
  width: clamp(28px, 7vw, 32px);
  height: clamp(28px, 7vw, 32px);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-pwa-phone-icon svg {
  width: clamp(16px, 4vw, 19px);
  height: clamp(16px, 4vw, 19px);
}

.ref-pwa-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ref-pwa-title {
  font-size: clamp(11.8px, 3vw, 13px);
  font-weight: 700;
  color: #ffffff;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.ref-pwa-desc {
  font-size: clamp(8.8px, 2.2vw, 9.8px);
  color: #94a3b8;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.ref-pwa-btn {
  background: #0284c7;
  color: #ffffff;
  padding: clamp(6px, 1vh, 8px) clamp(9px, 2.3vw, 14px);
  border-radius: 15px;
  font-size: clamp(10.8px, 2.6vw, 11.8px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  transition: background 0.2s, transform 0.15s;
}

.ref-pwa-btn:active {
  transform: scale(0.97);
  background: #0369a1;
}

.ref-pwa-btn.installed {
  background: #334155;
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

/* 8. Alt Menü (Referans Stili & Safe Area) */
.ref-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(52px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(4, 7, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  box-sizing: border-box;
}

.ref-bottom-nav .nav-tab-btn {
  color: #64748b;
  position: relative;
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  cursor: pointer;
}

.ref-bottom-nav .nav-tab-btn .nav-icon-wrap {
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-bottom-nav .nav-tab-btn small {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.ref-bottom-nav .nav-tab-btn.active {
  color: #00e5ff;
}

.ref-bottom-nav .nav-tab-btn.active small {
  color: #00e5ff;
  font-weight: 700;
}

.ref-bottom-nav .nav-tab-btn.active .nav-icon-wrap {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.7));
}

.ref-bottom-nav .nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 20px;
  height: 2.5px;
  background: #00e5ff;
  border-radius: 2px;
  box-shadow: 0 0 6px #00e5ff;
}

/* 9. Yükseklik Odaklı Medya Sorguları (Section 9 Kuralı - Sadece Mobil) */
@media (max-width: 500px) and (max-height: 900px) {
  .ref-scroll-area {
    gap: clamp(10px, 2.6vh, 24px);
  }
}

@media (max-width: 500px) and (max-height: 820px) {
  .ref-scroll-area {
    gap: clamp(8px, 2.4vh, 20px);
    padding-top: 4px;
    padding-bottom: 12px;
  }
  .ref-btn-start-chat {
    height: 42px;
  }
  .ref-btn-find-contact {
    height: 38px;
  }
  .ref-feat-card {
    padding: 7px 5px;
  }
  .home-ref-how-card {
    padding: 7px 8px;
  }
  .home-ref-pwa-card {
    padding: 6px 8px;
  }
}

@media (max-width: 500px) and (max-height: 720px) {
  .home-ref-header {
    padding: 4px 12px 2px;
  }
  .home-brand-logo-img {
    height: 23px;
  }
  .ref-scroll-area {
    gap: 5px;
    padding-top: 2px;
    padding-bottom: 6px;
  }
  .home-main-title {
    font-size: 15.5px;
  }
  .home-main-desc {
    font-size: 10.5px;
    margin-top: 1px;
  }
  .ref-btn-start-chat {
    height: 37px;
    font-size: 13px;
  }
  .ref-btn-find-contact {
    height: 33px;
    font-size: 12.5px;
  }
  .ref-feat-card {
    padding: 5px 3px;
    border-radius: 11px;
  }
  .ref-feat-icon svg {
    width: 17px;
    height: 17px;
  }
  .ref-feat-title {
    font-size: 9.8px;
  }
  .ref-feat-desc {
    font-size: 8px;
  }
  .home-ref-how-card {
    padding: 6px 7px;
    border-radius: 12px;
  }
  .ref-how-top {
    margin-bottom: 4px;
  }
  .ref-how-title {
    font-size: 11.5px;
  }
  .home-ref-pwa-card {
    padding: 5px 7px;
    border-radius: 12px;
  }
  .ref-pwa-phone-icon {
    width: 25px;
    height: 25px;
  }
  .ref-pwa-btn {
    padding: 5px 9px;
    font-size: 10.5px;
  }
}

/* Dar Ekranlar (<= 350px, örn: 320px) İçin Sıfır Taşma */
@media (max-width: 350px) {
  .home-ref-header {
    padding-left: 8px;
    padding-right: 8px;
  }
  .home-brand-logo-img {
    height: 22px;
  }
  .ref-scroll-area {
    padding-left: 6px;
    padding-right: 6px;
  }
  .home-ref-features {
    gap: 3px;
  }
  .ref-feat-card {
    padding: 5px 3px;
  }
  .ref-feat-title {
    font-size: 9.5px;
  }
  .ref-feat-desc {
    font-size: 7.8px;
  }
  .ref-how-steps-row {
    gap: 1px;
  }
  .ref-step-heading {
    font-size: 8.8px;
  }
  .ref-step-caption {
    font-size: 7.2px;
  }
  .ref-step-badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  .ref-pwa-phone-icon {
    width: 22px;
    height: 22px;
  }
  .ref-pwa-btn {
    padding: 5px 7px;
    font-size: 10px;
  }
}

/* RTL (Arapça) Desteği */
html[lang="ar"] .ref-scroll-area,
[dir="rtl"] .ref-scroll-area {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .home-ref-header,
[dir="rtl"] .home-ref-header {
  flex-direction: row;
}

html[lang="ar"] .ref-feat-card,
[dir="rtl"] .ref-feat-card {
  text-align: right;
  align-items: flex-start;
}

html[lang="ar"] .ref-how-steps-row,
[dir="rtl"] .ref-how-steps-row {
  flex-direction: row;
}

html[lang="ar"] .ref-step-divider,
[dir="rtl"] .ref-step-divider {
  transform: rotate(180deg);
}

html[lang="ar"] .ref-pwa-btn svg,
[dir="rtl"] .ref-pwa-btn svg {
  transform: rotate(180deg);
}

html[lang="ar"] .ref-btn-start-chat .btn-arrow,
[dir="rtl"] .ref-btn-start-chat .btn-arrow {
  left: 18px;
  right: auto;
  transform: rotate(180deg);
}

/* ============================================================
   IN-APP FOREGROUND NOTIFICATION TOAST
   ============================================================ */
.in-app-notif-toast {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(13, 17, 38, 0.96);
  border: 1px solid rgba(255, 42, 133, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 133, 0.2);
  z-index: 10000;
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.in-app-notif-toast.visible {
  top: 16px;
  opacity: 1;
  pointer-events: auto;
}

.in-app-notif-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.in-app-notif-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.in-app-notif-body {
  flex: 1;
  min-width: 0;
}

.in-app-notif-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.in-app-notif-msg {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-app-notif-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s;
}

.in-app-notif-close:hover {
  color: #ffffff;
}

/* UlaChat Brand Logo Clickable */
.home-brand-block,
.app-brand-logo {
  cursor: pointer;
  user-select: none;
}


/* ============================================================
   SUPER ADMIN KOMPAKT YÖNETİM PANELİ (MOBİL ÖNCELİKLİ)
   ============================================================ */
.admin-panel-wrap {
  padding: 12px 14px;
  max-width: 580px;
  margin: 0 auto;
}

.admin-search-box {
  margin-bottom: 10px;
}

.admin-search-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.admin-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-user-row:hover,
.admin-user-row.selected {
  background: rgba(255, 42, 133, 0.12);
  border-color: rgba(255, 42, 133, 0.35);
}

.admin-user-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.admin-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-email {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-card {
  background: #0f132e;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 10px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.admin-card-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin-status-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-balance-box {
  margin: 14px 0 10px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.admin-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-balance-label {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-balance-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-pink);
}

.admin-quick-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.admin-quick-btn {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-quick-btn:hover {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
}

.admin-custom-amount-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.admin-custom-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-custom-input:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.admin-btn-add {
  padding: 8px 12px;
  background: var(--primary-pink);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-btn-deduct {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-collapsible {
  margin-top: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  padding-top: 10px;
}

.admin-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.admin-collapse-body {
  padding-top: 10px;
}

.admin-duration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-pill {
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
}

.admin-pill.active {
  background: rgba(255, 42, 133, 0.2);
  border-color: var(--primary-pink);
  color: #ffffff;
  font-weight: 600;
}

.admin-restrict-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.admin-restrict-btn {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}

.admin-restrict-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.admin-restrict-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.admin-restrict-btn.clear {
  grid-column: span 2;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-weight: 600;
}

.admin-audit-box {
  margin-top: 14px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  padding-top: 10px;
}

.admin-audit-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-audit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.admin-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
}


/* ==========================================================================
   IN-CHAT ADMIN MANAGEMENT & ACCOUNT REMOVAL / ACCESS REQUEST STYLES
   ========================================================================== */

.in-chat-admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-chat-admin-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.in-chat-admin-sheet {
  background: #111420;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(124, 58, 237, 0.15);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .in-chat-admin-backdrop {
    align-items: center;
  }
  .in-chat-admin-sheet {
    border-radius: 20px;
    transform: scale(0.94) translateY(20px);
    max-height: 85vh;
  }
  .in-chat-admin-backdrop.active .in-chat-admin-sheet {
    transform: scale(1) translateY(0);
  }
}

.in-chat-admin-backdrop.active .in-chat-admin-sheet {
  transform: translateY(0);
}

.in-chat-admin-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.in-chat-admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.in-chat-admin-badge {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
}

.in-chat-admin-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.in-chat-admin-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.in-chat-admin-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.in-chat-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.in-chat-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: #1e1b2e;
}

.in-chat-user-meta {
  flex: 1;
  min-width: 0;
}

.in-chat-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-chat-user-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.in-chat-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.admin-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.admin-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-tag.suspended, .admin-tag.removed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.in-chat-balance-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(30, 27, 75, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 14px;
}

.in-chat-balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.in-chat-balance-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.in-chat-balance-val {
  font-size: 20px;
  font-weight: 800;
  color: #a78bfa;
}

.in-chat-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.in-chat-quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.in-chat-quick-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(139, 92, 246, 0.45);
  color: #fff;
}

.in-chat-custom-balance {
  display: flex;
  gap: 8px;
}

.in-chat-balance-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12.5px;
}

.in-chat-balance-input:focus {
  outline: none;
  border-color: #8b5cf6;
}

.in-chat-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.in-chat-btn-primary:hover {
  opacity: 0.9;
}

.in-chat-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.in-chat-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.in-chat-collapsible {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.in-chat-collapsible-summary {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.in-chat-collapsible-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.in-chat-collapsible-body {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-danger-zone {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-danger-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-danger-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-btn-remove-user {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.admin-btn-remove-user:hover {
  opacity: 0.92;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

/* Confirmation Modal */
.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-confirm-modal {
  background: #141724;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: adminModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminModalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.admin-confirm-title {
  font-size: 16px;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-confirm-msg {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.admin-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Removed Account View */
.removed-account-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.12), transparent 70%), #0a0b12;
}

.removed-account-card {
  background: #121421;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.removed-account-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 28px;
}

.removed-account-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.removed-account-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.removed-account-status-box {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #e2e8f0;
  text-align: left;
}

.removed-account-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 8px;
}

.btn-request-access {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-request-access:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-request-access:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-removed-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-removed-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Access Requests in Admin Panel */
.admin-access-requests {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-request-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-request-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.access-request-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.access-request-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.access-request-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-access-approve {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-access-approve:hover {
  background: rgba(16, 185, 129, 0.28);
}

.btn-access-reject {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-access-reject:hover {
  background: rgba(239, 68, 68, 0.28);
}


/* ============================================================
   WHATSAPP-STYLE COMPACT EMOJI PICKER PANEL
   ============================================================ */

.chat-input-container {
  position: relative;
}

.chat-emoji-panel {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 8px;
  right: 8px;
  height: 290px;
  background: rgba(14, 18, 38, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  backdrop-filter: blur(16px);
  overflow: hidden;
  animation: emojiPanelFadeIn 0.16s ease-out;
}

@keyframes emojiPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emoji-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(6, 8, 20, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.emoji-cat-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.emoji-cat-tabs::-webkit-scrollbar {
  display: none;
}

.emoji-cat-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.emoji-cat-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.emoji-cat-tab.active {
  background: rgba(255, 42, 133, 0.16);
  color: var(--primary-pink);
  box-shadow: inset 0 -2px 0 var(--primary-pink);
}

.emoji-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.emoji-close-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.emoji-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.emoji-panel-body::-webkit-scrollbar {
  width: 5px;
}

.emoji-panel-body::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

.emoji-section {
  margin-bottom: 12px;
}

.emoji-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 4px;
}

.emoji-grid-btn {
  width: 34px;
  height: 34px;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.1s ease, background 0.1s ease;
  user-select: none;
  padding: 0;
}

.emoji-grid-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.22);
}

.emoji-grid-btn:active {
  transform: scale(0.92);
}

/* ============================================================
   SOHBETLER: SEÇİM MODU VE KALDIRMA STİLLERİ
   ============================================================ */

.header-select-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.header-select-btn:hover {
  background: rgba(255, 42, 133, 0.15);
  border-color: rgba(255, 42, 133, 0.35);
  color: #ffffff;
}

.header-select-btn.active {
  background: rgba(255, 42, 133, 0.22);
  border-color: #ff2a85;
  color: #ff2a85;
}

.chats-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(18, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.2s ease;
}

.chats-sel-left, .chats-sel-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chats-sel-count {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  padding-left: 4px;
}

.chats-sel-action-btn {
  padding: 5px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chats-sel-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.chats-sel-action-btn.cancel-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.chats-sel-action-btn.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.chats-sel-action-btn.danger-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.chats-sel-action-btn.danger-btn:hover:not(:disabled) {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.chats-sel-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chat-row-select-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
}

.chat-row-chk {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  accent-color: #ff2a85;
  cursor: pointer;
}

.chat-row-item.selected {
  background: rgba(255, 42, 133, 0.09) !important;
  outline: 1px solid rgba(255, 42, 133, 0.25);
}

.chat-row-options-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 17px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-row-options-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-row-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.chat-row-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  background: #111425;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 4px;
  min-width: 170px;
  animation: fadeInDown 0.15s ease;
}

.chat-row-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.chat-row-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
}

/* ============================================================
   MOBILE-ONLY RESPONSIVE RULES (max-width: 500px)
   Masaüstü ve tablet görünümleri kesinlikle etkilenmez.
   ============================================================ */
@media (max-width: 500px) {

  /* 0. Genel Mobil Viewport ve Sıfır Yatay Taşma */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    height: 100%;
  }

  .app-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .phone-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* 0.1 Mobil Ekran İçeriği & Sayfa Kaydırması (#screen) */
  #screen,
  .main-tab-content {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 0.2 Kalıcı ve Sabit Mobil Alt Menü (.ref-bottom-nav) */
  .ref-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(4, 7, 20, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
  }

  .app-screen-container {
    overflow-x: hidden !important;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* 1. Başlıklar & Geri Butonları Düzeni */
  .contacts-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contacts-title {
    font-size: 18px !important;
    margin: 0 !important;
    text-align: center !important;
    flex: 1 !important;
  }

  .chat-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .chat-header-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  .more-header-bar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .more-title {
    font-size: 20px !important;
    margin: 0 !important;
  }

  /* 1.1 Açık Sohbet Ekranı — Standart ve Dokunması Kolay Geri Butonu */
  .chat-nav-header {
    height: 58px !important;
    padding: 0 10px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .chat-nav-back-btn {
    padding: 6px 12px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .chat-header-user-box {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .in-chat-admin-back-btn {
    padding: 6px 12px !important;
    min-height: 34px !important;
  }

  /* 1.2 Yönetim Paneli — Mobil Düzen */
  .admin-results-list {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-panel-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .admin-user-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .admin-user-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    word-break: break-word;
  }

  .admin-quick-btn-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-custom-amount-row {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. Ana Sayfa — Mobilde Dikey Boşluğu Dengeleme */
  .ref-scroll-area {
    padding: clamp(8px, 2.2vh, 22px) 12px clamp(16px, 3.8vh, 36px);
    gap: clamp(10px, 4.2vh, 38px);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 3. Kullanım Kılavuzu — Mobilde Doğal Dikey Scroll */
  .help-guide-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .help-guide-list .stat-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word;
  }

  /* 4. Öneri ve Şikayetler — Mobilde Boşluğu Dengeleme & Esnek Form */
  .feedback-page-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100dvh - 125px) !important;
    padding: 10px 4px 20px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .feedback-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: clamp(12px, 2vh, 18px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .feedback-textarea {
    min-height: clamp(130px, 20vh, 175px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .feedback-submit-btn {
    margin-top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Sohbet Ekranı — Android Chrome Viewport Uyumu */
  .chat-conversation-view {
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #screen:has(.chat-conversation-view) {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
}
