@import url("logo-eye.css?v=20260518-live2");
@import url("panel-features.css?v=20260521-features");

:root {
  --purple: #7c4dff;
  --purple-deep: #6b3dff;
  --blue: #5c6bc0;
  --blue-bright: #5d5fef;
  --bg: #f3f4f8;
  --white: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #eb5757;
  --success: #27ae60;
  --orange: #f59e0b;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  font-family: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}

body.page-panel {
  background-color: #eef2f6;
  background-image:
    linear-gradient(rgba(244, 247, 246, 0.9), rgba(244, 247, 246, 0.94)),
    url("assets/world-map-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: var(--blue-bright);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 120px;
}

.topbar__brand--with-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo-badge {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-logo-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Floating docks */
.dock {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock--left {
  left: 16px;
  bottom: 24px;
}

.dock--scroll {
  right: 16px;
  bottom: 120px;
  gap: 8px;
}

.dock__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.dock__btn--green {
  background: linear-gradient(180deg, #2ecc71, #27ae60);
}

.dock__btn--red {
  background: linear-gradient(180deg, #ff6b6b, #eb5757);
}

.dock__btn--telegram {
  background: linear-gradient(180deg, #4dabf7, #339af0);
}

.dock__ico {
  font-size: 14px;
  opacity: 0.95;
}

.dock__lang,
.dock__lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  min-width: 88px;
}

.dock__lang-select {
  appearance: auto;
}

.dock--mini {
  z-index: 60;
}

.dock__caret {
  color: var(--muted);
  font-size: 12px;
}

.dock__scroll {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.dock__scroll:hover {
  filter: brightness(1.06);
}

@media (max-width: 900px) {
  .dock--left {
    display: none;
  }

  .dock--scroll {
    right: 10px;
    bottom: 80px;
  }
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px 0 16px;
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.topbar__brand.topbar__brand--with-logo {
  align-items: center;
  gap: 11px;
}

.topbar__brand-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-mark {
  font-weight: 800;
  font-size: 18px;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.logo-mark__accent {
  background: linear-gradient(90deg, #ec4899, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-dot {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.topbar__ribbon {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--purple), #a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.topbar__ribbon--brand {
  background: linear-gradient(90deg, #7c4dff, #a855f7);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill--danger-soft .pill__plus {
  color: var(--danger);
}

.pill--success-soft .pill__ico {
  color: var(--success);
}

.pill__warn {
  font-size: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #3b82f6, var(--blue-bright));
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.credit-chip__plus {
  font-weight: 700;
}

.credit-chip__desk {
  font-weight: 600;
}

.credit-chip__mob {
  display: none;
  font-weight: 700;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.avatar--online {
  position: relative;
}

.avatar--online::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.avatar--btn {
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.avatar--sm {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.user-wrap {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 320;
}

.user-dropdown[hidden] {
  display: none !important;
}

.user-dropdown__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-dropdown__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.user-dropdown__hi {
  font-size: 13px;
  color: var(--muted);
}

.user-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 10px;
}

.user-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.user-dropdown__link:hover {
  background: #f3f4f6;
}

.user-dropdown__ico {
  width: 28px;
  text-align: center;
}

.user-dropdown__logout {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 11px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.user-dropdown__logout:hover {
  filter: brightness(1.03);
}

.user-dropdown__logout-ico {
  font-size: 16px;
  opacity: 0.95;
}

/* Subnav */
.subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.subnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
}

.subnav a:hover {
  color: var(--text);
}

.subnav a.is-active {
  background: linear-gradient(90deg, var(--blue-bright), #818cf8);
  color: #fff;
}

.subnav__support {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

a.subnav__support {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: inherit;
}

a.subnav__support:hover {
  background: #eef2ff;
}

/* Ok tuşlarıyla kaydırmalı alt menü (anasayfa + panel sayfaları) */
.subnav-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 8px;
  margin-bottom: 0;
  min-width: 0;
}

.subnav-shell > .subnav {
  flex: 1;
  background: transparent;
  box-shadow: none;
  padding: 2px 4px;
  min-width: 0;
}

.subnav-shell .subnav__support {
  flex-shrink: 0;
  margin-left: 0;
}

.subnav-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.subnav-arrow:hover {
  background: #e5e7eb;
  color: var(--text);
}

.subnav.subnav--scrollable {
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.subnav.subnav--scrollable::-webkit-scrollbar {
  display: none;
}

.subnav.subnav--scrollable a {
  white-space: nowrap;
}

.main {
  padding-top: 20px;
}

.crumb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.breadcrumb {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb strong {
  color: var(--text);
}

.badge-pro {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card--welcome {
    grid-column: 1 / -1;
  }

  .card--eye {
    grid-column: 1 / -1;
    min-height: 140px;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card--welcome {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}

.welcome-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 17px;
}

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

.balance-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.balance-val {
  margin: 4px 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

a.btn {
  display: inline-block;
  text-decoration: none;
  box-sizing: border-box;
}

.btn--purple {
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  color: #fff;
}

a.btn.btn--purple:link,
a.btn.btn--purple:visited {
  color: #fff;
}

.btn--blue {
  background: var(--blue-bright);
  color: #fff;
}

.btn--outline {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
}

.card--welcome__art {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}

.illus-trophy {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 45%, #b45309);
  position: relative;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.illus-trophy::after {
  content: "🏆";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.card--stat {
  text-align: center;
}

.stat-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.stat-ico--purple {
  background: #ede9fe;
}

.stat-ico--orange {
  background: #ffedd5;
}

.stat-ico--green {
  background: #dcfce7;
  font-weight: 800;
  color: var(--success);
}

.stat-num {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.stat-label {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.card--eye,
.card--brand-logo {
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 160px;
}

.card-brand-logo__img {
  width: auto;
  max-width: 92%;
  max-height: 130px;
  height: auto;
  object-fit: contain;
  display: block;
}

.illus-eye {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(145deg, #f9fafb, #e5e7eb);
  position: relative;
  border: 2px solid #111827;
}

.illus-eye::before {
  content: "";
  position: absolute;
  inset: 18%;
  clip-path: polygon(50% 8%, 92% 92%, 8% 92%);
  background: radial-gradient(circle at 45% 42%, #22c55e 0%, #111827 42%);
  border: 2px solid #111827;
}

.illus-eye::after {
  content: "🌿";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
}

/* Filters */
.filters {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.filters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .filters__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .filters__grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
}

.field__hint {
  font-size: 11px;
  color: var(--muted);
}

.filters__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Link Market panel */
.lm-panel {
  background: transparent;
}

.lm-head {
  display: grid;
  grid-template-columns: 1fr auto 280px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .lm-head {
    grid-template-columns: 1fr;
  }
}

.lm-head__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.lm-head__title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.lm-head__meta {
  font-size: 13px;
  color: var(--muted);
}

.lm-head__mid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--dark {
  background: #374151;
  color: #fff;
}

.btn--blue-muted {
  background: var(--blue-bright);
  color: #fff;
}

.btn--danger-solid {
  background: var(--danger);
  color: #fff;
}

.lm-head__search {
  display: flex;
  gap: 0;
}

.lm-head__search input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
}

.search-go {
  width: 46px;
  border: none;
  background: var(--blue-bright);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 16px;
}

.info-banner {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Link Market — binlerce site: sayfa değil, kutu içi kaydırma */
.lm-panel .table-wrap--scroll {
  display: flex;
  flex-direction: column;
  max-height: min(62vh, 580px);
  min-height: 300px;
  overflow: hidden;
}

.lm-panel .lm-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lm-panel .lm-table-scroll .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #111827;
  box-shadow: 0 2px 0 rgba(17, 24, 39, 0.15);
}

.lm-panel .lm-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.lm-panel .lm-table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}

.lm-panel .lm-table-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.lm-table-scroll-hint {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.lm-table-scroll-hint__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 14px;
  animation: lm-scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes lm-scroll-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.lm-table-scroll-hint.is-end .lm-table-scroll-hint__ico {
  animation: none;
  opacity: 0.5;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: #111827;
  color: #f9fafb;
}

.data-table th {
  text-align: left;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.th-check {
  width: 40px;
  text-align: center;
}

.sort-arrows {
  opacity: 0.55;
  font-size: 11px;
}

.sort--active {
  color: #fbbf24;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.data-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.td-site .fav {
  color: var(--blue-bright);
  margin-right: 6px;
}

.td-site .fav--alt {
  color: var(--orange);
}

.td-site--new {
  white-space: nowrap;
}

.pill-site-new {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 11px;
  border-radius: 6px;
  background: linear-gradient(180deg, #34d399 0%, #22c55e 55%, #16a34a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  vertical-align: middle;
  letter-spacing: 0.03em;
  box-shadow:
    0 1px 2px rgba(22, 163, 74, 0.35),
    0 2px 6px rgba(34, 197, 94, 0.28);
}

.td-site a,
.td-site a.site-pool-link {
  font-weight: 600;
  text-decoration: none;
  color: #5b7cfa;
}

.td-site a:hover,
.td-site a.site-pool-link:hover {
  text-decoration: underline;
  color: #4338ca;
}

.pill-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(145deg, #f5f3ff 0%, #e8e5ff 38%, #ddd6fe 100%);
  border: 1px solid rgba(99, 102, 241, 0.42);
  box-shadow:
    0 1px 2px rgba(79, 70, 229, 0.08),
    0 4px 12px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pill-credit__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(251, 146, 60, 0.55))
    drop-shadow(0 0 6px rgba(249, 115, 22, 0.25));
}

.pill-credit__val {
  font-variant-numeric: tabular-nums;
  color: #3730a3;
}

.pill-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.pill-status--ok {
  background: var(--success);
}

.td-footer {
  text-align: center;
}

.td-footer small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.toggle-on,
.toggle-off {
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  vertical-align: middle;
}

.toggle-on {
  background: var(--success);
}

.toggle-on::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-off {
  background: #d1d5db;
}

.toggle-off::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 3px;
}

/* Özel Müşteri modal */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.45);
}

.overlay[hidden],
.range-popover[hidden] {
  display: none !important;
}

.modal-special {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-top: 24px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.modal-special__tab {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: #e54d42;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px 12px 0 0;
  white-space: nowrap;
}

.modal-special__tab-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin: 0;
}

.modal-special__banner {
  background: #e54d42;
  color: #fff;
  text-align: center;
  padding: 22px 20px 20px;
  border-radius: 14px 14px 0 0;
}

.modal-special__banner h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.modal-special__banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.98;
}

.modal-special__body {
  padding: 22px 22px 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-field__label {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.modal-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
}

.modal-field input::placeholder {
  color: #9ca3af;
}

.modal-special__infobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #6366f1;
  color: #fff;
  margin-bottom: 18px;
}

.modal-special__infobar-label {
  font-weight: 700;
  font-size: 13px;
}

.modal-special__infobar-badge {
  background: #e54d42;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}

.modal-special__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-modal {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-modal--ghost {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-modal--primary {
  background: #e91e4c;
  color: #fff;
}

.btn-modal--primary:hover {
  filter: brightness(1.03);
}

body.modal-lock {
  overflow: hidden;
}

/* Toplu Link Ekle modal */
.overlay.overlay--bulk {
  z-index: 205;
}

.modal-bulk {
  width: 100%;
  max-width: 460px;
  margin-top: 24px;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.modal-bulk__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #5d5fef;
  color: #fff;
}

.modal-bulk__header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.modal-bulk__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
}

.modal-bulk__close:hover {
  opacity: 0.9;
}

.modal-bulk__banner {
  margin: 0;
  padding: 14px 18px;
  background: #818cf8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.modal-bulk__body {
  padding: 20px 18px 22px;
}

.modal-bulk__select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}

.modal-bulk__plan-hint {
  margin: -6px 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.modal-bulk__costbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #6366f1;
  color: #fff;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.modal-bulk__costbar-item strong {
  font-weight: 800;
}

.modal-bulk__warn {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.modal-bulk__error {
  margin: -8px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #dc2626;
}

.modal-bulk__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-modal--bulk-primary {
  background: #5d5fef;
  color: #fff;
}

.btn-modal--bulk-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-modal--bulk-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Kolay Site Seçme — sadece açıkken tam ekran katman */
.overlay.overlay--range:not([hidden]) {
  display: block;
  background: transparent;
  padding: 0;
  pointer-events: auto;
}

.range-popover {
  position: fixed;
  z-index: 210;
  min-width: min(380px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.range-popover__text {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.range-popover__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-popover__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
}

.range-popover__input::placeholder {
  color: #9ca3af;
}

.range-popover__dash {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.range-popover__submit {
  flex-shrink: 0;
  width: 46px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #6366f1;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.range-popover__submit:hover {
  filter: brightness(1.05);
}

/* Gizli modal/popover kesin kapalı — üst üste binme / tıklama çalması önlenir */
#overlay-special[hidden],
#overlay-range[hidden],
#overlay-bulk[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#range-popover[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* Sorun Bildir — aktif paket / bilgilendirme */
.issue-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.48);
}

.issue-overlay[hidden] {
  display: none !important;
}

.issue-modal {
  width: 100%;
  max-width: 428px;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.issue-modal__head {
  padding: 18px 20px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, #7c3aed 0%, #6366f1 42%, #3b82f6 100%);
}

.issue-modal__body {
  padding: 22px 22px 10px;
}

.issue-modal__body--center {
  text-align: center;
}

.issue-modal__body--center p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.issue-modal__body--center p:last-child {
  margin-bottom: 0;
}

.issue-modal__lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.issue-modal__foot {
  padding: 18px 22px 22px;
  display: flex;
  justify-content: center;
}

.issue-modal__foot--split {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.issue-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.issue-field__label {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.issue-field__opt {
  font-weight: 500;
  color: var(--muted);
}

.issue-field select,
.issue-field input,
.issue-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
}

.issue-field textarea {
  resize: vertical;
  min-height: 96px;
}

.issue-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.issue-btn--primary {
  color: #fff;
  background: linear-gradient(115deg, #7c3aed 0%, #6366f1 45%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.issue-btn--primary:hover {
  filter: brightness(1.05);
}

.issue-btn--wide {
  min-width: 200px;
}

.issue-btn--ghost {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Mobil / küçük ekran — tüm panel sayfaları (Link Market, ortak bileşenler)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page {
    padding: 12px 12px 96px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 12px;
  }

  .topbar__ribbon {
    order: 1;
    flex: none;
    max-width: none;
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(124, 77, 255, 0.35);
    text-align: center;
  }

  .topbar__brand.topbar__brand--with-logo {
    order: 0;
  }

  .topbar__actions {
    order: 2;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
  }

  .topbar__actions::-webkit-scrollbar {
    height: 4px;
  }

  .topbar__actions .pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 7px 10px;
  }

  .topbar__actions .icon-btn,
  .topbar__actions .avatar {
    flex-shrink: 0;
  }

  .credit-chip {
    flex-shrink: 0;
    font-size: 11px;
    padding: 7px 10px;
    gap: 4px;
  }

  .credit-chip__desk {
    display: none;
  }

  .credit-chip__mob {
    display: inline;
    font-size: 11px;
  }

  .user-wrap {
    flex-shrink: 0;
  }

  .user-dropdown {
    max-width: min(288px, calc(100vw - 24px));
  }

  .subnav-shell {
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
  }

  .subnav-shell .subnav.subnav--scrollable {
    flex: 1;
    min-width: 0;
    padding: 4px 2px;
  }

  .subnav-shell .subnav-arrow {
    align-self: center;
  }

  .subnav-shell .subnav__support {
    align-self: center;
    flex-shrink: 0;
    padding: 6px;
  }

  .subnav-arrow {
    width: 32px;
    height: 36px;
    font-size: 13px;
  }

  .subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .subnav a {
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 12px;
  }

  .subnav__support {
    flex-shrink: 0;
    margin-left: 0;
  }

  .crumb-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .card--welcome {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card--welcome__text {
    width: 100%;
  }

  .card--welcome__art {
    margin-top: 8px;
  }

  .balance-val {
    font-size: clamp(18px, 6vw, 22px);
  }

  .lm-head__mid {
    width: 100%;
    justify-content: stretch;
  }

  .lm-head__mid .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    font-size: 11px;
    padding: 9px 8px;
    text-align: center;
  }

  .lm-head__search {
    width: 100%;
    min-width: 0;
  }

  .filters {
    padding: 14px;
  }

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

  .filters__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .table-wrap:not(.table-wrap--scroll) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .lm-panel .table-wrap--scroll {
    max-height: min(52vh, 460px);
    min-height: 240px;
  }

  .lm-panel .table-wrap .data-table,
  .lm-panel .lm-table-scroll .data-table {
    min-width: 720px;
  }

  .overlay {
    padding: 12px;
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top, 12px));
  }

  .modal-special {
    margin-top: 8px;
    max-width: calc(100vw - 20px);
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .modal-special__tab {
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-bulk {
    margin-top: 8px !important;
    max-width: calc(100vw - 20px) !important;
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .modal-bulk__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-bulk__footer .btn-modal {
    width: 100%;
    justify-content: center;
  }

  .modal-special__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-special__footer .btn-modal {
    width: 100%;
  }

  .issue-overlay {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    align-items: flex-end;
  }

  .issue-modal {
    max-height: min(92vh, 640px);
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    width: 100%;
    max-width: none;
  }

  .range-popover {
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
  }

  .dock--scroll {
    right: max(8px, env(safe-area-inset-right, 8px));
    bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }

  .dock__scroll {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .logo-mark {
    font-size: 15px;
  }

  .logo-dot {
    font-size: 12px;
  }

  .brand-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .lm-head__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .lm-head__title h2 {
    font-size: 17px;
  }

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