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

body {
  background-color: #181b23;
  color: #fff;
  overflow-x: hidden;
  overflow-y: overlay;
  font-family: 'Inter', sans-serif;
}

/* --- TOPBAR --- */
/* --- TOPBAR --- */
.topbar {
  background-color: #181b23;
  height: 80px;
  padding: 0 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Tüm tarayıcılar için scroll barı kontrol edelim */
::-webkit-scrollbar {
  width: 8px; /* scroll bar kalınlığı */
}

/* Scrollbar iç kısmı (background) */
::-webkit-scrollbar-track {
  background: #1f232d; /* scroll bar arka plan rengi */
}

/* Scrollbar kaydırılabilir kısmı */
::-webkit-scrollbar-thumb {
  background: #181b23; /* scroll bar rengi (yeşil gibi) */
  border-radius: 10px;
}

/* Scrollbar hover olduğunda */
::-webkit-scrollbar-thumb:hover {
  background: #252A33; /* hover olduğunda koyu yeşil */
}

/* Sol kısım: Logo + Menü */
.logo-nav {
  display: flex;
  align-items: center;
  gap: 60px; /* Logo ile Menü arasını açıyoruz */
}

.logo-image {
  max-height: 150px;
  height: auto;
  display: block;
}

/* Menü kısmı */

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin-left: 80px;
}

.top-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.top-nav a:hover {
  color: #f1f5f9;
}

.top-nav a.active {
  color: #f1f5f9;
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -27px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #22c55e;
  border-radius: 2px;
}


/* Sağ kısım: Cart + Profil */
.right-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* Sağdaki cart ve profil arası boşluk */
  margin-left: auto;
}

/* Cart (Calculator) */
.cart-container {
  position: relative;
}

/* --- PROFİL (Avatar + Username + Logout) --- */
.auth-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px; /* azaltıldı */
}


.profile-info-container {
  display: flex;
  align-items: center;
  gap: 8px;
}


.profile-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 2px solid #22c55e;
  object-fit: cover;
}



.profile-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.profile-username {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  max-width: none; /* İstersen kaldır, çünkü PHP kısaltıyor */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.logout-link {
  font-size: 10px; /* daha minik logout yazısı */
  color: #94a3b8;
  text-decoration: none;
  margin-top: 2px;
}

.logout-link:hover {
  color: #f87171;
}

/* --- LOGIN / REGISTER Butonları --- */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.btn-login,
.btn-register {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  gap: 6px;
  justify-content: center;
  letter-spacing: 0.15px;
  line-height: 24px;
  max-width: 100%;
  min-width: 1%;
  position: relative;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-login {
  background-color: #2d2f36;
  color: #d1d5db;
  padding: 10px 16px;
}

.btn-login:hover {
  background-color: #3c3f48;
  color: #ffffff;
}

.btn-register {
  background-color: #22c55eb7;
  color: white;
  padding: 10px 20px;
}

.btn-register:hover {
  background-color: #22c55ee7;
}

.btn-register i {
  margin-left: 6px;
}

/* Sadece Logout butonu */
.btn-only-logout {
  background: #ef4444;
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-only-logout:hover {
  background: #dc2626;
  color: white;
}

/* --- MOBİL GÖRÜNÜM (768px ve altı) --- */
@media (max-width: 1024px) {
  .auth-profile {
    display: none;
  }

  .auth-buttons {
    display: none;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .topbar {
    padding: 0 20px;
  }
}


/* mobile profile */

.profile-dropdown-trigger {
  position: relative;
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  bottom: 90px; /* ← daha yukarı çıkarır */
  right: 0;
  background: #181b23;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  animation: dropdownFade 0.2s ease-out;
}
.profile-dropdown::before {
  content: "";
  position: absolute;
  top: 100%; /* alt kısmın dışına */
  right: 16px; /* oka hizalama */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #181b23; /* ok rengi = dropdown arka planı */
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.profile-dropdown a {
  padding: 14px 18px;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.profile-dropdown a:last-child {
  border-bottom: none;
}

.profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

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

.hidden {
  display: none;
}


/* Layout */
.main-container2 {
  display: flex;
  min-height: 100vh;
  margin-left: 175px;
  background-color: #1f232d;
}

.content {
  flex-grow: 1;
  padding: 20px;
}

/* Genel Stil */


/* Menü Sidebar - Soldan açılır */
.sidebar-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 270px;
  height: calc(100vh - 80px);
  background-color: #181b23;
  padding: 25px;
  overflow-y: auto;
  border-right: 1px solid #2d3748;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.sidebar-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Filter Sidebar - Sağdan açılır */
.sidebar-filter {
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 80px;
  right: 0;
  width: 355px;
  height: calc(100vh - 80px);
  background-color: #181B23;
  padding: 25px;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.sidebar-filter.active {
  transform: translateX(0);
  pointer-events: auto;
}


@media (max-width: 768px) {
  .sidebar.sidebar-filter {
    width: 320px; /* veya istediğin başka bir değer, örneğin 260px */
  }
}

/* Filters */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.filter-header h2 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.filter-count {
  background: #374151;
  padding: 2px 7px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  color: #e2e8f0;
  transition: background 0.3s ease;
}

.filter-count.active {
  background-color: #f59e0b;
  color: black;
}

.reset-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-btn:hover {
  color: #f87171;
}

.reset-btn .icon-x {
  width: 14px;
  height: 14px;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section h3 {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-bottom: 10px;
}

.rarity-colors {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.rarity-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(to top, var(--rarity-color) 50%, #2b2b2b 50%);
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rarity-box::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background-color: var(--rarity-color);
  transition: height 0.3s ease;
  z-index: 0;
  border-radius: 10px; /* yuvarlak kalması için */
}
.rarity-box:hover::before,
.rarity-box.active::before {
  height: 100%;
}
/* Check işareti */
.rarity-box svg.check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  fill: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rarity-box.active svg.check-icon {
  opacity: 1;
}

/* Tooltip */
.rarity-box[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  z-index: 99;
}

.rarity-box:hover::after {
  opacity: 1;
}


.property-checkbox {
  margin-bottom: 10px;
}

.property-checkbox input[type="checkbox"] {
  display: none;
}

.property-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background-color: #1f232d;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  color: #e5e7eb;
}

.property-checkbox label:hover {
  box-shadow: 0 0 0 1px #00000033;
}

.property-checkbox .check-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background-color: #2e3440;
  transition: background-color 0.2s ease;
}

.property-checkbox .check-icon svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.property-checkbox.active label {
  background-color: color-mix(in srgb, var(--color) 31%, transparent);
  color: white;
}

.property-checkbox.active .check-icon {
  background-color: var(--color);
}

.property-checkbox.active .check-icon svg {
  opacity: 1;
}

/* Content */
.content {
  flex-grow: 1;
  padding: 30px;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background-color: #374151;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 25px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 100%;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 31%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.8;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 15px 10px 42px; /* ikon için sol boşluk */
  border: 1px solid #374151;
  border-radius: 10px;
  background-color: #1f2937;
  color: #e2e8f0;
  font-size: 1rem;
  transition: border 0.2s ease;
}

.search-input-wrapper input::placeholder {
  color: #6b7280;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #10b981;
}


.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* 1501px ve üstü */
@media (min-width: 1501px) {
  .pet-grid {
    grid-template-columns: repeat(6, minmax(235px, 1fr));
      margin: 0 auto; /* ✅ Ortalar */

  }
}

/* 1025px - 1440px */
@media (min-width: 1025px) and (max-width: 1500px) {
  .pet-grid {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
      margin: 0 auto ;  /* ✅ Ortalar */

  }
}


/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .pet-grid {
    grid-template-columns: repeat(3, 1fr);
      margin: 0 auto; /* ✅ Ortalar */

  }
}

/* Mobil: 0 - 767px */
@media (max-width: 767px) {
  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
      margin: 0 auto; /* ✅ Ortalar */

  }
}

.pet-card {
  position: relative;
  background-color: #181b23;
  border-radius: 14px;
  padding: 20px 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
}

.pet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 70px;
  right: 70px;
  height: 4px;
  border-radius: 4px;
  background-color: var(--rarity-color);
  z-index: 1;
}
.pet-card.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ✨ Hover efekti */
.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), 0 0 10px var(--rarity-color);
}

/* ✨ Parlak yansıma efekti */
.pet-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.pet-card.selected {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), 0 0 10px var(--rarity-color);
}

.pet-card.selected::after {
  opacity: 1;
}

.pet-card:hover::after {
  opacity: 1;
}


.pet-card img {
  width: 90%;
  margin: 0 auto 10px auto;
  display: block;
  border-radius: 8px;
}

.pet-card h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 5px;
}

