/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ===== SEZNAMKA ===== */

.dating-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.dating-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.profile-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.profile-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.profile-info {
  padding: 18px;
}

.profile-info h3 {
  margin: 0;
  font-size: 18px;
}

.profile-info p {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f7;
}

/* WRAPPER */
.main-photo-wrapper {
  position: relative;
  cursor: pointer;
}

/* OVERLAY */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
}

.photo-overlay i {
  color: white;
  font-size: 30px;
}

.main-photo-wrapper:hover .photo-overlay {
  opacity: 1;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 70%;
  max-height: 70%;
  border-radius: 12px;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 90px;
  height: 80px;
  background: linear-gradient(90deg, #6a11cb, #8e2de2);
}

.logo img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.75;
}

.nav-icons {
  display: flex;
  gap: 20px;
}
.nav-links a{
  position:relative;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:0;
  height:3px;
  border-radius:99px;
  background: rgba(255,255,255,0.85);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-links a:hover::after{
  width:22px;
}

.nav-links a.active::after{
  width:34px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-circle:hover {
  background: white;
  color: #8e2de2;
}

/* LAYOUT */
.profile-wrapper {
  display: flex;
  gap: 100px;
  padding: 40px 80px;
  align-items: flex-start;
}

/* LEVÁ STRANA */
.profile-left {
  width: 380px;
}

.profile-main-photo {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
}

.profile-actions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-actions button {
  padding: 14px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(90deg, #6a11cb, #8e2de2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.profile-actions button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(142, 45, 226, 0.3);
}

.profile-actions .danger {
  background: #4b1c8f;
}

/* PRAVÁ STRANA: obal (ODKAZY NAHOŘE + POD TÍM 2 SLOUPCE) */
.profile-right {
  flex: 1;
  display: grid;

  /* řádek 1: odkazy přes celou šířku
     řádek 2: galerie + pravý panel */
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "toplinks toplinks"
    "main side";

  gap: 30px 140px;

  background: #fdfdff;
  padding: 10px 30px 60px 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* ODKAZY NAHOŘE (ty co jsou PŘÍMO v .profile-right) */
.profile-right > .profile-links {
  grid-area: toplinks;
}

/* STŘED: GALERIE */
.main-area {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* VELKÁ GALERIE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.25s ease;
  display: block;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* PRAVÝ PANEL */
.side-panel {
  grid-area: side;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 28px;

  position: sticky;
  top: 16px;
}

/* když bys měl omylem Odkazy i v pravým panelu, schováme je (aby nebyly 2x) */
.side-panel .profile-links {
  display: none;
}

/* jemný "floating" efekt na boxy vpravo */
.side-panel > * {
  transition: 0.25s ease;
}

.side-panel > *:hover {
  transform: translateY(-3px);
}

/* ODKAZY BOX */
.profile-links {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-links h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.profile-links .links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-links .links-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 05px 10px;
  border-radius: 999px;
  background: #f3ecff;
  color: #8e2de2;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(142, 45, 226, 0.15);
  transition: 0.25s ease;
}

.profile-links .links-row a:hover {
  background: linear-gradient(90deg, #6a11cb, #8e2de2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(142, 45, 226, 0.25);
}

/* O MNĚ BOX */
.about-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-box h3 {
  font-size: 18px;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.about-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  opacity: 0.95;
}

/* MINI GALERIE */
.extra-gallery h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.extra-preview,
.extra-hidden {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.extra-preview img,
.extra-hidden img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.85;
  transition: 0.25s ease;
  display: block;
}

.extra-preview img:hover,
.extra-hidden img:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* ROZBALENÍ */
.extra-hidden {
  display: none;
  margin-top: 10px;
}

.extra-hidden.open {
  display: flex;
}

/* TLAČÍTKO */
.show-more-btn {
  margin-top: 14px;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #6a11cb, #8e2de2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.show-more-btn:hover {
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  padding: 30px;
  text-align: center;
  background: #0f0f0f;
  color: rgba(255,255,255,0.45);
  margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .profile-right {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "toplinks"
      "main"
      "side";
    padding: 25px 30px 70px 30px;
  }

  .side-panel {
    width: 100%;
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .navbar {
    padding: 0 30px;
  }

  .profile-wrapper {
    padding: 30px;
    flex-direction: column;
  }

  .profile-left {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }
}
.navbar{
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-icons a.icon-circle{
  display:flex;
}
.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mini-add-btn {
  border: none;
  background: #8e2de2;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.uploaded-photo {
  outline: 2px solid rgba(142, 45, 226, 0.3);
}

.uploaded-photo-wrap {
  position: relative;
}

.delete-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.delete-photo-btn:hover {
  background: #8e2de2;
}

.modal-card textarea {
  width: 100%;
  padding: 18px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 17px;
  outline: none;
  resize: vertical;
  min-height: 120px;
}

.center-link {
  display: block;
  margin: 6px auto 0;
  text-align: center;
}
.profile-user-box {
  margin-top: 18px;
  text-align: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.profile-user-box h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.profile-user-box p {
  margin: 0;
  color: #555;
  word-break: break-word;
}

#profileMeta {
  margin-top: 8px;
  font-size: 16px;
  color: #7a40c9;
  font-weight: 700;
}

.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mini-add-btn {
  border: none;
  background: #8e2de2;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.uploaded-photo {
  outline: 2px solid rgba(142, 45, 226, 0.3);
}

.uploaded-photo-wrap {
  position: relative;
}

.delete-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.delete-photo-btn:hover {
  background: #8e2de2;
}

.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.profile-edit-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.profile-edit-card {
  width: 100%;
  max-width: 480px;
  background: rgba(20, 10, 35, 0.96);
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.profile-edit-card h3 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 22px;
}

.profile-edit-card input,
.profile-edit-card textarea {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

.profile-edit-card textarea {
  resize: vertical;
  min-height: 120px;
}

.profile-save-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px;
  background: #f3f3f3;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 12px;
}

.profile-cancel-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}
.profile-edit-modal.hidden,
.profile-modal-overlay.hidden {
  display: none !important;
}
/* =========================================
   2LOOVE – MY PROFILE GALLERY UPGRADE
   ========================================= */

   .profile-wrapper {
    gap: 34px;
    align-items: flex-start;
  }
  
  .profile-left {
    position: sticky;
    top: 110px;
  }
  
  .main-photo-wrapper {
    width: 100%;
    max-width: 410px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(106, 17, 203, 0.14);
    border: 1px solid rgba(142, 45, 226, 0.12);
  }
  
  .profile-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease;
  }
  
  .main-photo-wrapper:hover .profile-main-photo {
    transform: scale(1.04);
  }
  
  .photo-overlay {
    background: linear-gradient(to top, rgba(20, 7, 42, 0.38), rgba(20, 7, 42, 0.04));
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  
  .main-photo-wrapper:hover .photo-overlay {
    opacity: 1;
  }
  
  .profile-user-box {
    margin-top: 20px;
    padding: 20px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(106, 17, 203, 0.08);
    border: 1px solid rgba(142, 45, 226, 0.08);
  }
  
  .profile-user-box h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 10px;
  }
  
  .profile-user-box p {
    font-size: 17px;
    font-weight: 700;
    color: #7b35d8;
  }
  
  .profile-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
  }
  
  .profile-actions button {
    min-height: 64px;
    border-radius: 999px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, #6a11cb, #a044ff);
    box-shadow: 0 12px 24px rgba(106, 17, 203, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  }
  
  .profile-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(106, 17, 203, 0.24);
    filter: brightness(1.03);
  }
  
  .profile-actions .danger {
    background: linear-gradient(90deg, #4c1d95, #5b21b6);
  }
  
  .activation-warning {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 243, 205, 0.95);
    color: #6b4f00;
    font-weight: 700;
    line-height: 1.45;
    border: 1px solid rgba(255, 193, 7, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  }
  
  .profile-right {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
  }
  
  .main-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .profile-links,
  .about-box,
  .extra-gallery {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(106, 17, 203, 0.06);
    border: 1px solid rgba(142, 45, 226, 0.08);
  }
  
  .profile-links,
  .about-box {
    padding: 20px 20px 18px;
  }
  
  .profile-links h3,
  .about-box h3,
  .gallery-header-row h3,
  .extra-gallery h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 18px;
  }
  
  .links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  
  .links-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #8e2de2;
    background: #f3eaff;
    border: 1px solid rgba(142, 45, 226, 0.16);
    transition: all 0.2s ease;
  }
  
  .links-row a:hover {
    color: #fff;
    background: linear-gradient(90deg, #6a11cb, #a044ff);
    transform: translateY(-1px);
  }
  
  .about-box p {
    font-size: 16px;
    line-height: 1.65;
    color: #444;
  }
  
  .gallery-header-row {
    margin-bottom: 2px;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  
  .uploaded-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: #f5efff;
    border: 2px solid rgba(142, 45, 226, 0.18);
    box-shadow: 0 12px 24px rgba(106, 17, 203, 0.08);
  }
  
  .gallery-item.uploaded-photo,
  .extra-preview .uploaded-photo-wrap img,
  .extra-hidden .uploaded-photo-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
    cursor: pointer;
  }
  
  .uploaded-photo-wrap:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
  }
  
  .delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
  }
  
  .delete-photo-btn:hover {
    transform: scale(1.08);
    background: rgba(220, 38, 38, 0.88);
  }
  
  .side-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .extra-gallery {
    padding: 20px;
  }
  
  .extra-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }
  
  .extra-preview .uploaded-photo-wrap,
  .extra-hidden .uploaded-photo-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #f5efff;
    border: 1px solid rgba(142, 45, 226, 0.18);
    box-shadow: 0 8px 18px rgba(106, 17, 203, 0.08);
  }
  
  .extra-hidden {
    display: none;
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  
  .extra-hidden.open {
    display: grid;
  }
  
  .show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c1dff, #a855f7);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(124, 29, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(124, 29, 255, 0.24);
  }
  
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 9999;
  }
  
  .lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
  
  .profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.55);
    z-index: 9997;
  }
  
  .profile-edit-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92vw, 540px);
    transform: translate(-50%, -50%);
    z-index: 9998;
  }
  
  .profile-edit-card {
    padding: 28px;
    border-radius: 28px;
    background: #16072d;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  }
  
  .profile-edit-card h3 {
    color: #fff;
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 22px;
    font-weight: 800;
  }
  
  .profile-edit-card input,
  .profile-edit-card textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 18px;
    padding: 18px 18px;
    font-size: 17px;
    outline: none;
    margin-bottom: 16px;
  }
  
  .profile-edit-card textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .profile-edit-card input::placeholder,
  .profile-edit-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.62);
  }
  
  .profile-save-btn,
  .profile-cancel-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 999px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }
  
  .profile-save-btn {
    background: #fff;
    color: #111;
    margin-top: 8px;
  }
  
  .profile-cancel-btn {
    background: transparent;
    color: #fff;
    margin-top: 12px;
  }
  
  .hidden {
    display: none !important;
  }
  
  @media (max-width: 1200px) {
    .profile-wrapper {
      flex-direction: column;
    }
  
    .profile-left {
      position: static;
      width: 100%;
    }
  
    .main-photo-wrapper {
      max-width: 100%;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
  }
  
  @media (max-width: 820px) {
    .profile-right {
      padding: 22px;
    }
  
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  
    .extra-preview,
    .extra-hidden {
      grid-template-columns: repeat(3, minmax(64px, 1fr));
    }
  
    .profile-user-box h2 {
      font-size: 24px;
    }
  
    .profile-links h3,
    .about-box h3,
    .gallery-header-row h3,
    .extra-gallery h3 {
      font-size: 22px;
    }
  }
  
  @media (max-width: 560px) {
    .profile-right {
      padding: 16px;
      border-radius: 22px;
    }
  
    .profile-links,
    .about-box,
    .extra-gallery,
    .profile-user-box {
      border-radius: 20px;
    }
  
    .gallery-grid {
      gap: 14px;
    }
  
    .extra-preview,
    .extra-hidden {
      grid-template-columns: repeat(3, minmax(56px, 1fr));
      gap: 10px;
    }
  
    .profile-actions button {
      min-height: 56px;
      font-size: 16px;
    }
  
    .profile-edit-card {
      padding: 22px;
      border-radius: 22px;
    }
  
    .profile-edit-card h3 {
      font-size: 28px;
    }
  }
  /* =========================================
   2LOOVE – ZMENŠENÍ MY PROFILE
   ========================================= */

.profile-wrapper {
  gap: 22px;
  align-items: flex-start;
}

.profile-left {
  max-width: 360px;
  width: 100%;
  position: static;
}

.main-photo-wrapper {
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.profile-user-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
}

.profile-user-box h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.profile-user-box p {
  font-size: 14px;
}

.profile-actions {
  gap: 12px;
  margin-top: 18px;
}

.profile-actions button {
  min-height: 48px;
  font-size: 15px;
  border-radius: 999px;
}

.activation-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 14px;
}

