@layer bdr-base {
:root {
  --navy: #082b49;
  --blue: #0d5b86;
  --aqua: #18a7a1;
  --ink: #132333;
  --muted: #617181;
  --line: #dbe5eb;
  --bg: #f4f8fa;
  --white: #fff;
  --danger: #b53b3b;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
button,input,textarea,select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,a:focus-visible,input:focus,textarea:focus,select:focus {
  outline: 3px solid #82cfdd;
  outline-offset: 2px;
}
h1,h2,h3,p {
  margin-top: 0;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg,#06233c,#0b587c);
}
.login-card {
  width: min(100%,440px);
  background: #fff;
  padding: 38px;
  border-radius: 20px;
  box-shadow: 0 24px 70px #00152680;
}
.eyebrow {
  color: var(--blue);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.admin-header {
  min-height: 76px;
  padding: 10px max(22px,calc((100vw - 1440px)/2));
  display: flex;
  align-items: center;
  gap: 25px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 18px #061b2a26;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand b,.brand small {
  display: block;
}
.brand small {
  font-size: .72rem;
  color: #b8d5e1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--aqua);
  font-weight: 900;
}
.admin-nav {
  display: flex;
  align-self: stretch;
  gap: 3px;
  align-items: center;
  flex: 1;
}
.admin-nav-link {
  color: #d9edf4;
  background: transparent;
  border: 0;
  padding: 13px 12px;
  border-radius: 8px;
  font-weight: 650;
}
.admin-nav-link:hover,.admin-nav-link.active {
  background: #ffffff1a;
  color: #fff;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.menu-toggle {
  display: none;
}
.admin-main {
  max-width: 1440px;
  margin: auto;
  padding: 32px 28px 64px;
}
.admin-view {
  display: none;
}
.admin-view.active {
  display: block;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 8px 0 24px;
}
.section-heading h1 {
  font-size: 1.85rem;
  margin-bottom: 3px;
}
.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(1.08);
}
.button.secondary {
  background: #fff;
  color: var(--blue);
  border-color: #b9ceda;
}
.button.danger {
  background: var(--danger);
  border-color: var(--danger);
}
.message {
  min-height: 1.5em;
  color: var(--blue);
  font-weight: 650;
}
.admin-form,.gallery-upload {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 5px 18px #0b32430b;
}
.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 14px;
}
.admin-form input,.admin-form textarea,.admin-form select,.list-tools input {
  min-width: 0;
  width: 100%;
  border: 1px solid #bbcad4;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.admin-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.check input {
  width: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
}
.form-actions {
  display: flex;
  gap: 8px;
}
.entry-form {
  margin: -6px 0 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.stat-card,.quick-action,.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 18px #0b32430b;
}
.stat-card span,.stat-card small {
  display: block;
  color: var(--muted);
}
.stat-card strong {
  font-size: 2rem;
  color: var(--navy);
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 25px;
}
.quick-action {
  text-align: left;
  min-height: 110px;
}
.quick-action strong,.quick-action span {
  display: block;
}
.quick-action span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
}
.list-tools {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0;
}
.list-tools input {
  max-width: 330px;
}
.filter-buttons {
  display: flex;
  gap: 5px;
}
.filter-buttons button {
  border: 1px solid #bfd0d9;
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: var(--blue);
  font-weight: 650;
}
.filter-buttons .active {
  background: var(--blue);
  color: #fff;
}
.admin-list {
  display: grid;
  gap: 12px;
}
.content-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
}
.card-main h3 {
  margin-bottom: 5px;
}
.card-main p {
  color: var(--muted);
  margin-bottom: 7px;
  white-space: pre-line;
}
.card-meta {
  font-size: .85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-actions,.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
}
.badge.live {
  background: #d9f4ee;
  color: #08715f;
}
.badge.draft {
  background: #eef1f4;
  color: #586773;
}
.bulk-actions,.media-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: #eaf2f5;
  border-radius: 10px;
  padding: 10px;
}
.bulk-actions label {
  margin-right: auto;
}
.media-filter-bar select {
  border: 1px solid #bfd0d9;
  border-radius: 8px;
  padding: 7px;
  background: white;
}
.sponsor-card {
  grid-template-columns: auto 62px 1fr auto;
}
.sponsor-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.media-admin-item {
  display: grid;
  grid-template-columns: auto 130px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.media-admin-item img,.media-admin-item video {
  width: 130px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: #dce8ec;
}
.media-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.muted {
  color: var(--muted);
  font-size: .9rem;
}
@media(max-width:850px){
.admin-header {
  padding: 10px 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.menu-toggle {
  display: grid;
  gap: 4px;
  background: transparent;
  border: 0;
  margin-left: auto;
}
.menu-toggle span {
  width: 23px;
  height: 2px;
  background: #fff;
}
.admin-nav {
  display: none;
  order: 5;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 0;
}
.admin-nav.open {
  display: flex;
}
.admin-nav-link {
  text-align: left;
}
.header-actions {
  margin-left: auto;
}
.admin-main {
  padding: 24px 16px;
}
.stats-grid,.quick-actions {
  grid-template-columns: repeat(2,1fr);
}
.form-grid {
  grid-template-columns: 1fr;
}
.content-card {
  grid-template-columns: 1fr;
}
.card-actions {
  justify-content: flex-start;
}
.list-tools {
  align-items: stretch;
  flex-direction: column;
}
.list-tools input {
  max-width: none;
}
.sponsor-card {
  grid-template-columns: auto 56px 1fr;
}
.sponsor-card .card-actions {
  grid-column: 1/-1;
}
.media-admin-item {
  grid-template-columns: auto 1fr;
}
.media-admin-item img,.media-admin-item video {
  width: 100px;
  height: 70px;
}
.media-admin-item>div {
  grid-column: 1/-1;
}
.section-heading {
  align-items: flex-start;
}
.section-heading.compact {
  align-items: flex-end;
}
}
@media(max-width:500px){
.brand small {
  display: none;
}
.header-actions .button {
  padding: 8px;
}
.stats-grid,.quick-actions {
  grid-template-columns: 1fr;
}
.section-heading.compact {
  flex-direction: column;
  align-items: stretch;
}
.section-heading.compact>.button {
  align-self: stretch;
}
.filter-buttons {
  overflow: auto;
  padding-bottom: 2px;
}
.form-actions {
  flex-direction: column;
}
.form-actions .button {
  width: 100%;
}
.sponsor-card {
  grid-template-columns: auto 1fr;
}
.sponsor-logo {
  grid-column: 2;
}
.sponsor-card .card-main {
  grid-column: 1/-1;
}
}
@media (min-width: 851px) {
.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  background: #082b49;
  box-shadow: none;
  position: relative;
  margin-bottom: 104px;
}
.admin-header .brand {
  order: 1;
  margin-right: auto;
  padding: 12px 0;
}
.admin-header .header-actions {
  order: 2;
  margin-left: auto;
  padding: 12px 0;
}
.admin-header .admin-nav {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  max-width: 1384px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #dbe5eb;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(8, 43, 73, 0.09);
}
.admin-header .admin-nav-link {
  color: #47637b;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 700;
}
.admin-header .admin-nav-link:hover {
  background: #eef5fb;
  color: #07508c;
}
.admin-header .admin-nav-link.active {
  background: #dceafa;
  color: #07508c;
}
.admin-main {
  padding-top: 18px;
}
}
.admin-header .admin-brand-logo {
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.admin-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-nav-link.finance-link {
  text-decoration: none;
  display: inline-block;
}
.module-filters {
  margin: 0 0 18px;
}
.table-scroll {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.admin-table th,.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.module-form {
  max-width: 980px;
}
.error-message {
  color: var(--danger);
}
.rich-editor {
  width: 100%;
  min-width: 0;
  border: 1px solid #bbcad4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: #edf3f7;
  border-bottom: 1px solid #bbcad4;
}
.rich-toolbar button,
.rich-toolbar select,
.rich-toolbar input {
  width: auto;
  min-width: 0;
}
.rich-content {
  display: block;
  width: 100%;
  min-height: 350px;
  max-height: 650px;
  overflow: auto;
  padding: 16px;
  color: #132333;
  background: #fff;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  outline: none;
}
.rich-content:focus {
  outline: 2px solid #82cfdd;
  outline-offset: -2px;
}
.rich-editor > textarea {
  display: none;
}
.rich-editor.source-mode > .rich-content {
  display: none;
}
.rich-editor.source-mode > textarea {
  display: block;
  width: 100%;
  min-height: 350px;
  padding: 16px;
  font-family: monospace;
  resize: vertical;
}
@media (max-width: 760px) {
[data-view-panel="memberships"] .module-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
[data-view-panel="memberships"] .module-filters button {
  width: 100%;
  min-width: 0;
  padding: 11px 5px;
  font-size: 12px;
}
#membershipListControls {
  grid-template-columns: 1fr 1fr;
}
#membershipListControls input {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
#membershipListControls select {
  min-width: 0;
  width: 100%;
}
#membershipListControls #membershipPageSummary {
  align-self: center;
  text-align: right;
}
[data-view-panel="memberships"] .table-scroll {
  overflow: visible;
  background: transparent;
  border: 0;
}
[data-view-panel="memberships"] .admin-table,
  [data-view-panel="memberships"] .admin-table tbody,
  [data-view-panel="memberships"] .admin-table tr,
  [data-view-panel="memberships"] .admin-table td {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
[data-view-panel="memberships"] .admin-table thead {
  display: none;
}
[data-view-panel="memberships"] .admin-table tr {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--theme-control-border);
  border-radius: 14px;
  background: var(--theme-surface);
}
[data-view-panel="memberships"] .admin-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  overflow-wrap: anywhere;
}
[data-view-panel="memberships"] .admin-table td:last-child {
  border-bottom: 0;
}
[data-view-panel="memberships"] .admin-table td::before {
  display: block;
  margin-bottom: 4px;
  color: var(--theme-highlight);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
[data-view-panel="memberships"] .admin-table td:nth-child(1)::before {
  content: "AD SOYAD";
}
[data-view-panel="memberships"] .admin-table td:nth-child(2)::before {
  content: "KULLANICI ADI";
}
[data-view-panel="memberships"] .admin-table td:nth-child(3)::before {
  content: "TELEFON";
}
[data-view-panel="memberships"] .admin-table td:nth-child(4)::before {
  content: "E-POSTA";
}
[data-view-panel="memberships"] .admin-table td:nth-child(5)::before {
  content: "DURUM";
}
[data-view-panel="memberships"] .admin-table td:nth-child(6)::before {
  content: "BAŞVURU TARİHİ";
}
[data-view-panel="memberships"] .admin-table td:nth-child(7)::before {
  content: "İŞLEMLER";
}
[data-view-panel="memberships"] .admin-table td[colspan]::before {
  display: none;
}
[data-view-panel="memberships"] .admin-table .actions,
  [data-view-panel="memberships"] .admin-table td:last-child > div {
  justify-content: flex-start;
}
}
}
@layer bdr-legacy-priority {
[hidden] {
  display: none;
}
.admin-header .admin-brand-logo {
  width: 62px;
  height: 62px;
  max-width: 62px;
  max-height: 62px;
}
@media (max-width: 760px) {
#membershipListControls {
  display: grid;
  gap: 10px;
}
#membershipListControls input {
  min-width: 0;
}
[data-view-panel="memberships"] .admin-table .actions,
  [data-view-panel="memberships"] .admin-table td:last-child > div {
  flex-wrap: wrap;
  white-space: normal;
  gap: 7px;
}
#membershipPagination {
  justify-content: center;
  gap: 6px;
}
}
#adminBox .admin-nav {
  margin-bottom: 0;
}
#adminBox .admin-hero {
  margin-top: 0;
}
@media (min-width: 851px) {
#adminBox > .admin-header {
  margin-bottom: 104px;
}
#adminBox > .admin-main {
  padding-top: 0;
}
#adminBox > .admin-main > #message:empty {
  display: none;
}
}
}