.pet-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1fae5;
  
  
}

.content2 {
   margin-top: 30px; /* ✅ Yukarı çeker */
   margin-left: 30px;
   margin-right: 30px;
   padding-bottom: 90px;
 }

/* --- 1440px ve altı için düzen --- */
@media (max-width: 1440px) {

  .main-container2 {
    margin-left: 0 !important;
    flex-direction: column;
  }

  /* Menü Sidebar - Soldan açılır */
/* Menü Sidebar - Soldan açılır */
.sidebar-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 270px;
  height: calc(100vh - 80px);
  background-color: #181b23;
  padding: 25px;
  overflow-y: auto;
  border-right: 1px solid #2d3748;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 9;
}

.sidebar-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Filter Sidebar - Sağdan açılır */
.sidebar-filter {
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 80px;
  right: 0;
  width: 355px;
  height: calc(100vh - 80px);
  background-color: #181b23;
  padding: 25px;
    padding-bottom: 200px;

  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 9;
}

.sidebar-filter.active {
  transform: translateX(0);
  pointer-events: auto;
}

  .sidebar-filter.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Search bar ve filtre butonu düzeni */
  .filter-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 15px;
    padding: 0 15px;
  }

  .filter-toggle {
    height: 50px;
    width: 50px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    position: relative;
    z-index: 9;
  }

  /* Mobil bottom nav */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Topbar sabit */
  .topbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 15px;
    justify-content: space-between;
  }

  .top-nav {
    display: none;
  }

  /* Content padding */
  .content2 {
    margin-top: -20px; /* ✅ Yukarı çeker */
    transform: translateY(-850px); /* ✅ Yukarı çeker */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 90px;
  }

  .help-container {
    padding-top: 90px;
    padding-bottom: 90px;
    
  }

}


.help-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  animation: fadeIn 1s ease forwards;
}

.faq-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* Kartlar */
.faq-card {
  background: #1f232d;
  padding: 20px;
  border-radius: 12px;
  width: 300px; /* ✅ Kart sabit genişlik */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Mobilde alt alta gelsin */
@media (max-width: 768px) {
  .faq-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
    
    .help-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
    margin-bottom: 90px;

  animation: fadeIn 1s ease forwards;
}

 .help-header h1 {
    font-size: 32px; /* Mobile'da biraz daha büyük font */
      margin-bottom: -60px;

  }

  .help-header h2 {
    font-size: 20px; /* İkinci başlık da daha büyük ve rahat okunur */
      margin-bottom: -60px;

  }
}

