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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #0a1628;
  color: #e8eef4;
  min-height: 100vh;
  line-height: 1.5;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 900px;
  align-items: start;
}
.login-left {
}
.login-right {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 16px;
  padding: 24px;
  color: #cbd5e1;
}
.login-right h3 {
  color: #fff;
  margin-bottom: 12px;
}
.login-right ul {
  padding-left: 18px;
}
.login-right li {
  margin-bottom: 8px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}
.whatsapp-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.login-right .whatsapp-btn {
  margin-top: 20px;
  justify-content: center;
}
.wa-link.whatsapp-btn,
.promo-card-phone.whatsapp-btn {
  color: #fff !important;
  text-decoration: none !important;
}
.promo-card-phone.call-btn {
  color: #fff !important;
  text-decoration: none !important;
}
.promo-card-phone.call-btn:hover {
  text-decoration: none !important;
}
.wa-link.whatsapp-btn:hover,
.promo-card-phone.whatsapp-btn:hover {
  text-decoration: none !important;
}
.lock-screen-cta.whatsapp-btn {
  margin-top: 1rem;
}
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e3a5f;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.call-btn:hover {
  background: #264a78;
  transform: translateY(-1px);
}
.call-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .whatsapp-btn,
  .call-btn {
    min-width: fit-content;
    padding: 10px 16px;
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}
/* ADIM 2 EKLENTİ: Login kartı tanıtım metni */
.login-intro {
  font-size: 0.8rem;
  color: #8a9db0;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.login-logo {
  width: 140px;
  max-width: 70%;
  margin: 0 auto 12px auto;
  display: block;
}
/* ADIM 2 EKLENTİ: "Bu sistem ne işe yarar?" linki */
.login-info-link {
  font-size: 0.8rem;
  color: #6b7d8f;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.login-info-link:hover {
  color: #9ca8b8;
}
/* ADIM 2 EKLENTİ: Bilgi modal */
.login-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-info-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.login-info-modal-card {
  position: relative;
  background: #0f1f35;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.login-info-modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8eef4;
  margin-bottom: 1rem;
}
.login-info-modal-list {
  font-size: 0.85rem;
  color: #9ca8b8;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.login-info-modal-list li {
  margin-bottom: 0.5rem;
}
.login-info-modal-close {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #c8d4e0;
  font-size: 0.85rem;
  cursor: pointer;
}
.login-info-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.login-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  text-align: center;
}
.login-subtitle {
  font-size: 0.9rem;
  color: #8a9db0;
  margin-bottom: 1.5rem;
  text-align: center;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
}
.login-input::placeholder {
  color: #6b7d8f;
}
.login-input:focus {
  outline: none;
  border-color: #2d5a8a;
}
.login-error {
  font-size: 0.85rem;
  color: #e87070;
  margin: -0.5rem 0 0;
}
.login-btn {
  padding: 0.75rem 1.25rem;
  background: #1e3a5f;
  border: 1px solid #2d5a8a;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.login-btn:hover {
  background: #2a4a75;
}

header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-btn {
  position: relative;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #c8d4e0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.notification-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #e87070;
  border-radius: 50%;
}
.notification-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 320px;
  max-height: 400px;
  background: #1a2d47;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
}
.notification-panel-close {
  padding: 0.2rem 0.4rem;
  border: none;
  background: none;
  color: #9ca8b8;
  cursor: pointer;
  font-size: 1rem;
}
.notification-panel-close:hover {
  color: #fff;
}
.notification-list {
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
}
.notification-empty {
  padding: 1.5rem 1rem;
  color: #6b7d8f;
  font-size: 0.9rem;
  margin: 0;
}
.notification-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.notification-item.notification-read {
  opacity: 0.7;
}
.notification-item-msg {
  font-size: 0.9rem;
  color: #e8eef4;
}
.notification-item-time {
  font-size: 0.75rem;
  color: #6b7d8f;
  margin-top: 0.25rem;
}
.notification-admin-form {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.notification-admin-form textarea {
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  resize: vertical;
  box-sizing: border-box;
}
.notification-admin-form select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}
.notification-send-btn {
  padding: 0.4rem 0.75rem;
  background: #2d5a8a;
  border: 1px solid #3d6a9a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.notification-send-btn:hover {
  background: #3d6a9a;
}

