*{box-sizing:border-box;margin:0;padding:0}

html,
body{
  height:100%;
  margin:0;
}

body{
  font-family:'Inter',sans-serif;
  background: url("zlote.jpg") no-repeat center center fixed;
  background-size: cover;
  color:#1e293b;
  overflow-x:hidden;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.main-container{
  flex:1;
}

/* ===== CZCIONKI ===== */

@font-face {
  font-family: "FleurDeLeah";
  src: url("fonts/FleurDeLeah-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lobster";
  src: url("fonts/Lobster-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MeaCulpa";
  src: url("fonts/MeaCulpa-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "WindSongR";
  src: url("fonts/WindSong-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "WindSongM";
  src: url("fonts/WindSong-Medium.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Sacramento";
  src: url("fonts/Sacramento-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Arizona";
  src: url("fonts/Arizona-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "EagleLake";
  src: url("fonts/EagleLake-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Neonderthaw";
  src: url("fonts/Neonderthaw-Medium.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "StoryScript";
  src: url("fonts/StoryScript-Regular.ttf")
       format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ===== PANEL USERA ===== */

.user-bar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.user-panel{
  position: relative;
  flex: 1;              /* 🔥 ROZCIĄGA NA CAŁĄ SZEROKOŚĆ */
  display: flex;
  justify-content: flex-end; /* panel dalej po prawej */
  gap: 15px;
  padding-bottom: 120px;
}

#edit-box{
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 13px;
  font-family:Arial;
  color: #666;
  background: #fff8c1;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 6px;
  cursor:pointer;
}

#profile-menu {
  position: absolute;
  bottom: 0;
  gap: 16px;  
  display: flex;
  background: rgba(240,240,240,0.95);
  padding: 6px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#profile-menu {
  backdrop-filter: blur(6px);
}

#profile-menu button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

#profile-menu button:hover {
  background: rgba(0,0,0,0.1);
}

#profile-menu button {
  position: relative;
}

/* dymek */
#profile-menu button::after {
  content: attr(data-label);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.profile-answers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:20px;
}

.profile-answer{
  padding:4px;
  border:1px solid #eee;
  border-radius:10px;
  font-size:14px;
  line-height:1.5;
}

.material-symbols-ring{
  font-size:20px;
}

  .profile-answers{
    grid-template-columns:1fr;
  }

}

/* strzałka */
#profile-menu button::before {
  content: "";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #222;
  opacity: 0;
  transition: 0.2s;
}

/* hover */
#profile-menu button:hover::after,
#profile-menu button:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#profile-menu button:hover {
  background: rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

@media (min-width: 480px) {
  #profile-menu {
	  gap:10px;
  }
}

@media (min-width: 780px) {

  #profile-menu {
	position: absolute;
    bottom: 0;
	gap: 0;
	font-size: 24px;
    display: flex;
    background: rgba(240,240,240,0.95);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  #profile-menu .top-icon {
    font-size: 24px;   /* 🔥 większe */
    padding: 10px;
    border-radius: 10px;
    transition: 0.2s;
  }

  #profile-menu .top-icon:hover {
    background: rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
}

@media (min-width: 768px) {

  .top-icon::after {
    font-size: 13px;
    padding: 6px 16px;
  }
}

@media (min-width: 1024px) {

  #profile-menu .top-icon {
    font-size: 20px;
  }
}

.label {
  display: none;
}

@media (min-width: 768px) {

  .label {
    display: inline;
    margin-left: 6px;
    font-size: 14px;
  }

}

@media (min-width: 769px) and (max-width: 1199px) {

  #profile-menu .top-icon {
    font-size: 20px !important;
    padding: 6px;
  }

  #profile-menu .label {
    display: none !important;
  }
  
}

.top-icon {
  position: relative;
  transition: 0.2s;
}

.top-icon:hover .material-symbols-rounded {
  transform: scale(1.15);
  transition: 0.2s;
}

.top-icon.active .material-symbols-rounded {
  color: #1976d2; /* np. niebieski */
}

.top-icon.active {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* wiadomości */
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 999px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* 🔥 ukryte domyślnie */
}

.badge {
  animation: pop 0.2s ease;
}

.badge-alert {
  background: #e53935;
  color: #fff;
}

.badge-count {
  background: #e0e0e0;
  color: #333;
}

#avatar-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@keyframes pop {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  background:#ffffff;
  box-shadow:0 4px 20px rgba(0,0,0,0.05);
}

.profile-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(110px, 1fr));
  gap:10px;
  flex:1;
  min-width:320px;
  max-width:420px;
}

.profile-btn{
  width:100%;
  border:none;
  padding:10px 14px;
  border-radius:10px;
  background:#f1f1f1;
  cursor:pointer;
  font-size:14px;
  transition:0.2s;
  color: #000;
}

.profile-btn:hover{
  background:#e3e3e3;
  transform:translateY(-1px);
}

.profile-btn.danger{
  background:#ffe5e5;
}

.profile-btn.danger:hover{
  background:#ffcccc;
}

.profile-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.profile-main-info{
  display:flex;
  flex-direction:column;
  min-width:220px;
}

@media(max-width:768px){

  .profile-top{
    flex-direction:column;
  }

  .profile-actions{
    width:100%;
    max-width:none;
    min-width:auto;
    grid-template-columns:1fr;
  }

}

/* ===== START PAGE ===== */

/* ===== LOGIN ===== */

.container{
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
}

.card{
  background:white;
  padding:40px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
  text-align:center;
  width:400px;
}

.logo-index{
  font-size:40px;
  font-weight:600;
  color:#1e3a8a;
  font-family:Lobster;
}

.logo{
  font-size:24px;
  font-weight:600;
  margin-bottom:10px;
  color:#1e3a8a;
  font-family:Arial;
}

.subtitle{
  color:#666;
  margin-bottom:30px;
}

#email, #password, #password2 {
  padding: 10px;
  margin: 5px;
  border: 2px solid black;
  border-radius: 5px;
}

.remember-me{
    display:block;
    width:100%;
    margin:10px 5px 15px;
    text-align:left;
    font-size:14px;
    cursor:pointer;
}

.remember-me input{
    margin-right:8px;
    vertical-align:middle;
}
	
button.play, button.show-users-btn{
  width:100%;
  padding:10px;
  margin:6px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  background:#4f46e5;
  color:white;
  transition:0.2s;
}

/* ===== REGISTER ===== */

.auth-divider{
  margin:20px 0;
  text-align:center;
  color:#888;
  font-size:14px;
}

.social-btn{
  width:100%;
  padding:12px;
  margin-top:10px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:15px;
  font-weight:bold;
}

.google-btn{
  background:#fff;
  color:#333;
  border:1px solid #ddd;
}

.facebook-btn{
  background:#245799;
  color:white;
}

.apple-btn{
  background:#111;
  color:white;
}

.link{
  margin-top:10px;
}

/* ===== MODAL REGISTER / LOGIN ===== */

.auth-modal-content{
  background:#fff;
  padding:25px;
  border-radius:14px;
  text-align:center;
  max-width:320px;
  width:90%;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.auth-modal-text{
  font-size:14px;
  opacity:.8;
  margin-bottom:20px;
}

.password-rules{
    margin-top:10px;
    margin-bottom:15px;
    font-size:13px;
    color:#888;
}

.password-rule{
    margin:4px 0;
    transition:.2s;
	color:#777;
}

.password-rule.ok{
    color:#2e7d32;
    font-weight:600;
}

.password-rule::before{
    content:"✓";
    display:inline-block;
    width:18px;
    color:#bdbdbd;
    font-weight:bold;
}

.password-rule.ok::before{
    color:#2e7d32;
}

.password-rule .check{
    color:#bdbdbd;
    font-weight:bold;
    margin-right:8px;
}

.password-rule.ok .check{
    color:#2e7d32;
}

/* ===== SUMMARY ===== */

.show-users-btn{
  /*pointer-events:none;*/
  cursor:default;
}

.show-users{
  display:block;
  font-family:Roboto;
  width:100%;
  padding:10px;
  text-align:center;
  margin:10px;
  border:none;
  border-radius:8px;
  font-size:24px;
  transition:0.2s;
}

button:hover{
  background:#4338ca;
  color:#fff;
}

button.secondary{
  width:100%;
  padding:10px;
  margin:6px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  color:white;
  transition:0.2s;
  background:#e5e7eb;
  color:#111;
}

button.secondary:hover{
  background:#d1d5db;
}

.save-btn, .restart-btn, .preview-btn{
  border:none;
  padding:10px 20px;
  border-radius:30px;
  color:#fff;
  cursor:pointer;
  transition:.3s;
  font-weight:500;
  position:absolute;
  width:auto;
}

.save-btn{
  background:#2563eb;
  right:10%;
  bottom: 10%;
}

.preview-btn{
  background:#e0a46e;
  right:10%;
  bottom: 120%;
}

.restart-btn{
  background:#19bf1b;
  left:10%;
  bottom: 10%;
}
  
.save-btn:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

.preview-btn:hover{
  background:#cb8b51;
  transform:translateY(-2px);
}

.restart-btn:hover{
  background:#17a618;
  transform:translateY(-2px);
}

.slider-wrapper{
  position:relative;
  width:100%;
  overflow:hidden;
  margin-top:40px;
  touch-action:pan-y;
}

.slider{
  display:flex;
  transition:transform .5s ease-in-out;
  width:100%;
}

.slide{
  min-width:100%;
  padding:20px 120px 200px;
}


.logout-btn,
.premium-btn,
#avatar-container {
  display: none;
}


@media (max-width: 960px){
  .slide{
  padding:20px 80px 200px;
}
}

.question-card{
  background-color: #fff;
  /* 🔲 kratka */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  /* 🔴 margines (jedna linia z lewej) */
  position: relative;
  padding:25px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  margin-bottom:20px;
  border:1px solid #8e8e8e;
  padding-bottom: 10px;
}

.question-card::before, .summary-card::before,
.match-inner::before, .user-bar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%; /* odsunięcie od krawędzi */
  width: 2px;
  height: 100%;
  background: rgba(255, 0, 0, 0.25);
}

.question-card h3{
  margin-bottom:6px;
  font-weight:600;
  color:#1e3a8a;
}

.note{
  font-size:13px;
  color:#64748b;
  margin-bottom:10px;
}

.input-box{position:relative;margin-bottom:10px}

.input-box input{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#1e293b;
  font-size:14px;
  transition:.2s;
}

.input-box input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.15);
}


input:disabled{
background:#eee;
cursor:not-allowed;
}

.suggestions{
  position:absolute;
  width:100%;
  background:#ffffff;
  border-radius:10px;
  margin-top:6px;
  display:none;
  max-height:180px;
  overflow-y:auto;
  z-index:10;
  border:1px solid #e2e8f0;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.suggestions div{
  padding:8px 12px;
  cursor:pointer;
  transition:.2s;
}

.suggestions div:hover{
  background:#eff6ff;
}

.triple{display:flex;gap:10px}
.triple .input-box{flex:1}

.nav-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#ffffff;
  border:1px solid #cbd5e1;
  width:48px;
  height:48px;
  border-radius:50%;
  color:#1e3a8a;
  font-size:20px;
  cursor:pointer;
  transition:.3s;
  z-index:50;
  box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.nav-arrow:hover{
  background:#eff6ff;
}

.nav-arrow.left{left:20px}
.nav-arrow.right{right:20px}

.pagination{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  justify-content:center;
  gap:10px;
}

.dot{
  width:24px;
  height:24px;
  background:#cbd5e1;
  border-radius:50%;
  cursor:pointer;
  transition:.3s;
}

.dot.active{
  background:#2563eb;
  transform:scale(1.2);
}

.summary{
  display: none;
  padding:40px 120px;
}

.summary{
  display: none;
  padding:40px 120px;
}

.summary-card{
  background-color: #fff;
  /* 🔲 kratka */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  /* 🔴 margines (jedna linia z lewej) */
  position: relative;
  padding:30px;
  border-radius:16px;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
  border:1px solid #e2e8f0;
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
}

th,td{
  padding:10px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
  font-size:14px;
}

th{
  background:#f1f5f9;
  color:#1e3a8a;
}

.match-counter{
  margin-top:20px;
  font-size:16px;
  color:#1e3a8a;
  font-weight:500;
}

.match-title{
  text-align:center;
  font-weight: bold;
}

/* ===== USER BAR ===== */

.user-bar{
  background-color: #fff;
  /* 🔲 kratka */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  /* 🔴 margines (jedna linia z lewej) */
  position: relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 30px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.logo-left{
  font-weight:600;
  font-size:60px;
  font-family:FleurDeLeah;
//*  font-family:Neonderthaw; *//
}

.user-panel{
  display:flex;
  align-items:center;
  gap:20px;
}

.user-info{
  text-align:right;
  font-size:14px;
}

.auth-box{
    flex-shrink:0;
}

.login-btn, .register-btn {
  border:1px solid #000;
  padding:8px 14px;
  font-size:14px;  
  border:none;
  padding:10px 20px;
  border-radius:10px;
  margin: 4px;
  color:#000;
  cursor:pointer;
  transition:.3s;
  font-weight:500;
  width:auto;
}

.login-btn {
  background:#ffe800;
}

.register-btn {
  background:#f1cce7;
}

.account-buttons{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.admin-panel-btn,
.logout-btn,
.premium-btn{
    width:100%;
}

.logout-btn{
  padding:8px 14px;
  background:#ef4444;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
  width: auto;
}

.logout-btn:hover{
  background:#dc2626;
}

.premium-btn {
  background: white;
  border: 1px solid #d5d5d5;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  width: 100px;
  color: #dc2626;
}

.premium-btn:hover {
  background:#fff;
  border: none;
  color:#ccc;
}

.admin-panel-btn{
    display:none;
    width:100%;
    margin-bottom:10px;
    padding:8px 14px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#4d6bff;
    color:#fff;
    transition:.2s;
}

.admin-panel-btn:hover{
    opacity:.9;
}

/* ===== GIFTS ===== */

.profile-gifts{
    width:100%;
}

.profile-gifts-icons{
    display:flex;
    justify-content:flex-end;
    gap:14px;
}

.profile-gifts-icons span{
    font-size:24px;
    cursor:pointer;
    opacity:1;
    transition:.2s;
}

.profile-gifts-icons span:hover{
    opacity:1;
    transform:scale(1.15);
}

@media(max-width:600px){
.profile-gifts-icons span{
    font-size:18px;
}
}


/* ===== OWNER GIFTS ===== */

.owner-gifts{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    margin:20px 0 25px 0;
    padding-bottom:25px;
    border-bottom:1px solid #ddd;
}

.owner-gift-icon{
    font-size:24px;
    cursor:pointer;
    transition:.2s;
    user-select:none;
}

.owner-gift-icon:hover{
    transform:scale(1.12);
}

	
/* ===== BOTTOM BAR ===== */

.bottom-bar{
  position:relative;
  width:100%;
  margin-top:5px;
  height:40px;
}

.avatar {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius:0;
}

.avatar-letter {
  position: relative;
  width: 100%;
  height: 100%;
  background: #2c7be5;
  color: white;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border:1px solid #d1d1d1;
  object-fit: cover;
}

.avatar-edit{
  position:absolute;
  bottom:-8px;
  right:-8px;
  font-size:11px;
  padding:3px 6px;
  border:none;
  border-radius:6px;
  background:#4f46e5;
  color:white;
  cursor:pointer;
}

#avatar-container .premium-badge{
  position: absolute;
  z-index: 999; /* 🔥 gwiazdka na wierzchu */
  font-size: 18px;
  display: none;
}

.question
{
margin-bottom:40px;
}

.stats span
{
cursor:pointer;
display:block;
margin:3px;
}

/* ===== TRIPLE INPUT ROW ===== */

.triple-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.triple-box {
  flex: 1;
}

.triple-input {
  width: 100%;
  box-sizing: border-box;
}

.question-note {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
}

.dual-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dual-box {
  flex: 1;
  min-width: 200px;
}

.dual-label {
  font-weight: 600;
  margin-bottom: 5px;
}


.user-match {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: flex-end; /* bo masz right */
  align-items: center;
  gap: 6px;
}

.user-match span {
  font-weight: bold;
  color: #000;
}

.user-match span:not(.match-dot) {
  font-weight: bold;
  color: #000;
}

.match-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;   /* 🔥 KLUCZ */
}

