/* 40aWeek - components/modals */

.fancy-modal input,
.fancy-modal textarea,
.fancy-modal button,
.fancy-modal select,
.fancy-input,
.form-input.social-field {
  font-family: inherit;
}

#addSection.btn-wizard-ghost {
  width: 100%;
  justify-content: center;
  border-style: dashed;
  padding: 14px;
  color: #7A6C63;
  background: #ffffff;
  border-color: #E5D5CB;
}

#addSection.btn-wizard-ghost:hover {
  border-color: var(--color-primary, #C8490D);
  color: var(--color-primary, #C8490D);
  background: #FDF6F2;
}

.section-group.reddit-section {
  background: #ffffff;
  border: 1px solid #DDD6CD;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(42, 33, 29, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-group.reddit-section:hover {
  box-shadow: 0 6px 24px rgba(42, 33, 29, 0.06);
  border-color: #C8490D;
}

.section-group.reddit-section .wizard-textarea {
  background: #ffffff;
  border: 1px solid #E5D5CB;
  color: #2A211D;
  border-radius: 8px;
}

#addSection {
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: 600;
  transition: background-color 0.2s;
}

#addSection:hover {
  background: var(--color-primary-dark);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  width: 90%;
}

.section-group {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

.section-group h4 {
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.submission-form.preview-mode-on #addSection {
  display: none;
}

#toast-notification {
  position: fixed;
  top: 72px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 1001;
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
}

#toast-notification.show {
  transform: translateX(0);
}

#toast-notification.toast-success {
  background: #f0f5f1;
  color: #345e41;
  border: 1px solid #c3d9c8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#toast-notification.toast-error {
  background: #fcf1f1;
  color: #9b3333;
  border: 1px solid #f2c7c7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.modal-content.fancy-modal {
  padding: 0;
  border-radius: 20px;
  background: #fff;
  max-width: 500px;
  width: 95%;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.fancy-modal h3 {
  margin: 0;
  padding: 20px 25px;
  background: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.fancy-modal-body {
  padding: 25px;
  background: #fff;
  overflow-y: auto;
  flex-grow: 1;
}

.fancy-modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fancy-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-subtle, #F5F0EA);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.fancy-input:focus {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
  outline: none;
}

textarea.fancy-input {
  min-height: 100px;
  resize: none;
  line-height: 1.5;
}

.bio-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.bio-input-wrapper textarea.fancy-input {
  margin-bottom: 0;
  padding-bottom: 28px;
  resize: none;
}

.char-count-inside {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.social-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  margin: 15px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.social-input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
  overflow: hidden;
}