.header-settings-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #c8d4e0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.header-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.customer-mode .header-settings-btn {
  display: none !important;
}
.settings-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 280px;
  background: #1a2d47;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  overflow: hidden;
}
.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
}
.settings-panel-close {
  padding: 0.2rem 0.4rem;
  border: none;
  background: none;
  color: #9ca8b8;
  cursor: pointer;
  font-size: 1rem;
}
.settings-panel-close:hover {
  color: #fff;
}
.settings-panel-body {
  padding: 1rem;
}
.settings-panel .profit-margin-section {
  margin-bottom: 0;
}
.customer-mode-toggle-wrap {
  margin-top: 0.75rem;
}
.customer-mode-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #c8d4e0;
  cursor: pointer;
}
.customer-mode-toggle-checkbox {
  width: 1rem;
  height: 1rem;
}
.restore-to-stock-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(100, 180, 100, 0.5);
  background: rgba(80, 160, 80, 0.15);
  color: #90d890;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.restore-to-stock-btn:hover {
  background: rgba(80, 160, 80, 0.25);
  color: #b0e8b0;
}
.settings-profile-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-profile-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 0.75rem;
}
.settings-profile-form .profile-field-inline {
  margin-bottom: 0.6rem;
}
.settings-profile-form .profile-field-inline label {
  display: block;
  font-size: 0.8rem;
  color: #9ca8b8;
  margin-bottom: 0.25rem;
}
.settings-profile-form .profile-field-inline input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.settings-profile-form .profile-field-inline input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.settings-profile-save-btn {
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #2d5a8a;
  border: 1px solid #3d6a9a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.settings-profile-save-btn:hover {
  background: #3d6a9a;
}

.admin-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(160, 200, 255, 0.9);
  background: rgba(45, 90, 138, 0.25);
  border: 1px solid rgba(90, 160, 230, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

header.admin-mode .admin-badge {
  display: inline-block;
}

header.admin-mode {
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.12) 0%, transparent 100%);
  border-bottom-color: rgba(90, 160, 230, 0.12);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.slogan {
  font-size: 0.85rem;
  color: #8a9db0;
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #c8d4e0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.tab.active {
  background: #1e3a5f;
  border-color: #2d5a8a;
  color: #fff;
}

main {
  padding: 1.5rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  color: #9ca8b8;
}

.customer-mode-bar {
  margin-bottom: 1rem;
}
.customer-mode-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #c8d4e0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.customer-mode-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body.customer-mode .customer-mode-btn {
  background: rgba(255, 180, 80, 0.2);
  border-color: rgba(255, 180, 80, 0.5);
  color: #ffb450;
}

