* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --text: #241923;
  --muted: #7b6d78;
  --primary: #d84f9a;
  --primary-dark: #b83d80;
  --border: #ead7e3;
  --danger: #b3261e;
  --success: #217a45;
  --shadow: 0 20px 60px rgba(128, 54, 97, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 14px;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background:
    linear-gradient(rgba(255, 247, 251, 0.9), rgba(255, 247, 251, 0.98)),
    url("assets/hero.jpg.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  width: min(860px, 100%);
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-text {
  width: min(620px, 100%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.danger {
  background: var(--danger);
  color: white;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-title {
  margin-bottom: 30px;
}

.section-title p {
  color: var(--primary);
  font-weight: 700;
}

.section-title h2,
.appointment-box h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.card span {
  color: var(--primary);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  min-height: 220px;
  background: linear-gradient(135deg, #f4c4dc, #ffffff);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.appointment-section {
  padding-top: 40px;
}

.appointment-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
}

.muted {
  color: var(--muted);
  margin-top: 12px;
}

.appointment-form {
  display: grid;
  gap: 16px;
}

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

.form-row {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fffafd;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

.form-message {
  min-height: 22px;
  color: var(--primary-dark);
  font-weight: 700;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 34px;
  background: var(--text);
  color: white;
  border-radius: 30px;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.admin-page {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 13px;
  color: var(--muted);
  background: #fffafd;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f4e7ef;
  color: var(--primary-dark);
}

.status.cancelled {
  background: #ffe7e5;
  color: var(--danger);
}

@media (max-width: 820px) {
  .site-header {
    border-radius: 24px;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 620px;
  }

  .cards,
  .gallery,
  .appointment-box {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-card h2 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.closed-days-wrap {
  margin-top: 16px;
}


.btn.danger:hover {
  filter: brightness(0.92);
}


.cancel-box {
  width: min(620px, 100%);
}

.cancel-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.cancel-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffafd;
}

.cancel-card p {
  margin-top: 4px;
}


.btn.success {
  background: #217a45;
  color: white;
}

.btn.warning {
  background: #b87914;
  color: white;
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status.attended {
  background: #e4f6eb;
  color: #217a45;
}

.status.no-show {
  background: #fff0d9;
  color: #9a5a00;
}

.blacklist-wrap {
  margin-top: 16px;
}


.input-error {
  border-color: #b3261e !important;
  background: #fff3f1 !important;
}


.date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-wrapper .date-display-input {
  padding-right: 54px;
}

.calendar-button {
  position: absolute;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.calendar-button:hover {
  background: rgba(216, 79, 154, 0.08);
}

.native-date-picker {
  position: absolute;
  right: 10px;
  width: 38px;
  height: 38px;
  opacity: 0;
  pointer-events: none;
}

.input-error {
  border-color: #b3261e !important;
  background: #fff3f1 !important;
}


.native-date-input {
  cursor: pointer;
}

.selected-date-text {
  min-height: 20px;
  margin-top: 6px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}


.native-date-input {
  user-select: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}


/* Tarih alanı hizalama düzeltmesi */
.form-grid {
  align-items: end;
}

.native-date-input {
  height: 56px;
}

.selected-date-text {
  display: none !important;
}


input[type="tel"] {
  letter-spacing: 0.3px;
}


.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.confirm-modal.open {
  display: grid;
  place-items: center;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 18, 0.45);
  backdrop-filter: blur(4px);
}

.confirm-modal-box {
  position: relative;
  width: min(420px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(40, 18, 34, 0.28);
}

.confirm-modal-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.confirm-modal-box p {
  color: var(--muted);
  margin-bottom: 22px;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .confirm-modal-box {
    border-radius: 22px;
    padding: 22px;
  }

  .confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .confirm-modal-actions .btn {
    width: 100%;
  }
}


.whatsapp-notify-card {
  display: none;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #bde7cb;
  border-radius: 22px;
  background: #f0fff5;
  box-shadow: 0 12px 36px rgba(33, 122, 69, 0.12);
}

.whatsapp-notify-card.show {
  display: flex;
}

.whatsapp-notify-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dff7e8;
  font-size: 22px;
  flex: 0 0 auto;
}

.whatsapp-notify-content h3 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.whatsapp-notify-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.btn.whatsapp-btn {
  background: #25d366;
  color: white;
}

.btn.whatsapp-btn:hover {
  filter: brightness(0.94);
}

@media (max-width: 560px) {
  .whatsapp-notify-card {
    flex-direction: column;
  }

  .whatsapp-notify-content,
  .whatsapp-notify-content .btn {
    width: 100%;
  }
}


.footer-link {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link:hover {
  opacity: 0.82;
}

.gallery-item{overflow:hidden}.gallery-item img{width:100%;height:100%;object-fit:cover;display:block}

/* Hero görsel düzeltmesi */
.hero {
  min-height: 560px;
}

.hero-visual {
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(216, 79, 154, 0.10), rgba(255,255,255,0.4));
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-photo {
    min-height: 320px;
  }
}


/* Hero boyut düzeltmesi */
.hero {
  min-height: auto !important;
  padding: 80px 0 !important;
}

.hero-visual {
  min-height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100% !important;
  max-width: 500px !important;
  height: 600px !important;
  min-height: unset !important;
  object-fit: cover !important;
  border-radius: 32px;
  display: block;
  margin: auto;
}

@media (max-width: 900px) {
  .hero-photo {
    max-width: 100% !important;
    height: 420px !important;
  }
}


.extra-services-box {
  display: none;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fffafd;
}

.extra-services-box.show {
  display: block;
}

.extra-services-note {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 14px;
}

.extra-services-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.extra-service-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.extra-service-option input {
  width: auto;
  accent-color: var(--primary);
}

.extra-service-option:has(input:checked) {
  border-color: var(--primary);
  background: #fff0f7;
}

@media (max-width: 560px) {
  .extra-services-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .extra-service-option {
    width: 100%;
  }
}


.finance-card {
  margin-top: 24px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.finance-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fffafd;
  padding: 18px;
}

.finance-box span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.finance-box strong {
  font-size: 24px;
  color: var(--primary-dark);
}

#incomeAmountInput {
  margin-top: 8px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .finance-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .section-title-row {
    display: grid;
  }

  .finance-grid {
    grid-template-columns: 1fr;
  }
}


.finance-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.profit-box {
  background: #f3fff7;
  border-color: #bde7cb;
}

.income-table-head {
  margin-top: 24px;
  margin-bottom: 12px;
}

.income-table-wrap {
  margin-top: 12px;
}

.income-edit-input {
  width: 120px;
  min-width: 100px;
  height: 44px;
  padding: 8px 10px;
}

#incomeModal .confirm-modal-box {
  max-width: 460px;
}

#incomeAmountInput {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .finance-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .income-edit-input {
    width: 100%;
  }
}


.install-app-btn {
  display: none;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.install-app-btn.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .install-app-btn.show {
    width: 100%;
    margin-top: 10px;
  }
}


.history-box {
  width: min(860px, 100%);
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.history-stat {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffafd;
  padding: 14px;
}

.history-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.history-stat strong {
  font-size: 22px;
  color: var(--primary-dark);
}

.history-table-wrap {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .history-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .history-summary {
    grid-template-columns: 1fr;
  }
}


.push-card {
  margin-bottom: 18px;
}

.push-status {
  margin-top: 12px;
  font-weight: 700;
}

.push-status.info {
  color: var(--muted);
}

.push-status.success {
  color: #157347;
}

.push-status.error {
  color: #b42318;
}

.push-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.push-device-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 120, 120, 0.18);
}

.small-title-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.push-devices-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.push-device-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 120, 120, 0.16);
}

.push-device-item strong,
.push-device-item span,
.push-device-item small {
  display: block;
}

.push-device-item strong {
  margin-bottom: 2px;
}

.push-device-item span,
.push-device-item small {
  color: #777;
  font-size: 0.86rem;
}

.push-device-item em {
  font-style: normal;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.push-device-item.active em {
  color: #16703a;
  background: rgba(37, 211, 102, 0.13);
}

.push-device-item.inactive {
  opacity: 0.7;
}

.push-device-item.inactive em {
  color: #8a3b3b;
  background: rgba(255, 80, 80, 0.12);
}

@media (max-width: 700px) {
  .push-actions {
    width: 100%;
    justify-content: stretch;
  }

  .push-actions .btn {
    flex: 1;
  }

  .push-device-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
