/* SYSTEM CSS DESIGN v3.0 - CHAT RAIOANE - BOOMBA DISCORD-STYLE */

:root {
  --bg-dark: #090a0e;
  --bg-card: rgba(20, 24, 36, 0.78);
  --bg-sidebar: rgba(11, 13, 19, 0.9);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.6);

  --color-purple: hsl(220, 95%, 55%);
  --color-purple-hover: hsl(220, 95%, 65%);
  --color-teal: hsl(45, 95%, 50%);
  --color-teal-hover: hsl(45, 95%, 60%);
  --color-teal-glow: rgba(255, 190, 11, 0.4);
  --color-purple-glow: rgba(0, 85, 255, 0.4);
  --color-pink: hsl(320, 95%, 60%);
  --color-pink-hover: hsl(320, 95%, 70%);
  --color-pink-glow: rgba(255, 0, 127, 0.4);
  --color-green: hsl(120, 95%, 45%);
  --color-green-hover: hsl(120, 95%, 55%);
  --color-green-glow: rgba(0, 255, 0, 0.35);
  --color-red: hsl(355, 90%, 55%);

  --text-primary: #f5f7fa;
  --text-secondary: #a0a7bc;
  --text-muted: #5b6076;

  --gradient-neon: linear-gradient(135deg, var(--color-purple) 0%, var(--color-teal) 50%, var(--color-red) 100%);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(138, 43, 226, 0.2) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(14, 230, 183, 0.14) 0px, transparent 45%),
    radial-gradient(at 50% 50%, rgba(255, 0, 127, 0.03) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* SCREEN CONTAINER SYSTEM */
.screen-container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

/* CARD GLASSMORPHISM PENTRU LOGIN EXTINS (DUAL PANEL) */
.login-card-expanded {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px 0 var(--glass-shadow);
  border-radius: 28px;
  width: 1050px;
  max-width: 95%;
  height: 680px;
  display: flex;
  overflow: hidden;
}

.login-left-panel {
  width: 45%;
  padding: 40px;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-right-panel {
  width: 55%;
  padding: 40px;
  background: rgba(5, 6, 9, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  margin-bottom: 20px;
}

.logo-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 0 15px var(--color-purple-glow));
}

.logo-area h1 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.logo-area p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* FORMULAR ELEMENTE */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 12px var(--color-purple-glow);
  background: rgba(255, 255, 255, 0.08);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="number"]:disabled,
select:disabled {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.03);
}

select option {
  background: #12141c;
  color: var(--text-primary);
}

/* CASETA DE DETECTARE LOCAȚIE */
.location-detector-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.location-detector-box h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loc-explanation {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.detection-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--color-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 230, 183, 0.08);
  border: 1px solid rgba(14, 230, 183, 0.25);
  padding: 8px 14px;
  border-radius: 10px;
  color: #0ee6b7;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 0 0 10px rgba(14, 230, 183, 0.1);
}

.gps-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gps-prompt p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* BUTOANE */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(138, 43, 226, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: var(--color-red);
  color: white;
}

.btn-danger:hover {
  background: hsl(355, 90%, 62%);
  box-shadow: 0 0 10px rgba(230, 14, 14, 0.2);
}

.btn-block {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* HARTA PE LOGIN */
.map-header {
  text-align: center;
  margin-bottom: 15px;
}

.map-header h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.map-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.moldova-map-wrapper {
  flex-grow: 1;
  width: 100%;
  max-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.login-map-locked svg path {
  cursor: not-allowed !important;
}

.login-map-locked svg path:hover {
  fill: rgba(255, 255, 255, 0.05) !important;
  stroke: rgba(255, 255, 255, 0.15) !important;
  stroke-width: 1.6px !important;
  filter: none !important;
}

.map-loading {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* DESEN INLINE SVG HARTA */
.moldova-map-wrapper svg {
  width: auto;
  height: 100%;
  max-height: 440px;
  max-width: 100%;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.moldova-map-wrapper svg path {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.6px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  touch-action: manipulation;
}

.moldova-map-wrapper svg path:hover {
  fill: rgba(138, 43, 226, 0.28) !important;
  stroke: var(--color-purple);
  stroke-width: 2.2px;
  filter: drop-shadow(0 0 8px var(--color-purple-glow));
}

.moldova-map-wrapper svg path.active {
  fill: rgba(14, 230, 183, 0.35) !important;
  stroke: var(--color-teal);
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 12px var(--color-teal-glow));
}

/* STRUCTURA CHAT LAYOUT */
.chat-app-layout {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
}

/* SIDEBAR STÂNGA */
.sidebar {
  width: 320px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}

.user-profile-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* MINI-HARTA IN SIDEBAR (CHATS) */
.mini-map-section {
  width: 90%;
  margin: 14px auto;
  border-radius: 16px;
  height: 145px;
  padding: 8px 15px;
  background: linear-gradient(135deg, rgba(20, 24, 36, 0.95), rgba(11, 13, 19, 0.98));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  /* Aurie */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55), inset 0 0 20px rgba(255, 215, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Brâu tradițional Tricolor Moldovenesc (Sus/Jos) */
.mini-map-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
      #002b80 0px, #002b80 6px,
      #ffd700 6px, #ffd700 12px,
      #e60000 12px, #e60000 18px);
  opacity: 0.85;
}

.mini-map-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
      #e60000 0px, #e60000 6px,
      #ffd700 6px, #ffd700 12px,
      #002b80 12px, #002b80 18px);
  opacity: 0.85;
}

.mini-map-section:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.45);
}

