/* HAK NAV V45.56 — Gömülü Giriş/Kayıt Modalı (Mobil & Masaüstü %100 Ortalı, Taşmasız) ve Sağ Üst Kullanıcı Alanı Stilleri */

#hakAuthModalV4520 [hidden],
.hak-top-popover [hidden],
.hak-user-guest[hidden],
.hak-user-bar[hidden] {
  display: none !important;
}

.hak-auth-top-bar,
.hnav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  position: relative;
  font: 600 12.5px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

#hakAccountHome4520.hak-auth-top {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 2147482600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 14px;
  border-bottom: 1px solid #2b637d;
  background: #061c2c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #e6f9ff;
}

.hak-user-guest,
.hak-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.hak-top-sep {
  color: #4f7d94;
  user-select: none;
  font-weight: 400;
  padding: 0 1px;
}

.hak-top-auth-btn,
.hak-u-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #e4f7ff !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  font: 600 12.5px/1.3 system-ui, -apple-system, sans-serif !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hak-top-auth-btn:hover,
.hak-u-item:hover,
.hak-u-item[aria-expanded="true"] {
  background: #144966 !important;
  border-color: #4ea5c2 !important;
  color: #ffffff !important;
}

.hak-top-auth-btn.hak-top-register {
  background: #0a7490 !important;
  border-color: #53c4de !important;
  color: #ffffff !important;
}

.hak-top-auth-btn.hak-top-register:hover {
  background: #0d8cad !important;
}

.hak-u-profile-trigger {
  background: #103b54 !important;
  border-color: #3f849e !important;
  font-weight: 750 !important;
  color: #9ff0ff !important;
}

/* Sağ Üst Açılır Menüler (Profil, Mesajlar, Bildirimler, Favoriler) */
.hak-top-popover {
  position: fixed;
  top: 48px;
  right: 12px;
  z-index: 2147483400;
  width: min(430px, calc(100vw - 16px)) !important;
  max-height: calc(100dvh - 64px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  background: #0a2538;
  border: 1px solid #4997b3;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
  color: #e8f9ff;
  padding: 14px;
  font: 13px/1.48 system-ui, -apple-system, sans-serif;
}

.hak-top-popover[hidden] {
  display: none !important;
}

.hak-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #235069;
  padding-bottom: 9px;
  margin-bottom: 10px;
}

.hak-pop-header strong {
  font-size: 14px;
  color: #8ee8ff;
}

.hak-pop-close {
  border: 0;
  background: #173f58;
  color: #d8f3ff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.hak-pop-close:hover {
  background: #235c7d;
}

.hak-pop-meta {
  background: #071b2a;
  border: 1px solid #214b63;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.hak-pop-meta div {
  margin: 5px 0;
  word-break: break-word;
}

.hak-pop-meta .hak-pop-label {
  color: #97bfd0;
  font-size: 11px;
  display: block;
}

.hak-pop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #7ef2c2;
  background: rgba(16, 105, 76, 0.35);
  border: 1px solid #2ea37c;
  padding: 4px 9px;
  border-radius: 99px;
  margin-top: 6px;
}

.hak-pop-actions {
  display: grid;
  gap: 8px;
}

.hak-pop-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #4997b3;
  background: #12435f;
  color: #ffffff;
  font: 600 12.5px system-ui, sans-serif;
  cursor: pointer;
  text-align: center;
}

.hak-pop-btn:hover {
  background: #185a7d;
}

.hak-pop-btn.logout {
  background: #6e222d;
  border-color: #c95b6a;
  color: #ffecef;
}

.hak-pop-btn.logout:hover {
  background: #8c2a38;
}

.hak-pop-empty {
  color: #b4d5e4;
  font-size: 12.5px;
  padding: 8px 4px;
  margin: 0;
}

/* ============================================================================
   HARİTA ÜZERİNE AÇILAN GÖMÜLÜ GİRİŞ / KAYIT MODALI (MOBİLDE %100 ORTALI VE TAŞMASIZ)
   ============================================================================ */
#hakAuthModalV4520 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  z-index: 2147483600 !important;
  background: rgba(3, 15, 25, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font: 14px/1.48 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #eaf9ff;
}

#hakAuthModalV4520[hidden] {
  display: none !important;
}

