.ky-customer-appointments-page {
  --ky-account-primary: #4f46e5;
  --ky-account-text: #172033;
  --ky-account-muted: #667085;
  --ky-account-border: #e5e9f2;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef1fb 0, #f5f7fb 360px);
  color: var(--ky-account-text);
}

.ky-customer-appointments-main {
  padding: 98px 0 36px;
}

.ky-customer-appointments-main .container {
  max-width: 1040px;
}

.ky-customer-hero {
  padding: 10px 0 22px;
}

.ky-customer-hero__card {
  padding: 18px 24px 24px;
  border: 1px solid var(--ky-account-border);
  border-radius: 24px;
  background: radial-gradient(ellipse at top right, #eeebff, transparent 65%), #fff;
}

.ky-customer-hero__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ky-customer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ky-account-muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.ky-customer-back:hover { color: var(--ky-account-primary); }

.ky-account-menu {
  position: relative;
  flex-shrink: 0;
}

.ky-account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #475467;
  background: #fff;
  border: 1px solid var(--ky-account-border);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ky-account-menu summary::-webkit-details-marker,
.ky-consents-disclosure summary::-webkit-details-marker { display: none; }

.ky-account-menu summary .fa-chevron-down { font-size: .6rem; }

.ky-account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--ky-account-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px #1d294526;
}

.ky-account-menu__session {
  padding: 10px 10px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ky-account-border);
}

.ky-account-menu__session span,
.ky-account-menu__session strong {
  display: block;
  overflow-wrap: anywhere;
}

.ky-account-menu__session span {
  margin-bottom: 4px;
  font-size: .72rem;
  color: var(--ky-account-muted);
}

.ky-account-menu__session strong { font-size: .86rem; font-weight: 600; }

.ky-account-menu__panel a,
.ky-account-menu__panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344054;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.ky-account-menu__panel a:hover,
.ky-account-menu__panel button:hover { background: #f3f4fb; }
.ky-account-menu__panel button { color: #b42336; }

.ky-customer-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ky-customer-hero__content > div { min-width: 0; }

.ky-customer-hero__title {
  margin: 0 0 10px;
  color: var(--ky-account-text);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.ky-customer-hero__salon {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #59647b;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
}

.ky-customer-hero__salon img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ky-account-border);
  border-radius: 10px;
  object-fit: cover;
}

.ky-customer-hero__salon span { overflow-wrap: anywhere; }
.ky-customer-hero__salon .fa-chevron-right { font-size: .6rem; }
.ky-customer-hero__salon:hover { color: var(--ky-account-primary); }

.ky-customer-appointments-main .btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 600;
  padding: 10px 15px;
}

#ky-new-appointment-btn {
  flex-shrink: 0;
  box-shadow: 0 5px 14px #4f46e520;
}

.ky-customer-appointments-section { padding: 0 0 22px; }

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

.ky-section-head > div:first-child { min-width: 0; }

.ky-section-head__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.ky-section-head__hint {
  margin: 5px 0 0;
  color: var(--ky-account-muted);
  font-size: .74rem;
  line-height: 1.5;
}

.ky-section-head__count {
  flex-shrink: 0;
  color: #667085;
  font-size: .76rem;
  font-weight: 600;
}

.ky-appointment-filters {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--ky-account-border);
  border-radius: 14px;
  background: #eaeef6;
}

.ky-appointment-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #58647a;
  font-size: .82rem;
  font-weight: 600;
}

.ky-appointment-filters button[aria-pressed="true"] {
  color: #4338ca;
  background: #fff;
  box-shadow: 0 2px 6px #1720330c;
}

.ky-appointment-filters button span {
  font-size: .7rem;
  opacity: .7;
}