.mini-map-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mini-map-wrapper svg {
  width: auto;
  height: 100%;
  max-height: 124px;
}

.mini-map-wrapper svg path {
  fill: rgba(255, 215, 0, 0.02) !important;
  stroke: rgba(255, 215, 0, 0.18) !important;
  stroke-width: 1.1px;
  cursor: default;
  transition: all 0.3s ease;
}

.mini-map-wrapper svg path.active {
  fill: rgba(255, 215, 0, 0.45) !important;
  stroke: #ffd700 !important;
  stroke-width: 2.4px !important;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 4px #e60000);
  animation: moldova-glow 2.5s infinite alternate;
}

@keyframes moldova-glow {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 2px #e60000);
    fill: rgba(230, 180, 30, 0.35) !important;
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 5px #002b80);
    fill: rgba(255, 215, 0, 0.5) !important;
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 3px #e60000);
    fill: rgba(230, 180, 30, 0.4) !important;
  }
}

/* GLOW AVATAR PROFILE */
.avatar-glow-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar-glow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-neon);
  box-shadow: 0 0 12px var(--color-purple-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.avatar-glow.avatar-custom {
  background-size: cover;
  background-position: center;
}

.avatar-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.avatar-glow-wrapper:hover .avatar-edit-overlay {
  opacity: 1;
}

.user-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.user-location-tag {
  font-size: 0.8rem;
  color: var(--color-teal);
  font-weight: 500;
}

/* ACCORDION DISCORD-STYLE */
.channels-accordion-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.channel-group-header {
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.8px;
}

.channel-group-header:hover {
  color: var(--text-secondary);
}

.channel-list {
  list-style: none;
  padding-left: 8px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.01);
}

.channel-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transform: translateX(4px);
}

.channel-item.chat-type.active {
  background: rgba(138, 43, 226, 0.12);
  color: var(--color-purple-hover);
  border-left-color: var(--color-purple);
  font-weight: 600;
  box-shadow: inset 4px 0 10px rgba(138, 43, 226, 0.15), 0 0 10px rgba(138, 43, 226, 0.2);
  transform: translateX(4px);
}

.channel-item.photo-type.active {
  background: rgba(14, 230, 183, 0.12);
  color: var(--color-teal-hover);
  border-left-color: var(--color-teal);
  font-weight: 600;
  box-shadow: inset 4px 0 10px rgba(14, 230, 183, 0.15), 0 0 10px var(--color-teal-glow);
  transform: translateX(4px);
}

.channel-item.meme-type.active {
  background: rgba(255, 0, 127, 0.12);
  color: var(--color-pink-hover);
  border-left-color: var(--color-pink);
  font-weight: 600;
  box-shadow: inset 4px 0 10px rgba(255, 0, 127, 0.15), 0 0 10px var(--color-pink-glow);
  transform: translateX(4px);
}

.channel-item.voice-type.active,
.channel-item.voice.active {
  background: rgba(0, 255, 0, 0.12);
  color: var(--color-green-hover);
  border-left-color: var(--color-green);
  font-weight: 600;
  box-shadow: inset 4px 0 10px rgba(0, 255, 0, 0.15), 0 0 10px var(--color-green-glow);
  transform: translateX(4px);
}

