@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #052956;
  --navy-dark: #031d3f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f1f3d;
  --muted: #66718a;
  --line: #e5eaf3;
  --green: #12a66a;
  --orange: #f59e0b;
  --purple: #7c3aed;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(15, 31, 61, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", Arial, sans-serif;
}

a {
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */

.sidebar {
  width: 290px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 35%),
    linear-gradient(180deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 48px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  height: 58px;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.menu-item i {
  font-size: 23px;
}

.menu-item:hover,
.menu-item.active {
  background: linear-gradient(135deg, #2d74ff, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
}

.store-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  font-size: 13px;
  font-weight: 600;
}

.store-box i {
  font-size: 21px;
}

.date-box {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.8;
}

.date-box span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MAIN */

.main {
  flex: 1;
  margin-left: 290px;
  padding: 34px 38px 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.topbar h1 {
  font-size: 38px;
  letter-spacing: -1px;
  color: #0b1e3f;
  margin-bottom: 10px;
}

.topbar p {
  color: var(--muted);
  font-size: 15px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box {
  width: 320px;
  height: 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  box-shadow: 0 10px 22px rgba(15, 31, 61, 0.03);
}

.search-box i {
  font-size: 22px;
  color: #7b88a1;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  color: var(--text);
  font-size: 13px;
}

.notification-btn {
  position: relative;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #0b1e3f;
  cursor: pointer;
}

.notification-btn span {
  position: absolute;
  right: -7px;
  top: -9px;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0f1f3d);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 14px;
}

.profile small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}

.quick-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.primary-btn,
.primary-link-btn {
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
}

.primary-btn i,
.primary-link-btn i {
  font-size: 21px;
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 150px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #eaf1ff;
  color: var(--blue);
}

.stat-icon.green {
  background: #def8ec;
  color: var(--green);
}

.stat-icon.orange {
  background: #fff0d7;
  color: var(--orange);
}

.stat-icon.purple {
  background: #f0e7ff;
  color: var(--purple);
}

.stat-card p {
  color: #243553;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-card h2 {
  font-size: 31px;
  color: var(--blue);
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.success {
  color: var(--green);
  margin-left: 12px;
}

.green-text {
  color: var(--green) !important;
}

.orange-text {
  color: var(--orange) !important;
}

.purple-text {
  color: var(--purple) !important;
}

/* CONTENT */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(360px, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card-header {
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header.compact {
  min-height: 56px;
}

.card-header h3 {
  font-size: 19px;
  color: #0b1e3f;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #263654;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  height: 60px;
  background: #fbfcff;
  color: #273957;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: #263654;
  font-size: 12px;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.blue-soft {
  background: #eaf1ff;
  color: #2563eb;
}

.orange-soft {
  background: #fff0e5;
  color: #ea580c;
}

.green-soft {
  background: #e5f8ee;
  color: #12a66a;
}

.purple-soft {
  background: #efe8ff;
  color: #7c3aed;
}

.yellow-soft {
  background: #fff5d7;
  color: #ca8a04;
}

.pink-soft {
  background: #ffe4ef;
  color: #db2777;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.ready {
  background: #dcfce7;
  color: #079455;
}

.badge.waiting {
  background: #fff0d7;
  color: #ea580c;
}

.badge.delivered {
  background: #eaf1ff;
  color: #2563eb;
}

.badge.frame {
  background: #f0e7ff;
  color: #7c3aed;
}

.badge.preparing {
  background: #eaf1ff;
  color: #1d4ed8;
}

.paid {
  color: var(--green);
  font-weight: 700;
}

.debt {
  color: var(--red);
  font-weight: 800;
}

.see-all {
  height: 62px;
  color: var(--blue);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
}

/* RIGHT PANEL */

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-card {
  overflow: hidden;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: #5f6d84;
  font-size: 18px;
  cursor: pointer;
}

.card-header a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.delivery-list {
  padding: 10px 22px 16px;
}

.delivery-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.delivery-item:last-child {
  border-bottom: none;
}

.delivery-item strong,
.delivery-item small {
  display: block;
}

.delivery-item strong {
  font-size: 13px;
}

.delivery-item small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}

.delivery-item em {
  color: #6d7890;
  font-style: normal;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.debt-list {
  padding: 10px 22px 16px;
}

.debt-list div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.debt-list div:last-child {
  border-bottom: none;
}

.debt-list strong {
  font-size: 13px;
}

.debt-list b {
  color: var(--red);
  font-size: 13px;
}

.chart-card {
  padding-bottom: 16px;
}

.chart {
  height: 155px;
  padding: 18px 20px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.bar {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 8px 8px 0 0;
  min-height: 30px;
  position: relative;
}

.bar span {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #32445f;
  font-weight: 700;
  white-space: nowrap;
}

.chart-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 13px;
  padding: 9px 20px 0;
  color: #536179;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}

/* CUSTOMERS PAGE */

.page-toolbar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: #526178;
  border-radius: 10px;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

.filter-btn.active {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #c9dcff;
}

.customer-summary-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 112px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.summary-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.summary-card strong {
  font-size: 25px;
  color: #0b1e3f;
}

.customers-card {
  margin-top: 22px;
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customers-table .customer-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: #526178;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s ease;
}

.action-buttons button:hover {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #c9dcff;
}

.table-footer {
  min-height: 66px;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: #526178;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}

.pagination button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* RESPONSIVE */

@media (max-width: 1350px) {
  .stats-grid,
  .customer-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-card {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .app {
    flex-direction: column;
  }

  .main {
    margin-left: 0;
  }

  .topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .stats-grid,
  .right-panel,
  .customer-summary-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    grid-column: auto;
  }

  .page-toolbar,
  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-link-btn {
    justify-content: center;
  }
}
/* CUSTOMER NEW PAGE */

.breadcrumb-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
}

.breadcrumb-row a {
  height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: #526178;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 31, 61, 0.03);
}

.form-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 360px;
  gap: 22px;
  align-items: start;
}

.customer-form {
  overflow: hidden;
}

.form-card-header {
  min-height: 92px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-card-header h3 {
  font-size: 22px;
  color: #0b1e3f;
  margin-bottom: 7px;
}

.form-card-header p {
  color: var(--muted);
  font-size: 13px;
}

.form-badge {
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.form-grid {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  color: #263654;
  font-size: 13px;
  font-weight: 800;
}

.form-group label b {
  color: var(--red);
}

.input-with-icon,
.textarea-with-icon {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  transition: 0.2s ease;
}

.textarea-with-icon {
  align-items: flex-start;
  padding-top: 14px;
}

.input-with-icon:focus-within,
.textarea-with-icon:focus-within,
.form-group select:focus {
  border-color: #9bbcff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.input-with-icon i,
.textarea-with-icon i {
  color: #7b88a1;
  font-size: 20px;
  flex-shrink: 0;
}

.input-with-icon input,
.textarea-with-icon textarea {
  width: 100%;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  background: transparent;
}

.input-with-icon input {
  height: 50px;
}

.textarea-with-icon textarea {
  resize: vertical;
  min-height: 78px;
  padding-top: 2px;
  line-height: 1.6;
}

.form-group select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.form-section-title {
  margin: 4px 26px 0;
  padding: 20px;
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #f7faff, #eef5ff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.form-section-title span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eaf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 25px;
  flex-shrink: 0;
}

.form-section-title h4 {
  color: #0b1e3f;
  font-size: 16px;
  margin-bottom: 5px;
}

.form-section-title p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.prescription-note-grid {
  padding-top: 20px;
}

.form-actions {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fbfcff;
}

.secondary-btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #526178;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.helper-card {
  padding: 24px;
}

.helper-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eaf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.helper-card h3 {
  font-size: 18px;
  color: #0b1e3f;
  margin-bottom: 10px;
}

.helper-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.helper-card ul {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.helper-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #263654;
  font-size: 13px;
  font-weight: 700;
}

.helper-card li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green);
  display: grid;
  place-items: center;
}

.helper-card.dark {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 35%),
    linear-gradient(145deg, #052956, #031d3f);
  color: #fff;
}

.helper-card.dark h3 {
  color: #fff;
}

.helper-card.dark p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1180px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .form-card-header,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-side {
    grid-template-columns: 1fr;
  }
}
/* EMPTY STATE */

.empty-state {
  padding: 45px 20px;
  text-align: center;
}

.empty-state i {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #eaf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 18px;
}

.empty-state h3 {
  font-size: 20px;
  color: #0b1e3f;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
/* MOBILE CUSTOMER TABLE TO CARD */

@media (max-width: 760px) {
  .customers-card {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .customers-card .card-header {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 12px;
  }

  .customers-card .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .customers-card .ghost-btn {
    justify-content: center;
  }

  .customers-table thead {
    display: none;
  }

  .customers-table,
  .customers-table tbody,
  .customers-table tr,
  .customers-table td {
    display: block;
    width: 100%;
  }

  .customers-table tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 31, 61, 0.06);
  }

  .customers-table tbody td {
    height: auto;
    border-bottom: none;
    padding: 8px 0;
    font-size: 12px;
  }

  .customers-table tbody td:first-child {
    padding-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }

  .customers-table tbody td:not(:first-child):not(:last-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }

  .customers-table tbody td:nth-child(2)::before {
    content: "Telefon";
    color: var(--muted);
    font-weight: 800;
  }

  .customers-table tbody td:nth-child(3)::before {
    content: "Kayıt Tarihi";
    color: var(--muted);
    font-weight: 800;
  }

  .customers-table tbody td:nth-child(4)::before {
    content: "İl / İlçe";
    color: var(--muted);
    font-weight: 800;
  }

  .customers-table tbody td:nth-child(5)::before {
    content: "Reçete Tipi";
    color: var(--muted);
    font-weight: 800;
  }

  .customers-table tbody td:nth-child(6)::before {
    content: "Durum";
    color: var(--muted);
    font-weight: 800;
  }

  .customers-table tbody td:last-child {
    padding-top: 14px;
  }

  .customers-table .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .customers-table .action-buttons button {
    width: 100%;
  }

  .table-footer {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }

  .page-toolbar {
    margin-top: 20px;
  }

  .toolbar-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  .primary-link-btn {
    width: 100%;
  }
}
/* MOBILE NOTIFICATION BADGE FIX */

@media (max-width: 760px) {
  .notification-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    place-items: center;
    align-self: flex-start;
  }

  .notification-btn span {
    right: -5px;
    top: -6px;
  }
}
/* TABLE ACTION LINK */

.table-action-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: #526178;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s ease;
  display: grid;
  place-items: center;
}

.table-action-link:hover {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #c9dcff;
}

/* CUSTOMER DETAIL PAGE */

.customer-detail-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 360px;
  gap: 22px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.customer-profile-card {
  overflow: hidden;
}

.profile-cover {
  height: 105px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, #2563eb, #052956);
}

.profile-content {
  padding: 0 26px 24px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: end;
  gap: 18px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: #fff;
  border: 6px solid #fff;
  margin-top: -42px;
  box-shadow: 0 18px 35px rgba(15, 31, 61, 0.14);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
}

.profile-main-info h2 {
  font-size: 26px;
  color: #0b1e3f;
  margin-bottom: 8px;
}

.profile-main-info p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-actions .secondary-btn,
.profile-actions .primary-link-btn {
  height: 44px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-card {
  overflow: hidden;
}

.info-list {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list span,
.prescription-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-list strong,
.prescription-meta strong {
  color: #263654;
  font-size: 13px;
  text-align: right;
}

.note-card {
  overflow: hidden;
}

.note-box {
  padding: 20px 22px;
}

.note-box p {
  color: #3b4b68;
  font-size: 13px;
  line-height: 1.8;
}

.prescription-detail-card {
  overflow: hidden;
}

.prescription-detail-content {
  padding: 20px 22px;
}

.prescription-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.prescription-meta div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prescription-meta strong {
  text-align: left;
  font-size: 14px;
}

.quick-card,
.timeline-card {
  padding: 22px;
}

.quick-card h3,
.timeline-card h3 {
  font-size: 18px;
  color: #0b1e3f;
  margin-bottom: 16px;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action-item {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #263654;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.quick-action-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.quick-action-item:hover {
  border-color: #c9dcff;
  background: #f7faff;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}

.timeline-item > span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 3px;
  box-shadow: 0 0 0 5px #eaf1ff;
}

.timeline-item.muted > span {
  background: #94a3b8;
  box-shadow: 0 0 0 5px #eef2f7;
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item strong {
  color: #263654;
  font-size: 13px;
  margin-bottom: 4px;
}

.timeline-item small {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .customer-detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-side .helper-card {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .customer-detail-layout {
    margin-top: 18px;
  }

  .profile-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-avatar-large {
    margin-top: -50px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-actions .secondary-btn,
  .profile-actions .primary-link-btn {
    width: 100%;
  }

  .detail-grid,
  .prescription-meta,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .detail-side .helper-card {
    grid-column: auto;
  }

  .info-list div {
    flex-direction: column;
    gap: 6px;
  }

  .info-list strong {
    text-align: left;
  }

  .customers-table .action-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .customers-table .action-buttons .table-action-link {
    width: 100%;
  }
}
/* RX TABLE */

.prescription-meta-strong {
  grid-template-columns: repeat(3, 1fr);
}

.rx-table-wrapper {
  padding: 0 22px 18px;
  overflow-x: auto;
}

.rx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rx-table thead th {
  height: 46px;
  background: #f7faff;
  color: #263654;
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.rx-table tbody td {
  height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #263654;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.rx-table tbody tr:last-child td {
  border-bottom: none;
}

.rx-table tbody td:first-child {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 760px) {
  .prescription-meta-strong {
    grid-template-columns: 1fr;
  }

  .rx-table-wrapper {
    padding: 0 16px 16px;
  }

  .rx-table thead th,
  .rx-table tbody td {
    padding: 0 8px;
    font-size: 11px;
  }
}
/* ============================= */
/* OPTIK TAKIP - RESPONSIVE FIX */
/* ============================= */

.orders-clean-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.orders-header-fixed {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.orders-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 700;
  background: #ffffff;
  color: var(--dark);
  outline: none;
}

.filter-button {
  height: 42px;
  min-height: 42px;
  white-space: nowrap;
}

.new-order-clean-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.new-order-clean-btn i {
  color: #ffffff !important;
  font-size: 18px;
}

.orders-table-wrapper {
  overflow-x: auto;
}

.orders-table-compact th,
.orders-table-compact td {
  white-space: nowrap;
}

.orders-table-compact th:nth-child(5),
.orders-table-compact td:nth-child(5) {
  min-width: 180px;
  white-space: normal;
}

.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.table-action-link {
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Genel taşma kontrolü */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main {
  min-width: 0;
}

/* Tablet */
@media (max-width: 1180px) {
  .customer-summary-grid,
  .orders-clean-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-grid,
  section[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .topbar {
    gap: 18px;
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .app {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    margin-bottom: 14px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .menu-item {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
  }

  .menu-item i {
    font-size: 18px;
  }

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 16px;
    width: 100%;
  }

  .topbar {
    display: block;
    margin-bottom: 18px;
  }

  .topbar h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .topbar p {
    font-size: 13px;
    margin-top: 6px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .search-box input {
    width: 100%;
  }

  .notification-btn {
    width: 44px;
    height: 44px;
  }

  .profile {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
  }

  .customer-summary-grid,
  .orders-clean-summary {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .summary-card {
    min-height: 92px;
    padding: 16px;
  }

  .summary-card strong {
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
  }

  .card {
    border-radius: 18px;
  }

  .customers-card,
  .quick-card,
  .timeline-card,
  .helper-card {
    width: 100%;
    min-width: 0;
  }

  .card-header {
    display: block;
  }

  .card-header h3 {
    margin-bottom: 14px;
  }

  .header-actions,
  .orders-filter-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-select,
  .filter-button,
  .new-order-clean-btn,
  .ghost-btn,
  .primary-link-btn {
    width: 100%;
    justify-content: center;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .customers-table {
    min-width: 760px;
  }

  .orders-table-compact {
    min-width: 720px;
  }

  .table-footer {
    display: block;
    text-align: center;
  }

  .pagination {
    margin-top: 12px;
    justify-content: center;
  }

  .quick-actions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-action-item {
    width: 100%;
    min-width: 0;
  }

  .customer-detail-layout,
  .form-layout,
  .detail-grid {
    display: block !important;
  }

  .detail-side,
  .form-side {
    margin-top: 18px;
  }

  .form-grid,
  .prescription-note-grid {
    grid-template-columns: 1fr !important;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions a,
  .form-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* Küçük telefon */
@media (max-width: 420px) {
  .main {
    padding: 12px;
  }

  .sidebar {
    padding: 12px;
  }

  .menu {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .summary-card {
    padding: 14px;
  }

  .summary-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .customers-table {
    min-width: 700px;
  }
}
/* ============================= */
/* CUSTOMER EDIT FORM FIX */
/* ============================= */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.customer-form {
  min-width: 0;
  overflow: hidden;
}

.customer-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.customer-form .form-group {
  min-width: 0;
}

.customer-form .form-group.full {
  grid-column: 1 / -1;
}

.prescription-note-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.rx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}

.rx-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  min-width: 0;
}

.rx-card h4 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.rx-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rx-fields .form-group {
  min-width: 0;
}

.customer-form select,
.customer-form input,
.customer-form textarea {
  width: 100%;
  min-width: 0;
}

.input-with-icon,
.textarea-with-icon {
  min-width: 0;
}

.addition-field {
  display: none;
}

.form-section-title {
  margin-top: 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-section-title span {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 20px;
}

.form-section-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--dark);
}

.form-section-title p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.form-actions {
  margin-top: 24px;
}

/* Müşteri düzenleme ekranı mobil düzeltme */
@media (max-width: 1180px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .form-layout {
    display: block;
  }

  .customer-form .form-grid,
  .prescription-note-grid,
  .rx-grid,
  .rx-fields {
    grid-template-columns: 1fr !important;
  }

  .rx-card {
    padding: 14px;
  }

  .form-side {
    display: block;
    margin-top: 18px;
  }

  .form-side .card {
    margin-bottom: 14px;
  }

  .form-section-title {
    gap: 10px;
  }

  .form-section-title span {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}
/* ============================= */
/* SETTINGS EDIT / DELETE FIX */
/* ============================= */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.margin-top-22 {
  margin-top: 22px;
}

.settings-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) 42px;
  gap: 8px;
  align-items: center;
}

.settings-inline-form input,
.settings-inline-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  outline: none;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}

.settings-inline-form input:focus,
.settings-inline-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.save-action {
  border: none;
  cursor: pointer;
}

.danger-mini-btn {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  border-radius: 12px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.danger-mini-btn:hover {
  background: #fecaca;
}

.danger-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.danger-icon-btn:hover {
  background: #fecaca;
}

.action-buttons form {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .settings-inline-form {
    grid-template-columns: 1fr;
  }

  .settings-list-area .table-wrapper {
    overflow-x: auto;
  }

  .danger-mini-btn {
    width: 100%;
  }
}
/* ============================= */
/* CUSTOMER DELETE BUTTON FIX */
/* ============================= */

.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-buttons form {
  display: inline-flex;
  margin: 0;
}

.danger-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.danger-icon-btn:hover {
  background: #fecaca;
}

.badge.passive {
  background: #f1f5f9;
  color: #64748b;
}
.detail-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions form {
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.customer-info-card .info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: var(--muted);
  font-size: 13px;
}

.info-row strong {
  color: var(--dark);
  font-size: 14px;
  text-align: right;
}

.text-danger {
  color: #dc2626;
}

.text-success {
  color: #16a34a;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    display: grid;
    gap: 4px;
  }

  .info-row strong {
    text-align: left;
  }
}
/* ============================= */
/* ORDERS PAGE MOBILE FIX */
/* ============================= */

.orders-header-mobile {
  align-items: flex-start;
  gap: 16px;
}

.orders-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-filter-form select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-family: inherit;
  outline: none;
}

.badge.delivered {
  background: #dcfce7;
  color: #15803d;
}

@media (max-width: 768px) {
  .orders-header-mobile {
    display: grid;
    grid-template-columns: 1fr;
  }

  .orders-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .orders-filter-form select,
  .orders-filter-form button {
    width: 100%;
  }

  .mobile-card-table table,
  .mobile-card-table thead,
  .mobile-card-table tbody,
  .mobile-card-table th,
  .mobile-card-table td,
  .mobile-card-table tr {
    display: block;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  }

  .mobile-card-table tbody td {
    border: none !important;
    padding: 10px 0 !important;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
  }

  .mobile-card-table tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--muted);
    text-align: left;
  }

  .mobile-card-table tbody td[data-label="Müşteri"] {
    display: block;
    text-align: left;
  }

  .mobile-card-table tbody td[data-label="Müşteri"]::before {
    display: none;
  }

  .mobile-card-table .customer-cell {
    justify-content: flex-start;
  }

  .mobile-card-table .action-buttons {
    justify-content: flex-end;
  }
}
.mobile-card-table tbody td::before {
  content: attr(data-label);
}

.text-danger {
  color: #dc2626;
}

.text-success {
  color: #16a34a;
}

/* ============================= */
/* DELETE BUTTON FINAL FIX */
/* ============================= */

.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-buttons form {
  display: inline-flex;
  margin: 0;
}

.danger-mini-btn {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.danger-mini-btn:hover {
  background: #fecaca;
}

.danger-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.danger-icon-btn:hover {
  background: #fecaca;
}
/* ============================= */
/* REPORTS PAGE */
/* ============================= */

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.report-card {
  min-height: 100%;
}

.report-metric-list {
  display: grid;
  gap: 12px;
}

.report-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.report-metric-row:last-child {
  border-bottom: none;
}

.report-metric-row span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.report-metric-row strong {
  color: var(--dark);
  font-size: 15px;
  text-align: right;
}

@media (max-width: 900px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-metric-row {
    align-items: flex-start;
  }
}
/* ============================= */
/* LOGIN PAGE */
/* ============================= */

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 32%),
    #f8fafc;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  font-size: 25px;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.25);
}

.login-brand h1 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 3px;
}

.login-brand p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.login-heading {
  margin-bottom: 22px;
}

.login-heading h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 8px;
}

.login-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.login-btn {
  height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.22);
}

.login-btn:hover {
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
/* ============================= */
/* PREMIUM LOGIN PAGE */
/* ============================= */

.premium-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.22), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.18), transparent 26%),
    radial-gradient(circle at 60% 90%, rgba(15, 23, 42, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 45%, #f8fafc 100%);
  overflow-x: hidden;
}

.premium-login-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.premium-login-shell {
  width: min(1180px, 100%);
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.16);
  position: relative;
}

.premium-login-shell::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(18px);
  left: -180px;
  top: -180px;
}

.premium-login-left {
  position: relative;
  z-index: 1;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.38), transparent 35%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.premium-login-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.premium-login-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.premium-login-logo-row h1 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 3px;
}

.premium-login-logo-row p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.premium-login-hero {
  max-width: 560px;
  margin: 70px 0;
}

.premium-login-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
}

.premium-login-hero h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin-bottom: 20px;
}

.premium-login-hero p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
}