.profile-right {
  padding: 22px;
  border-radius: 22px;
}

.main-area {
  gap: 18px;
}

.profile-links,
.about-box,
.extra-gallery {
  border-radius: 18px;
}

.profile-links,
.about-box {
  padding: 16px;
}

.profile-links h3,
.about-box h3,
.gallery-header-row h3,
.extra-gallery h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.links-row {
  gap: 10px;
}

.links-row a {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.about-box p {
  font-size: 14px;
  line-height: 1.5;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
}

.uploaded-photo-wrap {
  border-radius: 16px;
}

.delete-photo-btn {
  width: 34px;
  height: 34px;
  top: 8px;
  right: 8px;
}

.side-panel {
  gap: 18px;
}

.extra-gallery {
  padding: 16px;
}

.extra-preview {
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.extra-hidden {
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.extra-preview .uploaded-photo-wrap,
.extra-hidden .uploaded-photo-wrap {
  border-radius: 12px;
}

.show-more-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.profile-edit-modal {
  width: min(92vw, 460px);
}

.profile-edit-card {
  padding: 22px;
  border-radius: 20px;
}

.profile-edit-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.profile-edit-card input,
.profile-edit-card textarea {
  padding: 14px;
  font-size: 15px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.profile-edit-card textarea {
  min-height: 120px;
}

.profile-save-btn,
.profile-cancel-btn {
  min-height: 48px;
  font-size: 15px;
}

.lightbox img {
  max-width: min(88vw, 900px);
  max-height: 84vh;
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .profile-wrapper {
    flex-direction: column;
  }

  .profile-left {
    max-width: 100%;
  }

  .main-photo-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .profile-right {
    padding: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .extra-preview,
  .extra-hidden {
    grid-template-columns: repeat(3, minmax(50px, 1fr));
  }
}
/* =====================================
   TITLES OUTSIDE BOXES (ODKAZY / O MNĚ)
   ===================================== */

   .profile-links,
   .about-box {
     padding-top: 14px;
   }
   
   /* nadpis mimo box */
   
   .profile-links h3,
   .about-box h3 {
     position: relative;
     top: -18px;
     left: 6px;
     background: transparent;
     padding: 0;
     margin-bottom: -6px;
     font-size: 18px;
     font-weight: 800;
   }
   
   /* box obsah */
   
   .profile-links,
   .about-box {
     border-radius: 18px;
     background: #ffffff;
     padding: 18px;
     box-shadow: 0 10px 22px rgba(0,0,0,0.05);
   }
   
   /* odkazy */
   
   .links-row {
     margin-top: 4px;
   }
   
   /* text o mně */
   
   .about-box p {
     margin-top: 2px;
   }
   /* =====================================
   FORCE MOVE TITLES UP (ODKAZY / O MNE)
   ===================================== */

.profile-links,
.about-box {
  position: relative !important;
  overflow: visible !important;
  padding: 28px 18px 16px 18px !important;
  margin-top: 14px !important;
  background: #ffffff !important;
  border-radius: 18px !important;
}

.profile-links h3,
.about-box h3 {
  position: absolute !important;
  top: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  padding: 0 8px !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  background: #efedf4 !important;
  color: #111 !important;
  z-index: 5 !important;
}

.links-row {
  margin-top: 8px !important;
}

.about-box p {
  margin-top: 6px !important;
}
/* =====================================
   CLEAN TITLE LOOK
   ===================================== */

   .profile-links h3,
   .about-box h3 {
     background: transparent !important;
     padding: 0 !important;
     top: -48px !important;
     left: 50% !important;
     transform: translateX(-50%) !important;
   }
   /* =====================================
   REMOVE BOX FROM LINKS (ODKAZY)
   ===================================== */

.profile-links {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 6px !important;
}

/* tlačítka trochu níž */

.profile-links .links-row {
  margin-top: 8px !important;
}
/* =====================================
   LINKS WITHOUT BOX
   ===================================== */

   .profile-links {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 4px !important;
  }
  /* =====================================
   EDIT PROFILE MODAL – POSUNOUT VÝŠ
   ===================================== */

   .profile-modal,
   .edit-profile-modal {
     position: fixed;
     top: 42%;
     left: 50%;
     transform: translate(-50%, -42%);
   }
/*/* =====================================
   EDIT PROFILE MODAL – FIX FINAL
   ===================================== */

.profile-edit-modal {
  position: fixed !important;
  top: 44% !important;
  left: 50% !important;
  transform: translate(-45%, -60%) !important;
  width: min(82vw, 540px) !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 9998 !important;
}

.profile-edit-card {
  max-height: none !important;
  overflow: visible !important;
  padding: 24px !important;
}

.profile-modal-overlay {
  z-index: 9997 !important;
}
.profile-actions .danger-delete {
  background: linear-gradient(90deg, #b31217, #e52d27);
  color: #fff;
}

.profile-actions .danger-delete:hover {
  box-shadow: 0 10px 20px rgba(181, 18, 23, 0.35);
}
/* =====================================
   GLOBAL NOTIFICATIONS
   ===================================== */

   .notification-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .notification-btn {
    position: relative;
    background: transparent;
    outline: none;
    border: 2px solid #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  
  .notification-badge {
    position: absolute;
    top: 4px;
    right: 3px;
    width: 10px;
    height: 10px;
    background: #ff3b5c;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: none;
    pointer-events: none;
  }
  
  .notification-badge.show {
    display: block;
  }
  
  .notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 270px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(30, 30, 36, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
  
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.28) transparent;
  }
  
  .notification-dropdown::-webkit-scrollbar {
    width: 8px;
  }
  
  .notification-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.28);
    border-radius: 999px;
  }
  
  .notification-dropdown::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .notification-dropdown.hidden {
    display: none !important;
  }
  
  .notification-group + .notification-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .notification-group-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
  }
  
  .notification-link,
  .notification-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 2px 4px;
    border-radius: 8px;
    margin-bottom: 1px;
    transition: opacity 0.18s ease;
    word-break: break-word;
    background: transparent !important;
    color: #ffffff !important;
  }

  .notification-link:visited,
  .notification-links a:visited {
    color: rgba(255,255,255,0.52) !important;
    background: rgba(255,255,255,0.04) !important;
  }

  .notification-link:hover,
  .notification-link:focus,
  .notification-links a:hover,
  .notification-links a:focus {
    color: #ffffff !important;
    background: rgba(255,255,255,0.13) !important;
    text-decoration: none !important;
  }
  
  .notification-link:last-child,
  .notification-links a:last-child {
    margin-bottom: 0;
  }
  
  .notification-empty {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #9ca3af;
    padding: 4px 0;
  }

  /* ── Notifikace s avatarem a ikonkou ── */
  .notif-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    margin-bottom: 1px;
    background: transparent !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.18s ease;
    border-radius: 8px;
  }
  .notif-row:hover { opacity: 0.8; }

  .notif-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.25);
  }

  .notif-avatar-initials {
    background: linear-gradient(135deg,#7c3aed,#db2777);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
  }

  .notif-content {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
  }

  .notif-main {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #fff !important;
    flex: 1;
  }

  .notif-right {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding-left: 4px;
    flex-shrink: 0;
  }

  .notif-icon {
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
    width: 28px;
    min-width: 28px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .notif-icon-visit {
    color: #ffffff !important;
    font-size: 14px;
  }

  .notif-icon-friend {
    color: #a78bfa !important;
    font-size: 14px;
  }

  .notif-icon-accept {
    color: #22c55e !important;
    font-size: 14px;
  }

  .notif-icon-2loove {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0;
  }
  .notif-icon-2loove .nl-heart {
    font-size: 14px;
    line-height: 1;
  }
  .notif-icon-2loove .nl-plus,
  .notif-icon-2loove .nl-eq {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 900;
    margin: 0 1px;
  }
  .notif-icon-2loove .nl-brand {
    background: linear-gradient(90deg, #ff3b5c, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.3px;
  }

  .notif-avatar {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
  }

  .notif-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 0;
    min-width: 0;
    max-width: 80px;
  }

  .notif-row--2loove .notif-name {
    max-width: 45px;
  }

  .notif-row--2loove .notif-icon {
    width: auto;
    min-width: auto;
  }

  .notification-friend-request.notif-row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .notif-action-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: background 0.15s;
  }

  .notif-action-btn:hover {
    background: #22c55e;
  }

  .notif-action-btn--decline:hover {
    background: #ef4444;
  }
  
  .nav-icons .notification-btn.icon-circle {
    appearance: none;
    -webkit-appearance: none;
  }
  
  @media (max-width: 768px) {
    .notification-dropdown {
      right: -8px;
      width: 210px;
    }
    .notif-right {
      margin-left: 4px;
    }
    .notif-name {
      flex: 0 0 auto;
    }
    .notif-icon-2loove {
      margin-left: 50px;
    }
  }

  /* =========================================
   GLOBAL MOBILE FIXES
   ========================================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
    padding-bottom: 70px;
  }

  .navbar {
    padding: 10px 16px !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  .logo {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .logo img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-icons {
    gap: 10px !important;
    flex-shrink: 0;
  }

  .icon-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .profile-wrapper {
    padding: 16px !important;
    gap: 18px !important;
  }

  .profile-right {
    padding: 16px !important;
  }

  .profile-links h3,
  .about-box h3 {
    position: static !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .links-row {
    gap: 8px !important;
  }

  .links-row a {
    width: 100%;
    justify-content: center;
  }

  .notification-dropdown {
    width: 92vw !important;
    right: -10px !important;
    max-height: 70vh !important;
  }

  .profile-edit-modal {
    width: 95vw !important;
    transform: translate(-50%, -50%) !important;
    top: 50% !important;
  }

  .profile-edit-card {
    padding: 18px !important;
  }

}

/* =========================================
   MOBILE NOTIFICATION DROPDOWN FIX
   ========================================= */

   @media (max-width: 768px) {
    .notification-wrap {
      position: static !important;
    }
  
    .notification-dropdown {
      position: fixed !important;
      top: 62px !important;
      left: 12px !important;
      right: 12px !important;
      width: auto !important;
      max-width: none !important;
      max-height: 70vh !important;
      z-index: 10000 !important;
    }
  }
  
  @media (max-width: 380px) {
    .notification-dropdown {
      top: 62px !important;
      left: 8px !important;
      right: 8px !important;
    }
  }

/* =========================================
   MOBILE BOTTOM NAVIGATION
   ========================================= */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #6a11cb, #a855f7);
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 16px;
    z-index: 9998;
    box-shadow: 0 -2px 16px rgba(106, 17, 203, 0.3);
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s;
  }

  .mobile-bottom-nav a i {
    font-size: 19px;
    padding: 5px 12px;
    border-radius: 14px;
    transition: background 0.22s ease, color 0.22s ease;
  }

  /* Aktivní – bílá bublinka, fialová ikona */
  .mobile-bottom-nav a.active {
    color: #fff;
  }

  .mobile-bottom-nav a.active i {
    background: #fff;
    color: #7b2de2;
  }

  .mobile-bottom-nav a:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* =========================================
   COLLAPSIBLE FILTER (mobile only)
   ========================================= */