.help-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.help-header h1 {
  font-size: 28px;
  color: #22c55e; /* ✅ Beyaz değil, yeşil yapıyoruz ki glow belli olsun */
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #22c55e88, 0 0 20px #22c55e55; /* ✅ Parlama efekti */
  animation: glow 2s infinite alternate; /* ✅ Animasyonu ekle */
}

@media (min-width: 1441px) {
  .sidebar-filter {
    transform: none !important;
    pointer-events: auto !important;
    right: auto !important;
    left: 0 !important;
    z-index: 9;
  }
}


/* Search + Toggle Button */
/* Search + Toggle Button */
.filter-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  position: relative;
  z-index: 8;
}

@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (min-width: 1441px) {
  .filter-toggle {
    display: none !important;
  }
}

.menu-toggle {
  display: none; /* Başta gizli */
  background-color: #212630;
  border: none;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* İkonun rengi ve boyutu */
.menu-toggle svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  stroke-width: 2.5px;
  transition: stroke 0.3s ease;
}

/* Hover efekti */
.menu-toggle:hover {
  background-color: #2a2f3b;
  transform: scale(1.05);
}

/* Sadece 1025px - 1440px arası görünür */
@media (min-width: 1025px) and (max-width: 1440px) {
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .content2 {
    margin-top: -20px; /* ✅ Yukarı çeker */
    transform: translateY(-850px); /* ✅ Yukarı çeker */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 90px;
  }
}

@media (max-width: 769px) {
  .content2 {
    margin-top: 200px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: -600px;
  }
}


.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px; /* ikonlar arası boşluk */
  margin-bottom: 300px; /* Legal kısmı ile arasını açıyoruz */
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.menu-link svg {
  width: 35px;
  height: 35px;
  padding: 8px;
  border-radius: 10px;
  background-color: #1f2937;
  transition: background 0.3s, color 0.3s;
}


.menu-header {
  padding: 20px 14px 10px;
}

.menu-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.menu-header hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0;
}



/* Normal durumda her menü ikonunun arka planı ve rengi */
.menu-link.prices i svg {
  background-color: rgba(16, 185, 129, 0.15);
  stroke: #10b981;
}
.menu-link.sell i svg {
  background-color: rgba(59, 130, 246, 0.15);
  stroke: #3b82f6;
}
.menu-link.stock i svg {
  background-color: rgba(234, 179, 8, 0.15);
  stroke: #fbbf24;
}
.menu-link.help i svg {
  background-color: rgba(59, 130, 246, 0.15);
  stroke: #3b82f6;
}
.menu-link.profile i svg {
  background-color: rgba(16, 185, 129, 0.15);
  stroke: #10b981;
}

.menu-link.active {
  background-color: #2a2f3b;
  color: white;
}

.menu-link.prices.active i svg {
  background: none;
  stroke: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 12px;
}
.menu-link.sell.active i svg {
  background: none;
  stroke: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 12px;
}
.menu-link.stock.active i svg {
  background: none;
  stroke: #fbbf24;
  border: 2px solid #fbbf24;
  border-radius: 12px;
}
.menu-link.help.active i svg {
  background: none;
  stroke: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 12px;
}
.menu-link.profile.active i svg {
  background: none;
  stroke: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 12px;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.menu-link:hover i svg {
  stroke: inherit;
}


/* Menü ile legal boşluk */
.menu-legal {
  margin-top: -50px; /* 🔥 İstediğin kadar azaltırsın (-10px, -20px, -30px gibi) */
  font-size: 13px;
  color: #94a3b8;
}


.filter-toggle {
  position: relative;
  background: #181b23;
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.filter-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #f97316;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: bold;
}

.tag {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
}
.collapsible-toggle {
  cursor: pointer;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.disclaimer-content {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #cbd5e175;
  line-height: 1.5;
}


.legal-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-link {
  background-color: #1f232d;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.legal-link:hover {
  background-color: #111827;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
}



.pet-card {
  position: relative; /* Bu önemli, yoksa pet-tags doğru yerleşmez */
  
}

.pet-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #181b23;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item svg {
  width: 22px;
  height: 22px;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  box-sizing: content-box;
  background-color: #1f2937;
  stroke-width: 2; /* ✅ ikon çizgi kalınlığı */
  transition: all 0.3s ease;
}

/* Normal sayfalarda */
.mobile-bottom-nav .nav-item.prices svg {
  background-color: rgba(16, 185, 129, 0.15);
  stroke: #10b981;
}
.mobile-bottom-nav .nav-item.sell svg {
  background-color: rgba(59, 130, 246, 0.15);
  stroke: #3b82f6;
}
.mobile-bottom-nav .nav-item.stock svg {
  background-color: rgba(234, 179, 8, 0.15);
  stroke: #fbbf24;
}
.mobile-bottom-nav .nav-item.help svg {
  background-color: rgba(59, 130, 246, 0.15);
  stroke: #3b82f6;
}
.mobile-bottom-nav .nav-item.profile svg {
  background-color: rgba(16, 185, 129, 0.15);
  stroke: #10b981;
}

/* ✅ Aktif olduğunda */
.mobile-bottom-nav .nav-item.prices.active {
  color: white;
}
.mobile-bottom-nav .nav-item.prices.active svg {
  background-color: transparent;
  stroke: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 12px; /* ✅ köşeler yuvarlak */
}

.mobile-bottom-nav .nav-item.sell.active {
  color: white;
}
.mobile-bottom-nav .nav-item.sell.active svg {
  background-color: transparent;
  stroke: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 12px; /* ✅ köşeler yuvarlak */
}

.mobile-bottom-nav .nav-item.stock.active {
  color: white;
}
.mobile-bottom-nav .nav-item.stock.active svg {
  background-color: transparent;
  stroke: #fbbf24;
  border: 2px solid #fbbf24;
  border-radius: 12px; /* ✅ köşeler yuvarlak */
}

.mobile-bottom-nav .nav-item.help.active {
  color: white;
}
.mobile-bottom-nav .nav-item.help.active svg {
  background-color: transparent;
  stroke: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 12px; /* ✅ köşeler yuvarlak */
}

.mobile-bottom-nav .nav-item.profile.active {
  color: white;
}
.mobile-bottom-nav .nav-item.profile.active svg {
  background-color: transparent;
  stroke: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 12px; /* ✅ köşeler yuvarlak */
}




/* Cart Icon Container */
.cart-btn {
  background-color: #252A33;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 48px;
  min-width: 180px; /* Genişlik ayarı */
}

.cart-img-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  color: #22c55e;
}

