:root {
  color-scheme: light;
  --ink: #24302f;
  --muted: #6c7a78;
  --line: #dfe7e3;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --mint: #7fb7a8;
  --rose: #d98191;
  --gold: #c39a46;
  --blue: #5d83ad;
  --shadow: 0 18px 50px rgba(47, 64, 61, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(127, 183, 168, 0.2), rgba(217, 129, 145, 0.12)),
    var(--paper);
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Mobil menü (hamburger) — masaüstünde gizli */
.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }
.menu-toggle,
.mobile-brand {
  background: none;
  border: 0;
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 140ms ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
  text-transform: capitalize;
}

label > span,
.form-field > span {
  text-transform: capitalize;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
}

h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.summary-panel,
.item-form,
.items-panel,
.room-budget-panel,
.designer-card,
.designer-stage-wrap,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.summary-panel {
  padding: 18px;
}

.summary-panel > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-panel strong {
  font-size: 32px;
}

.progress-track {
  height: 10px;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--rose));
  transition: width 180ms ease;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

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

.module-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.module-button-pinned {
  margin-top: auto;
}

.module-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
}

.module-button.is-active {
  border-color: var(--line);
  background: #fff;
}

.module-group {
  display: grid;
  gap: 6px;
}

.module-group .chevron {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: transform 180ms ease;
}

.module-group.is-open .chevron {
  transform: rotate(90deg);
}

.submodule-list {
  display: grid;
  gap: 4px;
  padding: 4px 0 4px 14px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
  max-height: 400px;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease;
}

