/* FAZ 2 sürümü: 20260708 */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --ink: #17211d;
  --muted: #68736f;
  --line: #dce5df;
  --green: #2f7d57;
  --green-dark: #1f5f40;
  --amber: #c17b25;
  --red: #b94444;
  --blue: #356a9a;
  --teal: #2b8179;
  --shadow: 0 18px 45px rgba(26, 42, 34, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

body.login-active .app-shell {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  background: #17211d;
  color: #f8fffb;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #72c79c;
  color: #102018;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.team-mini small,
.team-mini span {
  color: rgba(248, 255, 251, 0.68);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(248, 255, 251, 0.78);
  text-align: left;
  padding: 9px 11px;
}

.nav-item span:first-child {
  font-size: 19px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.team-mini {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.team-mini strong,
.team-mini small {
  display: block;
  margin-top: 4px;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.18;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
}

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

.header-scan-button {
  position: absolute;
  top: 14px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  color: #17211d;
  font-size: 26px;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.12);
}

.header-scan-button::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid #27ccd2;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 10px;
  opacity: 0.75;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button,
.ghost-button,
.primary-button {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}

.ghost-button {
  min-height: 38px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 700;
}

.primary-button {
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 29px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
}

.dashboard-grid,
.workspace,
.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  gap: 14px;
}

.treatment-layout {
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.large-panel {
  min-height: 360px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.compact-heading {
  align-items: flex-end;
}

select,
textarea,
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

select,
input[type="number"] {
  height: 42px;
  padding: 0 10px;
}

textarea {
  resize: vertical;
  padding: 10px;
}

.priority-list,
.animal-list,
.timeline,
.public-notes {
  display: grid;
  gap: 10px;
}

.priority-item,
.animal-row,
.timeline-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.priority-top,
.animal-row-top,
.detail-top,
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge.warn {
  background: #fff0da;
  color: #92550f;
}

.badge.danger {
  background: #ffe5e5;
  color: #9d2f2f;
}

.badge.blue {
  background: #e4eff8;
  color: #245a86;
}

.species-bars {
  display: grid;
  gap: 13px;
}

.bar-row span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e7eee9;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.list-panel {
  max-height: calc(100vh - 150px);
  overflow: hidden;
}

.animal-list {
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
}

.animal-row {
  grid-template-columns: 42px 1fr;
  align-items: center;
  border-color: transparent;
  background: #f7faf8;
}

.animal-row:hover,
.animal-row.selected {
  border-color: rgba(47, 125, 87, 0.32);
  background: #eef7f2;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #d9ece2;
  color: var(--green-dark);
  font-weight: 900;
}

.photo-avatar {
  object-fit: cover;
}

.animal-photo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.12);
}

.animal-row button {
  display: contents;
}

.muted {
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.animal-visual {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d8eee1, #f4f9f6);
  border: 1px solid var(--line);
}

.animal-visual svg {
  width: 72px;
  height: 72px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.info-cell {
  padding: 10px;
  border-radius: 8px;
  background: #f7faf8;
}

.info-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-cell strong {
  display: block;
  margin-top: 4px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.treatment-form {
  display: grid;
  gap: 13px;
}

.treatment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.inventory-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.inventory-table-wrap.is-dragging {
  cursor: grabbing;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.inventory-table th,
.inventory-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.inventory-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.stock-meter {
  width: 120px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eee9;
}

.stock-meter span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.stock-meter.low span {
  background: var(--red);
}

.public-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f4 100%);
}

.qr-box {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 16px 0;
  border: 8px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #17211d 10px, transparent 10px) 0 0 / 28px 28px,
    linear-gradient(#17211d 10px, transparent 10px) 0 0 / 28px 28px,
    #dfece4;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-image {
  width: 132px;
  height: 132px;
  margin: 16px 0;
  border: 8px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.12);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #17211d;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  place-items: center;
  padding: 18px;
  background: rgba(17, 27, 22, 0.46);
}

.modal.open {
  display: grid;
}

.modal-box {
  position: relative;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px;
  }

  .brand,
  .team-mini {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 54px;
    padding: 7px 4px;
    text-align: center;
    font-size: 12px;
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .top-actions {
    display: grid;
    width: 100%;
  }

  .top-actions {
    grid-template-columns: 1fr 44px;
  }

  .search-wrap {
    min-width: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .workspace,
  .public-layout,
  .treatment-layout {
    grid-template-columns: 1fr;
  }

  .list-panel {
    max-height: none;
  }

  .animal-list {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 22px;
  }

  .metrics-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .animal-visual {
    width: 100%;
  }

  .nav-item span:last-child {
    display: none;
  }
}

/* Mobile app skin inspired by the provided Figma reference */
body {
  display: grid;
  place-items: center;
  background: #0b0b0b;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 900px);
  min-height: min(100vh, 900px);
  display: block;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 10px solid #111;
  border-radius: 42px;
  background: linear-gradient(180deg, #eaffff 0%, #f8f1e9 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.sidebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: block;
  padding: 0;
  background: transparent;
  color: #fff;
}

.brand,
.team-mini {
  display: none;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  padding: 10px 10px 16px;
  border-radius: 22px 22px 0 0;
  background: #27ccd2;
  box-shadow: 0 -10px 25px rgba(23, 33, 29, 0.12);
}

.nav-item {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 50px;
  padding: 5px 2px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  text-align: center;
}

.nav-item span:first-child {
  font-size: 22px;
  line-height: 1;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.main {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px 16px 98px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.topbar {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 68px;
}

.topbar::before {
  content: "9:41";
  display: block;
  color: #0f1714;
  font-size: 13px;
  font-weight: 800;
}

.topbar h1 {
  max-width: 250px;
  font-size: 27px;
  line-height: 1.18;
}

.top-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-right: 0;
}

.search-wrap {
  min-width: 0;
  height: 54px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.16);
}

.scan-panel {
  display: grid;
  gap: 16px;
  text-align: center;
}

.scan-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 8px auto;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(39, 204, 210, 0.22) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(39, 204, 210, 0.18) 1px, transparent 1px) 0 0 / 26px 26px,
    #f2ffff;
  box-shadow: inset 0 0 0 1px rgba(39, 204, 210, 0.2), 0 12px 30px rgba(40, 70, 65, 0.12);
}

.scan-visual::before,
.scan-visual::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: #27ccd2;
  border-style: solid;
}

.scan-visual::before {
  top: 18px;
  left: 18px;
  border-width: 4px 0 0 4px;
  border-radius: 14px 0 0 0;
}

.scan-visual::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 14px 0;
}

.scan-chip {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #17211d;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 10px 25px rgba(23, 33, 29, 0.28);
}

.scan-line {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 52px;
  height: 3px;
  border-radius: 999px;
  background: #27ccd2;
  box-shadow: 0 0 18px rgba(39, 204, 210, 0.8);
  animation: scanMove 1.7s ease-in-out infinite alternate;
}

@keyframes scanMove {
  from { transform: translateY(0); }
  to { transform: translateY(74px); }
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.12);
}

.panel,
.metric,
.priority-item,
.animal-row,
.timeline-item,
.info-cell {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
}

.panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 116px;
  padding: 14px;
}