.hak-modal-dialog {
  width: min(840px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  min-width: 0 !important;
  max-height: 92dvh;
  margin: 0 auto !important;
  overflow-y: auto;
  overflow-x: hidden !important;
  background: linear-gradient(165deg, #0b293f 0%, #061826 100%);
  border: 1.5px solid #4cb2cf;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  padding: 18px 20px;
  box-sizing: border-box !important;
}

.hak-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #235069;
  padding-bottom: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.hak-modal-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.hak-modal-brand strong {
  font-size: 16px;
  color: #8ce8ff;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.hak-modal-brand span {
  font-size: 11.5px;
  color: #a4cadb;
  word-break: break-word;
}

.hak-modal-close {
  flex: 0 0 auto;
  border: 1px solid #487d96;
  background: #13384f;
  color: #e9faff;
  border-radius: 8px;
  padding: 6px 11px;
  font: 700 13px system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.hak-modal-close:hover {
  background: #8f2c38;
  border-color: #df7482;
}

.hak-modal-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

.hak-modal-tabs {
  display: inline-flex;
  background: #061624;
  border: 1px solid #2b5d78;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
}

.hak-modal-tab {
  border: 0;
  background: transparent;
  color: #a9cedf;
  padding: 7px 15px;
  border-radius: 7px;
  font: 700 13px system-ui, sans-serif;
  cursor: pointer;
}

.hak-modal-tab[aria-selected="true"] {
  background: #0b7895;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hak-role-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #bfe4f4;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 240px;
}

.hak-role-selector select {
  background: #071d2e;
  color: #ffffff;
  border: 1px solid #3f84a0;
  border-radius: 8px;
  padding: 7px 10px;
  font: 600 12px system-ui, sans-serif;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.hak-modal-alert {
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  word-break: break-word;
}

.hak-modal-alert[hidden] {
  display: none !important;
}

.hak-modal-alert.error {
  background: rgba(128, 31, 45, 0.45);
  border: 1px solid #df6978;
  color: #ffdce0;
}

.hak-modal-alert.success {
  background: rgba(15, 102, 74, 0.45);
  border: 1px solid #3cd49f;
  color: #d4fff0;
}

.hak-auth-methods-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.hak-auth-card {
  background: rgba(8, 29, 45, 0.88);
  border: 1px solid #2d627d;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hak-auth-card h3 {
  margin: 0;
  font-size: 14.5px;
  color: #8ee8ff;
}

.hak-auth-card p {
  margin: 0;
  font-size: 12px;
  color: #b1d4e3;
}

.hak-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #cde9f6;
  min-width: 0;
}

.hak-field input[type="email"],
.hak-field input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #3d7a96;
  background: #051624;
  color: #ffffff;
  font: 14px system-ui, sans-serif;
}

.hak-field input:focus {
  outline: 2px solid #5ad4ee;
  border-color: transparent;
}

.hak-otp-code-input {
  letter-spacing: 6px;
  font: 700 20px/1.2 monospace !important;
  text-align: center;
}

.hak-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #b8daea;
  cursor: pointer;
}

.hak-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

.hak-checkbox-row button.hak-link-btn {
  border: 0;
  background: none;
  color: #6ce0fc;
  text-decoration: underline;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.hak-submit-btn,
.hak-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #57cae3;
  background: #0a7a96;
  color: #ffffff;
  font: 700 13px system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.hak-submit-btn:hover,
.hak-oauth-btn:hover {
  filter: brightness(1.12);
}

.hak-submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hak-oauth-btn.google {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  border-color: #60a5fa;
}

.hak-oauth-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #1e40af);
  border-color: #93c5fd;
}

.hak-secondary-link {
  border: 0;
  background: transparent;
  color: #86e2fa;
  font: 600 12px system-ui, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  text-align: left;
}

.hak-privacy-drawer {
  background: #061523;
  border: 1px solid #2b5f7a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #b8daea;
  margin-top: 4px;
}

.hak-mb-8 { margin-bottom: 8px; }
.hak-mb-10 { margin-bottom: 10px; }
.hak-social-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.hak-badge-pill {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  background: #0284c7;
  color: #ffffff;
  vertical-align: middle;
}
.hak-badge-pill.fav {
  background: #eab308;
  color: #022c22;
}
.hak-badge-pill.notif {
  background: #10b981;
  color: #022c22;
}

@media (min-width: 1120px) {
  .v38-topbar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #hakAccountHome4520.hak-auth-top {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 5px 8px !important;
    justify-content: space-between !important;
    overflow-x: auto !important;
    border-radius: 0 !important;
  }
  .hak-top-popover {
    top: 44px !important;
    right: 6px !important;
    left: 6px !important;
    width: auto !important;
  }
  .hak-auth-methods-grid {
    grid-template-columns: 1fr !important;
  }
  /* On mobile phones, show Google & Facebook login at the top so user sees all login methods immediately */
  .hak-social-col {
    order: -1;
    gap: 8px;
  }
  .hak-modal-dialog {
    padding: 12px 13px !important;
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
  }
  .hak-modal-brand strong {
    font-size: 14.5px;
  }
  .hak-u-item {
    padding: 4px 5px !important;
    font-size: 11px !important;
  }
  .hak-top-sep {
    font-size: 10px;
  }
}

/* Collapsible Legal Copyright Notice */
.hak-legal-footer-wrap {
  width: 100%;
  box-sizing: border-box;
  background: #04121e;
  border-top: 1px solid #1e4258;
  color: #cbd5e1;
  font: 12px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding: 8px 14px;
  z-index: 200;
}
.hak-legal-details {
  max-width: 1180px;
  margin: 0 auto;
}
.hak-legal-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  color: #fde047;
  padding: 4px 8px;
  user-select: none;
}
.hak-legal-details > summary::-webkit-details-marker {
  display: none;
}
.hak-legal-details > summary .hak-legal-toggle-pill {
  background: #0c3550;
  color: #7dd3fc;
  border: 1px solid #38bdf8;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 800;
}
.hak-legal-box {
  margin-top: 8px;
  padding: 12px 15px;
  background: #071d2f;
  border: 1px solid #2b6cb0;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: left;
}