.chan-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.channel-item.chat-type.active .chan-icon {
  color: var(--color-purple-hover);
}

.channel-item.photo-type.active .chan-icon {
  color: var(--color-teal-hover);
}

.channel-item.meme-type.active .chan-icon {
  color: var(--color-pink-hover);
}

.channel-item.voice-type.active .chan-icon,
.channel-item.voice.active .chan-icon {
  color: var(--color-green-hover);
}

/* CANALE AUDIO IN ACCORDION */
.channel-item.voice {
  justify-content: space-between;
}

.voice-indicator {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.channel-item.voice.connected,
.channel-item.voice-type.connected {
  background: rgba(0, 255, 0, 0.12) !important;
  color: var(--color-green-hover) !important;
  border-left-color: var(--color-green) !important;
  box-shadow: inset 4px 0 10px rgba(0, 255, 0, 0.15), 0 0 10px var(--color-green-glow) !important;
}

.channel-item.voice.connected .chan-icon,
.channel-item.voice-type.connected .chan-icon {
  color: var(--color-green-hover) !important;
}

.channel-item.voice.connected .voice-indicator,
.channel-item.voice-type.connected .voice-indicator {
  background: var(--color-green) !important;
  color: black !important;
  font-weight: 600 !important;
  box-shadow: 0 0 8px var(--color-green-glow) !important;
}

/* ACORDEON ADMIN - TOATE RAIOANELE */
.admin-districts-accordion {
  list-style: none;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
}

.admin-district-item {
  border-radius: 8px;
  overflow: hidden;
}

.admin-district-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.admin-district-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-district-header.expanded {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(138, 43, 226, 0.05);
  color: var(--color-purple-hover);
}

.admin-district-channels {
  list-style: none;
  padding-left: 8px;
  background: rgba(0, 0, 0, 0.1);
}

/* LISTĂ MEMBRII ONLINE */
.members-section {
  height: 200px;
  min-height: 180px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.members-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.member-list {
  list-style: none;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.member-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-purple);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}

.member-name {
  font-weight: 500;
}

.member-meta-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-location {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* MODERARE ACTION BUTTONS IN CHAT */
.mod-action-badge {
  font-size: 0.7rem;
  color: var(--color-red);
  background: rgba(255, 0, 0, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.15);
}

/* CHAT AREA SECTION */
.chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.chat-header {
  height: 80px;
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 13, 19, 0.4);
}

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

.role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-purple);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px var(--color-purple-glow);
}

.role-badge.staff-badge {
  background: var(--color-teal);
  color: black;
  box-shadow: 0 0 8px var(--color-teal-glow);
}

.room-info h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
}

.room-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* CONȚINUT MESAJE */
.messages-container {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

/* BULE DE MESAJ */
.message {
  max-width: 65%;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.25s ease-out forwards;
  position: relative;
}

.message:hover .message-delete-action {
  opacity: 1;
}

.message-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-meta .msg-author {
  font-weight: 600;
  color: var(--text-primary);
}

.message-meta .msg-district {
  color: var(--color-teal);
  font-weight: 500;
}

.message-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.95rem;
  word-wrap: break-word;
}

.message.incoming {
  align-self: flex-start;
}