.metric strong {
  font-size: 25px;
}

.dashboard-grid,
.workspace,
.public-layout,
.treatment-layout {
  grid-template-columns: 1fr;
}

.large-panel {
  min-height: auto;
}

.feature-panel {
  margin-top: 14px;
}

.feature-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-card,
.soft-action {
  min-height: 118px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
  padding: 14px;
  color: var(--ink);
  text-align: left;
}

.feature-card strong,
.soft-action {
  font-weight: 900;
}

.feature-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.area-grid {
  display: grid;
  gap: 10px;
}

.area-card {
  padding: 13px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
  cursor: pointer;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.area-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #e7fbfb;
  color: #168c92;
  font-size: 11px;
  font-weight: 900;
}

.list-panel,
.animal-list {
  max-height: none;
  overflow: visible;
}

.animal-list {
  padding-right: 0;
}

.animal-row {
  background: #fff;
}

.detail-hero {
  grid-template-columns: 78px 1fr;
}

.animal-visual {
  width: 78px;
  height: 78px;
}

.animal-visual svg {
  width: 64px;
  height: 64px;
}

.quick-actions,
.mini-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mini-tab {
  min-height: 36px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #edf7f5;
  color: var(--green-dark);
  font-weight: 800;
}

.mini-tab.active {
  background: #27ccd2;
  color: #fff;
}

.operations-stack {
  display: grid;
  gap: 14px;
}

