:root {
  color-scheme: light;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #14283b;
  background: #f3f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #11283e;
  color: #fff;
  padding: 18px max(20px, calc((100% - 1160px) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { letter-spacing: .09em; }
.brand small { display: block; color: #bfd5e9; }
.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #b3f3dd;
  color: #11283e;
}
.headset {
  position: relative;
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.headset::before, .headset::after {
  position: absolute;
  content: "";
}
.headset::before {
  top: 8px;
  left: -2px;
  width: 5px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 17px 0 currentColor;
}
.headset::after {
  right: -1px;
  bottom: -4px;
  width: 9px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-right-radius: 6px;
}
.support-home {
  --gutter: clamp(16px, 4vw, 64px);
  --page-width: 1512px;
  --hero-width: min(82%, 1120px);
  isolation: isolate;
  min-height: 100svh;
  background: radial-gradient(ellipse at top right, #183a3c, transparent 64%), #071419;
}
.support-home::before, .support-home::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.support-home::before {
  inset: 3%;
  background:
    radial-gradient(ellipse at 18% 20%, #20897852, transparent 48%),
    radial-gradient(ellipse at 85% 75%, #246a9545, transparent 48%);
}
.support-home::after {
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, #85f4dc5e 0 1px, transparent 2px),
    linear-gradient(90deg, #7cccc61f 1px, transparent 1px),
    linear-gradient(#7cccc61f 1px, transparent 1px);
  background-size: 112px 112px, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse at center, #0004 20%, #000 86%);
}
@media (prefers-reduced-motion: no-preference) {
  .support-home::before { animation: background-glow 13s ease-in-out infinite alternate; }
  @keyframes background-glow {
    from { transform: translate3d(-2%, -1%, 0); }
    to { transform: translate3d(2%, 1%, 0); }
  }
}
.support-home .site-header {
  width: var(--hero-width);
  margin-inline: auto;
  padding: clamp(20px, 4vh, 44px) 0;
  background: transparent;
}
.support-home .brand { gap: 14px; }
.support-home .brand strong { font-size: 1.0625rem; letter-spacing: .12em; }
.support-home .brand small { color: #a6c1c2; }
.support-home .mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, #cefce9, #83d6bb);
  color: #092722;
}
.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-inline-start: auto;
}
.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #e9f7f3;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}
.home-nav a:hover { background: #b3f3dd1a; }
.home-nav a:focus-visible, .home-menu-toggle:focus-visible { outline: 2px solid #b3f3dd; outline-offset: 2px; }
.home-nav .home-login { justify-content: center; min-width: 44px; gap: 8px; background: #b3f3dd12; }
.home-nav .home-login:hover { background: #b3f3dd26; }
.home-login-icon { position: relative; width: 18px; height: 18px; }
.home-login-icon::before, .home-login-icon::after {
  position: absolute;
  content: "";
  border: 1.5px solid currentColor;
}
.home-login-icon::before { inset: 0 5px auto; height: 8px; border-radius: 50%; }
.home-login-icon::after { inset: auto 0 0; height: 8px; border-radius: 8px 8px 3px 3px; }
.home-login-label, .home-menu-toggle { display: none; }
@media (max-width: 640px) {
  .support-home .site-header { gap: 10px; }
  .support-home .brand { flex: 1; min-width: 0; gap: 8px; }
  .support-home .brand small { font-size: .75rem; }
  .support-home .mark { width: 38px; height: 38px; border-radius: 11px; }
  .site-header .home-menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #b3f3dd12;
    color: #e9f7f3;
  }
  .site-header .home-menu-toggle:hover, .site-header .home-menu-toggle[aria-expanded="true"] { background: #b3f3dd26; }
  .home-menu-icon { width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .home-menu-toggle:not([hidden])[aria-expanded="false"] + .home-nav { display: none; }
  .home-nav { flex: 0 0 100%; flex-direction: column; padding: 5px; border: 1px solid #aacbc42e; border-radius: 10px; background: #10272e; }
  .home-nav .home-login { justify-content: flex-start; }
  .home-login-label { display: inline; }
}
.home-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(calc(100% - 2 * var(--gutter)), var(--page-width));
  margin-inline: auto;
  padding: 16px 0 22px;
  border-top: 1px solid #aacbc42e;
  color: #b8cdce;
  font-size: .875rem;
  text-align: center;
}
.home-footer span { color: #a6c1c2; white-space: nowrap; }
.install-popup:not([hidden]) {
  position: fixed;
  z-index: 10;
  inset: max(12px, env(safe-area-inset-top)) 0 auto;
  width: min(calc(100% - 24px), 460px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 16px 50px 16px 16px;
  border: 1px solid #3b635f;
  border-radius: 16px;
  background: #10272e;
  color: #eefaf6;
  box-shadow: 0 12px 38px #0008;
}
.install-popup img { border-radius: 11px; }
.install-popup-content h2 { font-size: 1rem; line-height: 1.3; }
.install-popup-content p { margin-top: 3px; color: #c3dbd6; font-size: .875rem; }
.install-popup .install-popup-action {
  grid-column: 2;
  justify-self: start;
  min-height: 44px;
  background: #b3f3dd;
  color: #092722;
}
.install-popup .install-popup-action:hover { background: #cefce9; }
.install-popup .install-popup-close {
  position: absolute;
  inset: 4px 4px auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: #eefaf6;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}
.install-popup .install-popup-close:hover { background: #28444b; }
.install-popup button:focus-visible { outline: 2px solid #eefaf6; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .install-popup:not([hidden]) { animation: install-slide-in .28s ease-out both; }
  @keyframes install-slide-in {
    from { transform: translateY(calc(-100% - 16px)); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
.home {
  display: grid;
  align-items: center;
  flex: 1;
  width: var(--hero-width);
  margin-inline: auto;
  padding-bottom: clamp(20px, 5vh, 56px);
}
.home picture {
  display: block;
  overflow: hidden;
  border: 1px solid #aacbc42e;
  border-radius: clamp(18px, 2.8vw, 36px);
  background: #10272e;
  box-shadow: 0 20px 55px #0005;
}
.home img {
  display: block;
  width: 100%;
  height: auto;
}
.admin { width: 100%; max-width: 1200px; padding: 42px 20px; margin: 0 auto; }
.admin-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.045em; }
.admin-header p, .notice, .empty { color: #526578; }
.admin-header p { margin-top: 7px; }
.login { width: min(100%, 480px); margin: auto; padding: 24px 20px; }
.login-card { display: grid; gap: 20px; padding: clamp(20px, 5vw, 32px); border: 1px solid #dce4ed; border-radius: 14px; background: #fff; }
.login-card h1 { font-size: clamp(1.65rem, 5vw, 2.1rem); }
.login-error { color: #9d2525; }
.logout button { background: #11283e; border-color: #567189; }
.logout button:hover { background: #24425a; }
.migration { margin-top: 20px; color: #526578; font-size: .9rem; }
.migration summary { cursor: pointer; width: fit-content; }
.migration form { margin-top: 12px; max-width: 520px; }
.import-actions { display: flex; flex-wrap: wrap; gap: 8px; }
button, input, select, textarea { font: inherit; }
button { padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; background: #125d50; color: #fff; font-weight: 650; cursor: pointer; }
button:hover { background: #0b493e; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #2177b8; outline-offset: 3px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 20px; }
.panel { background: #fff; border: 1px solid #dce4ed; border-radius: 13px; }
.stat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 106px;
  padding: clamp(12px, 2vw, 18px);
  border-radius: 10px;
  box-shadow: 0 3px 7px #182c4326;
  color: #fff;
  font-weight: 600;
}
.stat-total { background: #087383; }
.stat-open { background: #245cb8; }
.stat-active { background: #f5bd47; color: #402900; }
.stat-done { background: #196b44; }
.stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.12;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: clamp(28px, 4vw, 44px);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #0002;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  line-height: 1;
}
.filters, .fields { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.filters { padding: 16px; }
label { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #b9cadb; border-radius: 7px; color: inherit; background: #fff; }
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 16px; border-top: 1px solid #e6edf4; }
th { background: #f8fafc; font-size: .84rem; }
td { overflow-wrap: anywhere; }
#tickets tr > :first-child { box-shadow: inset 3px 0 transparent; }
#tickets tr:is(:hover, :focus-within) > td { background: #edf5ff; }
#tickets tr:is(:hover, :focus-within) > :first-child { box-shadow: inset 3px 0 #2973c5; }
@media (prefers-reduced-motion: no-preference) {
  #tickets td { transition: background-color 150ms ease, box-shadow 150ms ease; }
}
.ticket-link { background: transparent; color: #135b80; padding: 0; text-align: left; }
#tickets tr:is(:hover, :focus-within) .ticket-link { background: transparent; text-decoration: underline; }
.ticket-details { display: block; margin-top: 3px; color: #526578; }
.status, .priority { white-space: nowrap; border-radius: 20px; padding: 4px 10px; font-size: .82rem; }
.status { background: #e8f0f9; color: #244b72; }
.status[data-status="active"] { background: #fff1ce; color: #664b0a; }
.status[data-status="done"] { background: #dbf2e6; color: #176044; }
.priority { display: inline-block; font-weight: 650; background: #e9eef4; color: #38495d; }
.priority[data-priority="Normal"] { background: #dbeafe; color: #184c8a; }
.priority[data-priority="Yüksek"] { background: #ffedcc; color: #85420a; }
.priority[data-priority="Kritik"] { background: #ffe1e4; color: #952334; }
.empty { text-align: center; padding: 36px 16px; }
.notice { margin-top: 12px; font-size: .84rem; }
dialog { border: 1px solid #dce4ed; border-radius: 14px; width: min(530px, calc(100% - 32px)); color: inherit; padding: 22px; }
dialog::backdrop { background: #10283a91; }
#logout-confirmation[open]:not(:modal) {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-shadow: 0 0 0 100vmax #10283a91;
}
form { display: grid; gap: 15px; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields > [hidden] { display: none; }
footer { display: flex; justify-content: flex-end; gap: 8px; }
.secondary { background: #edf2f7; color: #213b52; }
.secondary:hover { background: #dde8f1; }
.back-home { display: block; padding: 9px 16px; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 650; }
#form-error { color: #9d2525; }
.admin-body { background: #f4f6f9; }
.admin-layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); flex: 1; }
.admin-sidebar { background: #252d38; color: #f3f5f8; }
.admin-sidebar .brand { padding: 16px; border-bottom: 1px solid #444c58; }
.admin-sidebar .mark { width: 36px; height: 36px; border-radius: 8px; }
.admin-sidebar .brand small { color: #b9c5d3; }
.admin-nav { display: grid; gap: 5px; margin: 16px 10px; }
.admin-nav a { display: block; border-radius: 6px; padding: 10px 14px; color: #d8e1ec; text-decoration: none; font-weight: 650; }
.admin-nav a:hover { background: #394555; color: #fff; }
.admin-nav a[aria-current="page"] { background: #175db7; color: #fff; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; padding: 10px 24px; background: #fff; border-bottom: 1px solid #dce4ed; font-weight: 650; }
.admin-topbar .logout button { background: #fff; color: #32465b; border-color: #c3cfdb; }
.admin-topbar .logout button:hover { background: #edf2f7; }
.admin-layout .admin { padding: 26px 24px 40px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.project-grid-editor { display: block; max-width: 560px; }
.project-back { color: #175db7; }
.project-error { margin-top: 16px; color: #9d2525; }
.project-card { display: grid; gap: 15px; padding: 18px; border-top: 3px solid #175db7; }
.project-card h2, .project-list h2 { font-size: 1.12rem; }
.project-list h2 { padding: 16px 18px; }
.project-list th[scope="row"] { background: #fff; font-size: inherit; overflow-wrap: anywhere; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-actions a, #no-projects a { color: #175db7; }
.project-actions .project-cancel {
  padding: 9px 16px;
  border: 1px solid #c3cfdb;
  border-radius: 8px;
  color: #213b52;
  font-weight: 650;
  text-decoration: none;
}
.project-action-cell { width: 1%; text-align: right; white-space: nowrap; }
.project-row-actions { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.project-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #b1caed;
  border-radius: 6px;
  background: #f1f6fe;
  color: #164c91;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.project-action:hover { background: #e0edff; border-color: #8baedf; }
.project-action-danger { background: #fff4f4; border-color: #edc0c3; color: #942b34; }
.project-action-danger:hover { background: #ffe4e6; border-color: #d9989d; }
.danger { background: #a2232b; }
.danger:hover { background: #821921; }
.project-notice { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: #dbf2e6; color: #176044; }
.password-card { display: grid; gap: 14px; max-width: 480px; margin-top: 20px; padding: 18px; }
.password-card button { justify-self: start; }
.password-hint { margin-top: -10px; color: #526578; font-size: .85rem; }
.password-notice { padding: 10px 14px; border-radius: 8px; background: #dbf2e6; color: #176044; }
@media (max-width: 1000px) {
  .admin-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .admin-layout .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .admin-sidebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .admin-sidebar .brand { border: 0; }
  .admin-nav { display: flex; flex-wrap: wrap; margin: 8px 10px; }
  .admin-topbar { min-height: 0; }
}
@media (max-width: 580px) {
  .admin { padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  table { min-width: 640px; }
  .project-list table { min-width: 0; }
  .project-list th, .project-list td { padding-inline: 10px; }
}