.cart-btn-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

.cart-btn-title {
  font-size: 0.9rem;
  font-weight: 500;  
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

.cart-btn-price {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
}

.cart-btn-arrow {
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
}


/* Cart Badge (counter on icon) */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #22c55e;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: bold;
}

/* Dropdown Box */
.cart-dropdown {
  position: absolute;
  right: 0;
  top: 126%;
  width: 320px;
  background-color: #181b23;
  border-radius: 12px;
  padding: 20px;
  display: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Header in dropdown */
.cart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.cart-header .cart-icon-bg {
  background-color: #22c55e31;
  color: #22c55e;
  padding: 12px;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}


.cart-title {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Items List */
.cart-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;

  max-height: 250px;       /* Sepet yüksekliği limiti */
  overflow-y: auto;        /* Dikey scroll aktif */
  padding-right: 6px;      /* Scrollbar için boşluk */
}
.cart-items-list::-webkit-scrollbar {
  width: 6px;
}
.cart-items-list::-webkit-scrollbar-thumb {
  background-color: #374151;
  border-radius: 4px;
}

/* Each item block */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #10141c;
  border: 1px solid #2d3748;
  padding: 12px;
  border-radius: 12px;
  position: relative;
}

/* Sadece confirm modal içindeki item'lara boşluk */
.confirm-item {
  margin-bottom: 12px;
  gap: 12px;
}

.confirm-item .remove-btn {
  margin-left: auto; /* 🔒 çarpı en sağa itilir */
}


/* Pet image in cart */
.cart-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.cart-img-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, 2px); }
  100% { transform: translate(0, 0); }
}

#cartToggle.shake {
  animation: shake 0.4s ease;
}


/* Text and tags */
.cart-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-icons {
  display: flex;
  gap: 6px;
}

.cart-price {
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Remove button */
.remove-btn {
  background-color: #1f2937;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.remove-btn:hover {
  background-color: #374151;
}

.remove-btn i {
  width: 18px;
  height: 18px;
  stroke: #9ca3af;
}

/* Cart Total */
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  border-top: 1px solid #2d3748;
}

.cart-total span {
  font-size: 0.85rem;       /* Daha küçük */
  color: #cbd5e198;         /* Açık beyaz + saydamlık */
  font-weight: 500;
}


/* Buttons */
.buy-btn,
.empty-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.buy-btn {
  background-color: #22c55e;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-btn {
  background-color: #1f2937;
  color: #94a3b8;
}

.pet-skeleton {
  position: relative;
  background-color: #181b23;
  border-radius: 14px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  height: 250px; /* Orijinal kart yüksekliği ile aynı olacak şekilde ayarla */
  animation: loading 0.5s infinite;
  background: linear-gradient(90deg, #1f232d 25%, #2c2f38 50%, #1f232d 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

body {
  font-family: 'Inter', sans-serif;
}

/* Live Chat Button */
#liveChatButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #181b23;
  border: 2px solid #252a33;
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

#liveChatButton:hover {
  background: #2a2f3b;
}

#liveChatButton img {
  width: 24px;
  height: 24px;
}

/* Genel Chat Panel */
#chatPanel {
  width: 420px !important;
  height: 600px !important;
  position: fixed;
  right: 5px !important;
  bottom: 0px !important;
  background: #1f232d;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s ease;
}

#chatPanel.active {
  animation: slideInFromRight 0.4s ease-out forwards;
  pointer-events: auto;
}

#chatPanel.closing {
  animation: slideOutToRight 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
}