/* ===== NOTKA DO PYTAŃ ===== */

.example {
  font-style: italic;
  color: #000;
  font-weight: bold;
}

.question-note {
  line-height: 1.4;
  font-size: 14px;
  color: #555;
}

/* ===== PYTANIE + IKONKA ===== */

.question-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-icon, .gift-icon{
  cursor: pointer;
  font-size: 20px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.top-icon:hover, .gift-icon:hover{
  opacity: 1;
  transform: scale(1.2);
}

/* ===== WIERSZ ROZWIJANY ===== */

.top-row{
  background: #f9fafb;
}

/* ===== BOX Z TOP ===== */

.top-answers-box{
  max-height: 150px; /* 🔥 ok. 5 odpowiedzi */
  overflow-y: auto;
  padding: 12px 16px;
  border-left: 3px solid #4f46e5;
  background: #f3f4f6;
  border-radius: 8px;
  margin: 5px 0;
  animation: slideDown 0.25s ease;
  width: 50%;
}

@media (max-width: 960px){
  .top-answers-box{
  width: 100%;
}
}

/* scrollbar */

.top-answers-box::-webkit-scrollbar{
  width: 6px;
}

.top-answers-box::-webkit-scrollbar-thumb{
  background: #ccc;
  border-radius: 4px;
}

.top-item {
  padding: 6px 0;
  font-size: 14px;
}

/* ===== POJEDYNCZA ODPOWIEDŹ ===== */

.top-item{
  padding: 6px 0;
  font-size: 14px;
  color: #111827;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.top-item:last-child{
  border-bottom: none;
}

/* ===== LICZBA OSÓB ===== */

.top-count{
  font-weight: bold;
  color: #4f46e5;
  cursor: pointer;
}

.top-item:hover{
  background: #eef2ff;
  cursor: pointer;
}

/* ===== ANIMACJA ===== */

@keyframes slideDown{
  from{
    opacity: 0;
    transform: translateY(-5px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.top-icon, .gift-icon {
  position: relative;
  cursor: pointer;
  display: inline-block; /* 🔥 KLUCZ */
}

/* tooltip */
.top-icon::after, .gift-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);  
  background: #222;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

/* strzałka */
.top-icon::before, .gift-icon::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%); 
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* hover */
.top-icon:hover::after,
.top-icon:hover::before,
.gift-icon:hover::after,
.gift-icon:hover::before {
  opacity: 1;
}


/* ===== MOBILE ===== */

@media(min-width:768px) and (max-width:1099px){
.summary{
  display: none;
  padding:40px 80px;
  }
}

@media (max-width: 768px){
  .dual-wrapper,
  .triple-row {
    display: block !important;
  }

  .dual-box,
  .triple-box {
    display: block !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }

  .dual-box input,
  .triple-box input {
    width: 100% !important;
    display: block !important;
  }

.top-answers-box{
	width: 100%;
}

.summary{
  padding:10px 20px;
}

.logout-btn{
  padding:4px 10px;
  width: auto;
}

}


/* ===== TABELA + DOPASOWANIA ===== */


.summary-layout{
  display:flex;
  gap:20px;
  align-items:flex-start;
}

.summary-left{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.summary-card{
  width:100%;
  min-width:0;
}

.match-sidebar{
  width:30%;
  flex-shrink:0;
}

@media (max-width:1099px){

  .summary-layout{
    display:flex !important;
    flex-direction:column !important;
  }

  .summary-left{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
  }

  .match-sidebar{
    width:100% !important;
    order:-1 !important;
    margin-bottom:20px !important;
    position:relative !important;
    z-index:2;
  }

  .match-inner{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    width:100% !important;
  }

  .summary-card{
    width:100% !important;
    position:relative;
    z-index:1;
  }

  #tag-matches-container{
    width:100% !important;
  }

}

.match-inner{
  position: relative;
  transition: top 0.15s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-radius: 12px;
  background-color: #fff;
  /* 🔲 kratka */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  /* 🔴 margines (jedna linia z lewej) */
  position: relative;
  padding: 10px;
}

.match-inner p{
  font-size:12px;
}

@media (max-width: 768px){

  table{
    width: 100%;
  }

  tbody{
    display: table-row-group;
  }

  tr{
    display: block;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
  }

  td{
    display: block;
    width: 100%;
    border: none;
    padding: 5px 0;
  }

  /* 🔥 TOP wraca do normalnej tabeli */
  .top-row{
    display: table-row;
  }

  .top-row td{
    display: table-cell;
    width: 100%;
  }

}


/* =========================================
   MATCH-INNER — OGRANICZENIE LISTY
========================================= */

/* DESKTOP */

@media (min-width: 1100px){
  .summary-layout{
    align-items: stretch;
  }

  .summary-left,
  .match-sidebar{
    min-height: 0;
  }

  .match-sidebar{
    display: flex;
    min-height: 0;
  }

  .match-inner{
    width: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
  }

  #matched-users-list,
  #users-list{
    min-height: 0;
    overflow-y: auto;
  }
}

/* SZUKAJ — MATCH-INNER NIE ROZCIĄGAJ */

@media (min-width: 1100px){
  #search-layout{
    align-items: flex-start !important;
  }

  #search-layout .match-sidebar{
    align-self: flex-start !important;
    display: block !important;
    min-height: auto !important;
  }

  #search-layout .match-inner{
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
  }
}

/* MOBILE / TABLET */

@media (max-width: 1099px){
  .match-inner{
    width: 100%;
  }

  #matched-users-list,
  #users-list,
  #search-users-list{
    max-height: 650px;
    overflow-y: auto;
  }
}


/* MAŁE TELEFONY */

@media (max-width: 768px){
  #matched-users-list,
  #users-list,
  #search-users-list{
    max-height: 650px;
    overflow-y: auto;
  }
}


/* ===== MOBILE: tabela jako karty ===== */

@media (max-width: 768px){
  /* ukrywamy nagłówek tabeli */
  table thead{
    display: none;
  }

  tr{
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
  }
  
  td{
    border: none;
    padding: 5px 0;
  }
}


/* ===== MOBILE ===== */

/* ===== USER PANEL ===== */

@media (max-width: 768px){
  .user-bar{
    display: flex;
    flex-direction: column;
  }

  /* logo na górze */
  .logo-left{
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  /* panel usera jako wiersz */
  .user-panel{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
	margin-bottom: 20px;
  }

  /* lewa strona — dane */
  .user-info{
    flex: 1;
  }

  /* prawa strona — avatar + logout */
  .avatar{
    position: relative;
    overflow: visible; /* 🔥 klucz */
    flex-shrink: 0;
  }

  .avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  
  /* 🔥 przycisk NIE w środku avatara */
  .avatar-edit{
    position: absolute;
    bottom: -18px; /* pod avatar */
    left: 0;
    width: 100%;
    font-size: 11px;
  }
}

.avatar{
  position: relative; /* 🔥 konieczne */
}

  /* 🔥 gwiazdka premium */
  .premium-badge{
    position: absolute;
    top: -5px;
    left: -5px;
    display: block;
    z-index: 2;
  }
  
  
  /* ===== KOLOROWE KROPKI ===== */
  
.match-dot {
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  border-radius: 50%;
  margin-right: 8px;
}

.match-dot.violet { background: #8b5cf6; }
.match-dot.blue { background: #3498db; }
.match-dot.green { background: #2ecc71; }
.match-dot.yellow { background: #f1c40f; }
.match-dot.orange { background: #e67e22; }
.match-dot.red { background: #e74c3c; }


  /* ===== OKNO PREMIUM MODAL ===== */


body {
  position: static !important;
}

#premium-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 999999 !important;
}

.premium-box {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 12px !important;
/*width: 320px !important;*/
  max-width: 90% !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

#premium-modal.active {
  display: flex !important;
}

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.premium-check-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
}

.premium-feature strong {
    font-weight: 700;
}

.premium-title-icon {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    margin-right: 4px;
}

.premium-description {
    margin-bottom: 14px;
}

.premium-description p {
    margin: 0;
    line-height: 1.45;
}

  /* ===== PRZYCISK POKAŻ PROFIL ===== */

.view-profile-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  opacity: 0.7;
  transition: 0.2s;
}

.view-profile-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.tooltip:hover::after {
  opacity: 1;
}

@media(max-width:768px){

  .profile-actions{
    grid-template-columns:repeat(3, 1fr) !important;
    gap:8px;
  }

  .profile-btn{
    padding:12px 6px !important;
    min-height:48px;
  }

}

.profile-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.profile-icon{
  font-size:18px;
}

@media(max-width:480px){
  .profile-text{
    display:none;
  }

  .profile-btn{
    padding:10px;
    min-width:auto;
    justify-content:center;
  }

  .profile-icon{
    margin:0;
    font-size:20px;
  }
}

/* =========================================
   FAVORITES GRID
========================================= */

#cards-container{
  display:none;
  width:100%;
}

/* GRID */

.users-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
  gap:10px;
  width:100%;
}

/* CARD */

.user-card{
  background:#fff;
  border:1px solid #d9d9d9;
  border-radius:20px;
  padding:8px;
  min-height:200px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-sizing:border-box;
  min-width:0;
  overflow:hidden;
}

/* TOP */

.user-card-top{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

/* AVATAR */

.user-avatar{
  width:60px;
  height:60px;
  min-width:60px;
  min-height:60px;
  flex-shrink:0;
  border-radius:0;
  background:#d9d9d9;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:700;
  line-height:1;
  color:#22304a;
  overflow:hidden;
}

/* INFO */

.card-user-info{
  flex:1;
  text-align:left;
}

.user-name-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.user-name{
  font-size:20px;
  font-weight:700;
  color:#22304a;
}

.premium-star{
  font-size:18px;
}

.user-location{
  margin-top:8px;
  font-size:16px;
  color:#666;
}

.user-status{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:16px;
}

.status-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#39c46a;
}

.last-visit{
  margin-top:6px;
  font-size:14px;
  color:#777;
}

.user-name,
.user-location,
.last-visit{

  word-break:break-word;
}

/* BUTTONS */

.user-buttons{
  display:flex;
  gap:8px;
}

.card-profile-btn,
.card-remove-btn{
  flex:1;
  border:none;
  padding:6px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

/* zielony */

.card-profile-btn{
  background:#b7e51d;
  color:#111;
}

/* czerwony */

.card-remove-btn{
  background:#ff1e1e;
  color:#fff;
}

/* MOBILE */

@media(max-width:480px){

  .users-grid{
    grid-template-columns:1fr;
  }

  .user-card{
    min-height:auto;
	min-width:0;
	overflow:hidden;
  }

  .user-name{
    font-size:12px;
  }

  .user-location,
  .user-status,
  .last-visit{
    font-size:16px;
  }

}

/* =========================================
   TV
========================================= */

@media(min-width:1401px){

  .users-grid{
    grid-template-columns:
      repeat(6, 1fr);
  }

}

/* =========================================
   DESKTOP
========================================= */

@media(max-width:1800px){

  .users-grid{
    grid-template-columns:
      repeat(5, 1fr);
  }

}

/* =========================================
   LAPTOP
========================================= */

@media(max-width:1400px){

  .users-grid{
    grid-template-columns:
      repeat(4, 1fr);
  }

}

/* =========================================
   TABLET
========================================= */

@media(max-width:1024px){

  .users-grid{
    grid-template-columns:
      repeat(3, 1fr);
  }

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:640px){

  .users-grid{
    grid-template-columns:
      repeat(2, 1fr);
  }

}

@media (max-width: 420px) {
  .users-grid {
    grid-template-columns: 1fr;
  }
  
}

/* =========================================
   DÓŁ KARTY
========================================= */

.user-bottom-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

/* =========================================
   STATUS
========================================= */

.user-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  text-align:left;
}

/* =========================================
   OSTATNIA WIZYTA
========================================= */

.last-visit{
  font-size:13px;
  color:#777;
  text-align:left;
}

/* =========================================
   TABLET + LAPTOP
   640px - 1400px
========================================= */

@media (min-width:641px) and (max-width:1400px){

  .user-card{
    padding:10px;
    border-radius:18px;
    min-height:180px;
  }

  .user-avatar{
    width:52px;
    height:52px;
    min-width:52px;
    min-height:52px;
    font-size:24px;
  }

  .user-name{
    font-size:16px;
  }

  .premium-star{
    font-size:15px;
  }

  .user-location{
    font-size:13px;
    margin-top:4px;
  }

  .user-status{
    font-size:12px;
    gap:6px;
    margin-top:6px;
  }

  .status-dot{
    width:10px;
    height:10px;
  }

  .last-visit{
    font-size:11px;
  }

  .user-buttons{
    gap:6px;
  }

  .card-profile-btn,
  .card-remove-btn{
    padding:5px 8px;
    font-size:11px;
    border-radius:10px;
  }

}

/* =========================================
   MOBILE
   poniżej 640px
========================================= */

@media (max-width:640px){

  .user-card{
    padding:8px;
    border-radius:14px;
    min-height:auto;
  }

  .user-card-top{
    gap:8px;
  }

  .user-avatar{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    font-size:20px;
  }

  .user-name{
    font-size:13px;
    line-height:1.1;
  }

  .premium-star{
    font-size:13px;
  }

  .user-location{
    font-size:11px;
    margin-top:3px;
  }

  .user-status{
    font-size:10px;
    gap:5px;
    margin-top:4px;
  }

  .status-dot{
    width:8px;
    height:8px;
  }

  .last-visit{
    font-size:9px;
    line-height:1.2;
  }

  .user-bottom-info{
    margin-top:6px;
    gap:3px;
  }

  .user-buttons{
    gap:5px;
  }

  .card-profile-btn,
  .card-remove-btn{
    padding:5px 6px;
    font-size:9px;
    border-radius:8px;
  }

}

/* =========================================
   AVATAR IMAGE NA LIŚCIE ULUBIONE, ZNAJOMI, ZABLOKOWANI
========================================= */

.user-avatar-img{
  width:60px;
  height:60px;
  min-width:60px;
  min-height:60px;
  border-radius:0;
  object-fit:cover;
  display:block;
  overflow:hidden;
}

/* =========================================
   INVITES LAYOUT
========================================= */

.invites-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px;
}

/* =========================================
   COLUMN
========================================= */

.invite-column{
  background:#fff;
  border:1px solid #ddd;
  border-radius:16px;
  padding:14px;
}

/* =========================================
   TITLE
========================================= */

.invite-column-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:14px;
  color:#22304a;
}

/* =========================================
   LIST
========================================= */

.invite-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* =========================================
   ITEM
========================================= */

.invite-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #bdbdbd;
}

/* =========================================
   USER
========================================= */