.social-input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 73, 13, 0.15);
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6b7280;
  background: var(--bg-subtle, #F5F0EA);
  border-right: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.social-input-group:focus-within .social-icon {
  color: var(--color-primary);
  background: #fff;
}

.social-input-group input,
.social-input-group .social-field {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 50px;
  padding: 0 16px;
  font-size: 0.95rem;
  color: #1f2937;
  width: 100%;
  border-radius: 0 !important;
  margin: 0 !important;
}

.social-input-group input:focus,
.social-input-group .social-field:focus {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal-actions {
  padding: 20px 25px;
  background: var(--bg-subtle, #F5F0EA);
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.modal-actions .btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.modal-actions .btn-secondary {
  background: #fff;
  border: 1px solid #E8E4DF;
  color: #374151;
}

.modal-actions .btn-secondary:hover {
  background: var(--bg-subtle, #F5F0EA);
}

.modal-actions .btn-primary {
  background: var(--color-primary);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.modal-actions .btn-primary:hover {
  box-shadow: 0 6px 10px rgba(99, 102, 241, 0.3);
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 16, 14, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.auth-modal-content {
  width: 92%;
  max-width: 420px;
  padding: 36px 32px 28px 32px;
  border-radius: 20px;
  position: relative;
  text-align: center;
  transform: translateY(15px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(42, 33, 29, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #EAE5DF;
  box-sizing: border-box;
}

.auth-modal-overlay.active .auth-modal-content {
  transform: translateY(0) scale(1);
}

.auth-modal-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 73, 13, 0.08);
  color: var(--color-primary, #C8490D);
  border: 1px solid rgba(200, 73, 13, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-context-badge i {
  font-size: 0.85rem;
}

.auth-modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #2A211D;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.auth-modal-subtitle {
  font-size: 0.9rem;
  color: #7A6C63;
  margin: 0;
  line-height: 1.45;
}

.auth-google-wrapper {
  margin-bottom: 16px;
}

.auth-google-btn {
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  color: #2A211D;
  border: 1px solid #D5CEC5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.auth-google-btn:hover {
  background: #FAF8F5;
  border-color: var(--color-primary, #C8490D);
  box-shadow: 0 4px 12px rgba(200, 73, 13, 0.12);
  transform: translateY(-1px);
}

.auth-google-btn:active {
  transform: translateY(0);
}

.auth-google-subtext {
  font-size: 0.78rem;
  color: #8E827A;
  margin: 6px 0 0 0;
  font-weight: 500;
}

.auth-quick-section {
  animation: fadeIn 0.2s ease;
}

.auth-email-section {
  animation: fadeIn 0.2s ease;
}

.auth-email-toggle-btn {
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  color: #2A211D;
  border: 1px solid #D5CEC5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-email-toggle-btn:hover {
  background: #FAF8F5;
  border-color: var(--color-primary, #C8490D);
  color: var(--color-primary, #C8490D);
}

.auth-email-section-nav {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.auth-back-btn {
  background: none;
  border: none;
  color: #7A6C63;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.auth-back-btn:hover {
  color: var(--color-primary, #C8490D);
  background: rgba(200, 73, 13, 0.06);
}

/* --- EMAIL VERIFICATION SECTION (POST-INSCRIPTION) --- */
.auth-verify-section {
  animation: fadeIn 0.25s ease;
  text-align: center;
  padding: 8px 0;
}

.auth-verify-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(200, 73, 13, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.auth-verify-icon {
  font-size: 1.6rem;
  color: var(--color-primary, #C8490D);
}

.auth-verify-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #2A211D;
  margin: 0 0 8px 0;
}

.auth-verify-subtitle {
  font-size: 0.88rem;
  color: #7A6C63;
  margin: 0 0 4px 0;
}

.verify-email-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary, #C8490D);
  word-break: break-all;
  margin: 0 0 12px 0;
}

.auth-verify-desc {
  font-size: 0.85rem;
  color: #7A6C63;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.auth-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- USERNAME SELECTION SECTION (POST-GOOGLE REGISTRATION) --- */
.auth-username-section {
  animation: fadeIn 0.25s ease;
  text-align: center;
  padding: 4px 0;
}

.auth-username-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #2A211D;
  margin: 4px 0 8px 0;
}

.auth-username-subtitle {
  font-size: 0.88rem;
  color: #7A6C63;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.auth-username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  text-align: left;
}

.auth-username-input-wrapper .glass-input {
  margin-bottom: 0 !important;
  padding-left: 36px !important;
  width: 100%;
}

.auth-username-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: #9C9088;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.auth-username-hint {
  font-size: 0.78rem;
  color: #8E827A;
  margin: 6px 0 20px 0;
  text-align: left;
}

.auth-username-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-btn-ghost {
  background: transparent;
  border: 1px solid #D5CEC5;
  color: #7A6C63;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-btn-ghost:hover {
  border-color: var(--color-primary, #C8490D);
  color: var(--color-primary, #C8490D);
  background: rgba(200, 73, 13, 0.05);
}

.dark-mode .auth-username-title {
  color: #F5F1ED;
}

.dark-mode .auth-username-subtitle {
  color: #B3A8A0;
}

.dark-mode .auth-btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #B3A8A0;
}

.dark-mode .auth-btn-ghost:hover {
  border-color: var(--color-primary, #C8490D);
  color: #FFFFFF;
  background: rgba(200, 73, 13, 0.15);
}

/* --- BANDEAU PUBLISH EMAIL WARNING --- */
.publish-email-warning-banner {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.25s ease;
}

.publish-email-warning-banner .warning-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.publish-email-warning-banner .warning-icon {
  color: #D97706;
  font-size: 1.25rem;
  margin-top: 2px;
}

.publish-email-warning-banner .warning-text-group strong {
  display: block;
  font-size: 0.95rem;
  color: #92400E;
  margin-bottom: 2px;
}

.publish-email-warning-banner .warning-text-group p {
  font-size: 0.85rem;
  color: #B45309;
  margin: 0;
}

.publish-email-warning-banner .warning-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- BANDEAU GLOBAL EMAIL VERIFICATION --- */
.global-email-verif-banner {
  background: #FFFBEB;
  border-top: 1px solid #FCD34D;
  margin: 0 -24px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #92400E;
  animation: fadeIn 0.25s ease;
  box-sizing: border-box;
}

.global-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-banner-content .banner-icon {
  color: #D97706;
  font-size: 1rem;
}

.global-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.global-banner-actions .btn-sm {
  height: 28px;
  padding: 0 12px;
  font-size: 0.78rem;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .publish-email-warning-banner,
  .global-email-verif-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .publish-email-warning-banner .warning-banner-actions,
  .global-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.auth-separator {
  margin: 18px 0;
  border-top: 1px solid #EAE5DF;
  position: relative;
  text-align: center;
}

.auth-separator-text {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 12px;
  color: #9C9088;
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EAE5DF;
  padding-bottom: 8px;
}

.auth-tab {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9C9088;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding-bottom: 8px;
  position: relative;
}

.auth-tab.active {
  color: var(--color-primary, #C8490D);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary, #C8490D);
  border-radius: 2px;
}

.auth-form {
  display: none;
  animation: fadeIn 0.25s ease;
  text-align: left;
}

.auth-form.active {
  display: block;
}

.glass-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid #D5CEC5;
  background: #FAF8F5;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #2A211D;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.glass-input:focus {
  background: #ffffff;
  border-color: var(--color-primary, #C8490D);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 73, 13, 0.12);
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 10px;
  margin-top: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.auth-forgot-pass-wrapper {
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.85rem;
}

.auth-forgot-pass-wrapper a {
  color: #7A6C63;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot-pass-wrapper a:hover {
  color: var(--color-primary, #C8490D);
  text-decoration: underline;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #8E827A;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.auth-close:hover {
  color: #2A211D;
  background: rgba(0, 0, 0, 0.05);
}

.auth-trust-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #EAE5DF;
  font-size: 0.78rem;
  color: #8E827A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-trust-footer i {
  color: var(--color-primary, #C8490D);
}

@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    padding: 28px 20px 22px 20px;
    border-radius: 18px;
  }
  .auth-modal-title {
    font-size: 1.5rem;
  }
}

.enlarge-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 500;
}

.enlarge-content {
  max-width: 90%;
  max-height: 90%;
}

.enlarge-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 10002;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-bottom: 4px;
  margin: 0;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: white;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.fancy-timer-badge {
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse-glow 2s infinite;
  margin: 0;
  line-height: normal;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

/* --- SHARE NUDGE MODAL (THE WEEKLY PAPER DESIGN) --- */
.share-nudge-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
}

.share-nudge-content {
  position: relative;
  width: 92%;
  max-width: 440px;
  background: var(--bg-card, #ffffff);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #E8E4DF);
  overflow: hidden;
  animation: nudgeModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nudgeModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.share-nudge-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle, #F5F0EA);
  color: var(--text-light, #7A6C63);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.share-nudge-close-btn:hover {
  background: var(--border-color, #E8E4DF);
  color: var(--text-color, #2A211D);
}

.share-nudge-header {
  padding: 28px 24px 20px 24px;
  text-align: center;
}

.share-nudge-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(200, 73, 13, 0.12), rgba(200, 73, 13, 0.04));
  border: 1px solid rgba(200, 73, 13, 0.2);
  color: var(--color-primary, #C8490D);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.share-nudge-title {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color, #2A211D);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.share-nudge-desc {
  font-size: 0.92rem;
  color: var(--text-light, #7A6C63);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.share-nudge-desc strong {
  color: var(--text-color, #2A211D);
}

.share-nudge-link-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle, #F5F0EA);
  border: 1px solid var(--border-color, #E8E4DF);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.share-nudge-link-box:focus-within {
  border-color: var(--color-primary, #C8490D);
  box-shadow: 0 0 0 3px rgba(200, 73, 13, 0.12);
}

.share-nudge-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-color, #2A211D);
  outline: none;
  font-family: inherit;
  width: 100%;
  text-overflow: ellipsis;
}

.share-nudge-btn-copy {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--color-primary, #C8490D);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-nudge-btn-copy:hover {
  background: var(--color-primary-dark, #A03808);
}

.share-nudge-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-nudge-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-nudge-btn-social.x-btn {
  background: #111111;
  color: #ffffff;
}

.share-nudge-btn-social.x-btn:hover {
  background: #252525;
  transform: translateY(-1px);
}

.share-nudge-btn-social.wa-btn {
  background: #25D366;
  color: #ffffff;
}

.share-nudge-btn-social.wa-btn:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.share-nudge-footer {
  padding: 14px 24px 18px 24px;
  border-top: 1px solid var(--border-color, #E8E4DF);
  background: var(--bg-subtle, #F5F0EA);
  text-align: center;
}

.share-nudge-btn-later {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #E8E4DF);
  background: var(--bg-card, #ffffff);
  color: var(--text-color, #2A211D);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-nudge-btn-later:hover {
  background: var(--border-color, #E8E4DF);
}