/* Chat Header */
.chat-header {
  background: #181b23;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: white;
  padding: 16px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header button {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Chat Body */
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1f232d;
}

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

/* Kullanıcı Mesajları */
.chat-user {
  display: flex;
  justify-content: flex-end;
}

.chat-user .assistant-message {
  background-color: #22c55e;
  color: black;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
}

/* Bot Mesajları */
.chat-assistant {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-assistant img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chat-assistant .assistant-message {
  background-color: #f1f5f9;
  color: black;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
}

/* Assistant Message Default */
.assistant-message {
  background: #f4f4f4;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
}

/* Chat Input Area */
.chat-input-area {
  padding: 10px;
  background: #1f232d;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-input-area input[type="text"] {
  flex: 1;
  padding: 12px;
  background: #2a2f3a;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  outline: none;
}

#sendButton {
  background: #22c55e;
  padding: 10px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#uploadButton {
  padding: 10px;
  border-radius: 8px;
  background-color: #22c55e;
  color: black;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.icon-button i {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

/* Chat Options */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.chat-options button {
  background: #f5f5f5;
  color: #333;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-options button:hover {
  background: #e0e0e0;
}

.contact-button {
  background: linear-gradient(to right, #f9a825, #ff9800);
  color: white;
  font-weight: bold;
}

.contact-button:hover {
  background: linear-gradient(to right, #ffb300, #ffa000);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-time {
  font-size: 11px;
  color: #1f232d;
  font-family: monospace;
  margin-left: 8px;
  opacity: 0.8;
}

/* Mobil Ayarlar */
@media (max-width: 769px) {
  #chatPanel {
    width: 100% !important;
    height: 100% !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0;
    transform: translateX(100%);
  }
  #chatPanel.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  #chatPanel.closing {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  #liveChatButton {
    bottom: 90px;
    right: 10px;
  }
}

@media (max-width: 1024px) {
  #chatPanel.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  #chatPanel.closing {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  #liveChatButton {
    bottom: 90px;
    right: 10px;
  }
}



.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 57%;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px, solid #10b981;
  height: 40px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e; /* yeşil */
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e80;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d1fae5;
}



/* Renk ayarları */
.mobile-bottom-nav .nav-item[href="index.html"] i {
  color: #22c55e; /* Prices -> yeşil */
  background-color: rgba(16, 185, 129, 0.1);
}

.mobile-bottom-nav .nav-item[href="howtosell.html"] i {
  color: #facc15; /* How To Sell -> sarı */
  background-color: rgba(234, 179, 8, 0.1);
}

.mobile-bottom-nav .nav-item[href="help.html"] i {
  color: #3b82f6; /* Help -> mavi */
  background-color: rgba(59, 130, 246, 0.1);
}

/* Sadece mobilde göster */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .topbar {
    padding-bottom: 70px; /* mobil nav ile çakışmaması için boşluk */
  }
}

/* Mobilde üst menüyü gizle */
@media (max-width: 1024px) {
  .top-nav {
    display: none;
  }
}
@media (max-width: 1024px) {
  .topbar {
    padding: 20px 15px; /* Daha ince hale getirir */
    justify-content: center; /* Ortalar */
  }

  .logo-nav {
    justify-content: center;
  }

  .logo-text {
    font-size: 1.3rem; /* Daha küçük yazı boyutu */
    text-align: center;
  }
  /* Mobil nav'daki ikonları logo yeşiline boyar */
.mobile-bottom-nav svg[data-lucide] {
  stroke: #10b981;
  transition: stroke 0.3s ease;
}

/* İsteğe bağlı: Hover olunca daha parlak yeşil */
.mobile-bottom-nav a:hover svg[data-lucide] {
  stroke: #22e58e;
}

}





.modal-overlay31 {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay31.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay31.closing {
  opacity: 0;
  visibility: hidden;
}

.sell-confirm-popup {
  background: #181b23;
  color: #f1f1f1;
  padding: 30px 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
  text-align: center;
  animation: popupFadeIn 0.35s ease;
}

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

.confirm-title {
  font-size: 0.9rem;
  font-weight: 500;  
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

.confirm-subtitle {
  font-size: 0.9rem;
  font-weight: 500;  
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

.confirm-total {
  font-weight: 500;  
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  color: #22c55e;
}

.confirm-pet-list {
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  margin-bottom: 20px;
  padding-right: 4px;
}

.confirm-pet-list::-webkit-scrollbar {
  width: 6px;
}
.confirm-pet-list::-webkit-scrollbar-thumb {
  background-color: #374151;
  border-radius: 4px;
}

.confirm-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-confirm {
  background-color: #22c55e;
  color: black;
  border: none;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;  
  font-family: 'Inter', sans-serif;  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.btn-confirm:hover {
  background-color: #1faa4d;
}

.btn-bot {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;  
  font-family: 'Inter', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 8px;
  cursor: not-allowed;
}

.btn-cancel {
  background-color: transparent;
  border: 1px solid #9ca3af;
  color: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-cancel:hover {
  background-color: #2c313a;
}

.payment-method-select {
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.payment-method-select label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.payment-method-select input[type="radio"] {
  accent-color: #22c55e;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* Genel modal arka planı */
#usernameModal.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transform: scale(0.95);
  opacity: 0; /* ✨ GEREKLİ */
  pointer-events: none; /* ✨ KAPALIYKEN TIKLANAMASIN */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#usernameModal.modal.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Modal içeriği */
#usernameModal .modal-content {
  background: #181b23;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border: 2px solid #252a33;
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: white;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Başlık */
#usernameModal .modal-content h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

/* Giriş alanı */
#usernameInput {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #1f232d;
  color: white;
  font-size: 16px;
  transition: border 0.2s ease;
}

/* Hata olduğunda kenarlık kırmızı olur */
#usernameInput.error {
  border-color: #ef4444;
}

/* Buton */
#confirmUsernameBtn {
  display: inline-flex;
  align-items: center;
    gap: 8px; /* ikonla yazı arasında boşluk */
  justify-content: center;
  padding: 10px 20px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

#usernameModal .modal-content {
  position: relative; /* Çarpı butonunun konumlanabilmesi için gerekli */
}

/* Çarpı (X) butonu */
#closeUsernameModal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1f2937;
  border-radius: 8px;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

#closeUsernameModal:hover {
  color: #fff;
}

/* Continue butonundaki ok ile yazı hizası */
#confirmUsernameBtn i {
  margin-left: 6px;
  position: relative;
  top: 1px;
}


#confirmUsernameBtn:hover {
  background: #16a34a;
}

/* Gizli sınıf (mevcutsa) */
.modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.confirm-info-box {
  background: #1f232d;
  border-radius: 16px;
  padding: 16px 20px;
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item.confirm-item {
  position: relative;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

#avatarPreview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.avatar-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: none;
  justify-content: center;
  align-items: center;
}

.spinner {
  position: relative;
  width: 20px;
  height: 20px;
}

.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
  border: 2px solid #22c55e;
  border-radius: 50%;
  animation: pulseSpin 1s infinite ease-in-out;
}

.spinner::before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.spinner::after {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  animation-delay: 0.3s;
}

@keyframes pulseSpin {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}















.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000 !important;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  background: #181b23;
  border-radius: 16px;
  padding: 32px;
  width: 380px;
  font-family: 'Inter', sans-serif;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #f1f1f1;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 10000 !important;
}