.invite-user{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.invite-name{
  font-weight:700;
}

.invite-meta{
  font-size:13px;
  color:#666;
}

/* =========================================
   ACTIONS
========================================= */

.invite-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

/* =========================================
   BUTTONS
========================================= */

.invite-actions button{
  border:none;
  border-radius:10px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}

.invite-view-btn{
  background:#ddd;
}

.invite-accept-btn{
  background:#39c46a;
  color:#fff;
}

.invite-reject-btn{
  background:#ff4d4d;
  color:#fff;
}

.invite-cancel-btn{
  background:#ff9f43;
  color:#fff;
}

.invite-resend-btn{
  background:#4f46e5;
  color:#fff;
}

/* =========================================
   EMPTY
========================================= */

.invite-empty{
  opacity:0.7;
  font-size:14px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:900px){

  .invites-layout{
    grid-template-columns:1fr;
  }

}

/* =========================================
   NOTKA BLOCKED
========================================= */

.profile-blocked-box{
  background:#ffe6e6;
  border:1px solid #ffb3b3;
  color:#cc0000;
  padding:6px;
  border-radius:12px;
  margin-bottom:8px;
  font-size:12px;
  font-weight:600;
  text-align:center;
}


/* =========================================
   NOTKA ZAWIESZENIE (WIDOK U INNEGO PROFILU)
========================================= */

.profile-suspended-box{
  background:#d3d3d3;
  border:1px solid #a09c9c;
  color:#413f3f;
  padding:6px;
  border-radius:12px;
  margin-bottom:8px;
  font-size:12px;
  font-weight:600;
  text-align:center;
}


/* =========================================
   NOTKA ZAWIESZENIE (WIDOK NA NASZYM PRIFILU)
========================================= */

#account-status-notice{
  display:none;
  margin-top:10px;
  margin-bottom:10px;
  padding:8px 12px;
  border-radius:8px;
  background:#d3d3d3;
  border:1px solid #a09c9c;
  color:#413f3f;
  font-family:Arial;
  font-size:13px;
  font-weight:bold;
  text-align:center;
}

/* =========================================
   MODAL ZAWIEŚ / USUŃ KONTO
========================================= */

.custom-modal{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.5);
  z-index:99999;
}

.custom-modal-content{
  background:#fff;
  width:90%;
  max-width:400px;
  padding:20px;
  border-radius:12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.custom-modal-content h3{
  margin:0 0 15px 0;
  text-align:center;
}

.custom-modal-content input{
  width:100%;
  padding:10px;
  box-sizing:border-box;
  border:1px solid #ccc;
  border-radius:6px;
}

.custom-modal-content button{
  padding:8px 14px;
  cursor:pointer;
  border:none;
  border-radius:6px;
}

.user-suspended{
  opacity:.45;
  filter:grayscale(100%);
}

/* =========================================
   GALERIA
========================================= */

/*SLOT*/

.photo-slot{
  position:relative;
  aspect-ratio:1/1;
  background:#ddd;
  border-radius:24px;
  overflow:hidden;  cursor:pointer;
}

.premium-locked-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-locked-slot .photo-icon {
	position: static;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    display: block;
}

/*ZDJĘCIE*/

.photo-slot img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/*PLUS*/

.photo-slot.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:80px;
  color:#333;
  transition:.2s;
}

/*BUTTON USUŃ*/

.photo-delete-btn{
  position:absolute;
  right:0;
  bottom:0;
  border:none;
  padding:10px 18px;
  background:#a64db6;
  color:#000;
  cursor:pointer;
}

/*GRID*/

.photos-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

/*MOBILE*/

@media(min-width:641px) and (max-width:1099px){
  .photos-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:640px){
  .photos-grid{
    grid-template-columns:repeat(2,1fr);
  }
}


/* =========================================
   MODAL GALERII
========================================= */

.photos-modal{
  position:fixed;
  inset:0;
  z-index:999999;
}

/* =========================================
   OVERLAY
========================================= */

.photos-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  width:100%;
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow-y:auto;
  padding:20px;
  z-index:99999999;
}

/* =========================================
   BOX
========================================= */

.photos-modal-box{
  width:min(1000px, 95vw);
  max-height:90vh;
  overflow:auto;
  background-color: #fff;
  /* 🔲 kratka */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  /* 🔴 margines (jedna linia z lewej) */
  position: relative;
  border-radius:24px;
  box-sizing:border-box;
  padding:20px;
  padding-top:50px;
  position:relative;
  margin:auto;
  z-index:100000000;
}

/* =========================================
   CLOSE
========================================= */

.photos-modal-close{
  position:absolute;
  top:12px;
  right:18px;
  font-size:32px;
  color:#000;
  cursor:pointer;
  z-index:10;
}

/* =========================================
   GRID
========================================= */

.photos-modal-grid{
  display:grid;
  grid-template-columns:
    repeat(3,1fr);
  gap:14px;
}

/* =========================================
   ITEM
========================================= */

.photos-modal-item{
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:16px;
  cursor:pointer;
}

/* =========================================
   IMG
========================================= */

.photos-modal-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================================
   FULLSCREEN
========================================= */

.photo-fullscreen{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.96);
  z-index:9999999;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================
   FULL IMG
========================================= */

.photo-fullscreen-img{
  max-width:95vw;
  max-height:95vh;
  object-fit:contain;
}

/* =========================================
   NAWIGACJA STRZAŁKAMI
========================================= */

.photo-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:60px;
  color:#fff;
  cursor:pointer;
  user-select:none;
  padding:20px;
}

.photo-nav.left{
  left:10px;
}

.photo-nav.right{
  right:10px;
}

.photo-fullscreen-close{
  position:absolute;
  top:20px;
  right:20px;
  font-size:34px;
  color:#fff;
  cursor:pointer;
}

/* =========================================
   FULLSCREEN OVERLAY
========================================= */

.photo-fullscreen-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================
   FULLSCREEN BOX
========================================= */

.photo-fullscreen-box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================
   MOBILE SMALL
========================================= */

@media(max-width:600px){
  .photos-grid,
  .photos-modal-grid,
  .profile-photos-grid{
    grid-template-columns:
      repeat(2,1fr);
  }
}


/* =========================================
   WIADOMOŚCI
========================================= */

/* =========================================
   MESSAGE MODAL
========================================= */

.message-modal{
  position:fixed;
  inset:0;
  z-index:9999999;
}

/* OVERLAY */

.message-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
}

/* BOX */

.message-modal-box{
  width:min(900px, 95vw);
  height:min(800px, 90vh);
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* =========================================
   HEADER
========================================= */

.message-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px;
  border-bottom:1px solid #eee;
}

.message-user-info{
  display:flex;
  align-items:center;
  gap:14px;
}

.message-avatar,
.message-avatar-empty{
  width:60px;
  height:60px;
  border-radius:50%;
  object-fit:cover;
}

.message-avatar-empty{
  background:#ccc;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:24px;
  font-weight:bold;
}

.message-name{
  font-size:18px;
  font-weight:bold;
}

.message-meta{
  font-size:13px;
  opacity:0.7;
}

.message-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.message-close{
  font-size:28px;
  cursor:pointer;
}

/* =========================================
   BODY
========================================= */

.message-body{
  flex:1;
  overflow:auto;
  padding:20px;
  background:#f7f7f7;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* =========================================
   ROWS
========================================= */

.message-row{
  display:flex;
}

.message-row.mine{
  justify-content:flex-end;
}

.message-row.their{
  justify-content:flex-start;
}

/* =========================================
   BUBBLE
========================================= */

.message-bubble{
  max-width:75%;
  padding:14px;
  border-radius:18px;
  word-break:break-word;
}

/* MOJE */

.message-row.mine .message-bubble{
  background:#f3e0e8
}

/* CUDZE */

.message-row.their .message-bubble{
  background:#c7a6ff;
}

/* =========================================
   CONTENT
========================================= */

.message-content{
  font-size:15px;
  line-height:1.4;
}

/* =========================================
   DATE
========================================= */

.message-date{
  margin-top:8px;
  font-size:11px;
  opacity:0.7;
}

/* READ */

.message-read{
  margin-top:4px;
  font-size:11px;
  opacity:0.7;
}

/* =========================================
   FOOTER
========================================= */
.message-footer{
  padding:16px;
  border-top:1px solid #eee;
  display:flex;
  gap:10px;
}

.message-input{
  flex:1;
  resize:none;
  height:60px;
  border-radius:14px;
  border:1px solid #ddd;
  padding:12px;
  font-size:14px;
}

.message-send-btn{
  border:none;
  background:#d36cf0;
  color:#fff;
  border-radius:14px;
  padding:0 24px;
  cursor:pointer;
  font-weight:bold;
}

.message-attachment-btn,
.group-chat-attachment-btn{
  width:42px;
  height:42px;
  padding:9px;
  flex:0 0 42px;
  border:1px solid #d8d8d8;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.2s;
}

.message-attachment-btn:hover,
.group-chat-attachment-btn:hover{
  background:#f5f7fb;
}

.message-attachment-btn img,
.group-chat-attachment-btn img{
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
}

.message-footer .emoji-btn img,
.group-chat-input-area .emoji-btn img{
    width:28px;
    height:28px;
    display:block;
    object-fit:contain;
}


/* =========================================
   ZAŁĄCZNIKI
========================================= */

.message-attachment-preview{
  padding:0 16px;
}

.message-selected-attachment{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:8px 10px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#f7f7f7;
  margin-bottom:8px;
}

.message-selected-attachment-icon{
  flex:0 0 auto;
}

.message-selected-attachment-name{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}

.message-selected-attachment-remove{
  flex:0 0 auto;
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  padding:2px 5px;
}


/* =========================================
   MINIATURKI ZAŁĄCZNIKÓW
========================================= */

.message-attachment{
  margin-top:10px;
  max-width:280px;
}

.message-attachment-image-link{
  display:block;
}

.message-attachment-image{
  display:block;
  width:100%;
  max-width:280px;
  max-height:220px;
  object-fit:cover;
  cursor:pointer;
}

.message-attachment-name{
  margin-top:6px;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.message-attachment-actions{
  display:flex;
  gap:8px;
  margin-top:7px;
}

.message-attachment-actions a{
  font-size:12px;
  text-decoration:none;
  padding:5px 9px;
  border-radius:7px;
  border:1px solid #ddd;
  background:#fff;
}

.message-attachment-file{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#f8f8f8;
}

.message-attachment-file-icon{
  font-size:28px;
  flex:0 0 auto;
}

.message-attachment-file-info{
  min-width:0;
  flex:1;
}

.message-attachment-size{
  margin-top:2px;
  font-size:11px;
  opacity:.65;
}

/* =========================================
   WIADOMOŚCI — ZAŁĄCZNIKI / LIGHTBOX
========================================= */

/* Przycisk "Wyświetl" dla zdjęcia
   ma wyglądać tak samo jak link "Wyświetl"
   dla dokumentów */

.message-attachment-actions
.message-attachment-view{
  font-family:inherit;
  font-size:12px;
  text-decoration:none;
  padding:5px 9px;
  border-radius:7px;
  border:1px solid #ddd;
  background:#fff;
  color:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:normal;
}


/* HOVER */

.message-attachment-actions
.message-attachment-view:hover{
  background:#f5f5f5;
}


/* =========================================
   LIGHTBOX
========================================= */

.message-image-lightbox{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:10000000;
}


/* CIEMNE TŁO */

.message-image-lightbox-overlay{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  cursor:pointer;
}


/* ZDJĘCIE */

.message-image-lightbox-image{
  display:block;
  max-width:95vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:6px;
  box-shadow:
    0 10px 40px rgba(0,0,0,.5);
  cursor:default;
}


/* X */

.message-image-lightbox-close{
  position:absolute;
  top:20px;
  right:25px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:
    background .2s ease,
    transform .2s ease;
}


.message-image-lightbox-close:hover{
  background:rgba(255,255,255,.3);
  transform:scale(1.05);
}


/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

  .message-image-lightbox-overlay{
    padding:15px;
  }

  .message-image-lightbox-image{
    max-width:96vw;
    max-height:88vh;
  }

  .message-image-lightbox-close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    font-size:21px;
  }

}

/* =========================================
   LISTA WIADOMOŚCI
========================================= */

.messages-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* =========================================
   ITEM
========================================= */

.message-list-item{
  display:flex;
  gap:20px;
  border-radius:28px;
  overflow:hidden;
  min-height:140px;
  border:1px solid rgba(0,0,0,0.08);
}

/* OTRZYMANE */

.message-list-item.their{
  background:#efeaf9;
}

/* WYSŁANE */

.message-list-item.mine{
  background:#f3e0e8;
}

/* =========================================
   LEWA STRONA
========================================= */

.message-user-side{
  width:300px;
  padding:10px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}

/* =========================================
   AVATAR
========================================= */

.message-list-avatar,
.message-list-avatar-empty{
  width:70px;
  height:70px;
  border-radius:0;
  object-fit:cover;
  flex-shrink:0;
}

.message-list-avatar-empty{
  background:#ddd;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:34px;
  font-weight:bold;
}

/* =========================================
   DANE
========================================= */

.message-user-data{
  flex:1;
}

.message-user-name{
  font-size:20px;
  font-weight:bold;
  display:flex;
  align-items:center;
  gap:8px;
}