.operation-content {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

select,
textarea,
input[type="number"] {
  border-radius: 14px;
}

.primary-button {
  border-radius: 16px;
  background: #27ccd2;
  box-shadow: 0 8px 18px rgba(39, 204, 210, 0.28);
}

.ghost-button {
  border: 0;
  border-radius: 14px;
}

.inventory-table {
  min-width: 980px;
}

.modal-box {
  border-radius: 22px;
}

.touch-cursor {
  display: none !important;
}

.touch-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 58% 66%, #5e5e5e 0%, #434343 58%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.22),
    inset 0 -4px 7px rgba(0, 0, 0, 0.28),
    0 4px 9px rgba(0, 0, 0, 0.24);
}

.touch-cursor::after {
  display: none;
}

.app-shell.touch-mode,
.app-shell.touch-mode * {
  cursor: auto;
}

.touch-cursor.visible {
  opacity: 1;
}

.app-shell.drag-scrolling {
  user-select: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #050505;
}

body:not(.login-active) .login-screen {
  display: none;
}

.login-phone {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 900px);
  overflow: hidden;
  border: 10px solid #111;
  border-radius: 42px;
  background: linear-gradient(180deg, #eaffff 0%, #fff8f1 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 34px 26px;
}

.login-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  height: 30px;
  border-radius: 0 0 20px 20px;
  background: #111;
  transform: translateX(-50%);
}

.login-status {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
}

.login-back {
  margin-top: 34px;
  border: 0;
  background: transparent;
  color: #101615;
  font-weight: 900;
  font-size: 17px;
}

.login-form {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(256px, calc(100% - 70px));
  gap: 12px;
  transform: translate(-50%, -34%);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  padding: 0 18px;
  box-shadow: 0 7px 13px rgba(38, 55, 51, 0.15);
}

.password-row {
  position: relative;
}

.password-row span {
  position: absolute;
  right: 16px;
  top: 50%;
  color: #777;
  transform: translateY(-50%);
}

.role-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.role-option {
  min-height: 32px;
  border: 1px solid rgba(39, 204, 210, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #27aab0;
  font-size: 12px;
  font-weight: 900;
}

.role-option.active {
  background: #27ccd2;
  color: #fff;
}

.login-button {
  min-height: 40px;
  border: 0;
  border-radius: 15px;
  background: #27ccd2;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(39, 204, 210, 0.28);
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #19c1c7;
  font-size: 11px;
  font-weight: 900;
}

.login-links a {
  color: inherit;
  text-decoration: none;
}

.signup-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  text-align: center;
  font-size: 13px;
}

.signup-copy strong {
  color: #19c1c7;
}

.employee-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.employee-stat,
.employee-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
}

.employee-stat {
  padding: 10px;
}

.employee-stat span {
  color: var(--muted);
  font-size: 11px;
}

.employee-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.employee-list {
  display: grid;
  gap: 10px;
}

.public-catalog {
  display: grid;
  gap: 10px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
}

.catalog-card img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
}

.catalog-card strong,
.catalog-card span {
  display: block;
}

.catalog-card span {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  color: var(--ink);
  font-weight: 800;
}

.note-form {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.note-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}

.note-feed {
  display: grid;
  gap: 9px;
}

.note-card {
  padding: 11px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.08);
  text-align: left;
}

.note-card p {
  margin: 7px 0 4px;
}

.voice-note {
  background: #eaffff;
}

.my-notes {
  margin-top: 20px;
  text-align: left;
}

.modal-list {
  max-height: none;
}

.employee-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px;
  align-items: center;
}

.employee-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #e7fbfb;
  color: #169ba1;
  font-weight: 900;
}

.profile-panel {
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 6px auto 12px;
  border-radius: 50%;
  background: #dff8f8;
  color: #159ba1;
  font-size: 34px;
  font-weight: 900;
}

.profile-menu {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}

.profile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #b8eeee;
  color: var(--ink);
  font-weight: 800;
}

.logout-button {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  background: #17211d;
  color: #fff;
  font-weight: 900;
  pointer-events: auto;
  text-decoration: none;
}

