/* profile.css */

.profile-container {
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}

/* User Card */
.profile-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.profile-details {
  flex: 1;
}
.profile-details h2 {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
}
.profile-details p {
  margin: 5px 0 10px;
  color: #64748b;
}

/* Limit & Paket Paneli */
.package-status-area {
  margin-top: 10px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.package-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.package-badge span {
  color: #2563eb;
}
.limit-wrapper {
  width: 100%;
}
.limit-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  overflow-x: auto;
}
.p-tab {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
  white-space: nowrap;
}
.p-tab.active {
  background: #0f172a;
  color: white;
}
.p-tab:hover:not(.active) {
  background: #e2e8f0;
}

/* Tab Content */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.loading-text {
  text-align: center;
  color: #64748b;
  width: 100%;
  grid-column: 1/-1;
}

/* My Item Card */
.my-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}
.my-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.my-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.my-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.my-card .price {
  color: #10b981;
  font-weight: 700;
  margin-bottom: 5px;
}
.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
}
.delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Form Styles */
.form-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.form-box h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #0f172a;
  background: white;
}

.hidden {
  display: none !important;
}

/* File Upload */
.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  transition: 0.3s;
  text-align: center;
  position: relative;
}
.file-upload-box:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.file-upload-box input[type="file"] {
  display: none;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-label i {
  font-size: 2.5rem;
  color: #64748b;
  margin-bottom: 10px;
  transition: 0.3s;
}
.upload-label span {
  color: #475569;
  font-weight: 500;
}
.file-msg {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 600;
}

.save-btn {
  width: 100%;
  padding: 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.save-btn:hover {
  background: #1d4ed8;
}

/* --- VİP & TƏCİLİ DÜYMƏLƏRİ --- */
.vip-action-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.vip-active-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.urgent-action-btn {
  position: absolute;
  top: 45px;
  left: 10px;
  background: white;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.urgent-active-badge {
  position: absolute;
  top: 45px;
  left: 10px;
  background: linear-gradient(45deg, #ef4444, #b91c1c);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.expire-text {
  font-size: 0.65rem;
  margin-left: 5px;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Sidebar Balance */
.sidebar-balance-box {
  background: #f8fafc;
  padding: 12px 20px;
  margin: 0 0 20px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
}
.bal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bal-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: 500;
}
.sidebar-amount {
  font-weight: 800;
  color: #1e293b;
  font-size: 1.1rem;
  margin: 0;
}
.sidebar-add-btn {
  background: #f59e0b;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  transition: 0.3s;
}

/* --- CUSTOM MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
  transform: translateY(0);
}

.modal-icon {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 15px;
}

.modal-box h3 {
  margin: 0 0 10px 0;
  color: #1e293b;
  font-size: 1.5rem;
}

.modal-box p {
  color: #64748b;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
  flex: 1;
}

.modal-btn.cancel {
  background: #f1f5f9;
  color: #64748b;
}
.modal-btn.cancel:hover {
  background: #e2e8f0;
}

.modal-btn.confirm {
  background: #2563eb;
  color: white;
}
.modal-btn.confirm:hover {
  background: #1d4ed8;
}

/* --- MÜDDƏT SEÇİMİ MODALI (DURATION) --- */
.duration-box {
  text-align: left;
}
.duration-box h3 {
  text-align: center;
}
.duration-box p {
  text-align: center;
  margin-bottom: 15px;
}
.duration-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.duration-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.duration-label:hover {
  background: #f8fafc;
}
.duration-label.selected {
  border-color: #2563eb;
  background: #eff6ff;
}
.duration-label input {
  width: auto;
  margin-right: 10px;
}
.total-price-display {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 8px;
}

/* --- PAKETLƏR TABI STILLƏRİ --- */
.packages-header {
  text-align: center;
  margin-bottom: 30px;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.package-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
}
.package-card.active-plan {
  border: 2px solid #10b981;
  background: #f0fdf4;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 20px;
}
.plan-price small {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 400;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  text-align: left;
  flex: 1;
}
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
  display: flex;
  align-items: center;
}
.plan-features li i {
  color: #10b981;
  margin-right: 10px;
  width: 20px;
}
.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #0f172a;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.plan-btn:hover:not(:disabled) {
  background: #1e293b;
}
.plan-btn:disabled {
  background: #94a3b8;
  cursor: default;
}

/* Filtr düymələri */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
  background: #f1f5f9;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.filter-btn.active {
  background: #0f172a;
  color: white;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* --- ŞƏKİL PREVIEW (YENİ) --- */
.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center; /* Və ya 'flex-start' */
}

.preview-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  background-color: white;
}