.message-name-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.message-status{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.message-profile-eye{
  cursor:pointer;
  font-size:14px;
  margin-left:6px;
}

.message-user-meta{
  margin-top:6px;
  font-size:16px;
  opacity:0.8;
}

.message-user-status{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

/* =========================================
   PRAWA STRONA
========================================= */

.message-preview-side{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:14px 18px 14px 0;
}

/* =========================================
   PREVIEW
========================================= */

.message-preview{
  flex:1;
  background:#fff;
  border:1px solid rgba(0,0,0,0.4);
  padding:14px;
  overflow:hidden;
  font-size:16px;
  border-radius:4px;
}

/* =========================================
   DÓŁ
========================================= */

.message-preview-bottom{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:20px;
}

/* =========================================
   BUTTON
========================================= */

.message-show-btn{
  border:none;
  background:#4c36f3;
  padding:10px 18px;
  cursor:pointer;
  border-radius:4px;
}

.message-delete-btn{
  border:none;
  background:#ff8f8f;
  padding:10px 18px;
  border-radius:4px;
  cursor:pointer;
}

.message-restore-btn{
  border:none;
  background:#b5e61d;
  padding:10px 18px;
  border-radius:4px;
  cursor:pointer;
}

/* =========================================
   DATA
========================================= */

.message-preview-date{
  font-size:14px;
  opacity:0.8;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:900px){

  .message-list-item{
    flex-direction:column;
  }

  .message-user-side{
    width:100%;
	padding-bottom:0;
  }

  .message-preview-side{
    padding:0 18px 18px;
  }
}

@media(min-width:601px) and (max-width:900px){

  .message-preview{
    font-size:14px;
  }
}
 
@media(max-width:600px){

  .message-user-name{
    font-size:16px;
  }

  .message-user-meta,
  .message-user-status{
    font-size:14px;
  }

  .message-preview{
    font-size:12px;
  }
  
  .message-preview-date{
  font-size:12px;
  }
}

@media(max-width:480px){

  .tab-text{
    display:none;
  }

  .messages-tab{
    min-width:48px;
    padding:10px;
    display:flex;
    justify-content:center;
    align-items:center;
  }

}

/* =========================================
   TABS
========================================= */

.messages-tabs{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.messages-tab{
  border:none;
  padding:10px 18px;
  border-radius:12px;
  cursor:pointer;
  background:#ddd;
}

.messages-tab.active{
  background:#b5e61d;
  font-weight:bold;
}

/* =========================================
   CREATE GROUP MODAL
========================================= */

.create-group-modal{
  position:fixed;
  inset:0;
  z-index:999999;
}

.create-group-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.create-group-box{
  width:min(520px, 95vw);
  background:#111;
  border-radius:24px;
  padding:24px;
  color:#fff;
}

.create-group-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}

.create-group-title{
  font-size:24px;
  font-weight:700;
}

.create-group-close{
  font-size:28px;
  cursor:pointer;
}

.create-group-body{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.group-label{
  font-size:14px;
  opacity:.8;
}

.group-input,
.group-textarea{
  width:100%;
  border:none;
  border-radius:14px;
  padding:14px;
  background:#222;
  color:#fff;
  font-size:15px;
}

.group-textarea{
  min-height:120px;
  resize:none;
}

.group-checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.create-group-footer{
  margin-top:24px;
}

.create-group-btn{
  width:100%;
  border:none;
  border-radius:14px;
  padding:16px;
  background:#a64db6;
  color:#fff;
  font-size:16px;
  cursor:pointer;
}

/* =========================================
   GROUPS
========================================= */

.groups-top-bar{
  display:flex;
  gap:16px;
  margin-bottom:10px;
}

.show-groups-btn,
.create-group-open-btn{
  border:none;
  border-radius:16px;
  padding:12px 16px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.show-groups-btn{
  background:#4047d9;
  color:#fff;
}

.create-group-open-btn{
  background:#b7ea22;
  color:#111;
}

.groups-section-title{
  font-size:20px;
  font-weight:700;
  margin-bottom:16px;
}

.groups-subtitle{
  font-size:16px;
  margin-bottom:4px;
  text-indent:20px;
}

/* =====================================
   CUSTOM CATEGORY SELECT
===================================== */

.group-category-custom {
    position: relative;
    width: 100%;
}

.group-category-hidden-select {
    display: none;
}

.group-category-selected {
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.group-category-selected-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
}

.group-category-arrow {
    margin-left: 10px;
    font-size: 14px;
}

.group-category-options {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 99999;
    max-height: 260px;
    overflow-y: auto;
}

.group-category-custom.open
.group-category-options {
    display: block;
}

.group-category-option {
    min-height: 40px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #333;
}

.group-category-option:hover {
    background: #f5f5f5;
}

.group-category-svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Kategorie grup — tekst selectów */
.create-group-modal select,
.discover-groups-modal select {
    color: #333;
    background-color: #fff;
}

.create-group-modal select option,
.discover-groups-modal select option {
    color: #333;
    background-color: #fff;
}

/* Placeholder / pierwsza opcja */
.create-group-modal select option:first-child,
.discover-groups-modal select option:first-child {
    color: #777;
}

/* =========================================
   EMPTY
========================================= */

.empty-box{
  border:1px solid rgba(0,0,0,.12);
  border-radius:24px;
  padding:16px 20px;
  opacity:.75;
  background:rgba(255,255,255,1);
  margin-bottom:10px;
  color:#000;
}

/* =========================================
   GROUP CARD
========================================= */

.group-card{
  background:#faecf9;
  border:1px solid rgba(0,0,0,.12);
  border-radius:24px;
  padding:12px;
  margin-bottom:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.group-left{
  display:flex;
  align-items:flex-start;
  gap:18px;
  flex:1;
  color:#000;
}

.group-avatar{
  width:80px;
  height:80px;
  border-radius:0;
  background:
    linear-gradient(
      135deg,
      #7b2ff7,
      #f107a3
    );
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  flex-shrink:0;
}

.group-info{
  flex:1;
}

.group-category{
  font-size:14px;
  opacity:.75;
  margin-bottom:6px;
}

.group-topic{
  font-size:20px;
  font-weight:700;
  margin-bottom:12px;
}

.group-description{
  font-size:14px;
  line-height:1.5;
  opacity:.92;
  margin-bottom:14px;
}

.group-meta{
  display:flex;
  gap:16px;
  font-size:14px;
  opacity:.8;
}

.group-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.group-enter-btn,
.group-delete-btn,
.group-request-btn,
.group-join-btn,
.group-requests-btn{
  border:none;
  border-radius:14px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:700;
  max-width:120px;
}

.group-enter-btn{
  background:#4047d9;
  color:#fff;
}

.group-delete-btn{
  background:#c63d3d;
  color:#fff;
}

.group-request-btn, .group-join-btn{
  background:#54ff31;
  color:#000;
}	

.group-requests-btn{
  background:#f84cdd;
  color:#000;
}
	
/* =========================================
   GROUP MODAL
========================================= */

.group-modal{
  position:fixed;
  inset:0;
  z-index:999999;
}

.group-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;
}

.group-modal-box{
  position:relative;
  width:min(1300px, 98vw);
  height:min(92vh, 980px);
  background:#f4eef9;
  border-radius:34px;
  overflow:hidden;
  display:grid;
  grid-template-columns:
    320px 1fr;
}

/* =========================================
   SIDEBAR
========================================= */

.group-sidebar{
  background:#ece3f6;
  border-right:1px solid rgba(0,0,0,.08);
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.group-modal-close{
  position:absolute;
  top:18px;
  right:24px;
  font-size:30px;
  cursor:pointer;
  z-index:50;
}

.group-modal-avatar{
  width:120px;
  height:120px;
  flex-shrink:0;
  aspect-ratio:1/1;
  border-radius:0;
  background:
    linear-gradient(
      135deg,
      #8b3dff,
      #f107a3
    );
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:50px;
}

.group-modal-avatar .group-avatar{
  width:100%;
  height:100%;
}

.group-admin-btn{
  border:none;
  padding:6px 10px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  width:fit-content;
  background:#4047d9;
  color:#fff;
  margin-top:-30px;
}

.group-members-count{
  font-size:12px;
  padding:8px;
}

.group-modal-category{
  font-size:15px;
  opacity:.78;
}

.group-modal-meta{
  font-size:16px;
  font-weight:600;
  margin-top: -10px;
}

.group-modal-status{
  font-size:16px;
  font-weight:700;
}

/* =========================================
   OWNER
========================================= */

.group-owner-card{
  margin-top:10px;
  padding-top:16px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  gap:12px;
}

.group-owner-avatar{
  width:60px;
  height:60px;
  border-radius:0;
  overflow:hidden;
  background:#ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.group-owner-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.group-owner-info{
  flex:1;
}

.group-owner-role{
  font-size:13px;
  opacity:.7;
  margin-bottom:4px;
}

.group-owner-name{
  font-weight:700;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.group-owner-meta{
  font-size:14px;
  opacity:.75;
  margin-top:4px;
}

.group-owner-eye{
  cursor:pointer;
  font-size:18px;
}

/* =========================================
   SIDEBAR BUTTONS
========================================= */

.group-leave-btn,
.group-delete-btn{
  border:none;
  border-radius:14px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:700;
  color:#fff;
  max-width:120px;
}

.group-leave-btn,
.group-delete-btn{
  background:#ff3131;
}

/* =========================================
   CHAT
========================================= */

.group-chat-area{
  display:grid;
  grid-template-rows:
    auto
    auto
    1fr
    auto;
  min-height:0;
  height:100%;
  padding:20px;
  gap:20px;
  overflow:hidden;
}

.group-chat-topic{
  font-size:24px;
  font-weight:800;
  line-height:1.15;
  color:#1d1d1d;
  margin-bottom:2px;
  word-break:break-word;
}

.group-chat-description{
  font-size:16px;
  line-height:1.7;
  color:rgba(0,0,0,.72);
  max-width:900px;
  word-break:break-word;
  margin-bottom:4px;
}

.group-chat-messages{
  min-height:320px;
  overflow-y:auto;
  height:100%;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  padding:20px;
}

.group-chat-empty{
  opacity:.65;
}

.group-chat-input-area{
  display:flex;
  gap:16px;
}

.group-chat-input{
  flex:1;
  border:
    1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px 18px;
  resize:none;
  font-size:16px;
  outline:none;
  font-family:inherit;
  overflow:auto;
  height:50px;
}

.group-chat-input::placeholder{
  opacity:.7;
}

.group-chat-send-btn{
  border:none;
  border-radius:18px;
  padding:0 28px;
  background:#4047d9;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.group-sidebar-left,
.group-sidebar-right{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:920px){
	
  .group-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .group-actions{
    width:100%;
    flex-direction:row;
  }
}

@media (max-width:800px){

  .group-modal-box{
    height:95vh;
    grid-template-columns:1fr;
    grid-template-rows:
      auto 1fr;
  }

.group-sidebar{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}

.group-sidebar-right{
  border-left: 1px solid rgba(0,0,0,.12);
  padding-left:24px;
}

  .group-modal-avatar{
    width:90px;
    height:90px;
    font-size:42px;
  }

  .group-chat-area{
    min-height:0;
  }
  
  .group-chat-messages{
  min-height:420px;
  }
}

@media (max-width:800px){

  .group-modal-overlay{
    align-items:flex-start;
    overflow-y:auto;
    padding:12px;
  }

  .group-modal-box{
    width:100%;
    height:auto;
    min-height:100vh;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    overflow:visible;
  }

  .group-sidebar{
    border-right:none;
    border-bottom:1px solid rgba(0,0,0,.08);
    padding-bottom:24px;
  }

  .group-chat-area{
    min-height:700px;
  }

  .group-chat-messages{
    max-height:420px;
  }

  .group-modal-avatar{
    width:90px;
    height:90px;
    font-size:42px;
  }

  .group-chat-input-area{
    flex-direction:column;
  }

  .group-chat-send-btn{
    height:54px;
  }
  
    .group-owner-card{
    border-top:none;
    padding-top:0;
    margin-top:0;
  }
  
}

@media (max-width:600px){

  .groups-top-bar{
    flex-direction:column;
  }

  .group-chat-input-area{
    flex-direction:column;
  }

  .group-chat-send-btn{
    height:54px;
  }
}


@media(min-width:480px) and (max-width:800px){

.groups-top-bar {
  margin-bottom: 8px;
}

.show-groups-btn, .create-group-open-btn {
  padding: 10px 14px;
  font-size: 12px;
}

.group-card {
  padding: 10px;
}

.group-enter-btn, .group-delete-btn,
.group-request-btn, .group-join-btn,
.group-requests-btn{
  border-radius: 12px;
  padding: 10px 14px;
}

.group-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 50;
}

.group-modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 0;
  font-size: 40px;
}

.group-admin-btn {
  padding: 5px 8px;
  font-size: 12px;
  margin-top: -30px;
}

.group-modal-category {
  font-size: 14px;
  opacity: .78;
  margin-top: -10px;
}

group-owner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 0
}

.group-modal-status {
  font-size: 14px;
}

.group-leave-btn, .group-delete-btn {
  background: #ff3131;
  padding: 8px 14px;
  border-radius: 12px;
}

.group-chat-input {
  padding: 12px 16px;
  font-size: 16px;
  height: 50px;
}

.group-chat-messages {
  padding: 18px;
  }
}

@media (max-width:480px){

.groups-top-bar {
  margin-bottom: 6px;
}

.show-groups-btn, .create-group-open-btn {
  padding: 8px 12px;
  font-size: 10px;
}

.group-card {
  padding: 8px;
}

.group-enter-btn, .group-delete-btn,
.group-request-btn, .group-join-btn,
.group-requests-btn{
  border-radius: 10px;
  padding: 8px 12px;
}

.group-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  z-index: 50;
}

.group-modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 0;
  font-size: 32px;
}

.group-admin-btn {
  padding: 4px 6px;
  font-size: 10px;
  margin-top: -30px;
}

.group-modal-category {
  font-size: 12px;
  opacity: .78;
  margin-top: -10px;
}

group-owner-avatar {
  width: 45px;
  height: 45px;
  border-radius: 0;
}

.group-modal-status {
  font-size: 12px;
}

.group-leave-btn, .group-delete-btn {
  background: #ff3131;
  padding: 6px 12px;
  border-radius: 10px;
}

.group-chat-input {
  padding: 10px 14px;
  font-size: 14px;
  height: 45px;
}

.group-chat-messages {
  padding: 16px;
  }
}


  /* ===== KWIADOMOŚCI GRUPOWE ===== */

.group-message{
  display:flex;
  flex-direction:column;
  max-width:75%;
  margin-bottom:18px;
}

.group-message.mine{
  margin-left:auto;
  align-items:flex-end;
  text-align:right;
}

.group-message.mine
.group-message-top{
  justify-content:flex-end;
}

/* =========================================
   GROUP CHAT MESSAGES
========================================= */

.group-message{
  display:flex;
  flex-direction:column;
  max-width:78%;
  margin-bottom:18px;
}

.group-message.mine{
  margin-left:auto;
  align-items:flex-end;
  padding:10px 16px;
  text-align:right;
}

/* =========================================
   TOP
========================================= */

.group-message-top{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

.group-message.mine
.group-message-top{
  justify-content:flex-end;
}

/* =========================================
   NAME
========================================= */

.group-message-name{
  font-size:14px;
  font-weight:700;
  color:#222;
}

/* =========================================
   DATE
========================================= */

.group-message-date{
  font-size:12px;
  opacity:.55;
}

/* =========================================
   CONTENT
========================================= */

.group-message-content{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius:20px;
  padding:10px 16px;
  line-height:1.6;
  word-break:break-word;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* =========================================
   MINE
========================================= */

.group-message.mine
.group-message-content{
  background:#ffdbf8;
  color:#000;
  border:none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:600px){

  .group-message{
    max-width:92%;
  }

  .group-message-content{
    padding:12px 14px;
    font-size:14px;
  }
}

  /* ===== POKAŻ CZŁONKÓW GRUP ===== */
  
.group-show-members{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:fit-content;
  margin-top:-6px;
  font-size:14px;
  font-weight:700;
  color:#4047d9;
  cursor:pointer;
  transition:.2s;
  user-select:none;
}

.group-show-members:hover{
  opacity:.75;
  transform:translateX(2px);
}

.group-members-area{
  display:none;
  flex-direction:column;
  height:100%;
  overflow:auto;
}

/* =========================================
   MEMBERS AREA
========================================= */

.group-members-area{
  display:none;
  flex-direction:column;
  height:100%;
  overflow:auto;
  padding:28px;
}

/* =========================================
   HEADER
========================================= */

.group-members-header{
  display:flex;
  align-items:center;
  margin-bottom:24px;
}

/* =========================================
   BACK BUTTON
========================================= */

.group-back-chat-btn{
  border:none;
  background:#4047d9;
  color:#fff;
  border-radius:14px;
  padding:12px 18px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  transition:.2s;
}

.group-back-chat-btn:hover{
  opacity:.85;
}

/* =========================================
   GROUP MEMBERS LIST
========================================= */

/* =========================================
   OWNER
========================================= */

.group-member-owner{
  background: rgba(255,215,0,.08);
  border-radius:14px;
  padding:10px 12px;
  border: 1px solid rgba(255,215,0,.18);
}

.group-members-list{
  display:flex;
  flex-direction:column;
}

.group-member-line{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size:16px;
}

/* =========================================
   DOT
========================================= */

.group-member-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#69d38b;
  flex-shrink:0;
}

/* =========================================
   NAME
========================================= */

.group-member-name{
  font-weight:700;
}

/* =========================================
   META
========================================= */

.group-member-meta{
  opacity:.75;
}

/* =========================================
   EYE
========================================= */

.group-member-eye{
  cursor:pointer;
  margin-left:auto;
  font-size:18px;
  transition:.2s;
}

.group-member-eye:hover{
  opacity:.7;
}


/* =========================================
   VIEW SWITCH
========================================= */

.users-view-switch{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.users-view-btn{
  border:none;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-size:18px;
  background:#ececec;
}

.users-view-btn.active{
  background:#4047d9;
  color:#fff;
}


/* =========================================
   USERS SORT SWITCH
========================================= */

.users-controls .users-view-switch{
  margin-bottom:0;
}

.users-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.users-sort-switch{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
}

.users-sort-btn{
  border:1px solid #333;
  background:#fff;
  color:#222;
  padding:6px 10px;
  min-height:36px;
  cursor:pointer;
  font-size:14px;
  line-height:1.2;
}

.users-sort-btn:first-child{
  border-radius:5px 0 0 5px;
}

.users-sort-btn:last-child{
  border-radius:0 5px 5px 0;
  border-left:0;
}

.users-sort-btn.active{
  background:#3f3fd1;
  color:#fff;
  font-weight:bold;
}

@media(max-width:600px){
  .users-sort-btn{
    flex:1;
	font-size:12px;
    padding:4px 8px;
  }
}


/* =========================================
   LIST VIEW
========================================= */

.users-grid.list-view{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* PANEL */

.users-grid.list-view .user-card{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  display:flex;
  flex-direction:row !important;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  min-height:auto;
}

/* LEWA CZĘŚĆ */

.users-grid.list-view .user-card-top{
  display:flex;
  align-items:center;
  gap:16px;
}

/* AVATAR */

.users-grid.list-view .user-avatar-img,
.users-grid.list-view .user-avatar{
  width:60px;
  height:60px;
  border-radius:0;
  flex-shrink:0;
}

/* DANE USERA */

.users-grid.list-view .card-user-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-right:30px;
}

/* STATUSY */

.users-grid.list-view .user-bottom-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-right:auto;
  margin-top: -6px;
}

/* PRZYCISKI */

.users-grid.list-view .user-buttons{
  display:flex;
  flex-direction:row;
  gap:10px;
}

/* BUTTONY */

.users-grid.list-view .user-buttons button{
  padding:10px 16px;

}

@media(min-width:801px) and (max-width:1099px){
	
.users-grid.list-view .user-buttons button {
  padding: 8px 14px;
  }
} 

@media(max-width:800px){ 
  .users-grid.list-view .user-buttons button {
  padding: 6px 12px;
  }
}

@media (max-width:600px){

  .users-grid.list-view .user-card{
    flex-direction:column !important;
  }
  
  .users-view-btn:last-child{
    display:none;
  }
}


/* =========================================
   DISCOVER GROUPS
========================================= */

.discover-groups-box{
  width:min(860px, 94vw);
  max-height:85vh;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.groups-category-select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid #ddd;
  font-size:16px;
}

.discover-groups-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:400px;
}
.discover-groups-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

/* =========================================
   REMOVE USER FROM GROUP
========================================= */

.group-remove-user-btn{
  border:none;
  background:#ff4d4f;
  color:#fff;
  border-radius:10px;
  padding:6px 12px;
  cursor:pointer;
  font-size:13px;
  transition:.2s;
}

.group-remove-user-btn:hover{
  opacity:.85;
}

/* =========================================
   REQUEST BADGE
========================================= */

.group-requests-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ff4d4f;
  color:#fff;
  font-size:11px;
  font-weight:700;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.group-request-actions{
  display:flex;
  gap:10px;
  margin-left:auto;
}

.group-accept-btn{
  border:none;
  background:#31c46c;
  color:#fff;
  border-radius:10px;
  padding:6px 12px;
  cursor:pointer;
}

.group-reject-btn{
  border:none;
  background:#ff4d4f;
  color:#fff;
  border-radius:10px;
  padding:6px 12px;
  cursor:pointer;
}

.group-card-requests-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 6px;
  border-radius:50%;
  background:#ff4d4f;
  color:#fff;
  font-size:12px;
  font-weight:600;
}

/* =========================================
   MODAL POWIADOMIEŃ
========================================= */

.modal-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.6);
  z-index:999999;
}