@media (min-width: 431px) {
  body {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-phone {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
}

@media (pointer: coarse) {
  body {
    display: block;
    padding: 0;
    background: linear-gradient(180deg, #eaffff 0%, #fff8f1 100%);
  }

  .app-shell {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-phone {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .main {
    touch-action: pan-y;
  }

  .app-shell.touch-mode,
  .app-shell.touch-mode * {
    cursor: auto;
  }

  .touch-cursor {
    display: none;
  }
}

@media (any-pointer: coarse) {
  .app-shell.touch-mode,
  .app-shell.touch-mode * {
    cursor: auto !important;
  }

  .touch-cursor {
    display: none !important;
  }
}

body.native-touch .app-shell.touch-mode,
body.native-touch .app-shell.touch-mode * {
  cursor: auto !important;
}

body.native-touch .touch-cursor {
  display: none !important;
}

body.native-touch .main {
  overflow-y: auto;
  touch-action: pan-y;
}

body.native-touch .inventory-table-wrap,
.inventory-table-wrap.native-horizontal-scroll {
  overflow-x: auto;
  touch-action: pan-x pan-y;
  cursor: auto;
}

/* =========================================================
   FAZ 2 (Deniz) — Talepler, Kafesler, Yaşam Döngüsü,
   Sahiplendirme, Vatandaş ekranı, Ziyaret banner'ı
   Mevcut CSS değişkenleri ve kart/badge/panel dili korunur.
   ========================================================= */

/* Ziyaret saati şeridi (app geneli) */
.visit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.08);
}

.visit-banner.open {
  background: #d8eee1;
  color: var(--green-dark);
}

.visit-banner.closed {
  background: #eceff0;
  color: var(--muted);
}

.visit-banner:empty {
  display: none;
}

/* Müdür uyarı şeridi */
.alert-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.alert-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff0da;
  color: #92550f;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.08);
}

.alert-item small {
  color: inherit;
  opacity: 0.85;
  font-weight: 600;
}

/* Talepler sekme panoları */
.req-pane,
.public-pane {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.req-pane[hidden],
.public-pane[hidden] {
  display: none;
}

.request-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.request-filters input,
.request-filters select {
  min-width: 0;
}

.request-filters .badge {
  justify-self: start;
  white-space: nowrap;
}

.consent-filterbar {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Mini kanban: darda dikey liste, geniş ekranda 3 kolon */
.request-board {
  display: grid;
  gap: 12px;
}

.request-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.request-col-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 13px;
}

.request-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
  text-align: left;
  cursor: pointer;
}

@media (min-width: 700px) {
  .request-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

/* Talep fotoğrafları */
.req-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.req-photo {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(40, 70, 65, 0.14);
}

.req-photo-ph {
  display: grid;
  place-items: center;
  text-align: center;
  background: #e7fbfb;
  color: #168c92;
  font-size: 20px;
}

.req-photo-ph small {
  font-size: 9px;
  padding: 0 4px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.demo-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.demo-gallery img {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(40, 70, 65, 0.14);
}

/* Ekip atama + denetim formu */
.assign-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.warn-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ec;
}

.warn-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.notify-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.notify-row.ok {
  background: #d8eee1;
}

.transition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

/* Kafesler */
.cage-grid {
  display: grid;
  gap: 16px;
}

.cage-group h3 {
  margin: 0;
}

.cage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.cage-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 70, 65, 0.1);
  text-align: left;
  cursor: pointer;
}

.cage-card .stock-meter {
  width: 100%;
}

.cage-residents {
  display: grid;
  gap: 10px;
}

.cage-resident {
  display: grid;
  gap: 6px;
  padding: 11px;
  border-radius: 14px;
  background: #f7faf8;
}

.cage-resident .ghost-button {
  justify-self: start;
}

.cage-pick {
  display: grid;
  gap: 8px;
}

.cage-pick .ghost-button {
  text-align: left;
}

.cage-pick .ghost-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Yaşam döngüsü dikey timeline */
.lifecycle-block {
  margin-top: 16px;
  text-align: left;
}

.lifecycle-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 3px solid #d8eee1;
}

.lifecycle-item {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7faf8;
}

.lifecycle-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #d8eee1;
}

/* Vatandaş sorgu sonucu */
.citizen-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f7faf8;
}

.citizen-status {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e4eff8;
  color: #245a86;
  font-weight: 700;
}

.citizen-status.sad {
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 600;
}

.citizen-status.sad p {
  margin: 0;
}

