#sc-auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#sc-auth-modal-root[data-open='true'] {
  display: flex;
}

#sc-auth-modal-root .sc-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

#sc-auth-modal-root .sc-auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #262626;
  border: 1px solid #404040;
  border-radius: 2px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: #f4f4f4;
  font-family: inherit;
}

#sc-auth-modal-root .sc-auth-corner-tl,
#sc-auth-modal-root .sc-auth-corner-tr,
#sc-auth-modal-root .sc-auth-corner-bl,
#sc-auth-modal-root .sc-auth-corner-br {
  position: absolute;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

#sc-auth-modal-root .sc-auth-corner-tl {
  top: 0;
  left: 0;
  border-top: 1px solid #dc2626;
  border-left: 1px solid #dc2626;
}

#sc-auth-modal-root .sc-auth-corner-tr {
  top: 0;
  right: 0;
  border-top: 1px solid #525252;
  border-right: 1px solid #525252;
}

#sc-auth-modal-root .sc-auth-corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid #525252;
  border-left: 1px solid #525252;
}

#sc-auth-modal-root .sc-auth-corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid #525252;
  border-right: 1px solid #525252;
}

#sc-auth-modal-root .sc-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #737373;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
}

#sc-auth-modal-root .sc-auth-close:hover {
  color: #fff;
}

#sc-auth-modal-root .sc-auth-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

#sc-auth-modal-root .sc-auth-subtitle {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #737373;
  font-weight: 600;
}

#sc-auth-modal-root .sc-auth-error {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 2px;
  color: #f87171;
  font-size: 0.75rem;
  text-align: center;
}

#sc-auth-modal-root .sc-auth-field {
  margin-bottom: 1rem;
}

#sc-auth-modal-root .sc-auth-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #737373;
}

#sc-auth-modal-root .sc-auth-field input,
#sc-auth-modal-root .sc-auth-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  background: #171717;
  border: 1px solid #404040;
  border-radius: 2px;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}

#sc-auth-modal-root .sc-auth-field input {
  height: 3rem;
}

#sc-auth-modal-root .sc-auth-field textarea {
  min-height: 4.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  resize: vertical;
  line-height: 1.4;
}

#sc-auth-modal-root .sc-auth-field input:focus,
#sc-auth-modal-root .sc-auth-field textarea:focus {
  outline: none;
  border-color: #dc2626;
}

#sc-auth-modal-root .sc-auth-btn {
  width: 100%;
  height: 3rem;
  margin-top: 0.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s;
}

#sc-auth-modal-root .sc-auth-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

#sc-auth-modal-root .sc-auth-btn-primary {
  background: #dc2626;
  color: #fff;
}

#sc-auth-modal-root .sc-auth-btn-primary:hover:not(:disabled) {
  background: #b91c1c;
}

#sc-auth-modal-root .sc-auth-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #525252;
  margin-top: 0.75rem;
}

#sc-auth-modal-root .sc-auth-btn-secondary:hover:not(:disabled) {
  border-color: #737373;
}

#sc-auth-modal-root .sc-auth-choose {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#sc-auth-modal-root .sc-auth-back-link {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  background: none;
  border: none;
  color: #737373;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#sc-auth-modal-root .sc-auth-back-link:hover {
  color: #fff;
}

#sc-auth-modal-root .sc-auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #737373;
}

#sc-auth-modal-root .sc-auth-footer button {
  background: none;
  border: none;
  color: #dc2626;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
}

#sc-auth-modal-root .sc-auth-footer button:hover {
  text-decoration: underline;
}

#sc-auth-modal-root .sc-auth-forgot {
  margin: -6px 0 14px;
  text-align: right;
}

#sc-auth-modal-root .sc-auth-forgot button {
  border: none;
  background: none;
  padding: 0;
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

#sc-auth-modal-root .sc-auth-forgot button:hover {
  color: #e53935;
}

body.sc-auth-open {
  overflow: hidden;
}

#sc-auth-modal-root .sc-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #737373;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#sc-auth-modal-root .sc-auth-divider::before,
#sc-auth-modal-root .sc-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

#sc-auth-modal-root .sc-auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#sc-auth-modal-root .sc-auth-btn-google:hover:not(:disabled) {
  background: #f5f5f5;
}

#sc-auth-modal-root .sc-auth-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#sc-auth-modal-root .sc-auth-btn-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0.75rem;
  background: #1877f2;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#sc-auth-modal-root .sc-auth-btn-facebook:hover:not(:disabled) {
  background: #166fe5;
}

#sc-auth-modal-root .sc-auth-facebook-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Awatar profilu w nagłówku WWW / rezerwacji */
a.sc-www-profile-link,
.sc-www-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #525252;
  background: #404040;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}

.sc-www-profile-link:hover {
  border-color: #737373;
  background: #525252;
}

.sc-www-profile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[data-sc-firebase-auth-suppressed='1'] {
  display: none !important;
}

/* Ikona konta w nagłówku WWW — zawsze klikalna (nad siatką / sąsiednimi przyciskami) */
header button.sc-www-profile-btn,
header button.sc-www-profile-wired,
header a.sc-www-profile-link {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

header .sc-www-header-tools,
header div[class*='items-center'][class*='gap-4']:has(button.sc-www-profile-btn) {
  position: relative;
  z-index: 4;
}