.modal-overlay.active .login-modal {
  transform: scale(1);
  opacity: 1;
}

.login-modal .modal-img {
  max-height: 90px;
  height: auto;
  display: block;
  margin: 0 auto 40px;
}

.login-modal h2 {
  text-align: center;
  margin: 10px 0 5px;
  font-size: 18px;
  color: white;
}

.login-modal .subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 14px 14px;
  padding-right: 38px;
  font-size: 15px;
  border: 2px solid #3a3f4b;
  background-color: #1f232b;
  color: #f1f1f1;
  border-radius: 12px;
  transition: border 0.2s;
}

.input-group input:focus {
  border-color: #22c55e;
  outline: none;
}

.input-group.invalid input {
  border-color: #f44336;
}

.input-error {
  font-size: 12px;
  color: #f44336;
  position: absolute;
  right: 0;
  bottom: -18px;
  display: none;
}

.input-group.invalid .input-error {
  display: block;
}

/* Göz ikonları için */
.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: #999;
}

.forgot-password {
  font-size: 13px;
  text-align: right;
  display: block;
  margin-bottom: 20px;
  color: #a1a1a1;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-signin {
  width: 100%;
  padding: 12px;
  color: #fff;
  background: #2d2f36;
  border: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-register-popup {
  width: 100%;
  padding: 12px;
  background: #22c55e;
  border: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10000 !important;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #2c2f3a;
  color: white;
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #ffffff1f;
}


/* REGISTER */

.register-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 10000 !important;
}

.register-modal {
  background: #181b23;
  border-radius: 16px;
  padding: 32px;
  width: 380px;
  font-family: 'Inter', sans-serif;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #f1f1f1;
  transform: translateY(-40px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 10000 !important;
}

.register-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}


.register-modal-overlay.active .register-modal {
  transform: translateY(0);
  opacity: 1;
}

.register-modal .register-img {
  max-height: 90px;
  height: auto;
  display: block;
  margin: 0 auto 32px;
}

.register-modal h2 {
  text-align: center;
  margin: 0 0 5px;
  font-size: 18px;
  color: white;
}

.register-modal .subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #cbd5e1;
}

/* Step Indicator */
.register-modal .step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.register-modal .step-indicator .step {
  width: 40px;
  height: 4px;
  background-color: #2f3d31;
  border-radius: 4px;
}

.register-modal .step-indicator .step.active {
  background-color: #f7931e;
}

.register-modal .input-wrapper {
  display: block;
  margin-bottom: 20px !important; /* 🔒 zorla uygular */
}


.register-modal .input-wrapper input {
  width: 100%;
  padding: 14px 14px;
  padding-right: 38px;
  font-size: 15px;
  border: 2px solid #181b23;
  background-color: #1f232b;
  color: #f1f1f1;
  border-radius: 12px;
  transition: border 0.2s;
  box-sizing: border-box;
}


.input-wrapper input:focus {
  border-color: #22c55e;
  outline: none;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: #999;
}

/* Butonlar */
.register-button {
  width: 100%;
  padding: 12px;
  color: #fff;
  background: #2d2f36;
  border: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.register-button.green {
  background: #22c55e;
  color: white;
}

.register-button.signin-button {
  background-color: #22c55e;
  color: white;
}
.register-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #2c2f3a;
  color: white;
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.register-close:hover {
  background: #ffffff1f;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 24px;
}

.step-dot {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background-color: #3a3f4b; /* pasif renk */
  transition: background-color 0.3s;
}

.step-dot.active {
  background-color: #22c55e; /* turuncu aktif renk */
}
/* Genel yapı */
/* Genel Sayfa */

/* Ana Kapsayıcı */
/* Genel How To Sell Container */
.how-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* Yıldızlı Arka Plan */
.stars-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.08;
  animation: moveStars 60s linear infinite;
  z-index: 0;
}

@keyframes moveStars {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 500px; }
}

/* İçerik Kutusu */
.how-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

/* Başlık */
.how-title {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 16px;
  text-shadow: 0 0 10px #22c55e88, 0 0 20px #22c55e55;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { text-shadow: 0 0 8px #22c55e99; }
  100% { text-shadow: 0 0 20px #22c55eee; }
}

/* Alt Açıklama */
.how-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 50px;
  max-width: 700px;
  margin-inline: auto;
}

/* Adım Kartları Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* Adım Kartı */
.step-card {
  background: #171923;
  border: 1px solid #2b2e39;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

/* Adım Numarası */
.step-number {
  background-color: #22c55e;
  color: #111827;
  font-size: 1.5rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Kart Başlık ve Açıklama */
.step-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.step-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px; /* ✅ sabit yükseklik */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ✅ taşmadan oturur */
  border-radius: 12px;
  display: block;
  background-color: #0f111a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}



/* Scan Eye İkonu */
.scan-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.6);
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 26px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Hover ile İkon Göster */
.step-image-wrapper:hover .scan-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Mobilde İkon Hep Açık */
@media (max-width: 768px) {
  .scan-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@media (max-width: 1441px) {
  .how-container {
    padding-top: 120px; /* 🔥 Üst boşluk */
    padding-bottom: 120px; /* 🔥 Alt boşluk */
  }
}

/* Açılır Modal */
.image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Modal Açıkken */
.image-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal İçindeki Resim */
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  animation: zoomIn 0.4s ease;
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

@keyframes zoomIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fade-in Efekti (Sayfa İlk Açılış) */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alt Not Kutusu */
.note-box {
  background: #111827;
  color: #4ade80;
  padding: 20px;
  border-radius: 14px;
  margin-top: 60px;
  font-size: 1rem;
  font-weight: 600;
  max-width: 700px;
  margin-inline: auto;
}








.stock-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 1s ease forwards;
}

.stock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 800px;
  
}

