.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}
.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.42;
  filter: grayscale(0.45);
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.lang-switch button img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
}
.lang-switch button:hover {
  opacity: 0.85;
  filter: grayscale(0.15);
  transform: scale(1);
}
.lang-switch button.active {
  opacity: 1;
  filter: none;
  transform: scale(1.1);
  border-color: #4db8ff;
  box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.4);
}
.lang-switch button:focus-visible {
  outline: 2px solid #4db8ff;
  outline-offset: 2px;
}

.download-zone {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}

.waitlist-zone .waitlist-intro {
  max-width: 640px;
  margin: 16px auto 0;
  color: #555;
  font-size: 1.05em;
  line-height: 1.7;
}

.waitlist-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Shared site buttons (waitlist + account + forms + community/reviews). */
.btn-primary,
.btn-secondary,
.site-btn,
.waitlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--btn-height, 44px);
  min-height: var(--btn-height, 44px);
  padding: 0 var(--btn-pad-x, 18px);
  border-radius: var(--btn-radius, 10px);
  border-style: solid;
  border-width: var(--btn-border-width, 2px);
  font-size: var(--btn-font-size, 0.95rem);
  font-weight: var(--btn-font-weight, 700);
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary,
.site-btn,
.waitlist-btn {
  background: var(--primary, #0A2A43);
  color: #fff;
  border-color: var(--primary, #0A2A43);
}

.btn-secondary,
.site-btn--secondary {
  background: #fff;
  color: var(--primary, #0A2A43);
  border-color: var(--primary, #0A2A43);
}

.btn-primary:hover,
.site-btn:hover,
.waitlist-btn:hover {
  background: var(--accent, #4db8ff);
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0A2A43);
  transform: translateY(-1px);
}

.btn-secondary:hover,
.site-btn--secondary:hover {
  background: #f7fbff;
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0A2A43);
  transform: translateY(-1px);
}

.site-btn--danger,
.btn-primary--danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.site-btn--danger:hover,
.btn-primary--danger:hover,
.site-btn.site-btn--danger:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.site-btn:disabled,
.waitlist-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.site-btn,
.waitlist-btn {
  min-width: 240px;
}

.site-btn--compact,
.account-actions .site-btn {
  min-width: 0;
}

.editorial-highlights { margin-bottom: 60px; }
.editorial-highlights > p { font-size: 1.1em; color: #555; max-width: 800px; }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.editorial-card { display: block; background: #f8fbff; border: 1px solid #d9ecff; border-radius: 14px; padding: 24px; text-decoration: none; color: inherit; transition: 0.25s; }
.editorial-card:hover { transform: translateY(-4px); border-color: var(--accent, #4db8ff); box-shadow: 0 10px 24px rgba(77, 184, 255, 0.15); }
.editorial-card__tag { display: inline-block; color: var(--accent, #4db8ff); font-size: 0.75em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.editorial-card h3 { margin: 0 0 10px 0; color: var(--primary, #0A2A43); font-size: 1.25em; }
.editorial-card p { margin: 0; font-size: 0.95em; color: #555; line-height: 1.6; }

.app-coming-note { background: #f0f7ff; border-left: 4px solid var(--accent, #4db8ff); padding: 16px 20px; border-radius: 8px; margin: 0 0 40px 0; font-size: 1.05em; color: #35566f; }

.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.badges-container img[data-store-badge] {
  display: block;
  width: 170px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.badges-container img[data-store-badge="android"][src$=".png"] {
  height: 66px;
}

.badges-container img[data-store-badge]:hover {
  transform: translateY(-3px);
}

.verification-box {
  display: none;
  margin: 0 0 15px 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #cfe8ff;
  background: #f4faff;
  text-align: left;
}

.verification-box.visible {
  display: block;
}

.verification-box.verified {
  border-color: #b7dfc3;
  background: #f3fbf5;
}

.verification-box p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #35566f;
}

.verification-box.verified p {
  color: #1f6b3b;
}

.verification-box.button-only {
  border: none;
  background: transparent;
  padding: 0 0 15px 0;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.verification-actions button,
.verification-actions .waitlist-btn {
  width: auto;
  min-width: 0;
}

.otp-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.otp-digits__cell {
  width: 44px;
  height: 52px;
  box-sizing: border-box;
  border: 1px solid #dddddd;
  border-radius: 12px;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1c1c1e;
  background: #fff;
  padding: 0;
  margin: 0;
}

.otp-digits__cell:focus {
  outline: none;
  border-color: #0a2a43;
  box-shadow: 0 0 0 2px rgba(10, 42, 67, 0.15);
}

.modal-overlay .modal-content .waitlist-btn,
.tourai-email-verify-modal .modal-content .waitlist-btn {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  padding: 0 var(--btn-pad-x, 18px);
}

.modal-overlay .modal-content .waitlist-btn:hover:not(:disabled),
.tourai-email-verify-modal .modal-content .waitlist-btn:hover:not(:disabled) {
  color: var(--primary, #0A2A43);
}

.modal-overlay .modal-content .waitlist-btn:disabled,
.tourai-email-verify-modal .modal-content .waitlist-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
  opacity: 0.75;
}

.verification-code-input {
  letter-spacing: 6px;
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
}

.verification-hint {
  font-size: 0.85em;
  color: #666;
  margin-top: 12px;
}

.verification-status {
  font-size: 0.9em;
  margin-top: 10px;
}

.verification-status.error {
  color: #c0392b;
}

.verification-status.success {
  color: #1f6b3b;
}

.link-button {
  background: transparent;
  border: none;
  color: #4db8ff;
  cursor: pointer;
  font-size: 0.9em;
  padding: 0;
  text-decoration: underline;
}

.subscription-manage-link {
  margin-top: 14px;
  text-align: center;
}

.download-manage-link {
  margin-top: 1rem;
  text-align: center;
}

.store-unsubscribe-content {
  max-width: 460px;
}

.store-unsubscribe-content #unsubEmail {
  margin-bottom: 12px;
}

.store-unsubscribe-content #unsubViewSubscriptionsBtn {
  width: 100%;
  margin: 0 0 8px;
}

.store-unsubscribe-content #unsubSubmitBtn {
  width: 100%;
  margin-top: 12px;
}

.unsub-code-section,
.unsub-manage-section {
  margin-top: 12px;
  text-align: left;
}

.unsub-store-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  margin: 10px 0;
  font-size: 0.95em;
  text-align: left;
  cursor: pointer;
}

.unsub-store-option input[type="checkbox"] {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  justify-self: start;
}

.unsub-store-option span {
  min-width: 0;
}

.unsub-empty-message {
  color: #666;
  font-size: 0.9em;
  margin: 10px 0;
}

.tourai-email-verify-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.tourai-email-verify-modal .modal-content,
.tourai-email-verify-modal__card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #dddddd;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.tourai-email-verify-modal .tourai-email-verify-modal__title,
.tourai-email-verify-modal__card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1e;
  text-align: center;
  border: none;
  border-bottom: none;
  padding: 0;
  padding-bottom: 0;
}

.tourai-email-verify-modal__intro,
.tourai-email-verify-modal__hint {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #6e6e73;
  text-align: center;
}

.tourai-email-verify-modal__divider {
  height: 1px;
  width: 100%;
  background: #dddddd;
  border: none;
  margin: 0;
}

.tourai-email-verify-modal__status {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.tourai-email-verify-modal__link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 auto;
  color: #2f7a98;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 32px;
}

.tourai-email-verify-modal__link:hover {
  color: #256480;
  text-decoration: underline;
}

.tourai-email-verify-modal__primary,
.tourai-email-verify-modal__exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tourai-email-verify-modal__primary {
  background: #0a2a43;
  color: #fff;
}

.tourai-email-verify-modal__primary:hover:not(:disabled) {
  background: #0d3b5e;
}

.tourai-email-verify-modal__primary:disabled {
  background: #9aa8b5;
  cursor: not-allowed;
}

.tourai-email-verify-modal__exit {
  background: #cc1b00;
  color: #fff;
}

.tourai-email-verify-modal__exit:hover {
  background: #e6220a;
}

.tourai-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(10, 42, 67, 0.58);
  align-items: center;
  justify-content: center;
  cursor: wait;
}

.tourai-loading-overlay.visible {
  display: flex;
}

body.tourai-loading-active {
  overflow: hidden;
}

.tourai-loading-panel {
  background: #fff;
  padding: 28px 36px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  min-width: 220px;
}

.tourai-loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #e3f2fd;
  border-top-color: #4db8ff;
  border-radius: 50%;
  animation: tourai-spin 0.8s linear infinite;
}

.tourai-loading-message {
  margin: 0;
  color: #0a2a43;
  font-weight: 600;
  font-size: 0.95em;
}

@keyframes tourai-spin {
  to {
    transform: rotate(360deg);
  }
}

.tourai-feedback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 21000;
  background: rgba(10, 42, 67, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tourai-feedback-modal.visible {
  display: flex;
}

body.tourai-feedback-open {
  overflow: hidden;
}

.tourai-feedback-panel {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border-top: 5px solid #4db8ff;
  animation: tourai-feedback-in 0.28s ease-out;
}

@keyframes tourai-feedback-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tourai-feedback-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tourai-feedback-icon--success {
  background: #e8f8ee;
  color: #1f8a4c;
  border: 3px solid #b7e6c8;
}

.tourai-feedback-icon--error {
  background: #fff0f0;
  color: #c0392b;
  border: 3px solid #f5c6c6;
}

.tourai-feedback-icon--info {
  background: #eef7ff;
  color: #0a2a43;
  border: 3px solid #cfe8ff;
}

.tourai-feedback-title {
  margin: 0 0 12px;
  color: #0a2a43;
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1.25;
}

.tourai-feedback-message {
  margin: 0 0 24px;
  color: #4a6278;
  font-size: 1em;
  line-height: 1.55;
}

.tourai-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--btn-height, 44px);
  min-height: var(--btn-height, 44px);
  padding: 0 var(--btn-pad-x, 18px);
  background: var(--primary, #0a2a43);
  color: #fff;
  border: var(--btn-border-width, 2px) solid var(--primary, #0a2a43);
  border-radius: var(--btn-radius, 10px);
  font-size: var(--btn-font-size, 0.95rem);
  font-weight: var(--btn-font-weight, 700);
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tourai-feedback-btn:hover {
  background: var(--accent, #4db8ff);
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0a2a43);
  transform: translateY(-1px);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-top: 0;
  color: #0a2a43;
  border-bottom: 2px solid #4db8ff;
  padding-bottom: 10px;
}

.close-modal,
.modal .close,
.tourai-email-verify-modal .close-modal,
[data-close-unsub],
[data-close-code-modal] {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5em;
  cursor: pointer;
  color: #999;
  z-index: 2;
  line-height: 1;
  user-select: none;
}

.modal .close {
  font-size: 28px;
}

.modal button[type="submit"]:disabled,
.modal button[type="submit"][aria-disabled="true"] {
  background: #b8c5d0;
  color: #f5f7fa;
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.modal button[type="submit"]:disabled:hover,
.modal button[type="submit"][aria-disabled="true"]:hover {
  background: #b8c5d0;
  color: #f5f7fa;
  transform: none;
}

@media (max-width: 1000px) {
  .lang-switch {
    margin: 10px 0 0;
    justify-content: center;
  }
}

.site-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9999;
  background: #0a2a43;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #4db8ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.site-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-cookie-banner__text {
  margin: 0;
  font-size: 0.9em;
  flex: 1;
  min-width: 240px;
}

.site-cookie-banner__text a {
  color: #4db8ff;
}

.site-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.site-cookie-banner__reject,
.site-cookie-banner__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--btn-height, 44px);
  min-height: var(--btn-height, 44px);
  padding: 0 var(--btn-pad-x, 18px);
  border-radius: var(--btn-radius, 10px);
  border-style: solid;
  border-width: var(--btn-border-width, 2px);
  font-size: var(--btn-font-size, 0.95rem);
  font-weight: var(--btn-font-weight, 700);
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.site-cookie-banner__reject {
  background: transparent;
  border-color: #7a93a8;
  color: #d7e3ee;
}

.site-cookie-banner__accept {
  background: var(--accent, #4db8ff);
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0a2a43);
}

@media (max-width: 768px) {
  .site-cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
  }

  .site-cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-cookie-banner__actions {
    width: 100%;
  }

  .site-cookie-banner__reject,
  .site-cookie-banner__accept {
    flex: 1;
  }
}

/* First-party site promo: guests (install app) + freemium (Premium). Not third-party ads. */
.site-promo__banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9400;
}

body:has(.site-cookie-banner:not([hidden])) .site-promo__banner {
  bottom: 120px;
}

.site-promo__banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #9fd6ef;
  background: linear-gradient(120deg, #0a2a43 0%, #123f5c 55%, #0d3b5e 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(10, 42, 67, 0.28);
}

.site-promo__banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-promo__banner-title {
  font-size: 1rem;
  line-height: 1.3;
}

.site-promo__banner-body {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #d7eef8;
}

.site-promo__banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.site-promo__banner-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.site-promo__banner-actions .btn-secondary:hover {
  background: #fff;
  color: #0a2a43;
  border-color: #fff;
}

.site-promo__rail {
  position: fixed;
  top: 50%;
  right: 12px;
  z-index: 9300;
  width: 168px;
  transform: translateY(-50%);
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid #c9e6f5;
  background: linear-gradient(165deg, #f4fafc 0%, #e8f4ff 100%);
  box-shadow: 0 10px 28px rgba(10, 42, 67, 0.16);
  display: none;
}

.site-promo__rail-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f7a98;
}

.site-promo__rail-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0a2a43;
}

.site-promo__rail-body {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #555;
}

.site-promo__rail-cta {
  width: 100%;
  min-height: 40px;
  height: auto;
  padding: 8px 10px;
  font-size: 0.85rem;
  text-align: center;
}

.site-promo__modal {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-promo__modal[hidden] {
  display: none !important;
}

.site-promo__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 67, 0.55);
}

.site-promo__modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.site-promo__spot {
  position: relative;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 280px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 184, 255, 0.35), transparent 55%),
    linear-gradient(145deg, #0a2a43, #123f5c 55%, #2f7a98);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-promo__spot-brand {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-promo__spot-pulse {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(201, 238, 239, 0.55);
  animation: site-promo-spot-pulse 2.4s ease-out infinite;
}