.muni-hero {
  text-align: center;
  background: linear-gradient(135deg, #d8eee1, #eaffff);
}

/* =========================================================
   FAZ 4 — Dijital formlar (forms.js + ui-forms.js)
   ========================================================= */
.form-wizard h2,
.form-summary h2 {
  margin: 4px 0 10px;
}

.form-info-box {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--muted);
}

/* Adım göstergesi (mobil sihirbaz) */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s;
}

.step-dot.active {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.18);
}

.step-dot.done {
  background: var(--teal);
}

.step-label {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* Alan ızgarası: geniş ekranda iki sütun, mobilde tek sütun */
.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.form-field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
}

.req-star {
  color: var(--red);
  font-style: normal;
}

/* Chip grubu: dokunma hedefi ≥44px */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: var(--green);
}

.chip.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
}

/* Onay kutuları */
.consent-box {
  padding: 12px;
  border: 1px dashed var(--green);
  border-radius: 12px;
  background: rgba(47, 125, 87, 0.06);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.checkbox-line input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.consent-critical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.consent-critical.is-hidden {
  display: none;
}

.consent-critical label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.consent-critical input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Sihirbaz gezinme */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.wizard-nav .ghost-button[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Form özeti (salt okunur + yazdır) */
.summary-rows {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  font-size: 13px;
}

.summary-row:nth-child(even) {
  background: var(--surface-soft);
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  text-align: right;
}

/* Form arşivi ve bağlı form listeleri */
.form-archive-list,
.form-linked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.form-archive-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-archive-row:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.forms-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.form-entry-btn {
  min-height: 44px;
}

/* Kuduz müşahede kartları (VİMF07) */
.musahede-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.musahede-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.musahede-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.musahede-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.anom-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anom-form textarea {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}

.musahede-results {
  align-items: center;
}

/* Mobil: form alanları tek sütun, chip'ler tam genişliğe yayılır */
@media (max-width: 700px) {
  .request-filters,
  .consent-filterbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-filters .badge {
    justify-self: start;
  }

  .form-fields,
  .consent-critical {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-nav .primary-button {
    flex: 1;
  }

  .chip {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Yazdırma: yalnızca açık modal (kafes kartı / rapor) basılır */
@media print {
  body * {
    visibility: hidden;
  }

  .modal-box,
  .modal-box * {
    visibility: visible;
  }

  .modal {
    display: block;
    position: static;
    padding: 0;
    background: none;
  }

  .modal-box {
    width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-close {
    display: none;
  }

  /* FAZ 4: form özeti yazdırılırken butonlar gizlenir, satırlar bölünmez */
  .wizard-nav button,
  .form-entry-btn {
    display: none;
  }

  .summary-row {
    page-break-inside: avoid;
  }

  /* ONAY: yazdırmada onay aksiyon butonları gizlenir, ispat zinciri basılır */
  .consent-send-entry,
  .consent-row-btn {
    display: none;
  }
}

/* =========================================================
   ONAY — Vatandaş onayı altyapısı (consent.js + ui-consent.js)
   ========================================================= */

/* Turkuaz "✓ Vatandaş Onaylı" rozeti */
.badge.consent {
  background: rgba(43, 129, 121, 0.14);
  color: var(--teal);
}

.consent-approved-line {
  display: flex;
  margin-top: 2px;
}

/* Onay listesi satırları (Formlar → Vatandaş Onayları sekmesi) */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.consent-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.consent-row .quick-actions {
  margin-top: 4px;
}

.consent-row-btn {
  min-height: 38px;
  font-size: 12px;
}

/* Gönderim modalı: kilitli yöntem çipi + uyarı + SMS önizleme */
.consent-chip-locked {
  opacity: 0.55;
  background: var(--surface-soft);
  color: var(--muted);
  border-style: dashed;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
}

.consent-chip-fixed {
  cursor: default;
}

.consent-method-warn {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(185, 68, 68, 0.25);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: #fff2f2;
  font-size: 12px;
  color: #9d2f2f;
}

.consent-sms-preview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* İspat zinciri kutusu (form özeti + onay detayı) */
.consent-proof {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(43, 129, 121, 0.35);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: rgba(43, 129, 121, 0.06);
}

.consent-proof h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--teal);
}

.consent-proof-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 12px;
}

.consent-proof-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.consent-proof-row strong {
  text-align: right;
  word-break: break-word;
}

/* ---------------------------------------------------------
   Vatandaş telefonu simülasyonu (.login-phone deseninin küçük hali)
   --------------------------------------------------------- */
.consent-phone-wrap {
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.consent-phone {
  position: relative;
  width: min(100%, 330px);
  min-height: 560px;
  overflow: hidden;
  border: 9px solid #111;
  border-radius: 38px;
  background: linear-gradient(180deg, #eaffff 0%, #fff8f1 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
}

.consent-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 110px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #111;
  transform: translateX(-50%);
}

.consent-phone-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

.consent-demo-notif {
  position: relative;
  z-index: 1;
  margin: 10px 2px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(23, 33, 29, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.consent-phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  overflow-y: auto;
}

.consent-phone-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.consent-phone-primary {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #27ccd2;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(39, 204, 210, 0.28);
}

.consent-phone-primary[disabled] {
  opacity: 0.4;
  box-shadow: none;
  cursor: default;
}

.consent-phone-secondary {
  min-height: 42px;
  border: 1px solid rgba(185, 68, 68, 0.4);
  border-radius: 14px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
}

.consent-phone-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.consent-phone-actions button {
  flex: 1;
}

/* Adım 1: SMS baloncuğu */
.consent-sms-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-sms-app-bar {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.consent-sms-sender {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
}

.consent-sms-bubble {
  padding: 12px;
  border-radius: 16px 16px 16px 4px;
  background: #e4eff8;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}

.consent-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-align: left;
  word-break: break-all;
  padding: 6px 4px;
  min-height: 44px;
}

/* Adım 2: KVKK aydınlatma */
.consent-doc-bar {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.consent-kvkk h3 {
  margin: 4px 0 8px;
  font-size: 15px;
}

.consent-kvkk-text {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-kvkk-text p {
  margin: 0;
}

.consent-kvkk-check {
  margin: 10px 0;
  font-size: 12px;
}

.consent-kvkk {
  display: flex;
  flex-direction: column;
}

/* Adım 3: form görünümü — personel alanları salt okunur gri zemin */
.consent-citizen-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-readonly {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 6px 10px;
  max-height: 160px;
  overflow-y: auto;
}

.consent-readonly-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--line);
}

.consent-readonly-row:last-child {
  border-bottom: 0;
}

.consent-readonly-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.consent-readonly-row strong {
  text-align: right;
  word-break: break-word;
}

.consent-citizen-title {
  font-weight: 800;
  color: var(--green-dark);
  margin-top: 4px;
}

.consent-citizen-check {
  padding: 10px;
  border: 1px dashed var(--green);
  border-radius: 12px;
  background: rgba(47, 125, 87, 0.06);
  font-size: 12px;
}

.consent-citizen-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.consent-citizen-identity label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.consent-citizen-identity input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* Adım 4a: OTP ekranı */
.consent-otp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.consent-otp-input {
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 10px;
}

.consent-otp-input:focus {
  outline: none;
  border-color: #27ccd2;
}

/* Adım 4b: mock e-Devlet (kırmızı-beyaz görünüm) */
.consent-edevlet {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.consent-edevlet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #c8102e;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.consent-edevlet-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 900;
}

.consent-edevlet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.consent-edevlet-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.consent-edevlet-body label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #5a5a5a;
}

.consent-edevlet-body input {
  padding: 11px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
}

.consent-edevlet-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #c8102e;
  color: #fff;
  font-weight: 900;
}

/* Adım 4b': mobil imza */
.consent-mobilimza {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

/* Adım 5: başarı — Belge Mühürlendi */
.consent-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.consent-success-tick {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(47, 125, 87, 0.35);
}

.consent-success h3 {
  margin: 0;
  font-size: 18px;
}

.consent-success-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.consent-success .consent-phone-primary {
  width: 100%;
  margin-top: 10px;
}

.consent-endstate .consent-endstate-icon {
  background: var(--red);
  box-shadow: 0 12px 30px rgba(185, 68, 68, 0.35);
}

/* Mobil uyarlamalar */
@media (max-width: 700px) {
  .consent-phone {
    width: 100%;
    min-height: 520px;
  }

  .consent-citizen-identity {
    grid-template-columns: minmax(0, 1fr);
  }

  .consent-row-btn {
    flex: 1 1 auto;
  }
}