.preview-thumb:hover {
  transform: scale(1.05);
  border-color: #2563eb;
}
/* --- HESAB KARTI DİZAYNI --- */
.account-overview-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  flex-wrap: wrap; /* Mobildə aşağı düşməsi üçün */
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Arxa fona azca dekorativ element */
.account-overview-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.acc-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.acc-avatar-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #f59e0b;
}

.acc-basic-info h2 {
  margin: 0 0 5px 0;
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

.acc-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.acc-right {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.info-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
  text-align: center;
}

.info-pill small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-pill strong {
  font-size: 1.1rem;
  font-family: "Courier New", monospace; /* UID rəqəmləri üçün */
}

/* profile.css - TAM YENİLƏNMİŞ VERSİYA */

.profile-container {
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- HEADER PROFIL AKTIV OLANDA (SARI ÇƏRÇİVƏ) --- */
.profile-page-active {
  border: 2px solid #f59e0b !important;
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border-radius: 50px !important;
  padding: 5px 15px !important;
  transition: 0.3s;
}

/* --- USER CARD (Üst hissə) --- */
.profile-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.profile-details {
  flex: 1;
}
.profile-details h2 {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
}
.profile-details p {
  margin: 5px 0 10px;
  color: #64748b;
}

/* --- YENİ HESAB KARTI DİZAYNI (Qara/Göy Gradient) --- */
.account-overview-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Dekorativ fon elementi */
.account-overview-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.acc-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.acc-avatar-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #f59e0b;
}

.acc-basic-info h2 {
  margin: 0 0 5px 0;
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

.acc-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.acc-right {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.info-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
  text-align: center;
}

.info-pill small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-pill strong {
  font-size: 1.2rem;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  color: #f59e0b;
}

/* --- INPUT ICON DİZAYNI --- */
.input-with-icon {
  position: relative;
}
.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}
.input-with-icon input {
  padding-left: 45px !important; /* İkon üçün yer */
}

/* --- PAKET STATUS --- */
.package-status-area {
  margin-top: 10px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.package-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.package-badge span {
  color: #2563eb;
}
.limit-wrapper {
  width: 100%;
}
.limit-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

/* --- TABS --- */
.profile-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  overflow-x: auto;
}
.p-tab {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
  white-space: nowrap;
}
.p-tab.active {
  background: #0f172a;
  color: white;
}
.p-tab:hover:not(.active) {
  background: #e2e8f0;
}

/* Tab Content */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- GRID & CARDS --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.loading-text {
  text-align: center;
  color: #64748b;
  width: 100%;
  grid-column: 1/-1;
}

.my-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}
.my-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.my-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.my-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.my-card .price {
  color: #10b981;
  font-weight: 700;
  margin-bottom: 5px;
}
.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
}
.delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* --- FORMS --- */
.form-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.form-box h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: 0.3s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #0f172a;
  background: white;
}

.hidden {
  display: none !important;
}

/* --- FILE UPLOAD & PREVIEW --- */
.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  transition: 0.3s;
  text-align: center;
  position: relative;
}
.file-upload-box:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.file-upload-box input[type="file"] {
  display: none;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-label i {
  font-size: 2.5rem;
  color: #64748b;
  margin-bottom: 10px;
  transition: 0.3s;
}
.upload-label span {
  color: #475569;
  font-weight: 500;
}
.file-msg {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 600;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}
.preview-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  background-color: white;
}
.preview-thumb:hover {
  transform: scale(1.05);
  border-color: #2563eb;
}

/* BUTTONS */
.save-btn {
  width: 100%;
  padding: 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.save-btn:hover {
  background: #1d4ed8;
}

/* --- PACKAGES --- */
.packages-header {
  text-align: center;
  margin-bottom: 30px;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.package-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
}
.package-card.active-plan {
  border: 2px solid #10b981;
  background: #f0fdf4;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 20px;
}
.plan-price small {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 400;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  text-align: left;
  flex: 1;
}
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
  display: flex;
  align-items: center;
}
.plan-features li i {
  color: #10b981;
  margin-right: 10px;
  width: 20px;
}
.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #0f172a;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.plan-btn:hover:not(:disabled) {
  background: #1e293b;
}
.plan-btn:disabled {
  background: #94a3b8;
  cursor: default;
}