@keyframes site-promo-spot-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.site-promo__modal-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #0a2a43;
}

.site-promo__modal-lead,
.site-promo__modal-body {
  margin: 0 0 10px;
  color: #555;
  line-height: 1.55;
  font-size: 0.95rem;
}

.site-promo__modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 1100px) {
  .site-promo__rail:not([hidden]) {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-promo__banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-promo__banner-actions {
    width: 100%;
  }

  .site-promo__banner-actions .btn-primary,
  .site-promo__banner-actions .btn-secondary {
    flex: 1;
  }

  body:has(.site-cookie-banner:not([hidden])) .site-promo__banner {
    bottom: 160px;
  }
}

/* Shared navigation, footer and home visuals */
html { scroll-behavior: smooth; }

:root {
  --primary: #0A2A43;
  --secondary: #0d3b5e;
  --accent: #4db8ff;
  --text: #333;
  --light: #f4f7f9;
  --white: #ffffff;
  /* Shared action-button geometry (primary / secondary / site / waitlist) */
  --btn-height: 44px;
  --btn-pad-x: 18px;
  --btn-radius: 10px;
  --btn-border-width: 2px;
  --btn-font-size: 0.95rem;
  --btn-font-weight: 700;
  /* Shared page hero / title band (login, home, legal, account, etc.) */
  --hero-bg:
    radial-gradient(ellipse at top, rgba(77, 184, 255, 0.28), transparent 55%),
    linear-gradient(165deg, #0A2A43 0%, #0d3b5e 48%, #123f5c 100%);
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.8;
}

.floating-logo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid var(--accent);
}

.floating-logo img {
  width: 35px;
  height: auto;
}

.floating-logo:hover { transform: scale(1.1); }

header,
.page-hero,
.site-legal-page header {
  background: var(--hero-bg);
  color: #fff;
  padding: 64px 20px 48px;
  text-align: center;
  border-bottom: 5px solid var(--accent);
  position: relative;
}

header.has-site-rating,
.page-hero.has-site-rating,
.site-legal-page header.has-site-rating {
  padding-bottom: 56px;
}

header h1,
.page-hero h1,
.site-legal-page header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2em);
  letter-spacing: -1px;
  line-height: 1.1;
  font-weight: 900;
}