.stock-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.stock-header h1 {
  font-size: 28px;
  color: #22c55e; /* ✅ Beyaz değil, yeşil yapıyoruz ki glow belli olsun */
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #22c55e88, 0 0 20px #22c55e55; /* ✅ Parlama efekti */
  animation: glow 2s infinite alternate; /* ✅ Animasyonu ekle */
}


.stock-header h2 {
  font-size: 22px;
  color: #bbb;
  font-weight: 600;
  margin-bottom: 10px;
}

.stock-header p {
  font-size: 16px;
  color: #bbb;
  font-weight: 400;
}
@media (max-width: 1440px) {
  .stock-header {
    margin-bottom: -10px; /* 🔥 Alt boşluğu daralt */
    padding-bottom: 0; /* İstersen padding'i de sıfırlayabilirsin */
  }
}

@media (min-width: 1440px) {
  .stock-section {
    min-height: auto;
    padding: 80px 20px 80px 20px; /* Üst 40px, Alt 80px */
  }
}


.sell-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5; /* Oku biraz kalınlaştırır */
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -2px; /* Biraz aşağı kayarsa düzeltir */
}


.stock-card {
  background: #171923;
  border: 1px solid #2b2e39;
  border-radius: 16px;
  padding: 50px 40px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.stock-title {
  display: block;
  font-size: 24px;
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
}

.stock-amount {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 30px;
}

.sell-btn {
  background: #22c55e;
  color: black;
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}

.sell-btn:hover {
  background: #1fdd65;
}

.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.info-card {
  background: #171923;
  border: 1px solid #2b2e39;
  border-radius: 14px;
  padding: 20px;
  width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  text-align: center;
}

.info-card h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 10px;
}

.info-card p {
  color: #bbb;
  font-size: 14px;
}
@media (max-width: 768px) {
  .stock-wrapper {
    max-width: 90%;
    gap: 30px;
  }
  .stock-section {
    padding: 120px 20px; /* 🆕 Mobilde üst-alt boşluk DAHA FAZLA */
  }
  .info-card {
    width: 100%;
  }
}

/* Sidebar (Profil Kartı) */

.profile-card {
  background-color: #181b23;
  border: 1px solid #2d313d;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #f1f1f1;
}

/* Küçük avatar (index.php) */
.profile-avatar-small {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
}

/* Büyük avatar (profile.php) */
.profile-avatar-big {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid #4de672;
  transition: border-color 0.3s;
  
}



.profile-username {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0;
}

.profile-email {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.profile-date {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.profile-earnings {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #2e323d;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #f1f1f1;
  text-decoration: none;
  transition: background 0.2s;
}

.profile-link:hover {
  background: #3a3f4c;
}

.pet-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
}

.potion-icons {
  display: flex;
  gap: 4px;
  margin-left: 10px;
  align-items: center;
}


.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}


.profile-avatar:hover {
  border-color: #ffc857;
}


.profile-info h2.username {
  font-size: 24px;
  margin: 0;
}

.profile-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #aaa;
}

.profile-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.balance-card {
  background: #1c1f26;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.balance-card .lucide {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.balance-card.pending .lucide {
  color: #ffc857;
  background-color: rgba(255, 200, 87, 0.1);
}

.balance-card.paid .lucide {
  color: #4de672;
  background-color: rgba(77, 230, 114, 0.1);
}

.balance-label {
  font-size: 14px;
  color: #aaa;
}

.robux-amount,
.robux-amount-paid {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.robux-amount {
  color: #ffc857;
}

.robux-amount-paid {
  color: #4de672;
}


@media (max-width: 1024px) {
  .pagination {
    display: none !important;
  }
}
.transaction-title {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 600;
  color: white;
}

/* Başlık (PC'de gizle, mobilde göster) */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}

/* CHATTEKİ GÖRSELLER İÇİN (küçük resimler): */
.chat-user img,
.chat-assistant img {
  cursor: pointer;  /* ✅ üstüne gelince el/cam efekti */
}

/* LIGHTBOX için: */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


/* PC'deki header satırı */
.transaction-header-row {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr 2fr 2fr 2fr;
  padding: 12px 16px;
  background-color: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #aaa;
  font-weight: 600;
  text-align: center;
}

/* Sadece PC'de görün */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

.header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.transaction-history h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #fff;
}

.transaction-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

@media (max-width: 1024px) { 
  .transaction-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1c1f26;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .transaction-card .transaction-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
  }

  .transaction-card .transaction-main {
    display: flex;
    align-items: center;
    background: #1f232d;
    padding: 10px;
    border-radius: 8px;
    gap: 12px;
  }
  
  .pet-image-wrapper img {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: #1c1f26; /* Arka planla aynı renk */
}


  .transaction-card .transaction-main img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: contain;
  }

  .transaction-card .transaction-main-text .item-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
  }

  .transaction-card .potion-tags {
    margin-top: 4px;
    display: flex;
    gap: 4px;
  }

  .transaction-card .transaction-info-line {
    display: flex;
    justify-content: space-between;
    background: #1f232d;
    padding: 8px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
  }

  .transaction-card .transaction-detail-boxes {
    display: flex;
    gap: 8px;
  }

  .transaction-card .detail-box {
    flex: 1;
    background: #1f232d;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
  }

  .transaction-card .transaction-footer {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
  }

  .transaction-card .transaction-footer.pending {
    background: rgba(255, 200, 87, 0.15);
    color: #ffc857;
  }

  .transaction-card .transaction-footer.paid {
    background: rgba(77, 230, 114, 0.15);
    color: #4de672;
  }
