* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(900px 420px at -10% -10%, rgba(232, 122, 46, .18), transparent 60%),
    radial-gradient(700px 380px at 110% 0%, rgba(36, 86, 140, .16), transparent 55%),
    linear-gradient(180deg, #f7f1e6 0%, #efe6d6 100%);
  color: #1b2430;
  font-size: 16px;
  min-height: 100vh;
}
a { color: #c45116; text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  background: linear-gradient(110deg, #152033 0%, #24344c 55%, #3a2a22 100%);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(21, 32, 51, .28);
  border-bottom: 4px solid #e8893a;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
}
.brand span {
  background: linear-gradient(90deg, #ffd08a, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.nav a {
  color: #f7f1e8;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.nav a.aktif {
  background: linear-gradient(180deg, #ffb15a, #e36a22);
  color: #fff;
  box-shadow: 0 4px 12px rgba(227, 106, 34, .45);
  text-decoration: none;
}
.kim {
  color: #ffe7c7;
  font-size: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px;
  border-radius: 999px;
}
.wrap { width: 100%; max-width: none; margin: 0; padding: 22px 20px 48px; }
h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.3px; }
h2 { margin: 0 0 12px; font-size: 20px; }
.alt { color: #5c6672; margin: 0 0 18px; }
.kartlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kart {
  border-radius: 16px;
  padding: 16px 16px 14px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(28, 40, 60, .16);
  position: relative;
  overflow: hidden;
  min-height: 108px;
}
.kart:after {
  content: "";
  position: absolute;
  right: -20px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.kart b { display: block; font-size: 34px; line-height: 1; position: relative; z-index: 1; }
.kart span { display: block; margin-top: 8px; font-size: 14px; opacity: .95; position: relative; z-index: 1; }
.k1 { background: linear-gradient(145deg, #24568c, #16365c); }
.k2 { background: linear-gradient(145deg, #e8893a, #c45116); }
.k3 { background: linear-gradient(145deg, #1f8a62, #146246); }
.k4 { background: linear-gradient(145deg, #7a3eae, #4d2478); }
.panel {
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(36, 28, 18, .08);
  border: 1px solid rgba(255,255,255,.8);
}
.panel h2 {
  padding-left: 12px;
  border-left: 4px solid #e8893a;
}
.satir { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: #44505c; margin-bottom: 4px; font-weight: 700; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%;
  border: 1px solid #e2d3bf;
  background: #fffdf9;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #e8893a;
  box-shadow: 0 0 0 3px rgba(232, 137, 58, .22);
}
textarea { min-height: 90px; resize: vertical; }
.alan { flex: 1; min-width: 160px; }
.dar { flex: 0 0 160px; }
button, input[type=submit], .btn {
  display: inline-block;
  background: linear-gradient(180deg, #f29a45, #d85a1c);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(216, 90, 28, .28);
}
input[type=submit].ikincil, button.ikincil, .btn.ikincil {
  background: linear-gradient(180deg, #3d5270, #24344c);
  box-shadow: 0 6px 14px rgba(36, 52, 76, .25);
}
input[type=submit].soluk, button.soluk, .btn.soluk {
  background: #fff;
  color: #24344c;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.4);
}
button:hover, input[type=submit]:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid #f0e4d4; vertical-align: top; }
th {
  font-size: 12px;
  color: #8a5a32;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tr:hover td { background: #fff6ea; }
.rozet {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe6da;
  font-size: 13px;
  font-weight: 700;
}
.rozet.yesil { background: #dff6e8; color: #127246; }
.rozet.turuncu { background: #ffe4cc; color: #b34a0d; }
.rozet.gri { background: #eceff3; color: #54616d; }
.uyari { background: #fff4e8; border: 1px solid #f0c9a4; color: #7a3e10; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.ok { background: #e8f8ee; border: 1px solid #b7e3c6; color: #146b3a; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
body.giris {
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(255, 176, 90, .45), transparent 60%),
    radial-gradient(500px 280px at 85% 80%, rgba(36, 86, 140, .45), transparent 55%),
    linear-gradient(145deg, #1a2740 0%, #3a2418 100%);
}
.giris-kutu {
  max-width: 440px;
  margin: 12vh auto;
  background: rgba(255,255,255,.96);
  border-radius: 22px;
  padding: 32px 30px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  border-top: 6px solid #e8893a;
}
.giris-kutu h1 { font-size: 34px; }
.giris-marka { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #e8893a; font-weight: 800; margin: 0 0 6px; }
.iki { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
.panel, .liste-kutu, .kartlar { width: 100%; }
.bos { color: #6b7480; padding: 8px 0; }
.sayfa-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sayfa-bas .alt { margin-bottom: 0; }
.liste-kutu { padding: 0; overflow: hidden; }
.arac {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff, #fffaf4);
  border-bottom: 1px solid #f0e4d4;
}
.ara-kutu { flex: 1; min-width: 220px; }
.arac select { width: auto; min-width: 160px; }
.sayac { margin-left: auto; color: #8a5a32; font-size: 13px; font-weight: 700; }
.form-serit { border-top: 4px solid #e8893a; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
table.crm { width: 100%; }
table.crm th { background: #fbf6ef; padding: 12px 14px; }
table.crm td { padding: 14px; }
tr.satir-link { cursor: pointer; }
tr.satir-link:hover td { background: #fff4e6; }
.kisi { display: flex; align-items: center; gap: 12px; }
.kisi b { display: block; color: #1b2430; }
.kisi small { display: block; color: #6d7782; font-size: 13px; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; letter-spacing: .02em;
  background: linear-gradient(145deg, #24568c, #e8893a);
  flex: 0 0 40px;
}
.sag { text-align: right; width: 72px; }
a.ac {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0d2b4;
  color: #c45116;
  font-weight: 700;
  font-size: 13px;
}
a.ac:hover { background: #fff1e4; text-decoration: none; }
.bos-kutu {
  margin: 28px 20px 36px;
  border: 1px dashed #e2c7a4;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf4, #fff);
}
.bos-kutu b { display: block; font-size: 18px; margin-bottom: 6px; }
.bos-kutu span { color: #6d7782; }
.modal-perde {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, .48);
  z-index: 30;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-perde.acik { display: flex; }
.modal-kutu {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  border-top: 5px solid #e8893a;
}
.modal-bas { display: flex; align-items: center; justify-content: space-between; }
.modal-bas h2 { margin: 0 0 12px; }
.modal-x {
  background: #f4efe7;
  color: #24344c;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.sayfalama { display: flex; gap: 12px; align-items: center; padding: 12px 16px 16px; }
table.crm select { width: auto; min-width: 150px; }
@media (max-width: 800px) {
  .kartlar, .iki { grid-template-columns: 1fr 1fr; }
  .dar { flex: 1 1 140px; }
  .top { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kartlar, .iki { grid-template-columns: 1fr; }
  .sayac { margin-left: 0; }
}