header p,
.page-hero p,
.site-legal-page header p {
  max-width: 640px;
  margin: 14px auto 0;
  color: #fff;
  opacity: 0.95;
  font-size: 1.1em;
  line-height: 1.5;
}

.content-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 60px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-wrapper h2 {
  color: var(--primary);
  border-left: 8px solid var(--accent);
  padding: 10px 20px;
  margin: 60px 0 30px 0;
  font-size: 2.2em;
  background: #f9f9f9;
}

.content-wrapper h3 {
  color: var(--secondary);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-block.reverse { direction: rtl; }

.feature-block.reverse .text-content { direction: ltr; }

.app-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  height: 400px;
  object-fit: cover;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.price-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.badge-future {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7em;
  font-weight: bold;
  border: 1px solid #1976d2;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 42, 67, 0.9);
}

.modal .modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal input:not([type="checkbox"]) {
  width: 100%;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Legacy plain modal buttons only — shared .btn-* / .site-btn keep the site button system */
.modal button:not(.btn-primary):not(.btn-secondary):not(.site-btn):not(.close-modal) {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
}

.modal button:not(.btn-primary):not(.btn-secondary):not(.site-btn):not(.close-modal):hover {
  background: var(--accent);
}

.modal button:not(.btn-primary):not(.btn-secondary):not(.site-btn):not(.close-modal):disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Shared buttons inside modals: same look as account bar (e.g. Cerrar sesión) */
.modal .btn-primary,
.modal .btn-secondary,
.modal .site-btn {
  width: auto;
}

.modal .btn-secondary,
.modal .site-btn--secondary {
  background: #fff;
  color: var(--primary, #0A2A43);
  border-style: solid;
  border-width: var(--btn-border-width, 2px);
  border-color: var(--primary, #0A2A43);
}

.modal .btn-secondary:hover,
.modal .site-btn--secondary:hover {
  background: #f7fbff;
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0A2A43);
}

.modal .btn-primary {
  background: var(--primary, #0A2A43);
  color: #fff;
  border-style: solid;
  border-width: var(--btn-border-width, 2px);
  border-color: var(--primary, #0A2A43);
}

.modal .btn-primary:hover {
  background: var(--accent, #4db8ff);
  border-color: var(--accent, #4db8ff);
  color: var(--primary, #0A2A43);
}

footer {
  background-color: #051622;
  color: #ffffff;
  padding: 80px 20px 40px 20px;
  margin-top: 100px;
  border-top: 4px solid var(--accent);
  text-align: center;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1.1em;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 800;
}

.footer-col a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-col a.active {
  color: var(--accent);
  font-weight: bold;
  pointer-events: none;
}

.footer-social__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 200px;
}

.footer-col.footer-social a.footer-social__btn,
.footer-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transform: none !important;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__btn:hover,
.footer-social__btn:focus-visible {
  opacity: 0.92;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.footer-social__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.footer-social__btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social__btn--facebook {
  background: #1877f2;
}

.legal-bottom {
  font-size: 0.9em;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.footer-email {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 1000px) {
  header h1 { font-size: 2.5em; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse { direction: ltr; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    justify-items: center;
  }
  .footer-col {
    width: 100%;
    max-width: 320px;
  }
  .footer-social__links {
    margin: 0 auto;
    max-width: 220px;
  }
}

nav {
  background-color: #fff;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-logo-container {
  width: 150px;
  height: 50px;
  flex-shrink: 0;
}

.nav-logo-container img {
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

nav a {
  color: var(--primary);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.95em;
  text-transform: uppercase;
}

/* Hide guest "Mi cuenta" while a persisted session is being restored. */
html.tourai-auth-pending nav a[data-i18n="nav.account"],
html.tourai-auth-pending nav a[data-auth-account]:not(.nav-account--signed-in),
html.tourai-auth-pending .footer-col a[data-i18n="nav.account"],
html.tourai-auth-pending .footer-col a[data-auth-account]:not(.nav-account--signed-in) {
  visibility: hidden;
}

html.tourai-auth-pending nav a.nav-account--signed-in,
html.tourai-auth-pending .footer-col a.nav-account--signed-in {
  visibility: visible;
}

/* Signed-in account chip — same look on all pages (site, legal, about). */
nav a.nav-account--signed-in,
.site-legal-page nav a.nav-account--signed-in,
.footer-col a.nav-account--signed-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary, #0A2A43);
  text-transform: none;
  border-bottom: none;
  margin: 0 12px;
  padding: 4px 2px;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: normal;
}

.footer-col a.nav-account--signed-in {
  color: var(--accent, #4db8ff);
  margin: 0;
  padding: 0;
}

nav a.nav-account--signed-in:hover,
.site-legal-page nav a.nav-account--signed-in:hover {
  color: var(--accent, #4db8ff);
}

nav a.nav-account--signed-in .nav-account-label,
.site-legal-page nav a.nav-account--signed-in .nav-account-label,
.footer-col a.nav-account--signed-in .nav-account-label {
  text-transform: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: normal;
}

nav a.nav-account--signed-in .nav-account-avatar,
.site-legal-page nav a.nav-account--signed-in .nav-account-avatar,
.footer-col a.nav-account--signed-in .nav-account-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0a2a43 0%, #1a5f8a 100%);
  color: #fff;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid #4db8ff;
  box-sizing: border-box;
}

nav a.nav-account--signed-in .nav-account-avatar img,
.site-legal-page nav a.nav-account--signed-in .nav-account-avatar img,
.footer-col a.nav-account--signed-in .nav-account-avatar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  pointer-events: none;
}

.footer-col a.nav-account--signed-in .nav-account-avatar {
  width: 28px;
  height: 28px;
}

nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  cursor: default;
  pointer-events: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-icon span,
.menu-icon div {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: 0.3s;
  border-radius: 3px;
}

.hero-visual {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  height: 400px;
  background: linear-gradient(135deg, #d9ecff 0%, #f4faff 45%, #e8f4fc 100%);
  border: 1px solid #cfe8ff;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 184, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(10, 42, 67, 0.12), transparent 40%);
}

.hero-visual--guide::before {
  content: "🗺️";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.35;
}

.hero-visual--chat::before {
  content: "📱";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.35;
}

@media (max-width: 1000px) {
  .menu-icon { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
  }
  .nav-links.active,
  .nav-links.show { display: flex; }
  nav a { margin: 10px 0; }
  nav { padding: 10px 20px; }
}


.community-shell {
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 0 16px;
}

.community-hero {
  overflow: hidden;
}

.community-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(77, 184, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
  animation: community-hero-glow 8s ease-in-out infinite alternate;
}

.community-hero > * {
  position: relative;
  z-index: 1;
}

.community-hero__eyebrow {
  display: block;
  margin: 0 auto 8px !important;
  max-width: 640px;
  font-size: 0.8rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.85 !important;
  color: #b8e4ff !important;
}

.community-hero__cta {
  display: block;
  margin: 18px auto 0 !important;
  max-width: 480px !important;
  font-size: 1rem !important;
  font-weight: 600;
  text-align: center;
  opacity: 1 !important;
  color: #dff2ff !important;
}

@keyframes community-hero-glow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.05);
  }
}

.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -28px 0 12px;
  position: relative;
  z-index: 2;
}

.community-tab {
  border: 1px solid #c9d7e3;
  background: #fff;
  color: #0a2a43;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 42, 67, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.community-tab:hover {
  transform: translateY(-1px);
  border-color: #4db8ff;
}

.community-tab.is-active {
  background: #0a2a43;
  border-color: #0a2a43;
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 42, 67, 0.22);
}

.community-tab[data-category="news"].is-active {
  background: #1565c0;
  border-color: #1565c0;
}

.community-tab[data-category="help"].is-active {
  background: #0d7377;
  border-color: #0d7377;
}

.community-tab[data-category="ideas"].is-active {
  background: #c47a12;
  border-color: #c47a12;
}

.community-tab[data-category="travel"].is-active {
  background: #2f6fed;
  border-color: #2f6fed;
}

.community-cat-blurb {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f9ff 0%, #eef8f6 100%);
  border: 1px solid #d7e8f5;
  color: #35566f;
  font-size: 0.95rem;
  line-height: 1.45;
}

.community-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.community-search__field {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  height: var(--btn-height, 44px);
  box-sizing: border-box;
  border: var(--btn-border-width, 2px) solid #c9d7e3;
  border-radius: var(--btn-radius, 10px);
  background: #fff;
  box-shadow: 0 4px 14px rgba(10, 42, 67, 0.04);
  overflow: hidden;
}

.community-search__field:focus-within {
  border-color: #4db8ff;
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.2);
}

.community-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  border: 0;
  border-left: 1px solid #e4eaf0;
  background: #f4f8fc;
  color: #0a2a43;
  cursor: pointer;
  padding: 0;
}

.community-search__submit:hover {
  background: #e8f4ff;
  color: #134866;
}

.community-search__submit svg {
  width: 18px;
  height: 18px;
  display: block;
}

.community-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.community-toolbar__new {
  flex-shrink: 0;
  white-space: nowrap;
}

.community-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: var(--btn-font-size, 0.95rem);
  background: transparent;
  color: #0a2a43;
  box-shadow: none;
}

.community-search input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}

.community-search__clear {
  flex-shrink: 0;
  white-space: nowrap;
}

.community-status {
  min-height: 1.3em;
  margin: 0 0 10px;
  color: #35566f;
  font-size: 0.95rem;
}

.community-status.error {
  color: #b42318;
  font-weight: 600;
}

.community-blocked-banner {
  display: none;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #c62828;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

.community-blocked-banner:not([hidden]) {
  display: block;
}

.community-login-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  color: #6a5420;
}

.community-login-hint a {
  font-weight: 800;
  color: #0a2a43;
}

.community-compose {
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  border: 1px solid #d7e6f2;
  border-radius: 16px;
  background: #fff;
}

.community-compose--glow {
  box-shadow: 0 12px 28px rgba(77, 184, 255, 0.12);
  border-color: #b9daf3;
  animation: community-compose-in 0.45s ease both;
}

.community-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  overflow: auto;
}

.community-composer-modal[hidden] {
  display: none !important;
}

.community-composer-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 42, 67, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.community-composer-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 auto;
  animation: community-compose-in 0.28s ease both;
}