/* FILTERS */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}
.filter-btn {
  background: #f1f5f9;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background: #e2e8f0;
  color: #334155;
}
.filter-btn.active {
  background: #0f172a;
  color: white;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Edit Button (Silmə düyməsinin yanında) */
.edit-listing-btn {
  position: absolute;
  top: 10px;
  right: 45px; /* Silmə düyməsindən solda */
  background: #3b82f6; /* Göy rəng */
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-listing-btn:hover {
  background: #2563eb;
  transform: scale(1.1);
}

/* --- PROFİL ŞƏKLİ YÜKLƏMƏ (YENİ) --- */
.profile-pic-wrapper {
  position: relative;
}

.acc-avatar-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #f59e0b;
  overflow: hidden; /* Şəkil çərçivədən çıxmasın */
  position: relative;
  cursor: pointer; /* Kliklənə bilən olduğunu göstər */
  transition: 0.3s;
}

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

/* Üstünə gələndə (Hover) effekti */
.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: 0.3s;
}

.acc-avatar-large:hover .avatar-overlay {
  opacity: 1;
}

/* profile.css */
.package-status-area {
  min-height: 100px; /* Hündürlük tullamasın deyə */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  header {
    justify-content: space-between;
    padding: 0 15px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  #openSidebar {
    display: flex !important;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 0;
    order: 1;
    color: white;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
  }
  .logo h1 {
    font-size: 0 !important;
    display: flex;
    align-items: center;
  }
  .logo h1 i {
    font-size: 1.6rem !important;
    display: block;
    color: #f59e0b;
  }

  .header-actions {
    order: 3;
    display: flex;
    gap: 10px;
  }
  .mobile-hide,
  #userNameDisplay,
  .nav-menu {
    display: none !important;
  }
  .profile-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .my-card img {
    height: 120px;
  }
  .my-card-body {
    padding: 10px;
  }
  .my-card h4 {
    font-size: 0.85rem;
  }
  .my-card .price {
    font-size: 0.95rem;
  }

  .vip-action-btn,
  .urgent-action-btn,
  .vip-active-badge,
  .urgent-active-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
    left: 5px;
  }
  .vip-action-btn,
  .vip-active-badge {
    top: 5px;
  }
  .urgent-action-btn,
  .urgent-active-badge {
    top: 35px;
  }
  .delete-btn {
    width: 25px;
    height: 25px;
    top: 5px;
    right: 5px;
  }
  .edit-listing-btn {
    width: 25px;
    height: 25px;
    top: 5px;
    right: 35px;
  }
  .account-overview-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .acc-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .info-pill {
    min-width: auto;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .listings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .account-overview-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .acc-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .info-pill {
    min-width: auto;
  }
}

/* YENİ SEÇİM MODALI STİLLƏRİ */
.selection-item {
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.selection-item:hover {
  border-color: #2563eb;
}

.selection-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.selection-info h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.selection-info small {
  color: #64748b;
  font-size: 0.75rem;
}

/* Checkbox Dizaynı */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: #1e293b;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 22px;
  width: 22px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  transition: 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #2563eb;
  border-color: #2563eb;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* --- ELAN İDARƏETMƏ PANELİ (YENİ) --- */
.management-toolbar {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 15px;
}

.toolbar-text h4 {
  margin: 0 0 5px 0;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
}

.toolbar-text p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.discount-trigger-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.discount-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
}

.discount-trigger-btn i {
  font-size: 1.1rem;
}

/* ENDİRİMİ LƏĞV ET DÜYMƏSİ */
.cancel-discount-btn {
  position: absolute;
  top: 10px;
  right: 80px; /* Edit (45px) və Delete (10px) düymələrinin yanında */
  background: #64748b; /* Boz rəng (Neytral) */
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cancel-discount-btn:hover {
  background: #475569;
  transform: scale(1.1);
}

/* Mobildə Alt-alta düşsün */
@media (max-width: 768px) {
  .management-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  .discount-trigger-btn {
    width: 100%;
    justify-content: center;
  }
}
/* --- ŞƏKİL YÜKLƏMƏ MENECERİ --- */
.image-upload-container {
  margin-top: 10px;
}

.image-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.image-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.image-slot:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.image-slot .placeholder-icon {
  font-size: 24px;
  color: #94a3b8;
}

/* Silmə düyməsi */
.slot-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.slot-remove-btn:hover {
  transform: scale(1.1);
}

/* + Əlavə et düyməsi */
.add-slot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.add-slot-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.add-slot-btn i {
  color: #3b82f6;
}