.message.incoming .message-bubble {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.message.outgoing {
  align-self: flex-end;
}

.message.outgoing .message-meta {
  justify-content: flex-end;
}

.message.outgoing .message-bubble {
  background: var(--gradient-neon);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

/* IMAGINI & STICKERE */
.message-bubble img.chat-image {
  max-width: 100%;
  max-height: 250px;
  border-radius: 10px;
  display: block;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.message-bubble img.chat-image:hover {
  transform: scale(1.02);
}

.message-bubble.bubble-sticker {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.message-bubble.bubble-sticker img.chat-sticker {
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: var(--transition-smooth);
}

.message-bubble.bubble-sticker img.chat-sticker:hover {
  transform: scale(1.08) rotate(2deg);
}

/* ȘTERGERE MESAJ (ADMIN ACTION) */
.message-delete-action {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--color-red);
  font-size: 0.75rem;
}

.message.incoming .message-delete-action {
  right: -36px;
}

.message.outgoing .message-delete-action {
  left: -36px;
}

.message-delete-action:hover {
  background: var(--color-red);
  color: white;
  box-shadow: 0 0 8px rgba(230, 14, 14, 0.35);
}

/* MESAJ SISTEM */
.message-system {
  align-self: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  max-width: 75%;
}

/* INPUT AREA CHAT */
.chat-input-area {
  padding: 18px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(11, 13, 19, 0.6);
  position: relative;
}

.message-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.15rem;
  border-radius: 12px;
}

.message-form input[type="text"] {
  flex-grow: 1;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* STICKER & MEME PANEL */
.sticker-meme-panel {
  position: absolute;
  bottom: 80px;
  left: 24px;
  right: 24px;
  height: 260px;
  background: rgba(14, 16, 23, 0.96);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: rgba(138, 43, 226, 0.15);
  color: var(--color-purple-hover);
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.close-panel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.close-panel-btn:hover {
  color: var(--text-primary);
}

.panel-content {
  flex-grow: 1;
  padding: 14px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* GRIDS MEME / STICKERS */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.sticker-option-item {
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticker-option-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.08);
}

.sticker-option-item img {
  width: 100%;
  height: auto;
  max-width: 60px;
}

.memes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.meme-option-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  aspect-ratio: 16/10;
}

.meme-option-item:hover {
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--color-teal-glow);
}

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

/* MODAL OVERLAYS (STIL GLASS CARD) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-card {
  width: 480px;
  max-width: 90%;
  padding: 30px;
  border-radius: 24px;
  animation: fadeIn 0.25s ease-out;
}

.modal-card-sm {
  width: 380px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 10px;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

/* AVATAR UPLOAD ELEMENTE */
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.current-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-neon);
  box-shadow: 0 0 10px var(--color-purple-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: white;
  background-size: cover;
  background-position: center;
}

/* OVERRIDE MODAL USER ACTIONS (MOD PANEL) */
.mod-user-info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
}

.mod-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--color-purple);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: white;
  background-size: cover;
  background-position: center;
}

.mod-user-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.mod-user-details span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ANIMAȚII KEYFRAMES */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-green-glow {
  0% {
    filter: drop-shadow(0 0 4px rgba(0, 255, 0, 0.5));
    fill: rgba(0, 255, 0, 0.3) !important;
  }

  100% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.95));
    fill: rgba(0, 255, 0, 0.7) !important;
  }
}

/* BANNER ANUNȚ SELECȚIE LOCAȚIE */
.announcement-banner {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #ffb84d;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.05);
  animation: fadeIn 0.3s ease-out;
}

.announcement-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* SIDEBAR TOGGLE BUTTON (MOBILE ONLY) */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* PANOU CONEXIUNE VOCE SIDEBAR (WEBRTC) */
.voice-panel {
  background: rgba(0, 255, 0, 0.02) !important;
  border-top: 1px solid rgba(0, 255, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 255, 0, 0.08) !important;
  padding: 12px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto !important;
  min-height: auto !important;
}

.voice-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-green-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator-green {
  font-size: 0.7rem;
  animation: pulse-green-indicator 1.5s infinite alternate;
}

@keyframes pulse-green-indicator {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.voice-member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
  max-height: 110px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.voice-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.speaking-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-green-glow);
  display: inline-block;
}