/* =====================================
   POWIADOMIENIA
===================================== */

.notifications-top-icon{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:22px;
}

.notifications-box{
  width:640px;
  max-width:95%;
  background:#1b1b1b;
  border-radius:18px;
  padding:20px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color:#fff;
}

.notifications-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px;
  max-height:500px;
  overflow-y:auto;
  padding-right:4px;
}

.notification-item{
  background:#242424;
  border-radius:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.06);
  transition:.2s;
  cursor:default;
}

.notification-item:hover{
  transform:translateY(-1px);
  background:#2a2a2a;
}

.notification-item.unread{
  border-color:#ff4d4f;
  box-shadow: 0 0 0 1px rgba(255,77,79,.15);
}

.notification-content{
  font-size:14px;
  line-height:1.5;
  color:#f5f5f5;
}

.notification-date{
  margin-top:10px;
  font-size:11px;
  opacity:.55;
}

.notifications-box .modal-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:5px;
  text-align:center;
}

.close-modal-btn{
  width:100%;
  margin-top:18px;
  border:none;
  border-radius:12px;
  padding:12px;
  background:#ff4d4f;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.close-modal-btn:hover{
  opacity:.92;
}

.clear-notifications-btn{
  width:100%;
  margin-top:18px;
  margin-bottom:10px;
  border:none;
  border-radius:12px;
  padding:12px;
  background:#50ff4b;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.clear-notifications-btn:disabled{
  opacity:.45;
  cursor:pointer;
}

.notifications-list::-webkit-scrollbar{
  width:6px;
}

.notifications-list::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:999px;
}


/* =====================================
   TOAST
===================================== */

#toast-container{
  position:fixed;
  top:20px;
  right:20px;
  z-index:999999999;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.toast{
  min-width:260px;
  max-width:360px;
  padding:14px 18px;
  border-radius:14px;
  background:#1f1f1f;
  color:#fff;
  font-size:14px;
  font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  animation:toastShow .25s ease;
}

.toast.success{
  border-left:4px solid #22c55e;
}

.toast.error{
  border-left:4px solid #ef4444;
}

.toast.info{
  border-left:4px solid #3b82f6;
}

@keyframes toastShow{

  from{
    opacity:0;
    transform:translateX(30px);
  }

  to{
    opacity:1;
    transform:translateX(0);
  }
}

.group-avatar-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}

.group-avatar img,
.group-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
}

.emoji-btn{
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:
    linear-gradient(
      135deg,
      #7b2ff7,
      #f107a3
    );
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  cursor:pointer;
  transition:
    transform .15s ease,
    opacity .15s ease;
  flex-shrink:0;
}

.emoji-btn:hover{
  transform:scale(1.08);
  opacity:.9;
}


/* =====================================
   SEARCH
===================================== */

.search-answer-input{
  padding:4px;
}

.search-table td:last-child{
  width: 340px;
  padding-left: 20px;
  }
  
.search-answer-input{
  width: 100%;
  min-width: 280px;
}


/* ===== STOPKA ===== */

.site-footer{
  position:relative;
  border-top:2px solid #d6ba52;
  margin-top:0;
  padding:15px 25px;
  background:linear-gradient(
    180deg,
    #fffef8,
    #f3eed7
  );
  border-top:1px solid #ddd;
  display:grid;
  justify-content:space-between;
  align-items:center;
  gap:80px;
  margin:auto;
  grid-template-columns:
    240px
    1fr
    240px;
  flex-wrap:wrap;
  box-shadow:
    0 -3px 10px rgba(0,0,0,0.05);
}


.footer-column{
  display:flex;
  flex-direction:column;
  gap:10px;
}


.footer-column a{
  color:#666;
  text-decoration:none;
  font-size:14px;
  transition:0.2s;
}

.footer-column a:hover{
  color:#222;
  transform:translateX(3px);
}

.footer-column:first-child{
  padding-left:60px;
}

.footer-column:last-child{
  align-items:flex-end;
  padding-right:60px;
  position:relative;
}

.footer-center{
  flex:1;
  text-align:center;
}

.footer-copy{
  font-size:15px;
  color:#444;
  font-weight:600;
  margin-bottom:8px;
}

.footer-copy p{
  font-size:10px;
  color:#777;
  margin-top:8px;
}

.footer-author{
  font-size:12px;
  color:#999;
  font-style:italic;
  letter-spacing:1px;
}

.wallet-digital-service-note,
.premium-digital-service-note,
.create-group-info {
    margin-top: 20px;
    padding: 0 6px 4px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #ffe600;
    text-align: left;
}

.create-group-info {
	margin-top: 0;
}

.premium-digital-service-note {
	color: #000;
}
	
@media (max-width:1200px){
  .site-footer{
    display:flex;
    flex-direction:column;
    gap:25px;
	padding-bottom:50px;
  }

  .footer-column:first-child,
  .footer-column:last-child{
    padding:0;
    align-items:center;
  }
}

/* ===== MODAL DOKUMENTÓW ===== */

#document-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:999999;
}

.document-modal-content{
  position:relative;
  width:min(1000px,95vw);
  max-height:90vh;
  overflow-y:auto;
  background:white;
  border-radius:16px;
  padding:40px;
  box-sizing:border-box;
}

.document-close{
  position:absolute;
  top:15px;
  right:20px;
  font-size:24px;
  cursor:pointer;
}

#document-title{
  text-align:center;
  margin-bottom:30px;
}

#document-body{
  line-height:1.8;
  font-size:15px;
  max-height:70vh;
  overflow-y:auto;
}

#document-body h1{
  text-align:center;
}

#document-body h2{
  margin-top:30px;
}

#document-body hr{
  margin:25px 0;
  border:none;
  border-top:1px solid #ddd;
}

#document-body ol{
  padding-left:30px;
  margin:15px 0;
}

#document-body ul{
  padding-left:30px;
  margin:10px 0;
}

#document-body li{
  margin-bottom:8px;
}

.document-footer{
  text-align:center;
  margin-top:40px;
  opacity:.7;
}

.document-modal-content{
  position:relative;
  width:min(1000px,95vw);
  max-height:90vh;
  background:white;
  border-radius:16px;
  padding:40px;
  box-sizing:border-box;
  overflow:hidden;
}

.document-top-btn{
  position:absolute;
  right:20px;
  bottom:20px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#2563eb;
  color:white;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  transition:.2s;
  opacity:0;
  pointer-events:none;
  z-index:1000;
}

.document-top-btn.show{
  opacity:1;
  pointer-events:auto;
}

.document-top-btn:hover{
  transform:scale(1.1);
  background:#1d4ed8;
}

.document-pdf-btn{
  position:absolute;
  top:20px;
  left:20px;
  padding:8px 14px;
  border:none;
  border-radius:10px;
  background:#dc2626;
  color:white;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition:
    background .2s,
    transform .2s;
}

.document-pdf-btn:hover{
  background:#b91c1c;
  transform:translateY(-1px);
}

.document-pdf-btn:active{
  transform:translateY(1px);
}

/* ===== MODAL COOKIES ===== */

.cookie-modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    z-index:9999;
    justify-content:center;
    align-items:center;
    padding:20px;
    box-sizing:border-box;
}

.cookie-modal{
    position:relative;
    width:100%;
    max-width:700px;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:12px;
    padding:30px;
    box-sizing:border-box;
    box-shadow:
        0 0 25px rgba(0,0,0,.25);
}

.cookie-close-btn{
    position:absolute;
    top:15px;
    right:20px;
    border:none;
    background:none;
    cursor:pointer;
    font-size:30px;
}

.cookie-section{
    margin-top:20px;
    margin-bottom:20px;
}

.cookie-links{
    display:flex;
    gap:20px;
    margin-top:15px;
    margin-bottom:20px;
}

.cookie-buttons button{
    border:none;
    border-radius:8px;
    padding:12px 20px;
    cursor:pointer;
    font-size:15px;
    transition:.2s;
}

.cookie-buttons button:first-child{
    background:#6c757d;
    color:white;
}

.cookie-buttons button:nth-child(2){
    background:#0d6efd;
    color:white;
}

.accept-all-btn{
    background:#28a745;
    color:white;
}

.cookie-buttons button:hover{
    transform:translateY(-1px);
    opacity:.9;
}


/* ===== MODAL GIFTÓW ===== */

.gift-history-modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.gift-history-content{
    background:#fff;
    width:90%;
    max-width:800px;
    max-height:85vh;
    overflow-y:auto;
    border-radius:18px;
    padding:25px;
    box-shadow:
      0 10px 40px rgba(0,0,0,.25);
    position:relative;
	margin-left:-30px;
}

.gift-history-icons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
	padding:10px;
    margin-bottom:10px;
    background:#f8f8f8;
    border-radius:15px;
    border:1px solid #ececec;
}

.gift-history-icons .gift-icon{
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    cursor:pointer;
    border-radius:50%;
    transition:.2s;
}

.gift-history-icons .gift-icon:hover{
    background:#ececec;
    transform:scale(1.1);
}

.gift-history-icons .gift-icon.active{
    background:#fff;
    box-shadow:
      0 2px 10px rgba(0,0,0,.15);
    transform:scale(1.15);
}

.gift-title-icon{
    width:18px;
    height:18px;
    vertical-align:middle;
    margin-right:4px;
}

.gift-history-close-btn{
    position:absolute;
    right:15px;
    top:10px;
    border:none;
    background:none;
    font-size:40px;
    cursor:pointer;
}

#gift-history-title{
    text-align:center;
	font-size:18px;
    margin-bottom:20px;
    color:#444;
}

.gift-history-list{
    display:flex;
    flex-direction:column;
    gap:0;
}

.gift-history-user{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:4px;
    border-radius:10px;
    background:#fafafa;
    border:1px solid #eee;
    transition:.2s;
	font-size:14px;
}

.gift-history-user:hover{
    background:#fff;
    box-shadow:
      0 3px 15px rgba(0,0,0,.08);
}

.gift-history-left{
	display:flex;
	align-items:center;
	gap:10px;
}

.gift-history-count{
    font-size:14px;
    font-weight:bold;
    color:#777;
}

.gift-icon{
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    cursor:pointer;
    border-radius:50%;
    transition:.2s;
}

.gift-icon:hover{
    background:#ececec;
    transform:scale(1.08);
}

.gift-icon.active{
    background:white;
    transform:scale(1.15);
    box-shadow:
      0 3px 12px rgba(0,0,0,.18);
}

.gift-icon.active{
    border:1px solid #ffd700;
}

.gift-history-empty{
    text-align:center;
    padding:30px;
    color:#888;
    font-size:16px;
    font-style:italic;
}

.gift-history-count{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
}

.gift-history-date{
    color:#888;
    font-size:12px;
}

.gift-history-qty{
    font-weight:bold;
    min-width:35px;
    text-align:right;
}


/* =========================================
   MODAL KONTAKT
========================================= */

.support-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}

.support-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.support-modal-box{
  width:800px;
  max-width:95vw;
  height:85vh;
  max-height:85vh;
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:
    0 8px 30px rgba(0,0,0,.25);
}


/* =========================================
   SUPPORT — STOPKA WIADOMOŚCI
========================================= */

.support-footer{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  padding:14px;
  border-top:1px solid #eee;
}

.support-footer #support-input{
  flex:1;
  min-width:0;
  width:auto;
  min-height:60px;
  margin:0;
  resize:none;
  box-sizing:border-box;
}

.support-footer .support-attachment-btn{
  flex:0 0 42px;
}

.support-footer .support-reply-btn,
.support-footer .support-resolve-btn{
  flex:0 0 auto;
  margin:0;
}

.support-footer .support-resolve-btn{
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

/* =========================================
   SUPPORT — MOBILE
========================================= */

@media (max-width:600px){

  .support-footer{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:14px;
  }

  .support-footer .support-attachment-btn{
    align-self:flex-start;
  }

  .support-footer #support-input{
    width:100%;
    min-width:0;
    height:84px;
    min-height:84px;
    box-sizing:border-box;
    margin:0;
  }

  .support-footer .support-reply-btn,
  .support-footer .support-resolve-btn{
    width:100%;
    min-height:54px;
    box-sizing:border-box;
    margin:0;
  }

}


/* =========================================
   SUPPORT — ZAŁĄCZNIK
========================================= */

.support-input-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
}

.support-attachment-btn{
  width:42px;
  height:42px;
  flex:0 0 42px;
  padding:9px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
}

.support-attachment-btn:hover{
  background:#f3f3f3;
  transform:scale(1.05);
}

.support-attachment-btn img{
  width:30px;
  height:30px;
  display:block;
  object-fit:contain;
}

.support-input-row #support-input{
  flex:1;
}

.support-thread-footer{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

.support-thread-footer #support-input{
  flex:1;
  min-width:0;
}

.support-thread-footer .support-attachment-btn{
  flex:0 0 auto;
}

/* =====================================
   HEADER
===================================== */

.support-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  font-size:18px;
  font-weight:bold;
  border-bottom:1px solid #eee;
}

.support-close{
  cursor:pointer;
  font-size:20px;
  opacity:.6;
  transition:.2s;
}

.support-close:hover{
  opacity:1;
}

/* =====================================
   BODY
===================================== */

.support-body{
  display:flex;
  flex-direction:column;
  flex:1;
  overflow-y:auto;
  gap:14px;
  padding:10px;
}

.support-subject{
  width:100%;
  padding:12px;
  border:1px solid #d8d8d8;
  border-radius:12px;
  font-size:15px;
  font-family:inherit;
}

.support-subject:focus{
  outline:none;
  border-color:#4c8bf5;
}

