.page-linklerim .lg-main {
  padding-bottom: 48px;
}

.lg-panel {
  margin-top: 8px;
}

.lg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.lg-head__text h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lg-head__sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.45;
}

.lg-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: linear-gradient(90deg, #f3f4f6 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  color: var(--text);
}

.lg-info-bar strong {
  font-weight: 800;
  color: #4338ca;
}

.lg-info-ico {
  font-size: 16px;
  line-height: 1;
}

.lg-table-wrap {
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 28px;
}

.lg-table .lg-th__lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lg-table .lg-th__ico {
  font-size: 14px;
  line-height: 1;
}

.lg-table .lg-th__ico--key {
  filter: saturate(1.2);
}

.lg-table tbody td:first-child a {
  font-weight: 600;
  color: var(--blue-bright);
  text-decoration: none;
  word-break: break-all;
}

.lg-table tbody td:first-child a:hover {
  text-decoration: underline;
}

.lg-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.lg-purchase {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.lg-btn-show {
  min-width: 88px;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
}

/* Detay görünümü */
.lg-detail {
  margin-top: 8px;
}

.lg-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.lg-detail-head__meta h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.lg-detail-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.lg-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lg-bulk-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}

.lg-bulk-btn--danger {
  background: linear-gradient(180deg, #ef5350, #e53935);
}

.lg-bulk-btn--success {
  background: linear-gradient(180deg, #43a047, #2e7d32);
}

.lg-bulk-btn--purple {
  background: linear-gradient(180deg, #7c4dff, #651fff);
}

.lg-bulk-btn--dark {
  background: linear-gradient(180deg, #546e7a, #37474f);
}

.lg-bulk-count {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.lg-bulk-count strong {
  color: #4338ca;
}

.lg-detail-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
  min-width: 200px;
}

.lg-detail-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
}

.lg-detail-search .search-go {
  border-radius: 0 8px 8px 0;
  border: 1px solid var(--border);
  background: var(--purple);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.lg-detail-banner {
  margin-bottom: 12px;
}

.lg-detail-table-wrap {
  border-radius: var(--radius);
}

.lg-detail-link a {
  font-weight: 600;
  color: var(--blue-bright);
  text-decoration: none;
  word-break: break-all;
}

.lg-detail-link a:hover {
  text-decoration: underline;
}

.lg-favicon {
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 3px;
}

.lg-detail-target {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

/* Panel modalları (toplu işlemler) */
.overlay.overlay--lg-shell,
.overlay.overlay--lg-edit {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(15, 23, 42, 0.48);
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.overlay.overlay--lg-shell[hidden],
.overlay.overlay--lg-edit[hidden] {
  display: none !important;
}

.overlay.overlay--lg-alert {
  align-items: center;
  padding: 24px 16px;
}

.lg-shell-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  animation: lg-modal-in 0.22s ease;
}

@keyframes lg-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lg-shell-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lg-shell-modal__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.lg-shell-modal__title {
  margin: 0 0 6px;
  padding-right: 36px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.lg-shell-modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.lg-shell-modal__msg {
  margin: 0 0 16px;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

.lg-shell-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  background: #fff7ed;
}

.lg-shell-modal__icon--ok {
  background: #ecfdf5;
  color: #16a34a;
  font-weight: 800;
}

.lg-shell-modal--confirm {
  text-align: center;
  max-width: 440px;
}

.lg-shell-modal--confirm .lg-shell-modal__title {
  padding-right: 0;
}

.lg-shell-modal--alert {
  text-align: center;
  max-width: 400px;
  padding: 32px 28px 28px;
}

.lg-shell-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.lg-shell-status {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

.lg-shell-status strong {
  font-weight: 800;
  font-size: 15px;
}

.lg-shell-status--green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.lg-shell-status--warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.lg-shell-status--danger {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.lg-edit-actions--reverse {
  justify-content: center;
}

.btn--success-solid {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  font-weight: 700;
}

.btn--success-solid:hover {
  filter: brightness(1.05);
}

.lg-edit-modal .lg-shell-modal__title {
  /* görünür başlık */
}

.lg-edit-field {
  display: block;
  margin-bottom: 18px;
}

.lg-edit-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.lg-edit-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.lg-edit-field input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.lg-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lg-edit-actions .btn--purple {
  min-width: 160px;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 10px;
}

.lg-edit-actions .btn--outline {
  min-width: 120px;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

@media (max-width: 520px) {
  .lg-edit-modal {
    padding: 22px 18px 20px;
  }

  .lg-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lg-edit-actions .btn {
    width: 100%;
  }
}

.lg-empty {
  text-align: center;
  padding: 48px 24px !important;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.lg-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
}

.lg-empty span {
  display: inline-block;
  max-width: 440px;
  margin-top: 4px;
}

.page-footer-tagline {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-footer-tagline .footer-ok {
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 768px) {
  .page-linklerim .lg-main {
    padding-bottom: 32px;
  }

  .lg-head {
    flex-direction: column;
    align-items: stretch;
  }

  .lg-head .btn {
    width: 100%;
    text-align: center;
  }

  .lg-info-bar {
    font-size: 12px;
    padding: 10px 12px;
  }

  .lg-table-wrap {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }

  .lg-table-wrap .lg-table {
    min-width: 620px;
  }

  .lg-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .lg-detail-search {
    margin-left: 0;
    width: 100%;
  }

  .lg-detail-table-wrap .lg-detail-table {
    min-width: 720px;
  }

  .lg-table .lg-th__lbl {
    white-space: nowrap;
  }

  .page-footer-tagline {
    font-size: 12px;
    padding: 16px 8px 28px;
    line-height: 1.5;
  }
}