.community-composer-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #8aa0b3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.community-composer-modal__close:hover {
  color: #0a2a43;
}

.community-compose--modal {
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid #d7e6f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(10, 42, 67, 0.22);
}

.community-compose--modal h2 {
  margin-right: 28px;
  font-size: 1.2rem;
}

.community-composer-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* Override .community-compose .btn-primary margin that misaligns Cancel / Publish */
.community-composer-modal .community-compose .btn-primary,
.community-composer-modal__actions .btn-primary,
.community-composer-modal__actions .btn-secondary {
  margin: 0;
  align-self: center;
}

body.community-composer-open {
  overflow: hidden;
}

.community-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.community-confirm-modal[hidden] {
  display: none !important;
}

.community-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 67, 0.5);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.community-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(10, 42, 67, 0.28);
  border-top: 4px solid #4db8ff;
  animation: community-compose-in 0.28s ease both;
  text-align: center;
}

.community-confirm-modal__dialog--danger {
  border-top-color: #c0392b;
}

.community-confirm-modal__title {
  margin: 0 0 10px;
  color: #0a2a43;
  font-size: 1.25rem;
  font-weight: 800;
}

.community-confirm-modal__message {
  margin: 0 0 22px;
  color: #3d5366;
  font-size: 0.98rem;
  line-height: 1.45;
}

