:root {
  --navy: #0b1f33;
  --navy-2: #132c45;
  --navy-3: #1a3a58;
  --gold: #c4a35a;
  --gold-2: #dbb86c;
  --ink: #1c2430;
  --muted: #5b6775;
  --line: #d7dee7;
  --paper: #f3f6f9;
  --white: #ffffff;
  --ok: #1f7a4d;
  --err: #a33b3b;
  --warn: #9a6b16;
  --info: #2a5f8f;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 14px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196,163,90,.18), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 40%, #e8eef5 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11,31,51,.92);
  border-bottom: 1px solid rgba(196,163,90,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .85rem; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), #8d6b2f);
  color: var(--navy); font-weight: 700; font-family: var(--display); font-size: 1.15rem;
}
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.brand-text small { color: rgba(255,255,255,.7); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: .35rem 1rem; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,.86); font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-2); border-color: var(--gold); }
.header-user {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 200px;
  padding: .25rem .55rem .25rem .25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(196, 163, 90, .35);
}
.header-user .entity-thumb {
  width: 32px;
  height: 32px;
  font-size: .65rem;
}
.header-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  padding-right: .25rem;
}
.header-user-meta strong {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.header-user-meta small {
  font-size: .68rem;
  color: rgba(240, 215, 138, .95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.header-logout {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.header-logout .btn { margin: 0; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: .4rem .65rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 600; cursor: pointer;
  transition: .2s ease; font-family: inherit;
}
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(196,163,90,.35); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-ghost { background: #e8eef5; color: var(--navy); }
.btn-wa {
  background: #1faa55;
  color: #fff;
}
.btn-wa:hover {
  background: #188f47;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 170, 85, .28);
}

.hero {
  position: relative; min-height: calc(100vh - 76px);
  display: grid; align-items: center;
  background:
    linear-gradient(120deg, rgba(11,31,51,.92) 12%, rgba(11,31,51,.72) 48%, rgba(11,31,51,.45)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a35a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--navy), var(--navy-3));
  color: #fff; overflow: hidden;
}
.hero-inner { padding: 5rem 0 4rem; max-width: 720px; }
.hero-brand { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 .6rem; letter-spacing: .02em; }
.hero h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1rem; line-height: 1.2; }
.hero p { font-size: 1.08rem; color: rgba(255,255,255,.84); max-width: 34rem; margin: 0 0 1.6rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-accent {
  position: absolute; right: -4%; top: 8%; width: min(52vw, 560px); height: min(52vw, 560px);
  border: 0;
  border-radius: 46% 54% 48% 52%;
  background:
    radial-gradient(circle at 35% 35%, rgba(196,163,90,.28), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.06), transparent 55%);
  filter: blur(2px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}
@keyframes drift { from { transform: rotate(0deg) translateY(0); } to { transform: rotate(8deg) translateY(18px); } }

.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .5rem; color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature {
  background: rgba(255,255,255,.72); border: 1px solid rgba(19,44,69,.08);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem;
  display: grid; place-items: center; background: rgba(196,163,90,.15); color: var(--navy); font-weight: 700;
}
.feature h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.campaign-tile {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.4rem;
  position: relative; overflow: hidden; min-height: 180px;
}
.campaign-tile::after {
  content: ""; position: absolute; right: -20px; bottom: -20px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(196,163,90,.2);
}
.campaign-tile .pct { font-family: var(--display); font-size: 2.4rem; color: var(--gold-2); margin: 0; }
.campaign-tile h3 { margin: .3rem 0; font-size: 1.1rem; }
.campaign-tile p { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .4rem; }
.page-hero p { margin: 0; color: rgba(255,255,255,.75); }

.prose {
  background: #fff;
  color: #1c2430;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  line-height: 1.7;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--display);
  color: #0b1f33;
}
.prose p, .prose li, .prose span, .prose td {
  color: #334155;
}

.form-card, .data-card {
  background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
  border: 1px solid rgba(19,44,69,.06);
}
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--navy-2); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem;
  font: inherit; background: #fff; margin-bottom: .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(196,163,90,.45); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.profession-picker {
  margin-bottom: 1rem;
  padding: .95rem 1rem 1.05rem;
  border: 1.5px solid #d5dde6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.profession-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .75rem;
  margin-bottom: .75rem;
}
.profession-picker-head strong {
  font-size: .88rem;
  font-weight: 700;
  color: #0b1f33;
}
.profession-picker-head span {
  font-size: .78rem;
  color: #5b6775;
  line-height: 1.35;
}
.profession-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.profession-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.profession-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.profession-chip span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.15rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.25;
  color: #132c45;
  background: #fff;
  border: 1.5px solid #cfd8e3;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.profession-chip span::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 1.5px solid #9aabb8;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.profession-chip:hover span {
  border-color: #c4a35a;
  box-shadow: 0 4px 14px rgba(11,31,51,.08);
  transform: translateY(-1px);
}
.profession-chip input:checked + span {
  background: linear-gradient(135deg, #0b1f33 0%, #132c45 100%);
  border-color: #c4a35a;
  color: #f8f4ea;
  box-shadow: 0 6px 18px rgba(11,31,51,.2);
}
.profession-chip input:checked + span::before {
  background: #c4a35a;
  border-color: #c4a35a;
  box-shadow: inset 0 0 0 2px #0b1f33;
}
.profession-chip input:focus-visible + span {
  outline: 2px solid #c4a35a;
  outline-offset: 2px;
}

input.tc-field { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
input.tc-field.is-tc-wait { border-color: #c4a35a; margin-bottom: .35rem; }
input.tc-field.is-tc-valid {
  border-color: #1f7a4d;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, .18);
  margin-bottom: .35rem;
}
input.tc-field.is-tc-invalid {
  border-color: #a33b3b;
  box-shadow: 0 0 0 3px rgba(163, 59, 59, .16);
  margin-bottom: .35rem;
}
input.tc-field.is-tc-valid:focus,
input.tc-field.is-tc-invalid:focus,
input.tc-field.is-tc-wait:focus { outline: none; }
.tc-validate-hint {
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 1.2em;
}
.tc-validate-hint.is-ok { color: #1f7a4d; }
.tc-validate-hint.is-err { color: #a33b3b; }
.tc-validate-hint.is-wait { color: #7a8794; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.badge { display: inline-flex; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-ok { background: #e5f6ec; color: var(--ok); }
.badge-warn { background: #fff3d8; color: var(--warn); }
.badge-danger { background: #fde8e8; color: var(--err); }
.badge-info { background: #e7f1fb; color: var(--info); }
.badge-muted { background: #eef1f5; color: var(--muted); }

.flash { margin: 1rem auto; padding: .85rem 1rem; border-radius: 10px; width: min(1120px, calc(100% - 2rem)); }
.flash-ok { background: #e5f6ec; color: var(--ok); }
.flash-err { background: #fde8e8; color: var(--err); }

/* Footer arka planı sabit navy — a11y-dark --navy'yi açığa çevirince beyaz-üzerine-beyaz olmasın */
.site-footer {
  background: #0b1f33;
  color: rgba(255, 255, 255, .88);
  margin-top: 3rem;
  padding: 3rem 0 1.2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3, .site-footer h4 {
  color: #fff;
  font-family: var(--display);
  margin: 0 0 .7rem;
}
.site-footer p,
.site-footer span {
  color: rgba(255, 255, 255, .82);
}
.site-footer a {
  display: block;
  margin: .35rem 0;
  color: rgba(255, 255, 255, .82);
}
.site-footer a:hover { color: #f0d78a; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
}

.auth-body { min-height: 100vh; background: var(--navy); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside {
  padding: 3rem; color: #fff;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(196,163,90,.25), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-3));
  display: flex; flex-direction: column; justify-content: center;
}
.auth-aside h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 2rem 0 1rem; }
.auth-panel { background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
.auth-panel .form-card { max-width: 460px; width: 100%; margin: 0 auto; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; font-size: .9rem; }

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.field-label-row label { margin-bottom: 0; }
.field-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-2, #132c45);
  text-decoration: none;
  white-space: nowrap;
}
.field-link:hover { color: var(--gold, #c4a35a); text-decoration: underline; }

.password-field {
  position: relative;
  display: block;
  margin-bottom: .9rem;
}
.password-field input {
  width: 100%;
  padding-right: 3rem;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}
/* Tarayıcının kendi şifre/göster ikonunu gizle */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}
.password-toggle {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5b6775;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  line-height: 0;
}
.password-toggle:hover {
  color: var(--navy, #0b1f33);
  background: rgba(11, 31, 51, .06);
}
.password-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: none;
  flex-shrink: 0;
}
.password-toggle .eye-open { display: block; }
.password-toggle.is-on .eye-open { display: none; }
.password-toggle.is-on .eye-closed { display: block; }
.password-toggle svg[hidden] { display: none !important; }
.password-toggle.is-on {
  color: var(--navy, #0b1f33);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}
.contact-map {
  background: linear-gradient(145deg, #fff4c8, #c4a35a, #8d6b2f, #f0d78a);
  box-shadow: 0 18px 40px rgba(11, 31, 51, .16);
}
.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 42vh;
  border: 0;
  border-radius: 15px;
  background: #e8eef5;
}
.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .55rem;
}
.footer-contact-actions a {
  display: inline-block;
  margin: 0 !important;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 163, 90, .55);
  color: #f0d78a !important;
  font-size: .85rem;
  font-weight: 600;
}
.footer-contact-actions a:hover {
  background: rgba(196, 163, 90, .18);
}

.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.05rem .75rem .85rem;
  border-radius: 999px;
  background: #1faa55;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 94, 48, .28);
  transition: transform .18s ease, background .18s ease;
}
.wa-float:hover {
  background: #188f47;
  transform: translateY(-2px);
  color: #fff;
}
.wa-float svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .wa-float span { display: none; }
  .wa-float {
    padding: .85rem;
    border-radius: 50%;
  }
}

.ref-item { display: flex; gap: 1rem; align-items: center; }
.ref-logo {
  width: 64px; height: 64px; border-radius: 12px; background: var(--paper);
  display: grid; place-items: center; font-weight: 700; color: var(--navy); flex-shrink: 0;
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .footer-grid, .form-row, .auth-shell { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 76px;
    background: var(--navy-2); padding: 1rem; border-radius: 12px; flex-direction: column; align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .hero-accent { display: none; }
  .auth-aside { min-height: 240px; padding: 2rem; }
}