/* İşlem butonları – koyu tema kapsül */
.action-buttons-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.action-btn {
  padding: 0.25rem 0.4rem;
  border: none;
  background: transparent;
  color: #9ca8b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #c8d4e0;
}
.action-btn.action-delete:hover {
  background: rgba(220, 80, 80, 0.25);
  color: #ff8a8a;
}
.action-btn.save-edit-btn,
.action-btn.genel-save-edit-btn { color: #90d890; }
.action-btn.save-edit-btn:hover,
.action-btn.genel-save-edit-btn:hover { background: rgba(90, 200, 90, 0.2); color: #b0f0b0; }
.action-btn.cancel-edit-btn,
.action-btn.genel-cancel-edit-btn { color: #e8a0a0; }
.action-btn.cancel-edit-btn:hover,
.action-btn.genel-cancel-edit-btn:hover { background: rgba(200, 80, 80, 0.2); color: #ffb0b0; }

.takas-panel {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  max-width: 400px;
}
.takas-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 1.25rem;
}
.takas-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.takas-form label {
  font-size: 0.9rem;
  color: #9ca8b8;
}
.takas-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
}
.takas-result {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
}
.takas-placeholder {
  color: #6b7d8f;
  font-size: 0.95rem;
  margin: 0;
}
.takas-fark-label {
  font-size: 0.95rem;
  color: #9ca8b8;
  margin: 0 0 0.5rem;
}
.takas-fark-value {
  font-size: 2rem;
  font-weight: 700;
  color: #5da8e8;
  margin: 0;
}

.profit-margin-section {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.profit-margin-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 0.5rem;
}
.profit-margin-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profit-margin-wrap label {
  font-size: 0.85rem;
  color: #9ca8b8;
}
.profit-margin-input {
  width: 100px;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}

body.customer-mode .tab[data-tab="magaza"] {
  display: none;
}
body.customer-mode .tab[data-tab="genel-durum"] {
  display: none;
}

.admin-only-tab {
  display: none !important;
}
header.admin-mode .admin-only-tab {
  display: inline-flex !important;
}
header.admin-mode .tab[data-tab="magaza"] {
  display: none !important;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.stat-card-label {
  font-size: 0.85rem;
  color: #9ca8b8;
}

.model-yonetimi-panel {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.model-yonetimi-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 1rem;
}
.model-yonetimi-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.model-yonetimi-select {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  min-width: 140px;
}
.model-yonetimi-input {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  min-width: 160px;
}
.model-yonetimi-btn {
  padding: 0.5rem 1rem;
  background: #2d5a8a;
  border: 1px solid #3d6a9a;
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
.model-yonetimi-btn:hover:not(:disabled) {
  background: #3d6a9a;
}
.model-yonetimi-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.9rem;
}
.model-yonetimi-ok { color: #90d890; margin: 0; }
.model-yonetimi-err { color: #e87070; margin: 0; }

.esnaf-create-panel {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.esnaf-create-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 1rem;
}
.esnaf-create-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}
.esnaf-create-input {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
}
.esnaf-create-btn {
  padding: 0.5rem 1rem;
  background: #2d5a8a;
  border: 1px solid #3d6a9a;
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
}
.esnaf-create-btn:hover:not(:disabled) {
  background: #3d6a9a;
}
.esnaf-create-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.9rem;
}
.esnaf-create-ok { color: #90d890; margin: 0 0 0.5rem; }
.esnaf-create-err { color: #e87070; margin: 0; }
.esnaf-create-result code { background: rgba(0,0,0,0.3); padding: 0.2rem 0.4rem; border-radius: 4px; }
.esnaf-create-hint { font-size: 0.85rem; color: #9ca8b8; margin: 0.5rem 0 0; }

.uyelik-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.uyelik-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 1rem;
}
.uyelik-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.uyelik-row:last-child {
  border-bottom: none;
}
.uyelik-store-name {
  font-weight: 500;
  color: #e8eef4;
  min-width: 140px;
}
.uyelik-info {
  font-size: 0.85rem;
  color: #9ca8b8;
}
.uyelik-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.uyelik-add-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #9ca8b8;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.uyelik-add-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef4;
}
.uyelik-add-input {
  width: 3.5rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 8px;
  font-size: 0.8rem;
}
.uyelik-add-input::placeholder {
  color: #6b7d8f;
}
.uyelik-subtract-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: rgba(255, 180, 80, 0.1);
  color: #c9a84a;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.uyelik-subtract-btn:hover {
  background: rgba(255, 180, 80, 0.2);
  color: #ffb450;
}
.uyelik-end-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(211, 47, 47, 0.4);
  background: rgba(211, 47, 47, 0.15);
  color: #e57373;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.uyelik-end-btn:hover {
  background: rgba(211, 47, 47, 0.25);
  color: #ef9a9a;
}

body.customer-mode .genel-copy-col {
  display: none;
}

.promo-section {
  margin-bottom: 1.5rem;
}

.promo-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.promo-cards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.promo-card {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promo-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: #8a9db0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.promo-card-store {
  color: #9cadc0;
  font-weight: 500;
}

.promo-card-model {
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
}

.promo-card-details {
  font-size: 0.78rem;
  color: #9ca8b8;
  margin-bottom: 0.2rem;
}

.promo-card-fiyat {
  color: #7ab8e8;
  font-size: 0.95rem;
}

.promo-card-tel {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.promo-card-phone {
  font-size: 0.85rem;
  color: #5da8e8;
  text-decoration: none;
}

.promo-card-phone:hover {
  text-decoration: underline;
}

.tel-link,
.wa-link {
  color: #5da8e8;
  text-decoration: none;
  font-size: 0.9rem;
}

.tel-link:hover,
.wa-link:hover {
  text-decoration: underline;
}

.add-device-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.model-select-wrap {
  position: relative;
  min-width: 10rem;
}

.model-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 10;
  min-width: 100%;
  max-width: 20rem;
}

.model-search {
  padding: 0.4rem 0.6rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #e8eef4;
  font-size: 0.9rem;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.model-search::placeholder {
  color: #7a8a9a;
}

.model-list {
  max-height: 140px;
  overflow-y: auto;
}

.model-opt {
  padding: 0.45rem 0.75rem;
  color: #c8d4e0;
  cursor: pointer;
  font-size: 0.9rem;
}

.model-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.model-list-empty {
  padding: 0.5rem 0.75rem;
  color: #9ca8b8;
  font-size: 0.85rem;
}

.add-device-form input {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.95rem;
}

.add-device-form input::placeholder {
  color: #7a8a9a;
}

.add-device-form input[type="number"] {
  width: 7rem;
}

.add-select {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.9rem;
}

.cosmetic-slider-wrap {
  position: relative;
  width: 6.5rem;
  min-width: 6.5rem;
  height: 20px;
  display: inline-flex;
  align-items: center;
}
.cosmetic-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -3px;
  height: 6px;
  border-radius: 3px;
  background-color: #2a3544;
  overflow: hidden;
}
.cosmetic-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: #2d5a8a;
  border-radius: 3px 0 0 3px;
  pointer-events: none;
}
.cosmetic-slider-wrap .cosmetic-range {
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
}
.cosmetic-slider-wrap .cosmetic-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 6px;
  background: transparent;
}
.cosmetic-slider-wrap .cosmetic-range::-moz-range-track {
  height: 6px;
  background: transparent;
}
.cosmetic-slider-wrap .cosmetic-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: #2d5a8a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.cosmetic-slider-wrap .cosmetic-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2d5a8a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cosmetic-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cosmetic-input-wrap label {
  color: #c8d4e0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cosmetic-range {
  vertical-align: middle;
}