.community-confirm-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.community-confirm-modal__dialog:not(.community-confirm-modal__dialog--app) {
  text-align: center;
}

.community-confirm-modal__dialog:not(.community-confirm-modal__dialog--app) .community-confirm-modal__header {
  justify-content: center;
  margin-bottom: 10px;
}

.community-confirm-modal__dialog:not(.community-confirm-modal__dialog--app) .community-confirm-modal__title {
  margin: 0;
  text-align: center;
}

.community-confirm-modal__header .community-confirm-modal__title {
  margin: 0;
  text-align: left;
}

.community-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.community-confirm-modal__icon[hidden] {
  display: none !important;
}

.community-confirm-modal__dialog--app {
  width: min(480px, 100%);
  text-align: left;
}

.community-confirm-modal__dialog--app .community-confirm-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.community-confirm-modal__dialog--app .community-confirm-modal__message {
  margin-bottom: 16px;
}

.community-confirm-modal__dialog--app .community-confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: stretch;
}

.community-confirm-modal__dialog--app .community-confirm-modal__actions .btn-primary,
.community-confirm-modal__dialog--app .community-confirm-modal__actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

.community-confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

body.community-confirm-open {
  overflow: hidden;
}

/* Legal re-acceptance (blocking) — aligned with community confirm / composer modals */
.tourai-legal-reaccept {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tourai-legal-reaccept__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 67, 0.55);
  border: 0;
  padding: 0;
  cursor: default;
}