@media (max-width: 768px) {
  .filter-title-row {
    cursor: pointer;
    user-select: none;
  }

  .filter-title-row h2::after {
    content: " ▼";
    font-size: 12px;
    display: inline-block;
    transition: transform 0.3s;
    vertical-align: middle;
    margin-left: 4px;
  }

  .filter-box.filter-collapsed .filter-title-row h2::after {
    transform: rotate(-90deg);
  }

  .filter-box.filter-collapsed > *:not(.filter-title-row) {
    display: none;
  }
}

  /* MOBILE - my-profile edit box posun nahoru */
@media (max-width: 600px) {
  .profile-wrapper {
    align-items: flex-start !important;
  }

  .profile-right {
    padding-top: 10px !important;
  }

  .profile-edit-card {
    margin-top: -55px !important;
    padding-bottom: 18px !important;
  }

  .profile-edit-card button,
  .profile-edit-card .save-btn {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
  }
}

/* =========================================
   MOBILNÍ ROZŠÍŘENÍ 320 – 611 px
   ========================================= */

@media (max-width: 611px) {

  body {
    overflow-x: hidden !important;
    padding-bottom: 70px !important;
  }

  /* --- NAVBAR --- */
  .navbar {
    display: flex !important;
    align-items: center !important;
    padding: 0 108px 0 0 !important;
    height: auto !important;
    min-height: 52px !important;
    position: sticky !important;
    top: 0 !important;
    justify-content: center !important;
  }

  /* Logo přesně v centru */
  .logo {
    position: static !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }

  .logo img {
    height: 32px !important;
    max-width: 140px !important;
    display: block !important;
  }

  .nav-links {
    display: none !important;
  }

  /* Ikony vpravo – absolutní pozice */
  .nav-icons {
    position: absolute !important;
    right: 12px !important;
    top: 7px !important;
    transform: none !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .icon-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  /* --- DATING GRID (seznamka) --- */
  .dating-wrapper {
    margin: 20px auto !important;
    padding: 0 10px !important;
  }

  .dating-title {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }

  .profiles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* --- PROFILE PAGE --- */
  .profile-wrapper {
    padding: 10px !important;
    gap: 12px !important;
    flex-direction: column !important;
  }

  .profile-left {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }

  .main-photo-wrapper {
    max-width: 100% !important;
    border-radius: 14px !important;
  }

  .profile-user-box {
    padding: 12px !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
  }

  .profile-user-box h2 {
    font-size: 18px !important;
    margin-bottom: 4px !important;
  }

  .profile-user-box p {
    font-size: 13px !important;
  }

  .profile-actions {
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .profile-actions button {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .profile-right {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .main-area {
    gap: 14px !important;
  }

  .profile-links h3,
  .about-box h3,
  .gallery-header-row h3,
  .extra-gallery h3 {
    font-size: 16px !important;
    position: static !important;
    margin-bottom: 10px !important;
  }

  .about-box p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .links-row {
    gap: 7px !important;
  }

  .links-row a {
    min-height: 46px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gallery-grid img {
    height: 200px !important;
  }

  .extra-preview,
  .extra-hidden {
    grid-template-columns: repeat(3, minmax(48px, 1fr)) !important;
    gap: 7px !important;
  }

  .show-more-btn {
    min-height: 36px !important;
    font-size: 13px !important;
  }

  /* --- EDIT MODAL --- */
  .profile-edit-modal {
    width: 98vw !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .profile-edit-card {
    padding: 16px !important;
    border-radius: 18px !important;
    margin-top: 0 !important;
  }

  .profile-edit-card h3 {
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .profile-edit-card input,
  .profile-edit-card textarea {
    padding: 12px 14px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }

  .profile-edit-card textarea {
    min-height: 100px !important;
  }

  .profile-save-btn,
  .profile-cancel-btn {
    min-height: 44px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
  }

  /* --- NOTIFIKACE --- */
  .notification-wrap {
    position: relative !important;
  }

  .notification-dropdown {
    position: fixed !important;
    top: 56px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-height: 65vh !important;
    z-index: 10000 !important;
  }

  /* --- LIGHTBOX --- */
  .lightbox img {
    max-width: 96vw !important;
    max-height: 80vh !important;
    border-radius: 14px !important;
  }

  /* --- BOTTOM NAV --- */
  .mobile-bottom-nav {
    display: flex !important;
    padding: 8px 0 14px !important;
  }

  .mobile-bottom-nav a {
    font-size: 9px !important;
  }

  .mobile-bottom-nav a i {
    font-size: 17px !important;
    padding: 5px 11px !important;
    border-radius: 13px !important;
  }

  .mobile-bottom-nav a.active i {
    background: #fff !important;
    color: #7b2de2 !important;
  }

  /* Mini messenger – pozice řeší JS přes top, ne CSS bottom */
}

/* ============================================================
   DARK PREMIUM THEME – GLOBÁLNÍ SDÍLENÉ ELEMENTY (≤ 768 px)
   Přepisuje navbar, bottom-nav a icon-circle pro všechny stránky.
   Desktop (> 768 px) zůstává beze změny.
   ============================================================ */
@media (max-width: 768px) {
  body {
    background: #0f0f0f !important;
  }

  /* Navbar */
  .navbar {
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
  }

  /* Ikonky v horní navigaci */
  .icon-circle {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
  }

  .icon-circle:hover,
  .icon-circle:focus {
    background: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
  }

  /* Spodní navigace */
  .mobile-bottom-nav {
    background: #0f0f0f !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
  }

  .mobile-bottom-nav a {
    color: #ffffff !important;
  }

  .mobile-bottom-nav a i {
    background: transparent !important;
    color: #ffffff !important;
  }

  .mobile-bottom-nav a.active {
    color: #ff3b7a !important;
  }

  .mobile-bottom-nav a.active i {
    background: #ffffff !important;
    color: #0f0f0f !important;
  }

  .mobile-bottom-nav a.active span {
    color: #ff3b7a !important;
    font-weight: 700 !important;
  }

  .mobile-bottom-nav a:hover:not(.active) {
    color: rgba(255,255,255,0.80) !important;
  }

  /* ---- Profil stránky (my-profile + profile) ---- */
  .profile-right {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
  }

  .profile-links {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
  }

  .profile-links h3 {
    color: #ffffff !important;
  }

  .profile-links .links-row a {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.80) !important;
    border-color: rgba(255,255,255,0.10) !important;
  }

  .profile-links .links-row a:hover {
    background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255,59,122,0.28) !important;
  }

  .about-box {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
  }

  .about-box h3 {
    color: #ffffff !important;
  }

  .about-box p {
    color: rgba(255,255,255,0.72) !important;
  }

  .profile-actions button {
    background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
    box-shadow: 0 6px 18px rgba(255,59,122,0.28) !important;
  }

  .profile-actions .danger {
    background: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
  }

  .show-more-btn {
    background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
  }

  .profile-user-box {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }

  .profile-user-box h2 {
    color: #ffffff !important;
  }

  .profile-user-box p {
    color: rgba(255,255,255,0.60) !important;
  }

  #profileMeta {
    color: #ff3b7a !important;
  }

  .mini-add-btn {
    background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
    box-shadow: 0 4px 14px rgba(255,59,122,0.28) !important;
  }

  .uploaded-photo {
    outline-color: rgba(255,59,122,0.40) !important;
  }

  .delete-photo-btn:hover {
    background: #ff3b7a !important;
  }

  /* ---- Avatar bez fotky – tmavé + FA user icon ---- */
  .avatar,
  .user-avatar,
  .row-avatar,
  .me-avatar,
  .mini-dm-avatar,
  #composerAvatar {
    background: rgba(255,255,255,0.08) !important;
    background-image: none !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Skryjeme text iniciály, ukážeme ikonku přes ::before */
  .avatar:not(:has(img)):not(:has(.composer-avatar-img))::before,
  .user-avatar:not(:has(img))::before,
  .row-avatar:not(:has(img))::before,
  .me-avatar:not(:has(img))::before,
  .mini-dm-avatar:not(:has(img))::before,
  #composerAvatar:not(:has(img))::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 55%;
    color: rgba(255,255,255,0.75) !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
  }

  .avatar:not(:has(img)):not(:has(.composer-avatar-img)),
  .user-avatar:not(:has(img)),
  .row-avatar:not(:has(img)),
  .me-avatar:not(:has(img)),
  .mini-dm-avatar:not(:has(img)),
  #composerAvatar:not(:has(img)) {
    color: transparent !important;
    font-size: inherit !important;
  }
}

/* =========================================
   EDIT PROFILE MODAL – DARK PREMIUM FINAL
   Opravuje: fialovou barvu boxu, inputy, pozici nad spodní lištou
   ========================================= */

/* --- Barvy boxu: tmavé premium (všechny velikosti) --- */
.profile-edit-card {
  background: #1c1c20 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55) !important;
}

.profile-edit-card h3 {
  color: #ffffff !important;
}

/* --- Inputy, textarea, select: tmavé s jemným rámečkem --- */
.profile-edit-card input,
.profile-edit-card textarea,
.profile-edit-card select {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  color: #ffffff !important;
}

.profile-edit-card input::placeholder,
.profile-edit-card textarea::placeholder {
  color: rgba(255,255,255,0.40) !important;
}

.profile-edit-card select option {
  background: #1c1c20 !important;
  color: #ffffff !important;
}

/* --- Tlačítko Uložit: růžový gradient --- */
.profile-save-btn {
  background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(255,59,122,0.30) !important;
  border-radius: 18px !important;
  padding: 15px !important;
  margin-bottom: 10px !important;
}

/* --- Tlačítko Zrušit: dark + tenký růžový rámeček --- */
.profile-cancel-btn {
  width: 100% !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,59,122,0.60) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  padding: 14px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: 0.2s ease !important;
  margin-bottom: 0 !important;
}

.profile-cancel-btn:hover {
  background: rgba(255,255,255,0.11) !important;
  border-color: rgba(255,59,122,0.95) !important;
}

/* --- Pozice na mobilu: viditelné mezi horní a spodní lištou --- */
@media (max-width: 768px) {
  .profile-edit-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* 68px nahoře = prostor pod horní lištou, 72px dole = prostor nad spodní navigací */
    padding: 68px 16px 72px !important;
    width: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: 9998 !important;
  }

  .profile-edit-modal.hidden {
    display: none !important;
  }

  .profile-edit-card {
    width: min(92vw, 430px) !important;
    margin-top: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    /* Kompaktnější padding pro menší obsah */
    padding: 20px 18px !important;
  }

  .profile-edit-card h3 {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .profile-edit-card input,
  .profile-edit-card textarea,
  .profile-edit-card select {
    padding: 12px 14px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }

  .profile-edit-card textarea {
    min-height: 90px !important;
  }

  .profile-save-btn,
  .profile-cancel-btn {
    padding: 13px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
  }

  /* --- Zmenšení mezer kolem tlačítek --- */
  .profile-edit-card button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .profile-save-btn {
    margin-top: 6px !important;   /* prostor nad Uložit (od textarea) */
    margin-bottom: 6px !important; /* prostor mezi tlačítky */
  }

  .profile-cancel-btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .profile-edit-card {
    padding-bottom: 16px !important;
  }
}

/* =========================================
   EDIT PROFILE MODAL – TLAČÍTKA VEDLE SEBE
   ========================================= */
.profile-btn-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 6px;
}

.profile-btn-row .profile-save-btn,
.profile-btn-row .profile-cancel-btn {
  flex: 1 !important;
  width: auto !important;
  margin: 0 !important;
  min-height: 46px !important;
}

/* =========================================
   MY PROFILE – PUBLISH BOX
   ========================================= */
.mp-publish-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons row – always horizontal */
.mp-btn-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

/* Preview container – constrained */
#mpPreview {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 2px;
}

#mpPreviewImg,
#mpPreviewVideo {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.mp-media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,59,122,0.65);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
}

.mp-media-btn:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,59,122,0.95);
}

.mp-publish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ff3b7a, #d6005a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 6px 18px rgba(255,59,122,0.30);
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
}

.mp-publish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,59,122,0.45);
}

.mp-publish-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}