:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --ink: #151918;
  --muted: #606866;
  --teal: #2e7068;
  --line: #d9ddda;
  --command: #151918;
  --command-text: #ffffff;
  --soft-teal: #e7f3f0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101412;
  --panel: #191e1c;
  --ink: #f2f5f3;
  --muted: #aeb8b4;
  --teal: #70bdb1;
  --line: #37403c;
  --command: #f2f5f3;
  --command-text: #101412;
  --soft-teal: #173a35;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 160ms ease, color 160ms ease;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: max(18px, calc((100vw - 820px) / 2));
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.theme-toggle-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: 2px; }
:root[data-theme="dark"] .brand-logo {
  filter: invert(1) hue-rotate(170deg);
  mix-blend-mode: screen;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.bar, main, footer {
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  padding: 10px 0 14px;
}

.brand {
  display: block;
  width: 150px;
  height: 101px;
  text-decoration: none;
}

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

nav a, footer a { color: var(--teal); font-weight: 650; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header-account-link {
  padding: 7px 11px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  text-decoration: none;
}

.header-link {
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
}

.home-header {
  width: min(760px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 16px;
}

.home-header .brand { grid-column: 2; justify-self: center; }
.home-header .header-actions { grid-column: 3; justify-self: end; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.header-actions .theme-toggle {
  position: static;
  flex: 0 0 auto;
  box-shadow: none;
}

main { padding: 42px 0 64px; }

.home-main {
  width: min(760px, calc(100% - 36px));
  min-height: 0;
  padding: 24px 0 56px;
}

.home-intro {
  max-width: 650px;
  margin: 0 auto;
  padding: 24px 0 40px;
  text-align: center;
}

.home-slogan {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
}

.home-main h1 {
  margin-bottom: 14px;
  font-size: 44px;
}

.home-lead {
  max-width: 610px;
  margin: 0 auto;
  font-size: 17px;
}

.home-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.home-section-heading {
  margin-bottom: 20px;
}

.home-section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.home-section-heading p {
  margin: 5px 0 0;
}

.home-scene-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1212 / 768;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  object-fit: contain;
}

.home-scene-video.is-wide {
  aspect-ratio: 1842 / 768;
}

.home-flow {
  border-top: 1px solid var(--line);
}

.home-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.home-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal);
  font-weight: 800;
}

.home-step h3 {
  margin: 0;
  font-size: 17px;
}

.home-step p {
  margin: 2px 0 0;
}

.home-service p {
  margin: 0 0 12px;
}

.home-service strong {
  font-size: 14px;
}

.app-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.app-download h2 { margin: 0; font-size: 26px; }
.app-download p:last-child { margin: 9px 0 0; }

.app-download-options {
  display: grid;
  grid-template-columns: repeat(2, 168px);
  gap: 12px;
}

.app-download-placeholder {
  display: grid;
  width: 168px;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.app-download-placeholder span { font-size: 13px; font-weight: 800; }

h1 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.12;
}

h2 { margin-top: 34px; font-size: 21px; }

p, li { color: var(--muted); }

.status {
  border-left: 4px solid var(--teal);
  padding: 14px 16px;
  background: var(--panel);
}

.status[hidden] { display: none; }

.status-error { border-left-color: #b42318; color: #7a271a; }

.status-success { border-left-color: var(--teal); color: #215f57; }

:root[data-theme="dark"] .status-error { color: #ffaaa3; }
:root[data-theme="dark"] .status-success { color: #8fd5ca; }
:root[data-theme="dark"] .data-badge { background: var(--soft-teal); color: var(--teal); }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  border-color: var(--command);
  background: var(--command);
  color: var(--command-text);
}

.support-public {
  max-width: 620px;
}

.support-lead {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 17px;
}

.support-channel {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.support-channel:last-of-type {
  border-bottom: 1px solid var(--line);
}

.support-channel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.support-channel p {
  margin: 0;
}

.support-channel .button {
  border-radius: 6px;
}

.auth-page { max-width: 560px; }

.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.confirmation-actions .button { min-width: 180px; min-height: 48px; font: inherit; font-weight: 700; text-align: center; border-radius: 6px; cursor: pointer; }
.confirmation-actions .button:disabled { opacity: 0.65; cursor: wait; }
.confirmation-actions .button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-form label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.auth-form input:not([type="checkbox"]),
.support-form textarea {
  background: var(--panel);
}

.auth-form input:not([type="checkbox"]):focus {
  border-color: var(--teal);
  outline: 2px solid rgba(46, 112, 104, 0.2);
  outline-offset: 1px;
}

.password-visibility {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
}

.password-visibility input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.password-visibility:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-button {
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.text-button:disabled { cursor: not-allowed; opacity: 0.55; }

.portal-page {
  width: min(680px, calc(100% - 36px));
  min-height: calc(100vh - 230px);
  padding-top: 34px;
}

.auth-shell {
  width: min(480px, 100%);
  margin: 18px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.portal-toolbar,
.section-heading,
.order-card-heading,
.order-meta,
.data-row-heading,
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-toolbar,
.section-heading {
  flex-direction: column;
  align-items: flex-start;
}

.portal-title { margin-bottom: 3px; font-size: 30px; }
.portal-updated { margin: 0; font-size: 13px; }

.portal-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.icon-command {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.icon-command:disabled { cursor: wait; opacity: 0.55; }

.compact-button {
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 28px 0 22px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}

.portal-tab {
  flex: 1 1 105px;
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.portal-tab.is-active {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.portal-loading {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-weight: 700;
}

.portal-section { padding: 4px 0 30px; }
.section-heading { margin: 8px 0 16px; align-items: flex-start; }
.section-heading h2 { margin: 0; font-size: 23px; }
.section-heading .eyebrow { margin-bottom: 2px; }

.order-list,
.data-list {
  display: grid;
  gap: 10px;
}

.order-card,
.data-row,
.support-form,
.profile-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.order-card { padding: 16px; border-left: 5px solid var(--teal); }
.order-card.status-cancelled { border-left-color: #b42318; }
.order-card.status-delivered { border-left-color: #16803c; }

.order-card-heading { align-items: flex-start; }
.order-card-heading > div { display: grid; gap: 2px; }
.order-number { font-size: 16px; }
.order-date { color: var(--muted); font-size: 12px; font-weight: 650; }

.order-status {
  max-width: 210px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #e8f3f0;
  color: #215f57;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.status-cancelled .order-status { background: #fff0ee; color: #9f241a; }
.status-delivered .order-status { background: #e9f7ed; color: #146c35; }

.order-meta {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.order-meta strong { color: var(--ink); font-size: 15px; }

.order-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 12px 0 6px;
  padding: 0;
  list-style: none;
}

.order-timeline li {
  position: relative;
  min-height: 34px;
  padding: 5px 0 5px 30px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.order-timeline li::before {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  content: "";
  transform: translateX(-50%);
}

.order-timeline li:not(:first-child)::after {
  position: absolute;
  top: -18px;
  right: auto;
  left: 7px;
  width: 2px;
  height: 28px;
  background: var(--line);
  content: "";
}

.order-timeline li.is-complete::before,
.order-timeline li.is-current::before { border-color: var(--teal); background: var(--teal); }
.order-timeline li.is-complete::after,
.order-timeline li.is-current::after { background: var(--teal); }
.order-timeline li.is-current { color: var(--ink); }
.order-timeline li.is-cancelled::before { border-color: #b42318; background: #b42318; }

.activity-list { margin-top: 14px; border-top: 1px solid var(--line); }
.activity-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.activity-row:last-child { border-bottom: 0; }
.activity-row time { flex: 0 0 auto; color: var(--muted); }

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.segmented-control button {
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.segmented-control button.is-active { background: var(--command); color: var(--command-text); }

.data-row { padding: 14px 16px; }
.data-row p { margin: 7px 0 0; font-size: 13px; }
.data-row-heading { align-items: flex-start; }
.data-row-heading time { color: var(--muted); font-size: 11px; }

.data-badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: #e8f3f0;
  color: #215f57;
  font-size: 11px;
  font-weight: 800;
}

.support-form { display: grid; gap: 8px; padding: 16px; margin-bottom: 24px; }
.support-form label { font-size: 14px; font-weight: 750; }
.support-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}
.support-form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(46, 112, 104, 0.2); }
.form-footer span { color: var(--muted); font-size: 12px; }
.compact-submit { width: auto; min-width: 110px; margin: 0; }
.list-title { margin: 0 0 10px; font-size: 16px; }

.profile-details { margin: 0 0 16px; padding: 0 16px; }
.profile-details div { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-details div:last-child { border-bottom: 0; }
.profile-details dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile-details dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }

.empty-state {
  padding: 26px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}
.empty-state p { margin: 5px 0 0; font-size: 13px; }

@media (max-width: 700px) {
  h1 { font-size: 32px; }
  .bar { padding-top: 8px; }
  .theme-toggle { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 18px; }
  .brand { width: 140px; height: 94px; }
  .home-header { gap: 12px; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
  .home-header .brand { width: 120px; height: 80px; flex: 0 0 auto; }
  .header-actions { gap: 8px; }
  .header-actions .button { min-height: 38px; padding: 7px 10px; }
  .home-main { width: min(100% - 28px, 760px); padding-top: 16px; }
  .home-intro { padding: 18px 0 30px; }
  .home-main h1 { font-size: 32px; }
  .home-lead { font-size: 15px; }
  .home-section { padding: 28px 0; }
  .app-download { grid-template-columns: 1fr; gap: 20px; }
  .app-download-options { grid-template-columns: repeat(2, minmax(0, 168px)); }
  .app-download-placeholder { width: 100%; }
  .portal-page { width: min(100% - 24px, 680px); padding-top: 22px; }
  .auth-shell { padding: 20px; }
  .portal-toolbar { align-items: flex-start; }
  .portal-title { font-size: 25px; }
  .compact-button { padding-inline: 9px; font-size: 13px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .view-link { padding-left: 0; }
  .order-card-heading { gap: 9px; }
  .order-status { max-width: 145px; font-size: 10px; }
  .site-nav { gap: 9px; }
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.brand-attribution {
  margin-left: 6px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  /* 2026-11-21: tema düğmesi solda, Giriş sağda; logoyla aynı satır (kullanıcı kararı). */
  .home-header { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 8px; padding: 6px 0 8px; }
  .home-header .brand { width: 104px; height: 70px; }
  .home-header .header-actions { display: contents; }
  .home-header .header-actions .theme-toggle { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; width: 36px; height: 36px; }
  .home-header .header-actions .button { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; min-height: 36px; padding: 6px 12px; font-size: 13px; }
}