.support-label{
  font-size:14px;
  font-weight:600;
  color:#555;
}

.support-category{
  width:50%;
  padding:12px;
  border:1px solid #d8d8d8;
  border-radius:12px;
  background:#fff;
  font-size:15px;
}

#support-message{
  width:fit-content;
  width:100%;
  min-height:100px;
  padding:10px;
  margin-bottom:18px;
  border-radius:18px;
  word-break:break-word;
}

.support-message:focus,
.support-category:focus{
  outline:none;
  border-color:#4c8bf5;
}

/* =====================================
   FOOTER
===================================== */

.support-footer{
  width:100%;
  box-sizing:border-box;
  display:flex;
  flex-shrink:0;
  align-items:center;
  justify-content:flex-end;
  padding:10px 14px;
  border-top:1px solid #eee;
  gap:10px;
}

.support-send-btn{
  border:none;
  background:#4c8bf5;
  color:#fff;
  padding:12px 24px;
  border-radius:12px;
  cursor:pointer;
  font-size:15px;
  transition:.2s;
}

.support-send-btn:hover{
  transform:translateY(-1px);
  opacity:.92;
}

.disabled-contact{
  opacity:.5;
  cursor:not-allowed;
}

.support-attachment-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  width:100%;
}

/* =====================================
   SUPPORT
===================================== */

.support-thread{
  padding:14px;
  border:1px solid #ddd;
  border-radius:14px;
  background:#fff;
  margin-bottom:12px;
  cursor:pointer;
  transition:.2s;
}

.support-thread:hover{
  background:#f6f8ff;
}

.support-thread-user{
  font-size:13px;
  color:#888;
  margin-bottom:6px;
}

.support-thread-category{
  font-size:15px;
  font-weight:bold;
  color:#1f1f1f;
}

.support-thread-subject{
  margin-top:6px;
  color:#666;
}

.support-subject-header{
  padding:12px;
  border-bottom:1px solid #eee;
  font-weight:bold;
  background:#fafafa;
}

.support-message{
  width:fit-content;
  max-width:75%;
  padding:10px 14px;
  border-radius:20px;
  border: 1px solid #ddd;
  margin-bottom:10px;
  word-break:break-word;
}

.support-author{
  font-size:13px;
  font-weight:bold;
  color:#4c8bf5;
  margin-bottom:8px;
}

.support-message-text{
  line-height:1.5;
  color:#222;
}

.support-message-date{
  margin-top:10px;
  font-size:12px;
  color:#999;
}

#support-input{
  width:100%;
  flex:1;
  box-sizing:border-box;
  min-height:90px;
  padding:12px;
  border:1px solid #ddd;
  border-radius:14px;
  resize:vertical;
  font-family:inherit;
  margin-bottom:12px;
}

.support-footer{
  border-top:1px solid #eee;
  padding:14px;
}

.support-buttons{
  display:flex;
  margin:12px;
  padding:10px;
}

.support-reply-btn{
  background:#4c8bf5;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:12px 20px;
  font-weight:bold;
  cursor:pointer;
  transition:.2s;
}

.support-reply-btn:hover{
  background:#2f73ea;
}

.support-resolve-btn{
  background:#36a853;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:6px 12px;
  font-weight:bold;
  cursor:pointer;
  transition:.2s;
  margin-left:10px;
  width:20%;
}

.support-resolve-btn:hover{
  background:#2b8a44;
}

.support-back{
  margin-bottom:12px;
}

.support-back span{
  cursor:pointer;
  color:#4c8bf5;
  font-size:14px;
}

.support-back span:hover{
  text-decoration:underline;
}

.support-message.admin{
  margin-right:auto;
}

.support-message.user{
  margin-left:auto;
  background:#e9f3ff;
}

.support-row.admin{
  display:flex;
  justify-content:flex-start;
}

.support-row.user{
  display:flex;
  justify-content:flex-end;
}

.support-solved{
  margin:20px;
  padding:18px;
  background:#eef9f0;
  border:1px solid #36a853;
  border-radius:14px;
  text-align:center;
  font-weight:bold;
  color:#2b8a44;
}

.support-status-icon{
    margin-right:8px;
}

.support-status-icon{
    display:inline-block;
    margin-right:8px;
    font-size:18px;
}

/* =====================================
   SUPPORT CATEGORY DROPDOWN
===================================== */

.support-category-dropdown{
  position:relative;
  width:100%;
}

.support-category-selected{
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  padding:10px 14px;
  border:1px solid #d8d8d8;
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size:15px;
  font-family:inherit;
  color:#333;
  text-align:left;
}

.support-category-selected-content{
  display:flex;
  align-items:center;
  gap:8px;
}

.support-category-arrow{
  margin-left:auto;
  flex-shrink:0;
  font-size:14px;
}

.support-category-options{
  display:none;
  width:100%;
  box-sizing:border-box;
  margin-top:4px;
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  max-height:260px;
  overflow-y:auto;
}


.support-category-option{
  min-height:40px;
  box-sizing:border-box;
  padding:9px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  color:#333;
  font-size:15px;
}

.support-category-option:hover{
  background:#f5f5f5;
}

.support-category-option .app-icon,
.support-category-selected .app-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  flex:0 0 20px;
}

/* =====================================
   WALLET
===================================== */

#wallet-row{
    display:none;
}

.wallet-row{
    display:block;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
	margin-bottom:16px;
}

.wallet-balance{
    font-size:17px;
    font-weight:600;
}

.wallet-button{
    padding:4px 8px;
    font-size:13px;
    border-radius:10px;
	border:none;
    cursor:pointer;
	background:#ebc99e;
}

.wallet-button:hover{
    cursor:pointer;
	background:#e1b174;
	color:#000;
}

.history-button{
    padding:4px 8px;
    font-size:13px;
    border-radius:10px;
	border:none;
    cursor:pointer;
	background:#d7d5d3;
}

.history-button:hover{
    cursor:pointer;
	background:#aba8a6;
	color:#000;
}

/* ===== WALLET MODAL ===== */

/* ===== TŁO ===== */

.wallet-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:1000000;
}

/* ===== OKNO ===== */

.wallet-modal-content{
    position:relative;
    width:520px;
    max-width:95%;
    background:#222;
    color:#fff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.wallet-modal h2{
    margin:0 0 20px;
    text-align:center;
    font-size:26px;
}

.wallet-current{
    text-align:center;
    margin-bottom:25px;
}

.wallet-current-points{
    font-size:30px;
    font-weight:bold;
    margin-top:10px;
    color:#ffd54a;
}

.wallet-packages{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.wallet-packages-title{
    padding-bottom:20px;
}

.wallet-option{
    display:flex;
    align-items:center;
    gap:15px;
    background:#333;
    border-radius:12px;
    padding:12px 16px;
    cursor:pointer;
    transition:.2s;
}

.wallet-option:hover{
    background:#404040;
}

.wallet-option input{
    transform:scale(1.2);
}

.wallet-option span{
    display:flex;
    justify-content:space-between;
    width:100%;
    font-size:17px;
}

.wallet-option small{
    color:#7CFC00;
    font-size:15px;
    font-weight:bold;
}

.wallet-buttons{
    display:flex;
    gap:12px;
    margin-top:30px;
	flex-shrink:0;
}

.wallet-buttons button{
    flex:1;
    height:44px;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.wallet-history-btn{
    background:#3b82f6;
    color:#fff;
}

.wallet-history-btn:hover{
    background:#2563eb;
}

.wallet-cancel-btn{
    background:#e95959;
    color:#fff;
}

.wallet-cancel-btn:hover{
    background:#dd3e3e;
}

.wallet-confirm-btn{
    background:#22c55e;
    color:#fff;
}

.wallet-confirm-btn:hover{
    background:#16a34a;
}

.wallet-buttons button{
    flex:1;
}

.wallet-close{
    position:absolute;
    top:12px;
    right:18px;
    font-size:34px;
    font-weight:bold;
    color:#bbb;
    cursor:pointer;
    transition:.2s;
}

.wallet-close:hover{
    color:#fff;
    transform:scale(1.15);
}

.wallet-history-content{
    width:650px;
    max-width:95%;
    max-height:80vh;
    display:flex;
    flex-direction:column;
}

#wallet-history-list{
    max-height:40vh;
    overflow-y:auto;
    margin-top:20px;
}

.wallet-history-item{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.wallet-history-date{
    font-size:13px;
    color:#aaa;
    margin-bottom:8px;
}

.wallet-history-title{
    font-size:17px;
    font-weight:600;
}

.wallet-history-points{
    margin-top:8px;
    font-size:18px;
    font-weight:bold;
}

.wallet-history-balance{
    margin-top:5px;
    color:#ffd54a;
    font-size:14px;
}

.wallet-history-empty{
    text-align:center;
    padding:40px;
    color:#999;
}

.wallet-history-relation{
    color:#888;
    font-size:14px;
    margin-right:6px;
}

.wallet-history-user .top-icon{
    font-size:16px;
}
	
.wallet-history-details{
    margin:4px 0;
    padding:4px 8px;
    border:1px solid #5e5e5e;
    border-radius:6px;
    background:#2a2a2a;
}

.wallet-history-filters{
    display:flex;
    gap:0;
    margin:15px 0;
}

.wallet-filter-btn{
    flex:1;
    padding:10px 0;
    border:1px solid #000;
    background:#b5b5b5;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.wallet-filter-btn:first-child{
    border-radius:8px 0 0 8px;
}

.wallet-filter-btn:last-child{
    border-radius:0 8px 8px 0;
}

.wallet-filter-btn:not(:last-child){
    border-right:none;
}

.wallet-filter-btn[data-filter="all"]:hover,
.wallet-filter-btn[data-filter="all"].active{
    background:#4b5563;
    color:#fff;
}

.wallet-filter-btn[data-filter="income"]:hover,
.wallet-filter-btn[data-filter="income"].active{
    background:#2e9f34;
    color:#fff;
}

.wallet-filter-btn[data-filter="expense"]:hover,
.wallet-filter-btn[data-filter="expense"].active{
    background:#9f5050;
    color:#fff;
}

/* =====================================
   GIFTS MODAL
===================================== */

.gift-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    justify-content:center;
    align-items:center;
    z-index:100000;
}

.gift-modal-content{
    position:relative;
    width:640px;
    max-width:95%;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.gift-modal h2{
    margin:0 0 20px;
    text-align:center;
}

.gift-close{
    position:absolute;
    top:12px;
    right:18px;
    font-size:40px;
    cursor:pointer;
    font-weight:bold;
    color:#666;
}

.gift-close:hover{
    color:#111;
}

.gift-list{
    display:flex;
    flex-direction:column;
}

.gift-row,
.gift-pack-row{
    display:grid;
    grid-template-columns:
        45px
        1fr
        140px
        130px;
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid #e6e6e6;
    border-radius:10px;
}

.gift-name{
    display:flex;
    flex-direction:column;
}

.gift-name small{
    color:#777;
    font-size:12px;
}

.gift-counter{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.gift-counter button{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#f3f3f3;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
}

.gift-counter button:hover{
    background:#ddd;
}

.gift-counter span{
    width:26px;
    text-align:center;
    font-size:18px;
    font-weight:bold;
}

.gift-price{
    text-align:right;
    font-weight:bold;
}

.gift-summary{
    margin-top:20px;
    padding-top:15px;
    border-top:2px solid #555;
}

.gift-summary>div{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
}

.gift-total{
    display:flex;
    justify-content:space-between;
    margin-top:18px;
    font-size:20px;
    font-weight:bold;
}

.gift-balance{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
    color:#b049ff;
    font-weight:bold;
}

.gift-buttons{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:20px;
}

.gift-buttons button{
    min-width:150px;
    height:42px;
    border:none;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.gift-buttons button:first-child{
    background:#ff5555;
    color:#fff;
}

.gift-buttons button:first-child:hover{
    background:#ff0000;
}

.gift-buttons .play{
    background:#18a558;
    color:#fff;
}

.gift-buttons .play:hover{
    background:#128347;
}

.gift-buttons .wallet{
    background:#1f6feb;
    color:#fff;
}

.gift-buttons .wallet:hover{
    background:#1859c9;
}

.gift-section-divider{
    margin:10px 0;
    border-top:1px solid #a1a1a1;
}

.gift-pack-info{
    margin:18px 0 22px;
}

.gift-pack-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    font-size:15px;
    color:#666;
}

.gift-pack-saving{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
    font-size:15px;
    color:#18a558;
    font-weight:600;
}

/* ===== STAN KONTA ===== */

.gift-wallet-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:30px 0 22px;
    padding:12px 16px;
    background:#f8f8f8;
    border:1px solid #e4e4e4;
    border-radius:10px;
}

.gift-wallet-info strong{
    font-size:18px;
    color:#1b8f3d;
}

.gift-buttons button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.gift-warning{
    display:none;
    margin-top:12px;
    padding:10px 14px;
    background:#ffe9e9;
    color:#c62828;
    border:1px solid #f5b5b5;
    border-radius:8px;
    text-align:center;
    font-weight:600;
}

.gift-buttons button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.gift-history-user .top-icon{
    font-size:16px;
}

/* =====================================
   PREMIUM MODAL
===================================== */

.premium-box{
	position:relative;
	animation:premiumOpen .2s ease;
	max-height:90vh;
	overflow-y:auto;
	overflow-x:hidden;
	scrollbar-gutter: stable;
}

@keyframes premiumOpen{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
	
.premium-description{
	margin-bottom:20px;
}

.premium-plans{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.premium-card{
    width:280px;
    background:#fff;
    border-radius:18px;
    border:1px solid #ddd;
    padding:20px;
    text-align:center;
    transition:.25s;
}

.premium-card-recommended{
    border:1px solid #7d3cff;
    transform:scale(1.03);
    box-shadow:0 12px 35px rgba(0,0,0,.12);
}

.premium-card-header{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}

.premium-card-star{
    font-size:24px;
}

.premium-card-title{
    font-size:24px;
    font-weight:bold;
}

.premium-card-days{
    font-size:18px;
    margin-top:10px;
}

.premium-card-price{
    font-size:20px;
    font-weight:bold;
    margin-top:8px;
}

.premium-card-saving{
    font-size:12px;
    font-weight:bold;
    margin:10px;
	color:#856666;
}

.premium-card-divider{
    height:1px;
    background:#ddd;
    margin:12px 0;
}

.premium-card-badge{
    color:#9b3bd4;
    font-size:16px;
    font-weight:bold;
}

.premium-card-select{
    font-size:16px;
    font-weight:bold;
    margin-bottom:10px;
}

.premium-card-coins-label{
    font-size:14px;
    margin-top:8px;
}

.premium-card-coins{
    font-size:16px;
    font-weight:bold;
    margin:8px;
}

.premium-subtitle{
	font-size: 18px;
    font-weight: 600;
    color: #7822a5;
    line-height: 2;
}

.premium-buy-btn{
    width:100%;
    padding:14px;
    background:#2d7ff9;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.premium-buy-btn:hover{
    background:#1768e5;
}

.premium-card-or{
    margin:12px 0;
    text-align:center;
    color:#777;
    font-size:14px;
}

.premium-card-coins-price{
    text-align:center;
    font-size:20px;
    font-weight:700;
    margin-top:6px;
}

.premium-card-coins-saving{
    text-align:center;
    color:#b87333;
    font-size:13px;
    margin:8px 0 12px;
}

.premium-buy-coins-btn{
    background:#b965d6;
}

.premium-buy-coins-btn:hover{
    background:#a14bc3;
}

.premium-locked-slot{
    cursor:pointer;
    font-size:32px;
    color:#d4a017;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
}

.premium-locked-slot:hover,
.photo-slot.empty:hover{
    background:#fff7d6;
    transform:scale(1.05);
}

.premium-close{
    position:absolute;
    top:18px;
    right:18px;
	font-size:28px;
	cursor:pointer;
}

/* Tablet */

@media (max-width: 900px){
.premium-plans{
    justify-content:center;
    gap:18px;
}
}

/* Telefon */

@media (max-width: 700px){
.premium-plans{
    flex-direction:column;
    align-items:center;
    gap:16px;
}

.premium-card{
    width:100%;
}

.premium-box{
    width:95%;
    max-height:90vh;
    overflow-y:auto;
}
}

@media (max-width:700px){
.premium-close{
    top:12px;
    right:12px;
    font-size:24px;
 }
}

@media (max-width:700px){
.premium-header{
    font-size:26px;
}
}

@media (min-width:701px) and (max-width:1045px){
.premium-box{
    max-height:85vh;
    overflow-y:auto;
	scrollbar-gutter:stable;
    }
}


/* =====================================
   STATISTICS MODAL
===================================== */

.statistics-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.55);
    z-index:99999;
}

.statistics-box{
    width:1100px;
    max-width:95vw;
    height:82vh;
    background:#fff;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.statistics-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 24px;
    border-bottom:1px solid #ececec;
}

.statistics-content{
    flex:1;
    display:flex;
    overflow:hidden;
}

.statistics-left{
    width:45%;
    border-right:1px solid #ececec;
    overflow-y:auto;
}

.statistics-right{
    flex:1;
    overflow-y:auto;
    padding:10px;
	border:1px solid #ebebeb;
    margin:10px;
    border-radius:18px;
}

.statistics-close{
    font-size:28px;
	cursor:pointer;
}

.statistics-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 18px;
    border-bottom:1px solid #ececec;
    margin-bottom:10px;
}

.statistics-total-title{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:17px;
    font-weight:700;
}

.statistics-total-count{
    font-size:15px;
    font-weight:700;
    color:#5d008d;
    white-space:nowrap;
}

.statistics-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:15px;	
    border-bottom:1px solid #ececec;
}