.tourai-legal-reaccept__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 42, 67, 0.28);
  border-top: 4px solid #4db8ff;
  animation: community-compose-in 0.28s ease both;
  overflow: hidden;
}

.tourai-legal-reaccept__header {
  padding: 22px 22px 0;
  flex-shrink: 0;
}

.tourai-legal-reaccept__title {
  margin: 0 0 8px;
  color: #0a2a43;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.tourai-legal-reaccept__intro {
  margin: 0 0 14px;
  color: #3d5366;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.tourai-legal-reaccept__tabs {
  display: flex;
  gap: 8px;
  padding: 0 22px;
  flex-shrink: 0;
  border-bottom: 1px solid #e2e8ee;
}

.tourai-legal-reaccept__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5a7288;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tourai-legal-reaccept__tab:hover {
  color: #0a2a43;
}

.tourai-legal-reaccept__tab.is-active {
  color: #0a2a43;
  border-bottom-color: #4db8ff;
}

.tourai-legal-reaccept__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 22px;
  -webkit-overflow-scrolling: touch;
  background: #f7fafc;
}

.tourai-legal-reaccept__panel {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  padding: 18px 16px;
  color: #333;
  line-height: 1.65;
  font-size: 0.92rem;
}

.tourai-legal-reaccept__panel h2 {
  margin: 1.1em 0 0.45em;
  color: #0a2a43;
  font-size: 1.05rem;
}

.tourai-legal-reaccept__panel h2:first-child {
  margin-top: 0;
}

.tourai-legal-reaccept__panel h3 {
  margin: 1em 0 0.4em;
  color: #0d3b5e;
  font-size: 0.98rem;
}

.tourai-legal-reaccept__panel p {
  margin: 0 0 0.75em;
  text-align: justify;
}

.tourai-legal-reaccept__panel ul {
  margin: 0 0 0.85em;
  padding-left: 1.25em;
}

.tourai-legal-reaccept__panel li {
  margin-bottom: 0.35em;
}

.tourai-legal-reaccept__panel a {
  color: #0a7cff;
  font-weight: 600;
}

.tourai-legal-reaccept__panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.85em;
  font-size: 0.88rem;
}

.tourai-legal-reaccept__panel th,
.tourai-legal-reaccept__panel td {
  border: 1px solid #d7e2ec;
  padding: 6px 8px;
  text-align: left;
}

.tourai-legal-reaccept__status {
  margin: 0;
  color: #5a7288;
  font-size: 0.92rem;
  text-align: center;
  padding: 28px 12px;
}

.tourai-legal-reaccept__status--error {
  color: #a93226;
}

.tourai-legal-reaccept__footer {
  flex-shrink: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid #e2e8ee;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tourai-legal-reaccept__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #5a7288;
  text-align: center;
  line-height: 1.4;
}

.tourai-legal-reaccept__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tourai-legal-reaccept__actions .btn-primary,
.tourai-legal-reaccept__actions .btn-secondary {
  min-width: 140px;
}

.tourai-legal-reaccept__actions .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

body.tourai-legal-reaccept-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .tourai-legal-reaccept {
    padding: 8px;
    align-items: stretch;
  }

  .tourai-legal-reaccept__dialog {
    max-height: 96vh;
    border-radius: 12px;
  }

  .tourai-legal-reaccept__actions .btn-primary,
  .tourai-legal-reaccept__actions .btn-secondary {
    flex: 1 1 100%;
  }
}

@keyframes community-compose-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.community-compose h2,
.community-compose h3 {
  margin: 0 0 6px;
  color: #0a2a43;
  font-size: 1.05rem;
}

.community-compose__hint {
  margin: 0 0 12px;
  color: #5f758a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.community-compose label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 700;
  color: #0a2a43;
  font-size: 0.9rem;
}

.community-compose input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  font: inherit;
}