.cosmetic-val {
  margin-left: 0.25rem;
  font-size: 0.875rem;
  min-width: 1.5rem;
}

.add-device-form button {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1e3a5f;
  color: #fff;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-device-form button:hover {
  background: #2d5a8a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.cart-section {
  margin-bottom: 1rem;
}

.cart-list {
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c8d4e0;
}

.cart-list li:last-child {
  border-bottom: none;
}

.cart-remove-btn {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 100, 100, 0.2);
  color: #e8a0a0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-remove-btn:hover {
  background: rgba(255, 100, 100, 0.3);
}

.cart-save-btn {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1e3a5f;
  color: #fff;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-save-btn:hover:not(:disabled) {
  background: #2d5a8a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.cart-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.esnaf-uyelik-band {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.esnaf-uyelik-band.esnaf-uyelik-green {
  background: rgba(56, 142, 60, 0.2);
  border-color: rgba(76, 175, 80, 0.35);
}
.esnaf-uyelik-band.esnaf-uyelik-yellow {
  background: rgba(178, 134, 0, 0.2);
  border-color: rgba(255, 193, 7, 0.35);
}
.esnaf-uyelik-band.esnaf-uyelik-red {
  background: rgba(150, 50, 50, 0.2);
  border-color: rgba(211, 47, 47, 0.35);
}
.esnaf-uyelik-band-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 0.35rem;
}
.esnaf-uyelik-band.esnaf-uyelik-green .esnaf-uyelik-band-title { color: #81c784; }
.esnaf-uyelik-band.esnaf-uyelik-yellow .esnaf-uyelik-band-title { color: #ffca28; }
.esnaf-uyelik-band.esnaf-uyelik-red .esnaf-uyelik-band-title { color: #e57373; }
.esnaf-uyelik-band-text {
  font-size: 0.9rem;
  color: #e8eef4;
}
.esnaf-uyelik-band.esnaf-uyelik-green .esnaf-uyelik-band-text { color: #a5d6a7; }
.esnaf-uyelik-band.esnaf-uyelik-yellow .esnaf-uyelik-band-text { color: #ffe082; }
.esnaf-uyelik-band.esnaf-uyelik-red .esnaf-uyelik-band-text { color: #ef9a9a; }

.admin-store-selector-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}
.admin-store-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca8b8;
  margin-bottom: 0.35rem;
}
.admin-store-wrap {
  position: relative;
  max-width: 14rem;
}
.admin-store-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 12px;
  font-size: 0.9rem;
}
.admin-store-input::placeholder {
  color: #7a8a9a;
}
.admin-store-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 10;
  min-width: 100%;
  max-height: 180px;
  overflow-y: auto;
}
.admin-store-opt {
  padding: 0.45rem 0.75rem;
  color: #c8d4e0;
  cursor: pointer;
  font-size: 0.9rem;
}
.admin-store-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-store-info-band {
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.admin-store-info-band-name {
  font-weight: 600;
  color: #c8d4e0;
  font-size: 0.95rem;
}
.admin-store-info-band-item {
  font-size: 0.85rem;
  color: #9ca8b8;
}
.admin-store-info-band-item span {
  color: #e8eef4;
  font-weight: 500;
  margin-left: 0.25rem;
}

.dukkan-wrap {
  position: relative;
}

.genel-dukkan {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.95rem;
  width: 11rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.genel-dukkan::placeholder {
  color: #7a8a9a;
}

.genel-fiyat-input {
  width: 6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.genel-fiyat-input::placeholder {
  color: #7a8a9a;
}

.dukkan-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 10;
  min-width: 100%;
  max-height: 180px;
  overflow-y: auto;
}

.dukkan-opt {
  padding: 0.5rem 0.75rem;
  color: #c8d4e0;
  cursor: pointer;
  font-size: 0.9rem;
}

.dukkan-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.genel-sort {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.9rem;
  cursor: pointer;
}

.genel-search {
  flex: 1;
  max-width: 20rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef4;
  border-radius: 18px;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.genel-search::placeholder {
  color: #7a8a9a;
}

.search-clear-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #b0bcc8;
  border-radius: 18px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.magaza-sub-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.magaza-sub-tab {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca8b8;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.magaza-sub-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #c8d4e0;
}
.magaza-sub-tab.active {
  background: rgba(45, 90, 138, 0.4);
  border-color: #2d5a8a;
  color: #fff;
}
.magaza-tab-panel {
  margin-bottom: 0.5rem;
}

.restore-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(100, 180, 100, 0.5);
  background: rgba(80, 160, 80, 0.15);
  color: #90d890;
  border-radius: 18px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.restore-btn:hover {
  background: rgba(80, 160, 80, 0.25);
  color: #b0e8b0;
}

/* Eski copy/edit/delete buton sınıfları action-btn ile uyumlu (magaza event delegation) */

.magaza-row-edit {
  background: rgba(30, 58, 95, 0.15);
}

.magaza-edit-model,
.magaza-edit-color,
.magaza-edit-battery,
.magaza-edit-fiyat {
  width: 100%;
  max-width: 5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 22, 40, 0.6);
  color: #e8eef4;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.magaza-edit-model:focus,
.magaza-edit-color:focus,
.magaza-edit-battery:focus,
.magaza-edit-fiyat:focus {
  outline: none;
  border-color: rgba(90, 160, 230, 0.6);
  box-shadow: 0 0 0 2px rgba(90, 160, 230, 0.2);
}

.magaza-edit-model {
  max-width: 9rem;
}

.magaza-edit-fiyat {
  max-width: 6rem;
}

.magaza-row-edit .cosmetic-range:focus {
  outline: none;
}

.note-textarea {
  width: 100%;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eef4;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: inherit;
  box-sizing: border-box;
}

.note-textarea::placeholder {
  color: #7a8a9a;
}

.note-cell {
  max-width: 12rem;
  min-width: 8rem;
  vertical-align: top;
}

.note-cell .note-textarea {
  min-height: 2.5em;
  max-height: 5em;
}

.reklamda-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: #e8c870;
  background: rgba(255, 200, 100, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.new-badge {
  display: inline-block;
  font-size: 0.65rem;
  color: #7ab8e8;
  background: rgba(90, 160, 230, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.hizli-giden-badge {
  display: inline-block;
  font-size: 0.85em;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.empty-msg {
  color: #9ca8b8;
  padding: 1rem 0;
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.devices-table th,
.devices-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.devices-table th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: #fff;
}

.devices-table td {
  color: #c8d4e0;
}

.genel-placeholder-row {
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}
.genel-placeholder-row td {
  text-align: center;
  color: #6b7d8f;
  font-size: 0.9rem;
}

.genel-paywall {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
}
.genel-paywall-text {
  color: #9ca8b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.genel-paywall-cta {
  padding: 0.6rem 1.25rem;
  background: #1e3a5f;
  border: 1px solid #2d5a8a;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.genel-paywall-cta:hover {
  background: #2a4a75;
}

.lock-screen {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.lock-screen-card {
  max-width: 420px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  text-align: center;
}
.lock-screen-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e8eef4;
  margin-bottom: 1rem;
}
.lock-screen-desc {
  font-size: 0.95rem;
  color: #9ca8b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.lock-screen-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}
.lock-screen-cta:hover {
  background: #20bd5a;
}

.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.profile-modal.open {
  display: flex;
}
.profile-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.profile-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f2137 0%, #0a1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.profile-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}
.profile-modal-body .profile-field {
  margin-bottom: 1rem;
}
.profile-modal-body .profile-field label {
  display: block;
  font-size: 0.8rem;
  color: #8a9db0;
  margin-bottom: 0.35rem;
}
.profile-modal-body .profile-field input,
.profile-modal-body .profile-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #e8eef4;
  font-size: 0.95rem;
}
.profile-modal-body .profile-field textarea {
  min-height: 60px;
  resize: vertical;
}
.profile-modal-body .profile-field input:disabled,
.profile-modal-body .profile-field textarea:disabled {
  opacity: 0.8;
  cursor: default;
}
.profile-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.profile-modal-body .profile-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
  line-height: 1;
}
.profile-modal-body .profile-icon-phone {
  color: #9ca8b8;
}
.profile-modal-body .profile-icon-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  background: #25d366;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}
.profile-modal-body .profile-field-link {
  color: #5da8e8;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.profile-modal-body .profile-field-link:hover {
  text-decoration: underline;
}
.profile-modal-body .profile-field-link-wa {
  color: #25d366;
}
.profile-modal-body .profile-field-link-wa:hover {
  color: #34e077;
}
.profile-modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.store-profile-link {
  color: #5da8e8;
  cursor: pointer;
  text-decoration: none;
}
.store-profile-link:hover {
  text-decoration: underline;
}
.profile-modal-cancel,
.profile-modal-save {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.profile-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c8d4e0;
}
.profile-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}
.profile-modal-save {
  background: #1e3a5f;
  border: 1px solid #2d5a8a;
  color: #fff;
}
.profile-modal-save:hover {
  background: #2a4a75;
}

.gun-sonu-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.gun-sonu-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 1rem;
}
.gun-sonu-section {
  font-size: 0.9rem;
  color: #9ca8b8;
  margin-top: 0.75rem;
}
.gun-sonu-section strong {
  color: #e8eef4;
}
.gun-sonu-list {
  margin: 0.35rem 0 0 1rem;
  padding: 0;
  list-style: disc;
  color: #9ca8b8;
  font-size: 0.85rem;
}
.gun-sonu-list li {
  margin-bottom: 0.2rem;
}
.gun-sonu-empty {
  margin: 0.35rem 0 0;
  color: #6b7d8f;
  font-size: 0.85rem;
}
.gun-sonu-segment {
  font-size: 0.85rem;
  color: #9ca8b8;
  margin: 0.25rem 0 0 0;
}
.gun-sonu-subsection {
  font-size: 0.85rem;
  color: #9ca8b8;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}
.gun-sonu-subsection strong {
  color: #c8d4e0;
}
.gun-sonu-performans {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  font-weight: 600;
  color: #5da8e8;
}

.satilan-arsiv-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c8d4e0;
  margin-bottom: 0.75rem;
}
.satilan-analiz-panel {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.satilan-analiz-section {
  font-size: 0.9rem;
  color: #9ca8b8;
  margin-bottom: 1rem;
}
.satilan-analiz-section strong {
  color: #e8eef4;
  display: block;
  margin-bottom: 0.35rem;
}
.satilan-analiz-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 0.85rem;
}
.satilan-analiz-list li {
  margin-bottom: 0.25rem;
}
.satilan-analiz-empty {
  margin: 0.35rem 0 0;
  color: #6b7d8f;
  font-size: 0.85rem;
}

.status-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #c8d4e0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.status-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.promo-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 200, 100, 0.4);
  background: rgba(255, 200, 100, 0.1);
  color: #e8c870;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.promo-btn:hover {
  background: rgba(255, 200, 100, 0.2);
}

.promo-btn.active {
  background: rgba(255, 200, 100, 0.25);
  border-color: rgba(255, 200, 100, 0.6);
  color: #ffd98a;
}

.info-box {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 58, 95, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-size: 0.85rem;
  color: #9ca8b8;
}

.settings-section {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(45, 90, 138, 0.4);
  color: #c8d4e0;
  border-radius: 18px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.settings-btn:hover {
  background: rgba(45, 90, 138, 0.6);
  color: #fff;
}

.settings-btn.danger:hover {
  background: rgba(180, 60, 60, 0.5);
  border-color: rgba(220, 100, 100, 0.4);
}

.logout-btn {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #8a9db0;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca8b8;
}

.delete-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.delete-modal.open {
  display: flex;
}
.delete-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.delete-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #0f2137 0%, #0a1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.delete-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}
.delete-modal-text {
  font-size: 0.95rem;
  color: #9ca8b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.delete-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.delete-modal-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.delete-modal-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c8d4e0;
}
.delete-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.delete-modal-confirm {
  background: rgba(200, 80, 80, 0.25);
  border: 1px solid rgba(220, 100, 100, 0.4);
  color: #e8a0a0;
}
.delete-modal-confirm:hover {
  background: rgba(200, 80, 80, 0.4);
  color: #fff;
  border-color: rgba(220, 100, 100, 0.6);
}

@media (max-width: 600px) {
  .add-device-form {
    flex-direction: column;
  }
  .add-device-form input,
  .add-device-form button {
    width: 100%;
  }
  .add-device-form input[type="number"] {
    width: 100%;
  }
  .promo-cards {
    flex-direction: column;
  }
  .promo-card {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .table-wrap {
    overflow-x: auto;
  }
  .devices-table {
    min-width: 700px;
  }
}

.version-footer {
  margin-top: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: #5a6b7a;
  text-align: center;
}