.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #cbd5e1;
}


.copy-icon:hover {
  color: white;
  opacity: 1;
  cursor: pointer;
}
.transaction-detail-boxes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.transaction-id-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ccc;
  justify-content: flex-start; /* sola yasla */
}

.transaction-id-box .copy-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.detail-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #eee;
  line-height: 1.4;
}

}


.transaction-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr 100px;
  align-items: center;
  background-color: #1c1f26;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  gap: 12px;
}

.transaction-id,
.transaction-account,
.transaction-date,
.transaction-price {
  color: #ccc;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transaction-pet-img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background: ##1c1f26;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.potion-tags {
  display: flex;
  margin-top: 4px;
  gap: 4px;
}

.potion-tags .tag {
  font-size: 13px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 4px;
  color: white;
  text-align: center;
}


.tag.red    { background-color: #e74c3c; }
.tag.blue   { background-color: #3498db; }
.tag.green  { background-color: #2ecc71; }
.tag.purple { background-color: #9b59b6; }

.transaction-status {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
}

.transaction-status.pending {
  background-color: rgba(255, 200, 87, 0.15);
  color: #ffc857;
}

.transaction-status.paid {
  background-color: rgba(77, 230, 114, 0.15);
  color: #4de672;
}

.transaction-price {
  font-weight: 600;
  color: #4de672;
  font-size: 15px;
  text-align: right;
}

/* Pagination */
.pagination {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pagination a {
  padding: 8px 10px;
  background: #2a2d36;
  color: #ccc;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pagination a:hover {
  background: #3b3f49;
}

.pagination a.active {
  background: #3b3f49;
  border: 2px solid #ffffff;
  color: #fff;
}

@media (max-width: 768px) {
  .transaction-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .transaction-id,
  .transaction-account,
  .transaction-date,
  .transaction-status,
  .transaction-price {
    text-align: left;
  }

  .pagination {
    justify-content: center;
  }
}


.robux-paid {
  color: #4de672; /* yeşil */
  font-weight: 600;
}

.robux-pending {
  color: #ffc857; /* turuncu */
  font-weight: 600;
}

.item-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.item-title {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px; 
}

.item-date {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.item-right {
  white-space: nowrap;
  font-weight: 600;
  color: #4de672;
  margin-left: auto;
}



.success-modal, .error-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1f232b;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.success-modal.active, .error-modal.active {
  opacity: 1;
  visibility: visible;
}

.success-content, .error-content {
  text-align: center;
  color: #22c55e;
}

.error-content {
  color: #ef4444;
}

.success-icon, .error-icon {
  width: 48px;
  height: 48px;
}

.success-icon {
  color: #22c55e;
}

.error-icon {
  color: #ef4444;
}
.change-password-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin-block-start: 12px; /* ✅ üst boşluk verir ama diğer öğeleri etkilemez */
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #1f232d;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.change-password-btn:hover {
  background-color: #3b3f49;
  transform: scale(1.03);
}

.change-password-btn:active {
  transform: scale(0.97);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column-reverse; /* 🔥 Yeni gelen üste */
  gap: 10px;
  z-index: 9999;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #14161c;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  color: white;
  width: 240px;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  font-family: 'Inter', sans-serif;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  color: #22c55e;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.toast-text {
  flex-grow: 1;
  font-size: 14px;
}

.toast-text strong {
  font-size: 15px;
}

.toast-close {
  cursor: pointer;
  color: #888;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast-bar {
  height: 4px;
  background-color: #22c55e;
  border-radius: 10px;
  margin-top: 10px;
  width: 0%;
}
/* ✅ Açılırken (görünür olduğunda) */
@keyframes toastFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ✅ Kapanırken (kaybolurken) */
@keyframes toastFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
}

/* Gösterildiğinde animasyon */
.toast.show {
  animation: toastFadeIn 0.4s ease-out forwards;
}

/* Gizlendiğinde animasyon */
.toast.hidden {
  animation: toastFadeOut 0.4s ease-in forwards;
  pointer-events: none;
}

/* 🔵 User mesajı kutusu */
.user-message {
    position: relative;
    background: #dcf8c6;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 8px 0;
    max-width: 80%;
    align-self: flex-end;
    word-wrap: break-word;
}


/* 🟡 Zaman yazısı */
.message-time {
    font-size: 11px;
    color: #555;
    margin-right: 18px; /* Tikten uzaklaştır */
}

/* 🟢 Admin mesajı (sol tarafta) */
.admin-message {
    position: relative;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 8px 0;
    max-width: 80%;
    align-self: flex-start;
    word-wrap: break-word;
}

/* Tik ikonu sağ alta sabit */
.message-status {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.message-status {
    position: absolute;
    bottom: 30px;
    right: 11px;
    font-size: 12px;
    display: flex;
    width: 16px !important;
    height: 16px !important;
    align-items: center;
    gap: 2px;
    color: black; /* ✅ burada color belirle */
}




.tag.green { background: #22c55e; }
.tag.purple { background: #8b5cf6; }
.tag.blue { background: #3b82f6; }
.tag.red { background: #ef4444; }
.tag.gray { background: #6b7280; }