.community-compose--reply {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-compose--reply form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-compose .btn-primary {
  align-self: flex-end;
  margin: 10px 0 0;
}

/* Rich text editor */
.community-rte {
  border: 1px solid #c9d7e3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.community-rte__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #f4f8fc;
  border-bottom: 1px solid #e4eaf0;
}

.community-rte__btn {
  min-width: 34px;
  height: 32px;
  border: 1px solid #c9d7e3;
  border-radius: 8px;
  background: #fff;
  color: #0a2a43;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0 8px;
}

.community-rte__btn:hover {
  border-color: #4db8ff;
  background: #f0f8ff;
}

.community-rte__u {
  text-decoration: underline;
  font-weight: 800;
}

.community-rte__color {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 4px;
  border: 1px solid #c9d7e3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.community-rte__color input {
  width: 28px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.community-rte__size {
  height: 32px;
  border: 1px solid #c9d7e3;
  border-radius: 8px;
  background: #fff;
  color: #0a2a43;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 8px;
}

.community-rte__emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e4eaf0;
  background: #fafcfe;
  max-height: 120px;
  overflow: auto;
}

.community-rte__emoji-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.community-rte__emoji-btn:hover {
  background: #e8f4ff;
}

.community-rte__editor {
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  padding: 12px 14px;
  line-height: 1.55;
  color: #243447;
  word-break: break-word;
  outline: none;
}

.community-compose--reply .community-rte__editor {
  min-height: 88px;
}

.community-rte__editor:empty::before {
  content: attr(data-placeholder);
  color: #8aa0b3;
  pointer-events: none;
}

.community-rte__editor:focus {
  box-shadow: inset 0 0 0 2px rgba(77, 184, 255, 0.25);
}

.community-topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-topic {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e4eaf0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(10, 42, 67, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid #4db8ff;
  animation: community-topic-in 0.35s ease both;
}

.community-topic[data-category="news"] {
  border-left-color: #1565c0;
}

.community-topic[data-category="help"] {
  border-left-color: #0d7377;
}

.community-topic[data-category="ideas"] {
  border-left-color: #c47a12;
}

.community-topic[data-category="travel"] {
  border-left-color: #2f6fed;
}

.community-topic:hover {
  border-color: #4db8ff;
  background: #f7fbff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77, 184, 255, 0.16);
}

@keyframes community-topic-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.community-topic__title {
  display: block;
  grid-column: 2 / 3;
  font-weight: 800;
  color: #0a2a43;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.community-topic__preview {
  grid-column: 2 / 3;
  margin: 0;
  color: #5f758a;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-topic__meta {
  grid-column: 2 / 3;
  color: #7a8fa3;
  font-size: 0.82em;
}

.community-topic__badge {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  max-width: 7.5rem;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0a2a43;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.community-topic__avatar {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2a43, #1d5f8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(10, 42, 67, 0.2);
  border: 2px solid #4db8ff;
  box-sizing: border-box;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  margin-top: 2px;
}

.community-topic__avatar:hover,
.community-topic__avatar:focus-visible {
  outline: 2px solid #4db8ff;
  outline-offset: 2px;
}

.community-empty {
  margin: 8px 0;
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px dashed #b9daf3;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  color: #35566f;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.community-empty__title {
  display: block;
  margin: 0 0 6px;
  color: #0a2a43;
  font-weight: 800;
  font-size: 1.1rem;
}

.community-back {
  margin-bottom: 12px;
}

/* Thread / chat-like detail */
.community-thread {
  border: 1px solid #d7e6f2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(10, 42, 67, 0.06);
}

.community-msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 14px 14px 12px;
}

.community-msg--op {
  background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
  border-bottom: 1px solid #e4eaf0;
}

.community-msg + .community-msg {
  border-top: 1px solid #eef3f7;
}

.community-msg__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2a43, #1d5f8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(10, 42, 67, 0.2);
  border: 2px solid #4db8ff;
  box-sizing: border-box;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.community-msg__avatar img,
.community-topic__avatar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  pointer-events: none;
}

.community-msg__avatar:hover,
.community-msg__avatar:focus-visible {
  outline: 2px solid #4db8ff;
  outline-offset: 2px;
}

.community-msg__name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 800;
  color: #0a2a43;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}

.community-msg__name-btn:hover,
.community-msg__name-btn:focus-visible {
  color: #1565c0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-topic__author {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.community-topic__author:hover,
.community-topic__author:focus-visible {
  color: #0a2a43;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-user-card {
  position: fixed;
  z-index: 1200;
  width: min(280px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7e6f2;
  box-shadow: 0 16px 40px rgba(10, 42, 67, 0.18);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.community-user-card[hidden] {
  display: none !important;
}

.community-user-card__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #8aa0b3;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.community-user-card__close:hover {
  color: #0a2a43;
}

.community-user-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2a43 0%, #1a5f8a 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  flex-shrink: 0;
  border: 2px solid #4db8ff;
  box-sizing: border-box;
}

.community-user-card__avatar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  pointer-events: none;
}

.community-user-card__name {
  margin: 4px 18px 4px 0;
  color: #0a2a43;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
  word-break: break-word;
}

.community-user-card__meta {
  margin: 0;
  color: #5f758a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.community-msg__main {
  min-width: 0;
}

.community-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.community-msg__name {
  font-weight: 800;
  color: #0a2a43;
  font-size: 0.95rem;
}

.community-msg__time {
  color: #8aa0b3;
  font-size: 0.8rem;
}

.community-msg__title {
  margin: 0 0 6px;
  color: #0a2a43;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 900;
}

.community-msg__body {
  margin: 0;
  line-height: 1.55;
  color: #243447;
  word-break: break-word;
}

.community-msg__body p {
  margin: 0 0 0.6em;
}

.community-msg__body p:last-child {
  margin-bottom: 0;
}

.community-msg__body font[size="2"],
.community-msg__body .community-size-2 {
  font-size: 0.9em;
}

.community-msg__body font[size="4"],
.community-msg__body .community-size-4 {
  font-size: 1.15em;
}

.community-msg__body font[size="5"],
.community-msg__body .community-size-5 {
  font-size: 1.35em;
}

.community-msg__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.community-msg__reply {
  border: 0;
  background: transparent;
  color: #1565c0;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.community-msg__reply:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-msg__quote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 3px solid #4db8ff;
  border-radius: 0 10px 10px 0;
  background: #f3f9ff;
  color: #35566f;
  font-size: 0.88rem;
  line-height: 1.4;
}

.community-msg__quote-label {
  display: block;
  font-weight: 800;
  color: #0a2a43;
  margin-bottom: 2px;
}

.community-msg__quote-snippet {
  display: block;
  color: #5f758a;
}

.community-reply-block {
  border-top: 1px solid #eef3f7;
}

.community-reply-block .community-msg {
  border-top: 0;
}

.community-replica-toggle {
  display: inline-flex;
  margin: 0 14px 10px 64px;
  border: 0;
  background: transparent;
  color: #1565c0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.community-replica-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-replicas {
  margin: 0 0 4px 28px;
  padding: 0 0 4px;
  border-left: 2px solid #cfe6f8;
}

.community-msg--replica {
  background: #eef5fb;
}

.community-msg--replica .community-msg__avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.community-empty--replicas {
  margin: 0;
  padding: 8px 14px 12px;
  font-size: 0.88rem;
}

.community-reply-to {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f9ff;
  border: 1px solid #cfe6f8;
}

.community-reply-to__text {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #35566f;
}

.community-reply-to__text strong {
  color: #0a2a43;
}

.community-reply-to__clear {
  border: 0;
  background: transparent;
  color: #5f758a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.community-reply-to__clear:hover {
  color: #b42318;
}

.community-msg__delete {
  border: 0;
  background: transparent;
  color: #8aa0b3;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-msg__delete:hover {
  color: #b42318;
}

.community-msg__edit {
  border: 0;
  background: transparent;
  color: #8aa0b3;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-msg__edit:hover {
  color: var(--accent, #4db8ff);
}

.community-thread__count {
  margin: 0;
  padding: 8px 14px;
  background: #fafcfe;
  border-top: 1px solid #eef3f7;
  border-bottom: 1px solid #eef3f7;
  color: #7a8fa3;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skeleton / shimmer loading */
@keyframes community-shimmer {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.community-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.community-skeleton__card {
  padding: 14px;
  border: 1px solid #eef3f7;
  border-radius: 12px;
  background: #fff;
}

.community-skeleton__line {
  height: 11px;
  border-radius: 6px;
  background: #e4ebf2;
  animation: community-shimmer 1.15s ease-in-out infinite;
  margin-bottom: 8px;
}

.community-skeleton__line:last-child {
  margin-bottom: 0;
}

.community-skeleton__line--sm {
  width: 38%;
}

.community-skeleton__line--md {
  width: 62%;
}

.community-skeleton__line--lg {
  width: 88%;
  height: 14px;
}

.community-skeleton--thread {
  gap: 0;
  border-top: 1px solid #eef3f7;
}

.community-skeleton__msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #eef3f7;
}

.community-skeleton__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e4ebf2;
  animation: community-shimmer 1.15s ease-in-out infinite;
}

.community-skeleton__stack {
  min-width: 0;
}

.community-scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .community-hero::before,
  .community-compose--glow,
  .community-topic,
  .community-tab {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Site rating widget (hero) + reviews page --- */
.site-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-transform: none;
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
}

.site-rating--hero {
  position: absolute;
  right: 20px;
  bottom: 14px;
  margin: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.site-rating--hero:hover,
.site-rating--hero:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-rating--hero .site-rating__stars {
  color: #ffd45a;
}

.site-rating--hero .site-rating__star--empty path,
.site-rating--hero .site-rating__star-bg {
  fill: rgba(255, 255, 255, 0.35);
}

.site-rating--hero .site-rating__count {
  color: rgba(255, 255, 255, 0.8);
}

.site-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #e6a800;
}

.site-rating__star {
  display: block;
  flex-shrink: 0;
}

.site-rating__star--full path,
.site-rating__star--half path:not(.site-rating__star-bg) {
  fill: currentColor;
}

.site-rating__star--empty path,
.site-rating__star-bg {
  fill: #d5dde5;
}

.site-rating__star--half {
  color: #e6a800;
}

.site-rating__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.site-rating__count {
  color: #6a7d8c;
  font-weight: 600;
  font-size: 0.92em;
}

.reviews-shell {
  max-width: 820px;
}

.reviews-summary {
  margin: 0 0 20px;
  padding: 18px 20px;
  background: #f4f8fb;
  border-radius: 12px;
  border: 1px solid #d9e6f0;
}

.reviews-summary__main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-summary__avg {
  margin: 0;
  font-size: 1.75em;
  font-weight: 800;
  color: var(--primary, #0A2A43);
  line-height: 1.1;
}

.reviews-summary__count {
  margin: 4px 0 0;
  color: #5a6f7e;
  font-size: 0.95em;
}

.reviews-stars-picker {
  display: flex;
  gap: 4px;
  margin: 6px 0 14px;
}

.reviews-target-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.reviews-target-toggle .community-tab {
  min-width: 72px;
}

.reviews-target-toggle .community-tab:disabled {
  opacity: 0.55;
  cursor: default;
}

.reviews-star-btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: #d5dde5;
  line-height: 0;
}

.reviews-star-btn svg path {
  fill: currentColor;
}

.reviews-star-btn.is-on,
.reviews-star-btn:hover,
.reviews-star-btn:focus-visible {
  color: #e6a800;
}

.reviews-star-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.reviews-comment-block {
  margin: 4px 0 16px;
}

.reviews-comment-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.reviews-comment-block__label {
  font-weight: 700;
  color: var(--primary, #0a2a43);
}

.reviews-comment-edit {
  border: 0;
  background: transparent;
  color: #8aa0b3;
  padding: 4px;
  line-height: 0;
  cursor: pointer;
  border-radius: 6px;
}

.reviews-comment-edit:hover,
.reviews-comment-edit:focus-visible {
  color: var(--accent, #4db8ff);
  background: rgba(77, 184, 255, 0.12);
}

.reviews-comment-invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f5f9fc;
  border: 1px dashed #c5d5e2;
  border-radius: 10px;
}

.reviews-comment-invite__text {
  margin: 0;
  color: #5a6f7e;
  line-height: 1.45;
  font-size: 0.95em;
}

.reviews-comment-preview {
  padding: 12px 14px;
  background: #fafcfe;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  min-height: 2.5em;
}

.reviews-list,
.reviews-pending {
  margin-top: 18px;
}

.reviews-pending h2 {
  margin: 0 0 12px;
  font-size: 1.15em;
  color: var(--primary, #0A2A43);
}

.reviews-card {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef3;
}

.reviews-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.reviews-card__target {
  font-size: 0.75em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #4db8ff);
}

.reviews-card__meta {
  font-size: 0.85em;
  color: #6a7d8c;
}

.reviews-card__comment {
  margin: 0;
  color: #333;
  line-height: 1.55;
  white-space: pre-wrap;
}

.reviews-card__comment.community-msg__body {
  white-space: normal;
}

.reviews-card__comment--empty {
  color: #8a9aa8;
  font-style: italic;
}

.reviews-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .site-rating--hero {
    right: 50%;
    transform: translateX(50%);
    bottom: 12px;
  }
}