/* MEDIA QUERIES PENTRU OPTIMIZARE MOBIL / TABLETĂ */
@media (max-width: 900px) {
  .login-card-expanded {
    flex-direction: column;
    width: 95%;
    height: auto;
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stiluri Tab-uri Mobil Login */
  .login-mobile-tabs {
    display: flex !important;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--glass-border);
  }

  .login-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-weight: 600;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    outline: none;
  }

  .login-tab-btn.active {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
    background: rgba(255, 255, 255, 0.02);
  }

  /* Afișare condiționată panouri login pe mobil */
  .login-card-expanded.show-map .login-left-panel {
    display: none !important;
  }

  .login-card-expanded.show-map .login-right-panel {
    display: flex !important;
    width: 100%;
  }

  .login-card-expanded:not(.show-map) .login-left-panel {
    display: flex !important;
    width: 100%;
  }

  .login-card-expanded:not(.show-map) .login-right-panel {
    display: none !important;
  }

  .login-left-panel {
    width: 100%;
    padding: 24px;
    border-right: none;
    border-bottom: none;
  }

  .login-right-panel {
    width: 100%;
    padding: 24px;
    min-height: 320px;
  }

  .moldova-map-wrapper {
    max-height: 260px;
  }

  .announcement-banner {
    padding: 10px 12px;
    font-size: 0.78rem;
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .chat-app-layout {
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.65);
    background: rgba(9, 10, 14, 0.96) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle-btn {
    display: flex !important;
  }

  .chat-area {
    width: 100%;
    height: 100%;
  }

  .messages-container {
    padding: 12px 14px;
    gap: 12px;
  }

  .message {
    max-width: 88%;
  }

  .message-bubble {
    padding: 9px 13px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .chat-input-area {
    padding: 10px 12px;
  }

  .message-form input[type="text"] {
    padding: 10px 14px;
    font-size: 0.9rem;
    height: 40px;
  }

  .input-action-btn {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  /* Buton compact de trimitere pe mobil (ascundem textul Trimite, arătăm doar pictograma) */
  #send-btn span:not(.send-icon) {
    display: none !important;
  }

  #send-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .sticker-meme-panel {
    bottom: 60px;
    left: 8px;
    right: 8px;
    height: 230px;
    border-radius: 12px;
  }

  .modal-card {
    width: 92%;
    padding: 20px 16px;
    border-radius: 20px;
  }

  /* Ascundere descriere lungă cameră pe mobil pentru a face loc titlului */
  #current-room-desc {
    display: none !important;
  }

  .chat-header {
    height: 64px;
    padding: 0 14px;
  }

  .room-info h2 {
    font-size: 1rem;
    letter-spacing: -0.2px;
  }

  .user-profile-header {
    padding: 10px 14px;
  }

  .mini-map-section {
    margin: 8px auto;
    height: 100px;
    width: 92%;
  }
}

/* CARD STATISTICI MEMBRI GLOBAL PE MOBIL/DESKTOP */
.global-members-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-stat-icon {
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.info-stat-details {
  display: flex;
  flex-direction: column;
}

.info-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.info-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-teal-hover);
  font-family: var(--font-title);
}

/* MODAL VIZUALIZARE PROFIL MEMBRU (VIEW) */
.profile-view-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 10px;
}

.profile-view-avatar-wrapper {
  margin-bottom: 15px;
  position: relative;
}

.profile-view-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient-neon);
  box-shadow: 0 0 16px var(--color-purple-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  color: white;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-view-username {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.profile-view-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.profile-view-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.profile-view-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.profile-view-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
  word-break: break-word;
}

.profile-view-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.detail-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 64px;
}

.detail-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: 0.3px;
}

.detail-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* --- AUTH SCREEN STYLES (Login / Register) --- */
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px 0 var(--glass-shadow);
  border-radius: 28px;
  width: 480px;
  max-width: 96%;
  max-height: 95vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: slideInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.auth-logo-area h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.auth-logo-area p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 11px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: var(--gradient-neon);
  color: white;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.4);
}

.auth-error-msg {
  background: rgba(220, 30, 30, 0.12);
  border: 1px solid rgba(220, 30, 30, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ff7070;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 14px;
  animation: fadeIn 0.25s ease-out;
}

.auth-gender-warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ff7070;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 16px;
  margin-top: -8px;
  line-height: 1.4;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.auth-switch-text span {
  color: var(--color-teal);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline dashed rgba(14, 230, 183, 0.4);
  transition: color 0.2s;
}

.auth-switch-text span:hover {
  color: var(--color-teal-hover);
}

/* Bara tricolor sub "Ai deja cont?" în auth-card */
.auth-card.moldovan-ethnic-header::after {
  position: relative;
  display: block;
  margin-top: 20px;
  border-radius: 0 0 24px 24px;
  flex-shrink: 0;
}

/* --- TRADITIONAL MOLDOVAN & MODERATION STYLES --- */
.moldovan-ethnic-header {
  position: relative;
}

.moldovan-ethnic-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-image: repeating-linear-gradient(45deg, #0033a0 0, #0033a0 10px, #ffd700 10px, #ffd700 20px, #cc0000 20px, #cc0000 30px);
  border-radius: 0 0 12px 12px;
}

.message-tagged {
  border: 2px solid #ffcc00 !important;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4) !important;
  animation: pulse-tag 2s infinite alternate;
}

@keyframes pulse-tag {
  0% {
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }

  100% {
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
  }
}

/* Mobile auth card */
@media (max-width: 540px) {
  .auth-card {
    padding: 24px 20px 20px;
    border-radius: 20px;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .auth-logo-icon {
    font-size: 2.4rem;
  }

  .auth-logo-area h1 {
    font-size: 1.6rem;
  }
}