.statistics-tab{
    /*flex:1;*/
    padding:16px;
    border:none;
    background:#dbdbdb;
    cursor:pointer;
    font-size:16px;
    transition:.2s;
}

.statistics-tab:hover{
    background:#c7c7c7;
	color:#0008ff;
	font-weight:700;
}

.statistics-tab.active{
    background:#fff;
    font-weight:700;
}

.mini-profile-btn{
	cursor:pointer;
}

/* =====================================
   STATISTICS QUESTIONS
===================================== */

.statistics-question-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    cursor:pointer;
    border-bottom:1px solid #efefef;
    transition:.2s;
}

.statistics-question-row:hover{
    background:#f7faff;
}

.statistics-question-row.active{
    background:#eef6ff;
    border-left:4px solid #3b82f6;
}

.statistics-question-icon{
    width:28px;
    display:flex;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}

.statistics-question-text{
    flex:1;
    font-size:15px;
    color:#333;
    line-height:1.35;
}

.statistics-answer-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    border-bottom:1px solid #ececec;
}

.statistics-answer-name{
    font-size:15px;
    color:#333;
}

.statistics-answer-count{
    font-weight:700;
    color:#2c7be5;
}

/*wyświetlanie w dwóch kolumnach na mobile
@media(max-width:800px){
	.statistics-right,
	.statistics-question-text,
	.statistics-answer-name,
	.statistics-answer-count,
	.statistics-total-title,
	.statistics-total-count,
	.statistics-answer-row{
		font-size:12px;
	}
}*/

/*wyświetlanie odpowiedzi pod pytaniem na mobile*/
@media (max-width:800px){
/*wyświetlanie statystyk w dwóch kolumnach na MOBILE
    display:flex;
}*/

.statistics-content{
    display:block;
    height:100%;
    overflow-y:auto;
}

.statistics-left{
    width:100%;
    height:auto;
    max-height:none;
    overflow:visible;
}

.statistics-modal{
    align-items:flex-start;
    padding:20px 0;
}

.statistics-mobile-header{
	display:flex;
	justify-content:flex-end;
    padding:0 12px;
	color:#5d008d;
}

.statistics-box{
    height:auto;
	overflow:auto;
    max-height:90vh;
}

.statistics-answer-row{
	font-size:14px;
}

/*wyświetlanie statystyk w dwóch kolumnach na MOBILE
.statistics-right{
    display:block;
    width:100%;
    overflow-y:auto;
	border:1px solid #ebebeb;
    margin:20px;
    border-radius:18px;
}*/

.statistics-right{
    display:none;
}

}


/* =====================================
   SHOP MODAL
===================================== */

.shopping-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.55);
    z-index:99999;
}

.shopping-box{
    width:1200px;
    max-width:95vw;
    height:85vh;
    background:#fff;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

/* =====================================
   SHOP HEADER
===================================== */

.shopping-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 24px;
    border-bottom:1px solid #ececec;
}

.shopping-header h2{
    margin:0;
    font-size:24px;
}

.shopping-close{
    font-size:24px;
    cursor:pointer;
    transition:.2s;
}

.shopping-close:hover{
    color:#d9534f;
}

.shopping-description{
    padding:18px 24px;
    text-align:center;
    color:#666;
    font-size:18px;
	font-weight:700;
    border-bottom:1px solid #ececec;
}

.shopping-toolbar{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    padding:16px 20px;
    border-bottom:1px solid #ececec;
}

.shopping-grid{
    flex:1;
    overflow-y:auto;
    display:grid;
	grid-template-columns:
		repeat(auto-fill,minmax(200px,180px));
	justify-content:center;
    gap:20px;
    padding:20px;
}

.shop-card{
    border:1px solid #e8e8e8;
    border-radius:16px;
    padding:16px;
    text-align:center;
    background:#fff;
    transition:.2s;
	height:270px;
}

.shop-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.shop-balance-box{
    text-align:center;
    margin:6px 0 4px;
    padding:10px 14px;
}

.shop-balance-box b{
    color:#ff9800;
    font-size:18px;
}

.shop-balance-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:#f8f8f8;
    border:1px solid #e8e8e8;
    border-radius:12px;
    font-size:15px;
}

.shop-image{
    width:120px;
    height:120px;
    object-fit:contain;
    margin:0 auto 14px;
    display:block;
}

.shop-name{
    font-size:16px;
    font-weight:600;
    margin-bottom:8px;
}

.shop-price{
    color:#2c7be5;
    font-size:15px;
    font-weight:700;
    margin-bottom:15px;
}

.shop-buy{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#2c7be5;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.shop-buy:hover{
    background:#1f68c7;
}

#shopping-toolbar{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    padding:16px 20px;
    border-bottom:1px solid #ececec;
}

.shop-filter, .shop-tab{
    padding:8px 14px;
    border:1px solid #ddd;
    border-radius:20px;
    background:#fff;
    cursor:pointer;
    transition:.2s;
}

.shop-filter.active,
.shop-tab.active{
    background:#2c7be5;
    color:#fff;
    border-color:#2c7be5;
}

.shop-buy-active{
    background:#2fb344;
    cursor:default;
}

/* =========================================
   WYSZUKIWARKA WLEPEK
========================================= */

.shop-search{
    position:relative;
    width:min(500px, 90%);
    margin:14px auto;
}

#shop-search-input{
    width:100%;
    box-sizing:border-box;
    padding:11px 42px 11px 14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
    outline:none;
}

/* Ukrywamy natywny krzyżyk Chrome */
#shop-search-input::-webkit-search-cancel-button{
    -webkit-appearance:none;
    appearance:none;
    display:none;
}

/* Nasz własny krzyżyk */
#shop-search-clear{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    width:28px;
    height:28px;
    display:none;
    align-items:center;
    justify-content:center;
    padding:0;
    border:none;
    border-radius:50%;
    background:transparent;
    color:#777;
    font-size:18px;
    line-height:1;
    cursor:pointer;
}

#shop-search-clear:hover{
    background:#eee;
    color:#222;
}

/* =====================================
   LABEL PREVIEW
===================================== */

.shop-preview{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.75);
    z-index:100000;
}

.shop-preview-image{
    max-width:400px;
    max-height:400px;
    width:90vw;
    height:auto;
    cursor:pointer;
}

/* =====================================
   WLEPKA NA PROFILU
===================================== */

.profile-label{
    text-align:center;
    margin-bottom:15px;
}

.profile-label-image{
    max-width:180px;
    height:auto;
}

#profile-label-container{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.profile-label-image{
    height:auto;
}

/* =====================================
   MOJE WLEPKI
===================================== */

.my-labels-info{
    margin:10px 20px 0;
    padding:12px 18px;
    background:#f8f9fb;
    border:1px solid #e6e6e6;
    border-radius:12px;
    text-align:center;
    line-height:1.5;
    font-size:15px;
}

.my-labels-counter{
    margin-top:6px;
    font-size:16px;
    font-weight:600;
}

/* =====================================
   STATYSTYKI WLEPEK
===================================== */

.statistics-label-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border-bottom:1px solid #e5e5e5;
    transition:background .2s;
}

.statistics-label-row:hover{
    background:#f8f8f8;
}

.statistics-label-image{
    width:48px;
    height:48px;
    object-fit:contain;
    cursor:pointer;
    flex-shrink:0;
}

.statistics-label-title{
    flex:1;
    font-size:15px;
    font-weight:500;
    color:#333;
}

.statistics-label-count{
    font-weight:600;
    color:#666;
    white-space:nowrap;
}


/* =====================================
   IKONY
===================================== */

.app-icon{
    width:20px;
    height:20px;
    vertical-align:middle;
    object-fit:contain;
    user-select:none;
    pointer-events:none;
}

.menu-icon{
    width:22px;
    height:22px;
    vertical-align:middle;
    flex-shrink:0;
}

.btn-icon{
    width:18px;
    height:18px;
    vertical-align:middle;
    object-fit:contain;
}

.premium-badge{
    position:absolute;
    top:-6px;
    left:-6px;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:20;
}

.gift-svg{
    width:30px;
    height:30px;
    vertical-align:middle;
    flex-shrink:0;
}

.large-icon{
    width:60px;
    height:60px;
}

.gift-stat-svg,
.group-category-svg{
    width:24px;
    height:24px;
    vertical-align:middle;
}

.online-icon,
.message-icon{
    width:16px;
    height:16px;
}

@media (min-width: 601px) and (max-width: 1024px) {
    .gift-stat-svg{
        width:20px;
        height:20px;
    }

    .owner-gifts{
        gap:8px;
    }

    .owner-gifts .gift-icon{
        gap:6px;
        font-size:20px;
    }
}

@media (max-width:600px){
    .gift-stat-svg{
        width:16px;
        height:16px;
    }

    .owner-gifts{
        gap:4px;
    }

    .owner-gifts .gift-icon{
        gap:4px;
        font-size:16px;
    }
}

.gift-modal-icon{
    width:24px;
    height:24px;
    vertical-align:middle;
	object-fit:contain;
    flex-shrink:0;
}

@media (max-width:800px){
    .gift-modal-icon{
        width:18px;
        height:18px;
    }
}

@media(max-width:600px){
.gift-svg{
    width:28px;
    height:28px;
}
}

#summary-coins-row,
#summary-single-row,
#summary-pack-row{
    display:flex;
    align-items:center;
}

#summary-coins-cost,
#summary-single-cost,
#summary-pack-cost{
    margin-left:auto;
}


/* =====================================================
   POWITALNY MODAL — INDEX
===================================================== */

#welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .3s ease,
    visibility .3s ease;
}

#welcome-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.welcome-modal-card {
  position: relative;
  width: min(800px, 100%);
  max-height: min(780px, 90vh);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 20px 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .22);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .35s ease;
}

#welcome-modal.is-open .welcome-modal-card {
  transform: translateY(0) scale(1);
}

.welcome-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #777;
  cursor: pointer;
}

.welcome-modal-close:hover {
  background: rgba(0, 0, 0, .06);
  color: #222;
}

.welcome-modal-logo {
  margin: 8px auto 20px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #222;
}

.welcome-modal-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.welcome-modal-text {
  margin: 0 auto 24px;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
}

.welcome-modal-close-button {
  min-width: 150px;
  padding: 11px 24px;
  border: 0;
  border-radius: 12px;
  background: #e5e85d;
  color: #222;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform .15s ease,
    filter .15s ease;
}

.welcome-modal-close-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

.welcome-modal-timer {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 600px) {
  #welcome-modal {
    padding: 14px;
  }

  .welcome-modal-card {
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  .welcome-modal-logo {
    font-size: 26px;
  }

  .welcome-modal-title {
    font-size: 23px;
  }

  .welcome-modal-text {
    font-size: 15px;
  }

}

.welcome-modal-text p {
  margin: 0 0 18px;
}

.welcome-modal-questions {
  margin: 8px auto 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .035);
  text-align: left;
  line-height: 1.8;
}

.welcome-modal-questions div {
  padding-left: 4px;
}

.welcome-modal-final {
  margin-top: 26px !important;
  font-size: 17px;
}


/* =====================================
   Statystyki serwisu - zarejestrowani, online
===================================== */

#site-stats{
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(240,240,210,.55);
    color: #000;
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    user-select: none;
}

.site-stat{
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.site-stat span{
    font-weight: 700;
}

@media(max-width:768px){
    #site-stats{
        right:8px;
        bottom:8px;
        padding:4px 8px;
        font-size:10px;
    }
}


/* =========================================================
   TAGOWANIE - DOPASOWANIA CECH I PREFERENCJI
========================================================= */

#tag-matches-container {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    background: #fff;
}

.tag-matches-header {
    padding: 4px 4px 12px;
    font-size: 18px;
    font-weight: 600;
}

#tag-matches-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* BEZ KOLORÓW
.tag-match-row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 7px 10px;
    gap: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
}

.tag-match-row:last-child {
    border-bottom: none;
}

.tag-match-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.tag-match-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.35;
}

.tag-match-text strong {
    font-weight: 600;
}

.tag-match-button {
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    background: #f5f5f5;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.tag-match-button:hover {
    background: #e9e9e9;
}
*/
.tag-match-row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid;
    border-radius: 5px;
    gap: 10px;
}

.tag-match-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.tag-match-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.35;
}

.tag-match-text strong {
    font-weight: 600;
}

.tag-match-button {
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* =========================================================
   KOLORY DOPASOWAŃ CECH
========================================================= */

/* 🧠 Osobowość */
.tag-match-row.per {
    background: #fde2e2;
    border-color: #e88a8a;
    color: #c73535;
}

/* 🎬 Rozrywka */
.tag-match-row.ent {
    background: #dceff7;
    border-color: #159bc4;
    color: #087ca5;
}

/* 💰 Wartości */
.tag-match-row.lav {
    background: #fff9cc;
    border-color: #e4d400;
    color: #b8a900;
}

/* ❤️ Relacje */
.tag-match-row.rel {
    background: #fce1ec;
    border-color: #e9a0bb;
    color: #d56f94;
}

/* 🔥 Emocje */
.tag-match-row.emo {
    background: #ead8cc;
    border-color: #b87855;
    color: #873d20;
}

/* 🏃‍♂️ Aktywność */
.tag-match-row.act {
    background: #e6ddf4;
    border-color: #9b7cc3;
    color: #7950a5;
}

/* 🌿 Styl życia */
.tag-match-row.lif {
    background: #e4f6bd;
    border-color: #9bd300;
    color: #58a800;
}

/* 🎯 Zainteresowania */
.tag-match-row.int {
    background: #e5e5e5;
    border-color: #aaa;
    color: #777;
}

@media (max-width: 768px) {
    #tag-matches-container .tag-match-text {
        font-size: 12px !important;
        line-height: 1.3;
    }

    #tag-matches-container .tag-match-text strong {
        font-size: 12px !important;
    }

    #tag-matches-container .tag-match-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    #tag-matches-container .tag-match-button {
        font-size: 12px !important;
        padding: 5px 8px;
    }
}

.tag-match-button {
    flex-shrink: 0;
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.65);
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.tag-match-button:hover {
    background: rgba(255, 255, 255, 0.45);
}