.module-group:not(.is-open) .submodule-list {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.submodule-link {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  font-size: 14px;
}

.submodule-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.submodule-link.is-active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.category-button.is-active {
  border-color: var(--line);
  background: #fff;
}

.category-count {
  color: var(--muted);
  font-size: 13px;
}

.content {
  min-width: 0;
}

.site-banner {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.module-panel {
  display: none;
}

.module-panel.is-active {
  display: block;
}

.submodule-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.submodule-button {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.submodule-button.is-active {
  background: var(--ink);
  color: #fff;
}

.submodule-panel {
  display: none;
}

.submodule-panel.is-active {
  display: block;
}

.submodule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.submodule-toolbar-end {
  justify-content: flex-end;
}

.rooms-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rooms-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

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

.rooms-tab-actions .is-hidden {
  display: none !important;
}

.rooms-tab-panel {
  display: none;
}

.rooms-tab-panel.is-active {
  display: block;
}

.shop-tab-panel {
  display: none;
}

.shop-tab-panel.is-active {
  display: block;
}

.shop-tab-panel + .shop-tab-panel,
[data-submodule-panel="alisveris"] .shop-tab-panel {
  margin-top: 18px;
}

[data-submodule-panel="alisveris"] .rooms-tabs {
  margin-bottom: 18px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.room-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.room-card h4 {
  margin: 0;
  font-size: 18px;
}

.room-card .room-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.room-card .room-area {
  font-weight: 800;
  font-size: 15px;
}

.room-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.room-card-actions button {
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.room-card-actions button:hover {
  background: var(--paper);
}

.room-card-actions .danger {
  color: var(--rose);
}

.room-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.room-form .form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.primary-button.compact {
  width: auto;
  padding: 8px 14px;
  font-size: 14px;
  min-height: 36px;
}

.photo-field .photo-upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  overflow: hidden;
}

.photo-field .photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-placeholder {
  color: var(--muted);
  font-weight: 700;
}

#itemPhotoPreview {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.item-photo {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--line);
}

.item-photo.is-empty {
  background: linear-gradient(135deg, rgba(127, 183, 168, 0.18), rgba(217, 129, 145, 0.12));
}

.brand-card .brand-logo-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.brand-card .brand-logo-img.is-empty {
  background: linear-gradient(135deg, rgba(127, 183, 168, 0.18), rgba(217, 129, 145, 0.12));
}

.taraflar-section {
  margin-bottom: 28px;
}

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

.taraflar-section-header h3 {
  margin: 0;
  font-size: 18px;
}

.surec-card .surec-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.surec-card.surec-planned .surec-status {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
}

.surec-card.surec-completed .surec-status {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.surec-card.surec-cancelled .surec-status {
  background: rgba(36, 48, 47, 0.12);
  color: var(--muted);
}

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

.bildirim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.bildirim-text h4 {
  margin: 0 0 4px;
  font-size: 15px;
  text-transform: none;
}

.bildirim-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #d0d5d3;
  border-radius: 999px;
  transition: background 180ms ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--mint);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

.user-role-card .user-assigned {
  font-weight: 700;
  color: var(--ink);
}

.user-role-card.user-status-passive .surec-status {
  background: rgba(36, 48, 47, 0.12);
  color: var(--muted);
}

.user-role-card.user-status-active .surec-status {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.permission-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.permission-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.permission-matrix th,
.permission-matrix td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.permission-matrix thead th {
  background: var(--paper);
  font-weight: 800;
  font-size: 13px;
}

.permission-matrix tbody th {
  font-weight: 700;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.6);
  width: 25%;
}

.permission-matrix tr:last-child th,
.permission-matrix tr:last-child td {
  border-bottom: 0;
}

.permission-select {
  width: 100%;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.permission-select.permission-edit {
  background: rgba(127, 183, 168, 0.18);
  color: var(--mint);
  border-color: rgba(127, 183, 168, 0.4);
}

.permission-select.permission-view {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
  border-color: rgba(93, 131, 173, 0.4);
}

.permission-select.permission-none {
  background: rgba(36, 48, 47, 0.06);
  color: var(--muted);
}

.permission-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(127, 183, 168, 0.18);
  color: #2f6b58;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(127, 183, 168, 0.4);
  flex-shrink: 0;
}

.phone-call-btn:hover {
  background: var(--mint);
  color: #fff;
  border-color: var(--mint);
}

.budget-summary {
  margin-bottom: 24px;
}

.budget-summary-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.budget-total-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.budget-stat strong {
  font-size: 22px;
  color: var(--ink);
}

.budget-stat.budget-over strong {
  color: var(--rose);
}

.budget-section {
  margin-bottom: 24px;
}

.budget-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.budget-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.budget-table th,
.budget-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.budget-table thead th {
  background: var(--paper);
  font-weight: 800;
  font-size: 13px;
}

.budget-table tbody th {
  font-weight: 700;
}

.budget-table tr:last-child th,
.budget-table tr:last-child td {
  border-bottom: 0;
}

.budget-total-row {
  background: rgba(127, 183, 168, 0.08);
  font-weight: 800;
}

.budget-category-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.budget-over {
  color: var(--rose);
  font-weight: 700;
}

.budget-under {
  color: var(--mint);
  font-weight: 700;
}

.appointment-card.is-past {
  opacity: 0.6;
}

.appointment-card .appointment-type-alisveris {
  background: rgba(217, 129, 145, 0.18);
  color: var(--rose);
}

.appointment-card .appointment-type-tedarikci {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
}

.appointment-card .appointment-type-surec {
  background: rgba(195, 154, 70, 0.2);
  color: var(--gold);
}

.appointment-card .appointment-type-diger {
  background: rgba(36, 48, 47, 0.1);
  color: var(--muted);
}

.checkbox-field > span {
  display: block;
  margin-bottom: 6px;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.checkbox-row:hover {
  background: rgba(127, 183, 168, 0.1);
}

.checkbox-row input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--mint);
}

.checkbox-empty {
  margin: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
}

.task-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.task-filters label {
  min-width: 130px;
}

.task-card.is-done {
  opacity: 0.65;
}

.task-card.is-done h4 {
  text-decoration: line-through;
}

.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.task-header h4 {
  margin: 0;
  flex: 1;
}

.task-overdue {
  color: var(--rose) !important;
  font-weight: 700;
}

.task-card .task-status-badge-todo {
  background: rgba(36, 48, 47, 0.08);
  color: var(--muted);
}

.task-card .task-status-badge-in-progress {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
}

.task-card .task-status-badge-done {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.guest-summary {
  margin-bottom: 18px;
}

.guest-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.guest-card .guest-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.guest-card.guest-side-bride {
  border-left: 3px solid var(--rose);
}

.guest-card.guest-side-groom {
  border-left: 3px solid var(--blue);
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(195, 154, 70, 0.18);
  color: var(--gold);
}

.guest-rsvp-pending {
  background: rgba(36, 48, 47, 0.08);
  color: var(--muted);
}

.guest-rsvp-accepted {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.guest-rsvp-declined {
  background: rgba(217, 129, 145, 0.2);
  color: var(--rose);
}

.quote-card .quote-status-pending {
  background: rgba(36, 48, 47, 0.08);
  color: var(--muted);
}

.quote-card .quote-status-received {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
}

.quote-card .quote-status-accepted {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.quote-card .quote-status-declined {
  background: rgba(217, 129, 145, 0.2);
  color: var(--rose);
}

.shopping-summary {
  margin-bottom: 18px;
}

.shopping-card .shopping-payment-card {
  background: rgba(93, 131, 173, 0.16);
  color: var(--blue);
}

.shopping-card .shopping-payment-cash {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.shopping-card .shopping-payment-transfer {
  background: rgba(195, 154, 70, 0.2);
  color: var(--gold);
}

.shopping-card .shopping-payment-other {
  background: rgba(36, 48, 47, 0.1);
  color: var(--muted);
}

.checkbox-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  margin: 0;
  accent-color: var(--mint);
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-inline > span {
  font-weight: 600;
  font-size: 14px;
}

.gift-card .room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.share-key-card .share-url {
  word-break: break-all;
}

.share-key-card .share-url code {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--paper);
  border-radius: 4px;
  display: inline-block;
  color: var(--ink);
}

.share-key-card .share-badge-active {
  background: rgba(127, 183, 168, 0.22);
  color: var(--mint);
}

.share-key-card .share-badge-passive {
  background: rgba(36, 48, 47, 0.1);
  color: var(--muted);
}

.share-key-card .share-badge-expired {
  background: rgba(217, 129, 145, 0.2);
  color: var(--rose);
}

.share-key-card.share-status-expired,
.share-key-card.share-status-passive {
  opacity: 0.72;
}

.checkbox-row-all {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 2px;
  font-weight: 800;
}

.rating-input {
  display: flex;
  gap: 6px;
}

.rating-input .rating-star {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #d0d5d3;
  font-size: 22px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.rating-input .rating-star.is-active {
  color: var(--gold);
  background: rgba(195, 154, 70, 0.1);
  border-color: rgba(195, 154, 70, 0.4);
}

.rating-input .rating-star:hover {
  color: var(--gold);
}

.review-card .review-stars {
  margin: 6px 0;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 2px;
}

.review-card .review-comment {
  font-style: italic;
  line-height: 1.4;
}

.report-block {
  margin-bottom: 28px;
}

.report-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.report-progress {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.report-progress-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.empty-state-inline {
  color: var(--muted);
  font-size: 13px;
}

/* ===== AUTH ===== */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(135deg, rgba(127, 183, 168, 0.18), rgba(217, 129, 145, 0.16)),
    var(--paper);
  overflow-y: auto;
}

.auth-overlay.is-hidden {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(36, 48, 47, 0.18);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.auth-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.auth-brand h1 {
  margin: 0;
  font-size: 28px;
}

.auth-tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.auth-tab {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label > span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--mint);
  cursor: pointer;
}
.auth-form .auth-remember > span {
  display: inline;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(217, 129, 145, 0.16);
  color: var(--rose);
  font-size: 13px;
  font-weight: 600;
}

.auth-error.is-hidden {
  display: none;
}

.auth-footer {
  margin: 16px 0 0;
  text-align: center;
}

.auth-logout-button {
  margin-top: 8px;
  color: var(--rose);
  font-weight: 700;
  font-size: 13px;
}

.auth-logout-button:hover {
  background: rgba(217, 129, 145, 0.1);
}

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

.suggestion-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.suggestion-row.suggestion-high {
  border-left-color: var(--rose);
}

.suggestion-row.suggestion-medium {
  border-left-color: var(--gold);
}

.suggestion-row.suggestion-low {
  border-left-color: var(--mint);
}

.suggestion-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 28px;
  background: var(--paper);
  border-radius: 8px;
}

.suggestion-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  text-transform: none;
}

.suggestion-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.suggestion-action {
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  background: var(--ink);
  color: #fff;
}

.suggestion-action:hover {
  background: #000;
}

.add-item-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 2px dashed var(--mint);
  border-radius: 8px;
  background: rgba(127, 183, 168, 0.08);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.add-item-tile:hover {
  background: rgba(127, 183, 168, 0.16);
  border-color: var(--ink);
}

.add-item-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.add-item-tile-compact {
  width: auto;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-width: 1px;
  font-size: 14px;
}

.add-item-tile-compact .add-item-icon {
  width: 22px;
  height: 22px;
  font-size: 16px;
  border-radius: 5px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 48, 47, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(36, 48, 47, 0.32);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--paper);
}

.modal-card .item-form {
  padding: 16px 20px 18px;
  overflow-y: auto;
}

.item-form-compact {
  gap: 12px;
}

.form-row-photo {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: stretch;
}

.form-row-photo .photo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-form-compact .photo-upload {
  min-height: 96px;
  height: 100%;
}

.item-form-compact .photo-placeholder {
  font-size: 28px;
  color: var(--muted);
}

.item-form-compact #itemPhotoPreview {
  max-height: 100%;
}

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

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.item-form-compact label > span {
  font-size: 12px;
}

.item-form-compact input,
.item-form-compact select,
.item-form-compact textarea {
  padding: 8px 10px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* Onay penceresi (confirm) */
.confirm-card { width: min(420px, 100%); }
.confirm-message {
  margin: 0;
  padding: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.confirm-card .modal-actions {
  margin-top: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}
.confirm-card .primary-button { width: auto; min-width: 96px; padding: 0 18px; margin-top: 0; }
.primary-button.danger-button { background: #cf5a6e; color: #fff; }
.primary-button.danger-button:hover { background: #b94459; }

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

.tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.is-active {
  background: var(--ink);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.architecture-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 22px;
}

.architecture-brief article {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.architecture-brief span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.architecture-brief strong {
  font-size: 20px;
}

.architecture-brief p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.room-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.room-detail-heading h3 {
  margin-bottom: 0;
}

.dollhouse-stage {
  position: relative;
  max-width: 760px;
  margin: 24px auto 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.dollhouse-stage.is-visual-paused {
  display: none;
}

.dollhouse-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.room-color-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.room-color-layer.is-complete {
  opacity: 1;
}

.room-color-layer.decor {
  clip-path: inset(6% 15% 80% 15%);
}

.room-color-layer.bedroom {
  clip-path: inset(20% 50% 60% 7%);
}

.room-color-layer.bathroom {
  clip-path: inset(20% 7% 60% 50%);
}

.room-color-layer.living {
  clip-path: inset(40% 50% 35% 7%);
}

.room-color-layer.electronics {
  clip-path: inset(40% 7% 35% 50%);
}

.room-color-layer.kitchen {
  clip-path: inset(65% 50% 7% 7%);
}

.room-color-layer.appliances {
  clip-path: inset(65% 7% 7% 50%);
}

.dollhouse-tabs {
  position: absolute;
  top: 2.5%;
  left: 50%;
  z-index: 3;
  width: min(78%, 460px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(36, 48, 47, 0.12);
}

.room-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.room-hotspot:hover,
.room-hotspot:focus-visible {
  background: rgba(127, 183, 168, 0.14);
  outline: 2px solid rgba(127, 183, 168, 0.58);
  outline-offset: -2px;
}

.room-hotspot.decor {
  top: 6%;
  left: 15%;
  width: 70%;
  height: 14%;
}

.room-hotspot.bedroom {
  top: 20%;
  left: 7%;
  width: 43%;
  height: 20%;
}

.room-hotspot.bathroom {
  top: 20%;
  left: 50%;
  width: 43%;
  height: 20%;
}

.room-hotspot.living {
  top: 40%;
  left: 7%;
  width: 43%;
  height: 25%;
}

.room-hotspot.electronics {
  top: 40%;
  left: 50%;
  width: 43%;
  height: 25%;
}

.room-hotspot.kitchen {
  top: 65%;
  left: 7%;
  width: 43%;
  height: 28%;
}

.room-hotspot.appliances {
  top: 65%;
  left: 50%;
  width: 43%;
  height: 28%;
}

.icon-button,
.text-button,
.primary-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
}

.text-button {
  padding: 0 14px;
  background: #edf3f0;
  color: var(--ink);
}

.primary-button {
  width: 100%;
  margin-top: 4px;
  background: var(--rose);
  color: #fff;
}

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

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.stats-grid strong {
  font-size: 24px;
}

.mvp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mvp-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.mvp-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mvp-card strong {
  font-size: 21px;
}

.mvp-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.strong-card {
  border-color: rgba(217, 129, 145, 0.36);
}

.room-budget-panel {
  padding: 20px;
}

.room-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.room-budget-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.designer-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.designer-controls {
  display: grid;
  gap: 14px;
}

.designer-card,
.designer-stage-wrap {
  padding: 20px;
}

.designer-card {
  display: grid;
  gap: 14px;
}

.designer-card h3,
.designer-toolbar h3 {
  margin-bottom: 0;
}

.sponsor-card {
  border-color: rgba(195, 154, 70, 0.36);
}

.sponsor-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.designer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.designer-toolbar span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.corner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.corner-controls .icon-button {
  width: 36px;
  min-height: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
}

.floor-pattern-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.floor-pattern-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.floor-pattern-option > span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floor-pattern-option:hover,
.floor-pattern-option:focus-visible,
.floor-pattern-option.is-active {
  border-color: rgba(217, 129, 145, 0.52);
  background: rgba(217, 129, 145, 0.1);
}

.floor-swatch {
  width: 100%;
  height: 26px;
  border: 1px solid rgba(36, 48, 47, 0.14);
  border-radius: 6px;
  background: #e6d4bd;
}

.floor-swatch[data-floor-pattern="solid"] {
  background: #e6d4bd;
}

.floor-swatch[data-floor-pattern="parquet"] {
  background:
    linear-gradient(90deg, rgba(96, 66, 36, 0.32) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 50%, rgba(96, 66, 36, 0.14) 50%),
    #d9bd91;
  background-size: 18px 10px, 18px 10px, auto;
}

.floor-swatch[data-floor-pattern="laminate"] {
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(36, 48, 47, 0.2) 15px 16px),
    linear-gradient(12deg, rgba(255, 255, 255, 0.22), transparent),
    #d7c19c;
}

.floor-swatch[data-floor-pattern="tile"] {
  background:
    linear-gradient(rgba(36, 48, 47, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 47, 0.22) 1px, transparent 1px),
    #d8d2c8;
  background-size: 12px 12px, 12px 12px, auto;
}

.floor-swatch[data-floor-pattern="marble"] {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(36, 48, 47, 0.24) 43%, transparent 47%),
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.66), transparent 38%),
    #ddd5ca;
}

.floor-swatch[data-floor-pattern="carpet"] {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    radial-gradient(circle, rgba(36, 48, 47, 0.16) 1px, transparent 1px),
    #c9a7a7;
  background-position: 0 0, 4px 4px, 0 0;
  background-size: 8px 8px, 8px 8px, auto;
}

.floor-swatch[data-floor-pattern="concrete"] {
  background:
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.26), transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(36, 48, 47, 0.12)),
    #bdb7ad;
}

.floor-swatch[data-floor-pattern="terrazzo"] {
  background:
    radial-gradient(circle at 8px 8px, rgba(217, 129, 145, 0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 20px 18px, rgba(93, 131, 173, 0.58) 0 2px, transparent 3px),
    radial-gradient(circle at 28px 8px, rgba(195, 154, 70, 0.62) 0 2px, transparent 3px),
    #ded5c9;
}

.floor-swatch[data-floor-pattern="mosaic"] {
  background:
    linear-gradient(45deg, rgba(36, 48, 47, 0.18) 25%, transparent 25% 75%, rgba(36, 48, 47, 0.18) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.38) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.38) 75%),
    #d9c6b7;
  background-position: 0 0, 9px 9px, 0 0;
  background-size: 18px 18px, 18px 18px, auto;
}

.room-canvas {
  position: relative;
  width: min(100%, 760px);
  min-height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 47, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(180deg, #ece4d2, #c9bea4);
  display: grid;
  place-items: center;
  padding: 30px;
  touch-action: none;
}

.iso-room {
  position: relative;
  width: 380px;
  height: 380px;
  transition: transform 500ms ease;
}

.iso-face {
  position: absolute;
}

.iso-wall-back {
  left: 0;
  top: 10%;
  width: 50%;
  height: 65%;
  background: var(--wall-color, #f2d6d9);
  clip-path: polygon(0% 39%, 100% 0%, 100% 61%, 0% 100%);
  filter: brightness(0.92);
}

.iso-wall-right {
  right: 0;
  top: 10%;
  width: 50%;
  height: 65%;
  background: var(--wall-color, #f2d6d9);
  clip-path: polygon(0% 0%, 100% 39%, 100% 100%, 0% 61%);
  filter: brightness(1.02);
}

.iso-floor-bg {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: var(--floor-color, #d9b88c);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.iso-wall-back,
.iso-wall-right {
  z-index: 1;
}

.iso-floor {
  inset: 0;
  pointer-events: auto;
  z-index: 3;
}

.iso-floor .furniture-piece {
  z-index: 4;
}

.iso-wall-front,
.iso-wall-left {
  display: none;
}

.room-canvas[data-view-corner="front-right"] .iso-wall-back {
  filter: brightness(1.02);
}

.room-canvas[data-view-corner="front-right"] .iso-wall-right {
  filter: brightness(0.92);
}

.room-canvas[data-view-corner="back-right"] .iso-wall-back,
.room-canvas[data-view-corner="back-left"] .iso-wall-back {
  background: color-mix(in srgb, var(--wall-color, #f2d6d9) 88%, #000);
}

.room-canvas[data-view-corner="back-right"] .iso-wall-right,
.room-canvas[data-view-corner="back-left"] .iso-wall-right {
  background: color-mix(in srgb, var(--wall-color, #f2d6d9) 94%, #fff);
}

.room-canvas[data-floor-pattern="solid"] .iso-floor-bg {
  background: var(--floor-color, #e6d4bd);
}

.room-canvas[data-floor-pattern="parquet"] .iso-floor-bg {
  background:
    linear-gradient(90deg, rgba(96, 66, 36, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 50%, rgba(96, 66, 36, 0.09) 50%),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(96, 66, 36, 0.16) 70px 72px),
    var(--floor-color, #e6d4bd);
  background-size: 72px 36px, 72px 36px, 144px 72px, auto;
}

.room-canvas[data-floor-pattern="laminate"] .iso-floor-bg {
  background:
    linear-gradient(90deg, rgba(36, 48, 47, 0.12) 1px, transparent 1px),
    linear-gradient(12deg, rgba(255, 255, 255, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(36, 48, 47, 0.15) 92px 94px),
    var(--floor-color, #e6d4bd);
  background-size: 94px 100%, 160px 100%, 188px 100%, auto;
}

.room-canvas[data-floor-pattern="tile"] .iso-floor-bg {
  background:
    linear-gradient(rgba(36, 48, 47, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 47, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.36), transparent 18px),
    var(--floor-color, #e6d4bd);
  background-size: 42px 42px, 42px 42px, 42px 42px, auto;
}

.room-canvas[data-floor-pattern="marble"] .iso-floor-bg {
  background:
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.58), transparent 28%),
    radial-gradient(ellipse at 70% 55%, rgba(36, 48, 47, 0.12), transparent 34%),
    linear-gradient(115deg, transparent 0 42%, rgba(36, 48, 47, 0.16) 43%, transparent 46%),
    linear-gradient(25deg, transparent 0 58%, rgba(255, 255, 255, 0.36) 59%, transparent 63%),
    var(--floor-color, #e6d4bd);
  background-size: 170px 130px, 220px 170px, 180px 180px, 240px 180px, auto;
}

.room-canvas[data-floor-pattern="carpet"] .iso-floor-bg {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(36, 48, 47, 0.12) 1px, transparent 1px),
    var(--floor-color, #e6d4bd);
  background-position: 0 0, 5px 5px, 0 0;
  background-size: 10px 10px, 10px 10px, auto;
}

.room-canvas[data-floor-pattern="concrete"] .iso-floor-bg {
  background:
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 76% 64%, rgba(36, 48, 47, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(36, 48, 47, 0.08)),
    var(--floor-color, #c9c3b8);
  background-size: 160px 120px, 180px 140px, auto, auto;
}

.room-canvas[data-floor-pattern="terrazzo"] .iso-floor-bg {
  background:
    radial-gradient(circle at 10px 14px, rgba(217, 129, 145, 0.44) 0 3px, transparent 4px),
    radial-gradient(circle at 28px 28px, rgba(93, 131, 173, 0.38) 0 4px, transparent 5px),
    radial-gradient(circle at 42px 12px, rgba(195, 154, 70, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 58px 34px, rgba(36, 48, 47, 0.22) 0 2px, transparent 3px),
    var(--floor-color, #e6d4bd);
  background-size: 72px 48px, 72px 48px, 72px 48px, 72px 48px, auto;
}

.room-canvas[data-floor-pattern="mosaic"] .iso-floor-bg {
  background:
    linear-gradient(45deg, rgba(36, 48, 47, 0.14) 25%, transparent 25% 75%, rgba(36, 48, 47, 0.14) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.28) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.28) 75%),
    var(--floor-color, #e6d4bd);
  background-position: 0 0, 18px 18px, 0 0;
  background-size: 36px 36px, 36px 36px, auto;
}

.furniture-piece {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 5;
  min-width: 48px;
  min-height: 32px;
  border: 1px solid rgba(36, 48, 47, 0.2);
  border-radius: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 6px 12px rgba(36, 48, 47, 0.18);
  user-select: none;
  cursor: grab;
}

.furniture-piece:active {
  cursor: grabbing;
}

.furniture-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease;
  box-shadow: 0 2px 6px rgba(36, 48, 47, 0.3);
}

.furniture-piece:hover .furniture-remove,
.furniture-remove:focus {
  opacity: 1;
}

.room-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: rgba(36, 48, 47, 0.5);
  font-weight: 700;
  text-align: center;
  font-size: 12px;
}

.furniture-piece::before {
  content: "";
  position: absolute;
  inset: 7px -9px -10px 8px;
  z-index: -1;
  border-radius: 8px;
  background: rgba(36, 48, 47, 0.11);
  transform: skewX(-18deg);
}

.furniture-piece::after {
  content: "";
  position: absolute;
  left: 8px;
  right: -8px;
  bottom: -11px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: rgba(36, 48, 47, 0.13);
  transform: skewX(-34deg);
}

.furniture-piece.buyer-bride {
  border-color: rgba(217, 129, 145, 0.48);
  background: rgba(255, 238, 241, 0.94);
}

.furniture-piece.buyer-groom {
  border-color: rgba(93, 131, 173, 0.48);
  background: rgba(235, 244, 255, 0.94);
}

.furniture-piece span {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.room-budget-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.room-budget-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.budget-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.budget-lines dd {
  font-size: 16px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 130px 130px 130px 130px;
  gap: 12px;
  margin-bottom: 18px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.item-form,
.items-panel {
  padding: 20px;
}

.item-form {
  max-width: 620px;
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-heading h3 {
  margin-bottom: 0;
}

.is-hidden {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.item-form {
  display: grid;
  gap: 14px;
}

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

.item-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item-check {
  width: 24px;
  height: 24px;
  accent-color: var(--mint);
}

.item-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.item-title strong {
  overflow-wrap: anywhere;
}

.item-title strong.buyer-bride {
  color: #c24b70;
}

.item-title strong.buyer-groom {
  color: #2f6fa8;
}

.badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf3f0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.badge.high {
  background: rgba(217, 129, 145, 0.2);
  color: #9e4054;
}

.badge.medium {
  background: rgba(195, 154, 70, 0.2);
  color: #8a6823;
}

.badge.low {
  background: rgba(93, 131, 173, 0.17);
  color: #3d668f;
}

.badge.status-needed {
  background: rgba(36, 48, 47, 0.08);
  color: var(--muted);
}

.badge.status-bought {
  background: rgba(127, 183, 168, 0.22);
  color: #2f6b58;
}

.item-card.item-status-bought .item-photo,
.item-card.item-status-bought > div {
  opacity: 0.72;
}

.item-card.item-status-bought strong {
  text-decoration: line-through;
  text-decoration-color: rgba(36, 48, 47, 0.4);
}

.status-toggle.is-bought {
  background: rgba(127, 183, 168, 0.22);
  color: #2f6b58;
  border-color: rgba(127, 183, 168, 0.5);
}

.status-toggle:not(.is-bought):hover {
  background: rgba(127, 183, 168, 0.18);
  border-color: var(--mint);
  color: var(--mint);
}

.buyer-select-label {
  display: inline-grid;
  gap: 2px;
  width: auto;
  color: var(--muted);
  font-size: 10px;
}

.buyer-select {
  min-height: 28px;
  width: 120px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.buyer-select.bride {
  border-color: rgba(217, 129, 145, 0.28);
  background: rgba(217, 129, 145, 0.16);
  color: #b03f63;
}

.buyer-select.groom {
  border-color: rgba(93, 131, 173, 0.28);
  background: rgba(93, 131, 173, 0.16);
  color: #2f6fa8;
}

.item-meta,
.item-spec,
.item-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.item-spec {
  margin-top: 6px;
  color: var(--ink);
}

.item-note {
  margin-top: 6px;
}

.item-actions {
  display: flex;
  gap: 6px;
}

.item-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.item-actions .item-delete {
  color: var(--rose);
}

.item-actions .item-delete:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

/* ===== Dashboard / Ana Sayfa ===== */
.dash-hero {
  background: linear-gradient(135deg, rgba(127, 183, 168, 0.28), rgba(217, 129, 145, 0.18));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 22px;
}
.dash-hero h2 { margin: 0 0 6px; font-size: 1.6rem; }
.dash-hero p { margin: 0; color: var(--muted); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-stat:hover { transform: translateY(-3px); box-shadow: 0 22px 56px rgba(47, 64, 61, 0.18); }
.dash-stat-label { font-size: 0.85rem; color: var(--muted); }
.dash-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.dash-stat-sub { font-size: 0.8rem; color: var(--muted); }
.dash-stat-primary { border-top: 3px solid var(--mint); }
.dash-stat-success { border-top: 3px solid var(--blue); }
.dash-stat-danger { border-top: 3px solid var(--rose); }

.dash-progress-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.dash-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--muted);
}
.dash-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(127, 183, 168, 0.18);
  overflow: hidden;
}
.dash-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--mint);
  transition: width 0.4s ease;
}
.dash-progress-bar.is-over { background: var(--rose); }
.dash-progress-warn { margin: 10px 0 0; color: var(--rose); font-size: 0.85rem; }

.dash-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.dash-list-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.dash-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dash-list-head h3 { margin: 0; font-size: 1.05rem; }
.dash-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dash-list-row:first-of-type { border-top: 0; }
.dash-list-row strong { display: block; font-weight: 600; }
.dash-row-sub { display: block; font-size: 0.8rem; color: var(--muted); }
.dash-row-date { font-size: 0.85rem; color: var(--mint); white-space: nowrap; font-weight: 600; }

.dash-quick h3 { margin: 0 0 12px; font-size: 1.05rem; }
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.dash-quick-grid button {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}
.dash-quick-grid button:hover { background: rgba(127, 183, 168, 0.14); transform: translateY(-2px); }

.dash-editor-hint { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; }
.dash-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  margin-bottom: 18px;
}
.dash-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.dash-editor-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  flex: 1;
}
.dash-editor-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mint); }
.dash-editor-move { display: flex; gap: 6px; }
.dash-editor-move button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 1rem;
  line-height: 1;
}
.dash-editor-move button:hover:not(:disabled) { background: rgba(127, 183, 168, 0.16); }
.dash-editor-move button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== Toast bildirimleri ===== */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 200px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(36, 48, 47, 0.25);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(0); }
.toast-success { background: #5a9c8a; }
.toast-error { background: #cf6b7d; }
.toast-info { background: #5d83ad; }

/* ===== Yükleniyor katmanı ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(251, 250, 247, 0.7);
  backdrop-filter: blur(3px);
}
.loading-overlay.is-visible { display: flex; }
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(127, 183, 168, 0.3);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: evly-spin 0.8s linear infinite;
}
@keyframes evly-spin { to { transform: rotate(360deg); } }

/* ===== Bohça ===== */
.bohca-block { margin-bottom: 28px; }
.bohca-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bohca-toolbar h3 { margin: 0; font-size: 1.1rem; }
.bohca-card .bohca-status { font-weight: 700; }
.bohca-card.is-bought { opacity: 0.65; }
.bohca-card.is-bought .bohca-status { color: var(--mint); }

/* ===== Altın ===== */
.altin-updated { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.altin-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.altin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.altin-summary.is-hidden { display: none; }
.altin-summary-cell { display: flex; flex-direction: column; gap: 4px; }
.altin-summary-cell span { font-size: 12px; color: var(--muted); font-weight: 700; }
.altin-summary-cell strong { font-size: 1.3rem; color: var(--ink); }
.altin-profit strong, .altin-kar.altin-profit { color: #2f8f6b; }
.altin-loss strong, .altin-kar.altin-loss { color: #cf5a6e; }
.altin-kar { font-weight: 700; }
.altin-qty { color: var(--muted); font-weight: 600; font-size: 0.85em; }

@media (max-width: 640px) {
  .altin-summary { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .toast-container { top: auto; bottom: 14px; left: 12px; right: 12px; }
  .toast { max-width: none; }
}

@media (max-width: 980px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-columns { grid-template-columns: 1fr; }
  .dash-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hero { padding: 22px; }
  .budget-summary-row { grid-template-columns: 1fr; }
}

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

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { font-size: 24px; line-height: 1; padding: 4px 8px; }
  .mobile-brand { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 80%;
    max-width: 300px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 100;
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(36, 48, 47, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

  body.sidebar-open { overflow: hidden; }

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

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

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

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

  .room-budget-grid {
    grid-template-columns: 1fr;
  }

  .progress-layout {
    grid-template-columns: 1fr;
  }

  .designer-shell {
    grid-template-columns: 1fr;
  }

  .room-canvas {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .sidebar,
  .workspace {
    padding: 18px;
  }

  .topbar,
  .panel-heading,
  .room-detail-heading {
    align-items: flex-start;
  }

  .controls,
  .form-row,
  .architecture-brief,
  .stats-grid,
  .budget-lines,
  .category-list,
  .mvp-grid,
  .tabs {
    grid-template-columns: 1fr;
  }

  .dollhouse-tabs {
    top: 1.5%;
    width: 72%;
  }

  .item-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .item-actions {
    grid-column: 2;
  }

  .designer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-canvas {
    min-height: 300px;
  }
}
