/* "Log in to continue" (fragments/components/modal/modal.html, login-modal.js): a native <dialog> in the card look,
   with the person icon, a plain title and text, Log in and Cancel. Colours come from the theme tokens. */
.lm {
  width: min(420px, calc(100vw - 32px));
  padding: 32px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

.lm[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lm::backdrop {
  background: rgba(0, 0, 0, .55);
}

.lm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.lm-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.lm-close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.lm-close .icon {
  width: 20px;
  height: 20px;
}

.lm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.lm-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--link);
}

.lm-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.3;
}

.lm-text {
  max-width: 34ch;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.lm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .lm-actions > * {
    flex: 1 1 100%;
  }
}

.exotic-modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.exotic-modal-content {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  max-width: 800px;
  width: 90%;
  position: relative;
  font-family: 'Montserrat', sans-serif !important;
}

.exotic-modal-content *{
  font-family: 'Montserrat', sans-serif !important;
}

.exotic-modal-left {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exotic-modal-left h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #5580af;
  font-weight: bold;
}

.exotic-modal-left p {
  color: #555;
  text-align: justify;
}

.exotic-modal-left a.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background: #5580af;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.exotic-modal-right {
  flex: 1;
}

.exotic-modal-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

.brand-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brand-paywall-gallery-blur {
  filter: blur(4px);
  pointer-events: none;
}

.brand-paywall-overlay-card {
  pointer-events: all;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .14);
  padding: 2rem 2rem 1.75rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.brand-paywall-lock {
  font-size: 2.2rem;
  margin-bottom: .4rem;
}

.brand-paywall-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 .65rem;
}

.brand-paywall-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  text-align: left;
  display: block;
}

.brand-paywall-list li {
  font-size: .88rem;
  color: #374151;
  padding: .18rem 0 .18rem 1.4rem;
  position: relative;
}

.brand-paywall-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.brand-paywall-price {
  font-size: 1rem;
  font-weight: 600;
  color: #de4640;
  margin: 0 0 .85rem;
}

.brand-paywall-btn {
  display: inline-block;
  padding: .7rem 2rem;
  background: #16a34a;
  color: #fff;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s ease;
}

.brand-paywall-btn:hover { opacity: .88; }

.brand-paywall-fineprint {
  font-size: .76rem;
  color: #9ca3af;
  margin: .75rem 0 0;
}