.ky-state-card {
  padding: 32px 22px;
  border: 1px solid var(--ky-account-border);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ky-state-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.ky-state-card p {
  max-width: 580px;
  margin: 0 auto 18px;
  color: var(--ky-account-muted);
  font-size: .88rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ky-state-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #eef0ff;
  color: #5555c9;
  font-size: 1.2rem;
}

.ky-appt-card {
  position: relative;
  height: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ky-account-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 18px #1d294504;
}

.ky-appt-card--upcoming {
  border-color: #d9d5f9;
  background: linear-gradient(135deg, #fbfaff, #fff 70%);
}

.ky-appt-card__top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ky-appt-card__date-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 56px;
  height: 64px;
  border: 1px solid #e5e7f0;
  border-radius: 14px;
  background: #f5f6fa;
  color: #667085;
}

.ky-appt-card--upcoming .ky-appt-card__date-tile {
  background: #eeebff;
  border-color: #e3dffe;
  color: #5146ba;
}

.ky-appt-card__date-tile strong {
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.15;
}

.ky-appt-card__date-tile span {
  margin-top: 3px;
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ky-appt-card__date-label {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: .72rem;
  font-weight: 500;
}

.ky-appt-card__time {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #25314a;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.ky-appt-card__period {
  color: #746b9e;
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ky-appt-card--past .ky-appt-card__period { color: #7d8798; }

.ky-appt-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 650;
  white-space: nowrap;
}

.ky-appt-card__status--approved { background: #e6f6ef; color: #087454; }
.ky-appt-card__status--pending { background: #fff3db; color: #956113; }

.ky-appt-card__services {
  margin: 0 0 10px;
  color: #263148;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.ky-appt-card__details {
  display: grid;
  gap: 6px;
  color: var(--ky-account-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.ky-appt-card__details > span,
.ky-appt-card__details > a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ky-appt-card__details i {
  flex: 0 0 14px;
  color: #8a92ab;
  font-size: .73rem;
  text-align: center;
}

.ky-appt-card__details a:hover { color: var(--ky-account-primary); }

.ky-appt-card__campaign {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f3f0ff;
  color: #6250a8;
  font-size: .75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ky-appt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e6ef;
}

.ky-appt-card__note {
  color: #778094;
  font-size: .71rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ky-customer-appointments-main .ky-appt-card__cancel {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  background: #fff;
  color: #b42336;
  border: 1px solid #f1d6dc;
  border-radius: 10px;
  font-size: .75rem;
}

.ky-appt-card__cancel:hover { background: #fff1f2 !important; color: #9f1239 !important; }

.ky-appt-card__confirmation {
  padding: 14px;
  margin-top: 12px;
  border: 1px solid #f0d4db;
  border-radius: 12px;
  background: #fff7f8;
  color: #7d3242;
  font-size: .8rem;
  line-height: 1.6;
}

.ky-appt-card__confirmation .btn { font-size: .78rem; }

.ky-customer-appointments-main :is(a, button, summary, input):focus-visible {
  outline: 3px solid #9388f2;
  outline-offset: 3px;
}

.ky-consents-disclosure {
  border: 1px solid var(--ky-account-border);
  border-radius: 18px;
  background: #fff;
}

.ky-consents-disclosure > summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.ky-consents-disclosure__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff1f8;
  color: #6b7195;
  font-size: .92rem;
}

.ky-consents-disclosure__title {
  display: block;
  color: #344054;
  font-size: .9rem;
  font-weight: 650;
}

.ky-consents-disclosure__hint {
  display: block;
  margin-top: 4px;
  color: #7a8396;
  font-size: .72rem;
  line-height: 1.4;
}

.ky-consents-disclosure__chevron { font-size: .7rem; color: #8b93a6; transition: transform .2s; }
.ky-consents-disclosure[open] .ky-consents-disclosure__chevron { transform: rotate(180deg); }

.ky-consents-disclosure__body {
  padding: 18px;
  border-top: 1px solid var(--ky-account-border);
}

@media (max-width: 767.98px) {
  .ky-customer-appointments-main { padding-top: 90px; }
  .ky-customer-hero { padding-bottom: 20px; }
  .ky-customer-hero__card { padding: 12px 16px 18px; border-radius: 20px; }
  .ky-customer-hero__toolbar { margin-bottom: 12px; }
  .ky-customer-hero__content { flex-wrap: wrap; gap: 16px; }
  .ky-customer-hero__content > div { width: 100%; }
  #ky-new-appointment-btn { width: 100%; }
  .ky-appointment-filters { width: 100%; }
  .ky-appointment-filters button { flex: 1; padding: 8px 10px; gap: 6px; }
  .ky-appt-card { padding: 16px; border-radius: 18px; }
  .ky-consents-disclosure > summary { padding: 16px; gap: 10px; }
  .ky-consents-disclosure__body { padding: 14px; }
}

@media (max-width: 359.98px) {
  .ky-appt-card__top { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .ky-appt-card__date-tile { width: 48px; }
  .ky-appt-card__status { grid-column: 2; justify-self: start; margin-top: -6px; }
  .ky-appt-card__time { font-size: 1.25rem; }
  .ky-appt-card__footer { flex-wrap: wrap; gap: 6px; }
  .ky-section-head { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ky-consents-disclosure__chevron { transition: none; }
}

/* ---------- İzinlerim ve belgeler (customer-consents.js) ---------- */
.ky-consents {
  padding: 0 0 8px;
  scroll-margin-top: 96px;
}

.ky-consents__lead {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: .82rem;
  color: #5b6476;
  line-height: 1.7;
}

.ky-consents__state {
  padding: 32px 22px;
}

.ky-consents__state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf1ff 0%, #d7deff 100%);
  color: #3949ab;
  font-size: 1.4rem;
}

.ky-consent-card {
  height: 100%;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ky-account-border);
  box-shadow: none;
}

.ky-consent-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ky-consent-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}

.ky-consent-card__title {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 650;
  color: #111827;
}

.ky-consent-card__code {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
}

.ky-consent-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}

.ky-consent-card__badge.is-done {
  background: #dcfce7;
  color: #166534;
}

.ky-consent-card__badge.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.ky-consent-card__meta {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.6;
}

.ky-consent-card__declaration {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.55;
}

.ky-consent-card__declaration em {
  font-style: normal;
  font-weight: 700;
  color: #4338ca;
}

.ky-consent-card__note {
  margin: 0 0 8px;
  color: #b45309;
  font-size: 0.78rem;
}

.ky-consent-card__message {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.ky-consent-card__message.is-error { color: #b91c1c; }
.ky-consent-card__message.is-success { color: #166534; }

.ky-consent-switch {
  margin: 4px 0 10px;
  padding-left: 3.2em;
}

.ky-consent-switch .form-check-input {
  width: 2.6em;
  height: 1.4em;
  margin-left: -3.2em;
  cursor: pointer;
}

.ky-consent-switch .form-check-input:checked {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.ky-consent-switch .form-check-input:disabled { cursor: not-allowed; }

.ky-consent-switch .form-check-label {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.ky-consent-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ky-consent-card__links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ky-consent-card__links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.ky-consent-card__links i { color: #6366f1; }

.ky-consent-card__links a,
.ky-consent-card__meta a,
.ky-consent-card__code a {
  color: #4338ca;
  font-weight: 600;
}

@media (max-width: 575px) {
  .ky-consent-card { padding: 14px; border-radius: 14px; }
  .ky-consent-card__head { flex-direction: column; }
}
