/* ═══════════════════════════════════════════════
   ArtemisTech — Müşteri Auth & Sipariş Stilleri
═══════════════════════════════════════════════ */

/* ── Navbar Auth Butonu ── */
#cust-auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid rgba(99,102,241,.35);
  border-radius: 30px;
  background: transparent;
  color: var(--text, #1e293b);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
#cust-auth-btn:hover,
#cust-auth-btn.cust-logged-in {
  background: rgba(99,102,241,.08);
  border-color: #6366f1;
  color: #6366f1;
}

/* Dropdown menü */
#cust-auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 1000;
}
#cust-auth-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #374151;
  text-decoration: none;
  transition: background .15s;
}
#cust-auth-menu a:hover { background: #f3f4f6; }
#cust-auth-menu a.danger { color: #dc2626; }
#cust-auth-menu a.danger:hover { background: #fef2f2; }

/* ── Auth Modal ── */
#custAuthModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#custAuthModal.open { display: flex; }

.cust-modal-box {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  width: 100%;
  max-width: 440px;
  padding: 32px 32px 28px;
  position: relative;
  animation: custModalIn .25s ease;
}
@keyframes custModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.cust-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #6b7280;
  transition: background .15s;
}
.cust-modal-close:hover { background: #e5e7eb; }

.cust-modal-logo {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.cust-modal-logo span { color: #6366f1; }
.cust-modal-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 22px;
}

/* Sekmeler */
.cust-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}
.cust-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all .18s;
}
.cust-tab.active {
  background: #fff;
  color: #6366f1;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

/* Form elemanları */
.cust-form-group { margin-bottom: 14px; }
.cust-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.cust-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color .18s;
  box-sizing: border-box;
}
.cust-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

/* Hata mesajı */
.auth-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 9px;
  margin-bottom: 14px;
}

/* Butonlar */
.cust-btn-primary {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .18s;
  margin-top: 4px;
}
.cust-btn-primary:hover { opacity: .88; }

.cust-btn-outline {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #6366f1;
  border: 1.5px solid #6366f1;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  margin-top: 8px;
}
.cust-btn-outline:hover { background: rgba(99,102,241,.06); }

.cust-form-footer {
  text-align: center;
  font-size: 12.5px;
  color: #9ca3af;
  margin-top: 14px;
}
.cust-form-footer a { color: #6366f1; text-decoration: none; }

/* ── Sipariş Yan Paneli ── */
#ordersOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.4);
  z-index: 8900;
  backdrop-filter: blur(2px);
}
#ordersOverlay.open { display: block; }

#ordersPanel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
#ordersPanel.open { right: 0; }

.orders-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.orders-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.orders-panel-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #6b7280;
  transition: background .15s;
}
.orders-panel-close:hover { background: #e5e7eb; }

#ordersList {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

/* Sipariş Kartı */
.ord-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
}
.ord-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.ord-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ord-pkg-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.ord-date {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.ord-amount {
  font-size: 16px;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
}
.ord-card-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.ord-status { font-size: 12.5px; font-weight: 600; }
.ord-ref    { font-size: 11px; color: #9ca3af; font-family: monospace; }

/* Boş durum */
.ord-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}
.ord-empty-icon { font-size: 48px; margin-bottom: 14px; }
.ord-empty p    { font-size: 14px; margin-bottom: 18px; }

/* Misafir arama */
.ord-guest-lookup { padding: 4px 0; }
.ord-guest-intro  { font-size: 13.5px; color: #6b7280; line-height: 1.6; }
.ord-greeting     { font-size: 13.5px; color: #6b7280; margin-bottom: 14px; }
.ord-not-found    { color: #dc2626; font-size: 13.5px; text-align: center; }
.ord-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 12px;
}
.ord-divider::before,
.ord-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Ödeme Modalı — Misafir Adımı ── */
#payGuestStep {
  padding: 4px 0 16px;
}
.pay-guest-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
}
.pay-guest-or {
  text-align: center;
  font-size: 12.5px;
  color: #9ca3af;
  margin: 12px 0;
}
.pay-guest-login-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 16px;
}
.pay-guest-login-link:hover { text-decoration: underline; }
.pay-guest-err {
  color: #dc2626;
  font-size: 12.5px;
  margin-top: 6px;
  min-height: 18px;
}
.pay-guest-continue {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .18s;
}
.pay-guest-continue:hover { opacity: .88; }

/* ── Şifremi Unuttum / Reset ── */
.forgot-link {
  font-size: 12px;
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.forgot-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.forgot-link-box {
  margin-top: 10px;
}
.forgot-link-box .cust-input {
  font-size: 12px;
  color: #6366f1;
  background: #f5f3ff;
  cursor: text;
}

/* ── Onay checkbox ── */
.agr-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin: 12px 0 4px;
}
.agr-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px; height: 15px;
  accent-color: #6366f1;
  flex-shrink: 0;
  cursor: pointer;
}
.agr-check-row a { color: #6366f1; font-weight: 500; text-decoration: none; }
.agr-check-row a:hover { text-decoration: underline; }

/* ── Sözleşme Modal ── */
#agreementModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#agreementModal.open { display: flex; }

.agr-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: custModalIn .22s ease;
}
.agr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.agr-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}
.agr-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border: none; border-radius: 50%;
  font-size: 14px; cursor: pointer;
  color: #6b7280;
  transition: background .15s;
}
.agr-close:hover { background: #e5e7eb; }

.agr-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
}
.agr-body h3 { font-size: 15px; }
.agr-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 18px 0 6px;
}
.agr-body p  { margin: 0 0 10px; }
.agr-body a  { color: #6366f1; }
.agr-body table { margin: 10px 0; }

.agr-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.agr-btn-sec {
  padding: 9px 20px;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: #6b7280; cursor: pointer;
  transition: all .15s;
}
.agr-btn-sec:hover { border-color: #9ca3af; color: #374151; }
.agr-btn-pri {
  padding: 9px 22px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: opacity .18s;
}
.agr-btn-pri:hover { opacity: .88; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .cust-modal-box { padding: 24px 20px 20px; }
  #ordersPanel    { max-width: 100%; }
  .agr-box        { max-height: 95vh; border-radius: 14px; }
  .agr-body       { padding: 16px 18px; }
  .agr-footer     { padding: 12px 18px 16px; }
}