/* =========================================
   MOBILE — MODALE
   TYLKO DOPASOWANIE DO EKRANU
========================================= */

@media (max-width: 640px) {
    .wallet-modal-content,
    .wallet-history-content,
    .gift-modal-content,
    .notifications-box,
    .shopping-box {
        box-sizing: border-box;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
}


/* =========================================================
   MOBILE — PROFIL I MENU PROFILU
   ========================================================= */

@media (max-width: 768px) {
    /* ---------- AKCJE PODGLĄDANEGO PROFILU ---------- */
    .profile-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        box-sizing: border-box;
    }

    .profile-btn {
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-main-info {
        min-width: 0 !important;
        max-width: 100%;
    }

    .profile-top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    /* ---------- GÓRNE MENU PROFILU ---------- */
    #profile-menu {
        right: 0;
        width: max-content;
        max-width: none;
        box-sizing: border-box;
        gap: 6px;
        justify-content: flex-start;
		margin-bottom: 20px;
    }

    #profile-menu button {
        flex: 0 0 auto;
        min-width: 0;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 420px) {
    #profile-menu {
        left: -20px;	
	}
}


/* =========================================================
   MOBILE — PROFIL PODGLĄDANY + GIFTY
   ========================================================= */

@media (max-width: 600px) {
    /* cały profil nie może wymuszać większej szerokości */
    #summary-table,
    #summary-body,
    #summary-body tr,
    #summary-body td {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* główny nagłówek profilu */
    .profile-top {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* lewa część z avatarem i informacjami */
    .profile-top > div:first-child {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .profile-main-info {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* przyciski profilu */
    .profile-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .profile-btn {
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
    }


    /* =====================================================
       GIFTY — NIE WYPYCHAJĄ EKRANU
       ===================================================== */

    .profile-gifts {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .profile-gifts-icons {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: flex-start;

        /* KLUCZOWE */
        flex-wrap: wrap;
        gap: 8px;
        box-sizing: border-box;
    }

    .profile-gifts-icons .gift-icon {
        flex: 0 0 auto;
        min-width: 0;
        box-sizing: border-box;
    }

    .profile-gifts-icons .gift-svg {
        width: 28px;
        height: 28px;
    }
}


/* =========================================================
   SKLEP — MOBILE
========================================================= */

@media (max-width: 768px) {
    /* ---------- TOOLBAR ---------- */
    #shopping-toolbar {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 6px;
        overflow: visible;
    }

    .shop-filter,
    .shop-tab {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 14px;
        white-space: nowrap;
    }


    /* ---------- LISTA WLEPEK ---------- */
    .shopping-grid {
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;

        /* DWIE WLEPKI W RZĘDZIE */
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }


    /* ---------- KARTA WLEPKI ---------- */
    .shop-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        box-sizing: border-box;
    }
}


/* ===== DO 649 PX — 2 WLEPKI ===== */

@media (max-width: 649px) {
    .shopping-box {
        height: 90vh;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }

    .shopping-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
        overflow: visible;
        min-height: auto;
    }
}

/* ===== 650–949 PX — 3 WLEPKI ===== */

@media (min-width: 650px) and (max-width: 949px) {

    .shopping-box {
        height: 90vh;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }

    .shopping-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
        overflow: visible;
        min-height: auto;
    }
}

/* ===== 950–1199 PX — 4 WLEPKI ===== */

@media (min-width: 950px) and (max-width: 1199px) {

    .shopping-box {
        height: 90vh;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }

    .shopping-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
        overflow: visible;
        min-height: auto;
    }
}


@media (max-width: 768px){
  /* =====================================================
     FORMULARZ MOBILE
     ===================================================== */
  #questions-section{
    width:100%;
    margin:0;
    padding:0;
  }

  #questions-section .slider{
    width:100%;
  }

  #questions-section .slide{
    width:100%;
    min-width:100%;
    box-sizing:border-box;
    padding:10px 0 10px !important;
    height:auto;
    min-height:0;
  }

  /* KARTY PYTAŃ */
  #questions-section .question-card{
    width:100%;
    box-sizing:border-box;
    margin-left:0;
    margin-right:0;
  }

  /* =====================================================
     STRZAŁKI — ŚRODEK AKTUALNEJ STRONY
     ===================================================== */
  #questions-section .nav-arrow{
    position:absolute;
    top:50%;
    bottom:auto;
    transform:translateY(-50%);
    z-index:100;
  }

  #questions-section .nav-arrow.left{
    left:10px;
  }

  #questions-section .nav-arrow.right{
    right:10px;
  }

  /* =====================================================
     DOLNY PASEK
     ===================================================== */
  #bottom-bar{
    position:relative;
    width:100%;
    height:auto;
    min-height:110px;
    box-sizing:border-box;
    margin:0;
    padding:10px 10px 20px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:10px;
  }

  /* PAGINACJA */
  #bottom-bar .pagination{
    order:1;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 0 5px;
  }

  /* PRZYCISKI */
  #bottom-bar .restart-btn,
  #bottom-bar .preview-btn,
  #bottom-bar .save-btn{
    position:static;
    margin:0;
  }

  /* =====================================================
     STOPKA
     ===================================================== */
  #footer-container{
    width:100%;
    flex-shrink:0;
  }
}

@media (max-width:768px){
  .main-container{
    background: url("zlote.jpg") no-repeat center top;
    background-size: cover;
  }
}


/* =========================================
   PROFILE — MOBILE DO 476px
   WLEPKI 2 x 2
========================================= */

@media (max-width: 476px){
    #profile-label-container{
        display:grid;
        grid-template-columns:repeat(2, 1fr);
        gap:10px;
        width:100%;
        box-sizing:border-box;
        padding:0 8px;
    }

    #profile-label-container .profile-label-image{
        width:100%;
        max-width:150px;
        height:auto;
        justify-self:center;
    }
	
    /* OTRZYMANE PREZENTY — 2 x 4 */
    .owner-gifts{
        display:grid;
        grid-template-columns:repeat(4, 1fr);
        gap:10px;
        width:100%;
        box-sizing:border-box;
        padding:10px 8px 20px;
    }

    .owner-gift-icon{
        font-size:22px;
        text-align:center;
    }	
}

/* UKŁAD PRZYCISKÓW W WIADOMOŚCIACH */

@media (max-width: 600px){

  .message-footer{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:16px 24px 20px;
  }

  /* Załącznik */
  .message-footer .message-attachment-btn{
    align-self:flex-start;
    flex:0 0 auto;
  }

  /* Pole wiadomości */
  .message-footer .message-input{
    width:100%;
    min-width:0;
    height:68px;
    min-height:68px;
    box-sizing:border-box;
    flex:none;
  }

  /* Wyślij */
  .message-footer .message-send-btn{
    width:100%;
    height:68px;
    flex:none;
  }

  /* Emoji */
  .message-footer .emoji-btn{
    align-self:flex-start;
    flex:0 0 auto;
  }

}


/* =========================================
   LOGIN / REGISTER — MOBILE
   KARTA NIE MOŻE BYĆ WYŚRODKOWANA
   GDY JEST WYŻSZA OD EKRANU
========================================= */

@media (max-width: 768px){
  .container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    width:100%;
    height:auto;
    min-height:0;
    padding:20px 0;
    box-sizing:border-box;
    flex:0 0 auto;
  }

  .card{
    width:400px;
    max-width:calc(100% - 30px);
    box-sizing:border-box;
    margin:0 auto;
  }

}


/* =========================================================
   MOBILE — PANEL UŻYTKOWNIKA
   Admin → Avatar → Wyloguj
========================================================= */

@media (max-width: 768px){
  .user-panel{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-rows:auto auto auto;
    column-gap:16px;
    row-gap:8px;
    align-items:center;
    width:100%;
    margin-bottom:0;
  }

  /* -100px tylko podczas wypełniania testu */
  .user-panel.test-in-progress{
    margin-bottom:-100px;
  }

  /* Dane użytkownika — lewa strona */
  .user-info{
    grid-column:1;
    grid-row:2 / 5;
    min-width:0;
  }

  /* Zarejestruj - zaloguj */
  .auth-box{
    grid-column:1;
    grid-row:1;
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
  }

  .auth-box button{
    padding:6px 12px;
    font-size:13px;
    line-height:1.2;
    white-space:nowrap;
  }

  /* Rozbijamy account-buttons,
     aby jego przyciski mogły być
     ustawiane niezależnie */
  .account-buttons{
    display:contents;
  }

  /* ADMIN — nad avatarem */
  .admin-panel-btn{
    grid-column:2;
    grid-row:1;
    width:84px;
    margin:0;
    justify-self:center;
  }

  /* AVATAR */
  #avatar-container{
    grid-column:2;
    grid-row:2;
    justify-self:center;
  }

  /* WYLOGUJ — pod avatarem */
  .logout-btn{
    grid-column:2;
    grid-row:3;
    width:84px;
    justify-self:center;
    margin-top:16px;
  }

  /* Spezentuj Premium */
  .premium-btn{
    margin-bottom:10px;
  }

}


/* =====================================
   DYMKI IKON NA LIŚCIE DOPASOWAŃ
===================================== */

#matched-users-list .top-icon {
    position: relative;
    z-index: 1000;
}

/* Tooltip przenosimy poza scrollowany kontener */
#matched-users-list .top-icon::after,
#matched-users-list .gift-icon::after {
    display: none !important;
}


/* GLOBALNY TOOLTIP LISTY DOPASOWAŃ */

.matched-list-tooltip {
    position: fixed;
    z-index: 2000000;
    max-width: 220px;
    padding: 6px 9px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
    box-shadow:
        0 3px 10px rgba(0,0,0,.25);
}


/* =========================================================
   POTWIERDZENIE ZAKUPU
========================================================= */

.purchase-confirm-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:1000000;
    background:rgba(0,0,0,.72);
    align-items:center;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
}

.purchase-confirm-box{
    position:relative;
    width:520px;
    max-width:100%;
    max-height:90vh;
    overflow-y:auto;
    background:#222;
    color:#fff;
    border-radius:16px;
    padding:28px;
    box-shadow:
        0 20px 60px rgba(0,0,0,.5);
    box-sizing:border-box;
}

.purchase-confirm-close{
    position:absolute;
    top:10px;
    right:15px;
    border:none;
    background:transparent;
    color:#bbb;
    font-size:28px;
    font-weight:bold;
    cursor:pointer;
}

.purchase-confirm-close:hover{
    color:#fff;
}

.purchase-confirm-title{
    text-align:center;
    font-size:25px;
    font-weight:700;
    margin-bottom:6px;
}

.purchase-confirm-subtitle{
    text-align:center;
    color:#bbb;
    font-size:14px;
    margin-bottom:20px;
}

.purchase-confirm-product{
    background:#333;
    border-radius:12px;
    padding:16px;
    margin-bottom:18px;
}

.purchase-confirm-product-name{
    text-align:center;
    font-size:16px;
    font-weight:700;
    margin-bottom:14px;
}

.purchase-confirm-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:7px 0;
    font-size:15px;
}

.purchase-confirm-row strong{
    text-align:right;
    white-space:nowrap;
}

.purchase-confirm-section{
    margin-top:14px;
    font-size:14px;
    line-height:1.45;
    color:#eee;
}

.purchase-confirm-label{
    font-weight:700;
    margin-bottom:4px;
}

.purchase-confirm-consent{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:20px;
    padding:13px;
    background:#303030;
    border-radius:10px;
    font-size:13px;
    line-height:1.45;
    cursor:pointer;
}

.purchase-confirm-consent input{
    margin-top:3px;
    flex-shrink:0;
    width:17px;
    height:17px;
}

.purchase-confirm-error{
    margin-top:12px;
    padding:10px;
    border-radius:8px;
    background:#5b2020;
    color:#fff;
    font-size:13px;
    text-align:center;
}

.purchase-confirm-buttons{
    display:flex;
    gap:12px;
    margin-top:22px;
}

.purchase-confirm-buttons button{
    flex:1;
    height:45px;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.purchase-confirm-cancel{
    background:#e95959;
    color:#fff;
}

.purchase-confirm-cancel:hover{
    background:#dd3e3e;
}

.purchase-confirm-submit{
    background:#22c55e;
    color:#fff;
}

.purchase-confirm-submit:hover{
    background:#16a34a;
}

.purchase-confirm-submit:disabled{
    opacity:.55;
    cursor:not-allowed;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

    .purchase-confirm-modal{
        padding:10px;
    }

    .purchase-confirm-box{
        width:100%;
        max-height:92vh;
        padding:22px 18px;
    }

    .purchase-confirm-title{
        font-size:21px;
        padding-right:25px;
    }

    .purchase-confirm-product-name{
        font-size:18px;
    }

    .purchase-confirm-row{
        font-size:14px;
    }

    .purchase-confirm-section{
        font-size:13px;
    }

    .purchase-confirm-buttons{
        flex-direction:column-reverse;
    }
	
	.purchase-confirm-buttons button{
        flex:none;
        width:100%;
        height:45px;
    }
}


/* =====================================
   KONTAKT — POPUP
   ===================================== */

.footer-contact{
    position:relative;
}

.footer-contact-popup{
    position:absolute;
    top:100%;
    left:0;
    z-index:100000;
    display:none;
    flex-direction:column;
    align-items:center;
    min-width:185px;
    margin-top:0;
    padding:8px 10px 7px;
    border-radius:12px;
    background:rgba(240,240,210,.92);
    color:#000;
    font-size:12px;
    line-height:1.45;
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    text-align:center;
}

/* pokazanie popupu bez przesuwania Pomocy ani Kontaktu */
.footer-contact:hover .footer-contact-popup{
    display:flex;
}

/* email */
.footer-contact-email{
    color:#000;
    text-decoration:none;
    white-space:nowrap;
    font-weight:600;
}

.footer-contact-email:hover{
    text-decoration:underline;
}

/* trójkąt */
.footer-contact-details{
    margin-top:1px;
}

.footer-contact-details summary{
    list-style:none;
    cursor:pointer;
    text-align:center;
    font-size:11px;
    line-height:1;
    padding:2px 4px;
}

.footer-contact-details summary::-webkit-details-marker{
    display:none;
}

/* po rozwinięciu */
.footer-contact-details[open] summary{
    font-size:0;
}

.footer-contact-details[open] summary::after{
    content:"▲";
    font-size:11px;
}

.footer-contact-details-content{
    margin-top:5px;
    padding-top:6px;
    border-top:1px solid rgba(0,0,0,.18);
    text-align:center;
    white-space:nowrap;
}


/* ===== NOTKA INFORMACYJNA ===== */

#pre-test-info {
  position: absolute;
  left: 30%;
  right: 0;
  bottom: 8px;
  text-align: left;
  box-sizing: border-box;
  font-family: "StoryScript", cursive;
  line-height: 1.2;
  pointer-events: none;
}

#pre-test-info strong {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}

#pre-test-info span {
  display: block;
  font-size: 18px;
}

/* =========================================================
   INFORMACJA TESTU — TABLET / ŚREDNIE EKRANY
   768–1199 px
========================================================= */

@media (min-width: 769px) and (max-width: 1199px) {

  #pre-test-info {
    left: 20%;
    right: 0;
    bottom: 4px;
    text-align: left;
    font-family: "StoryScript", cursive;
    font-size: 16px;
    line-height: 1.15;
  }

  #pre-test-info strong,
  #pre-test-info span {
    text-align: left;
  }

  #pre-test-info strong {
    font-size: 18px;
    margin-bottom: 3px;
  }

  #pre-test-info span {
    font-size: 16px;
  }

}

@media (max-width: 768px) {

  #pre-test-info {
    position: static;
    width: 100%;
    margin: 0;
    padding: 8px 12px 12px;
    text-align: left;
    box-sizing: border-box;
    font-family: "StoryScript", cursive;
    line-height: 1.25;
  }

  #pre-test-info strong {
    font-size: 16px;
    margin-bottom: 3px;
  }

  #pre-test-info span {
    font-size: 14px;
  }

}