.premium-login-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 520px;
}

.premium-login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.premium-login-feature span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  font-size: 20px;
  flex-shrink: 0;
}

.premium-login-feature strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.premium-login-feature small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 700;
}

.premium-login-right {
  position: relative;
  z-index: 1;
  padding: 44px;
  display: grid;
  place-items: center;
}

.premium-login-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.11);
}

.premium-login-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.premium-login-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.premium-login-card-top h3 {
  color: var(--dark);
  font-size: 25px;
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}

.premium-login-card-top p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.premium-login-error {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.premium-login-form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.premium-login-form-group label {
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
}

.premium-login-input {
  height: 50px;
  border: 1px solid #dbe3ef;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  transition: 0.2s ease;
}

.premium-login-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.premium-login-input i {
  color: #64748b;
  font-size: 19px;
}

.premium-login-input input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: transparent;
}

.premium-login-input input::placeholder {
  color: #94a3b8;
}

.premium-login-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 18px;
  margin-top: 6px;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
  transition: 0.2s ease;
}

.premium-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.3);
}

.premium-login-submit i {
  font-size: 18px;
}

.premium-login-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .premium-login-page {
    padding: 16px;
  }

  .premium-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .premium-login-left {
    padding: 30px;
  }

  .premium-login-hero {
    margin: 42px 0;
  }

  .premium-login-hero h2 {
    font-size: 38px;
  }

  .premium-login-right {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .premium-login-left {
    padding: 24px;
  }

  .premium-login-right {
    padding: 18px;
  }

  .premium-login-card {
    padding: 22px;
    border-radius: 24px;
  }

  .premium-login-logo-row h1 {
    font-size: 21px;
  }

  .premium-login-hero h2 {
    font-size: 32px;
  }

  .premium-login-hero p {
    font-size: 14px;
  }

  .premium-login-features {
    gap: 10px;
  }

  .premium-login-feature {
    padding: 13px;
  }
}