/*
 * Custom styles for the Invi landing page.
 * This file supplements Tailwind's utility classes with a few tweaks.
 */

:root {
  --color-primary: #000000;
  --color-primary-hover: #1f1f1f;
  --color-accent: #7c3aed;
  --color-accent-soft: #e2e8f0;
  --color-text: #000000;
  --color-subtitle: #515151;
  --color-contrast: #FFFFFF;
  --color-border-light: #E5E7EB;
  --color-widget: #7c3aed;
}


body {
  color: var(--color-text);
}

button,
a.btn-primary,
a.btn-secondary,
.floating-btn,
.floating-btn-group,
.floating-btn-group__segment {
  border-radius: 9999px !important;
}

.text-purple-600,
.text-purple-700,
.text-purple-900 {
  color: var(--color-accent) !important;
}

.bg-purple-600,
.bg-purple-700 {
  background-color: var(--color-primary) !important;
}

.hover\:bg-purple-700:hover {
  background-color: var(--color-primary-hover) !important;
}

.border-purple-600 {
  border-color: var(--color-accent) !important;
}

.hover\:text-purple-900:hover,
.hover\:text-purple-700:hover {
  color: var(--color-accent) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
summary {
  color: inherit;
}

.section-subtitle {
  color: var(--color-subtitle);
}

.title-highlight {
  color: var(--color-accent);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-contrast);
  transition: background-color 0.2s ease;
  border-radius: 999px;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: #ffffff;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  transition: filter 0.2s ease, background-color 0.2s ease;
  border-radius: 999px;
}

.btn-secondary:hover {
  background-color: #f5f3ff;
  filter: brightness(0.98);
}

.card-surface {
  background-color: #f3f4f6;
}

.icon-circle {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 9999px;
  background-color: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(74, 85, 104, 0.72));
}

.hero-overlay-text,
.hero-overlay-text p,
.hero-overlay-text h1 {
  color: #000000;
}

.hero-split-bg {
  background: linear-gradient(
    to bottom,
    rgba(124, 58, 237, 0.96) 0%,
    rgba(139, 92, 246, 0.84) 18%,
    rgba(196, 181, 253, 0.42) 33.333%,
    rgba(255, 255, 255, 0.95) 45%,
    #ffffff 100%
  );
}

.hero-main-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.1;
  color: #000000;
}

.hero-prefix {
  font-weight: 600;
}

.hero-highlight {
  color: var(--color-accent);
  font-weight: 800;
}

.hero-btn-primary {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
}

.hero-btn-primary:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}

.hero-btn-secondary {
  border: 2px solid var(--color-accent);
  background: #ffffff;
  color: var(--color-accent);
}

.hero-preview-image {
  width: min(90vw, 700px);
  display: block;
  height: auto;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.event-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 1.25rem;
  min-height: 220px;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.event-card-corner {
  position: absolute;
  top: -1.35rem;
  right: -1.35rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #d1d5db;
  color: #4a5568;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0.95rem 0.95rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.event-type-icon {
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1.75px #111827;
}

.event-card-title {
  font-size: clamp(2rem, 2.3vw, 2.25rem);
  line-height: 1.05;
  font-weight: 700;
}

.event-card:hover {
  background: #f5f3ff;
  border-color: var(--color-accent);
}

.event-card:hover .event-card-corner {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.auth-panel {
  position: relative;
  width: min(92vw, 430px);
  margin: 8vh auto;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #6b7280;
}

.auth-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.65rem;
  padding: 0.6rem 0.8rem;
}

.builder-page {
  background: #f3f4f6;
  min-height: 100vh;
  padding-top: 6.4rem;
  padding-bottom: 9rem;
}

.preview-canvas {
  width: min(92vw, 390px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 1.4rem;
  padding: 1rem;
}

.blocks-container {
  display: flex;
  flex-direction: column;
}

.block-item {
  --block-radius-top-left: 0;
  --block-radius-top-right: 0;
  --block-radius-bottom-right: 0;
  --block-radius-bottom-left: 0;
  position: relative;
  isolation: isolate;
  border: 2px dashed #d1d5db;
  border-radius: var(--block-radius-top-left) var(--block-radius-top-right) var(--block-radius-bottom-right) var(--block-radius-bottom-left);
  min-height: 120px;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #fafafa;
  color: #6b7280;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.block-item--filled {
  border-width: 0;
  border-style: solid;
  border-color: transparent;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: transparent;
}

.block-item--dragging {
  opacity: 0.72;
  transform: scale(0.99);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.floating-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.2rem;
  z-index: 50;
  width: min(95vw, 1050px);
  background: #fff;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 40px rgba(17, 24, 39, 0.2);
  padding: 0.8rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.floating-btn {
  border: 2px solid var(--color-border-light);
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn i {
  font-size: 1rem;
}

.floating-btn-group {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid var(--color-border-light);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.floating-btn-group__segment {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 2.9rem;
}

.floating-btn-group__segment + .floating-btn-group__segment {
  border-left: 2px solid var(--color-border-light);
}

.floating-btn--icon-only {
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
}

.floating-btn--active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.floating-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.floating-btn--widgets {
  background: #fff;
  border-color: var(--color-border-light);
  color: var(--color-widget);
  box-shadow: none;
}

.floating-btn--widgets.floating-btn--active {
  background: var(--color-widget);
  border-color: var(--color-widget);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.26);
}

/* Ensure summary elements have a pointer cursor in the FAQ accordion */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Container sizing override: ensure our content doesn't stretch too wide */
.container {
  max-width: 1200px;
}


.event-summary {
  background: #fafafa;
  color: #6b7280;
  border: 2px dashed #d1d5db;
  border-radius: 0;
  padding: 1rem 1.1rem;
  margin: 0;
}

.event-summary h3,
.event-summary p {
  color: inherit;
  margin: 0;
}

.block-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.block-item strong,
.block-item p {
  color: inherit;
}

.block-item p {
  margin: 0.35rem 0 0;
}

.block-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 4;
}

.block-action-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.block-action-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.block-action-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.block-action-btn i {
  font-size: 0.72rem;
  pointer-events: none;
}

.block-remove {
  color: #111827;
}

.block-customize {
  color: #7c3aed;
}

.block-drag-handle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: grab;
  color: #9ca3af;
}

.block-drag-handle i {
  font-size: 0.95rem;
  pointer-events: none;
}

.preview-stack-item--first {
  --block-radius-top-left: 1rem;
  --block-radius-top-right: 1rem;
  --block-radius-bottom-right: 0;
  --block-radius-bottom-left: 0;
}

.preview-stack-item--middle {
  --block-radius-top-left: 0;
  --block-radius-top-right: 0;
  --block-radius-bottom-right: 0;
  --block-radius-bottom-left: 0;
  border-top-width: 0;
}

.preview-stack-item--last {
  --block-radius-top-left: 0;
  --block-radius-top-right: 0;
  --block-radius-bottom-right: 1rem;
  --block-radius-bottom-left: 1rem;
  border-top-width: 0;
}

.preview-stack-item--single {
  --block-radius-top-left: 1rem;
  --block-radius-top-right: 1rem;
  --block-radius-bottom-right: 1rem;
  --block-radius-bottom-left: 1rem;
}

.details-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.elements-sidebar {
  position: fixed;
  top: 5.7rem;
  right: 1rem;
  bottom: 7rem;
  width: min(92vw, 370px);
  height: calc(100vh - 12.7rem);
  max-height: calc(100vh - 12.7rem);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  z-index: 39;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.elements-sidebar--open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.elements-sidebar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ede9fe;
}

.elements-sidebar__header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.elements-sidebar__header p:last-child {
  color: #6b7280;
  margin: 0;
}

.elements-sidebar__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.elements-sidebar__list {
  display: grid;
  gap: 0.75rem;
  overflow-y: auto;
  padding-top: 1rem;
}

.element-item {
  width: 100%;
  border: 1px solid #ede9fe;
  background: #faf5ff;
  color: #111827;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.element-item:hover {
  transform: translateY(-1px);
  border-color: #c4b5fd;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.08);
}

.element-item i {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ede9fe;
  color: var(--color-widget);
  flex-shrink: 0;
}

.details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.details-panel {
  position: relative;
  width: min(92vw, 540px);
  margin: 7vh auto;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.24);
}

.details-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
}

.details-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.details-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.details-header p {
  color: #6b7280;
}

.details-form {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.details-field,
.details-field-group {
  display: grid;
  gap: 0.65rem;
}

.details-field span {
  font-weight: 600;
  color: #111827;
}

.details-field input,
.details-field select,
.details-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  box-sizing: border-box;
}

.details-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.details-field-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-submit {
  justify-content: center;
  padding-block: 0.9rem;
}

@media (max-width: 640px) {
  .details-panel {
    margin: 4vh auto;
    padding: 1.25rem;
  }

  .details-field-group {
    grid-template-columns: 1fr;
  }
}

.floating-btn--success {
  background: #d1fae5;
  border-color: #86efac;
  color: #166534;
}

.save-panel {
  width: min(92vw, 460px);
}

.reset-panel {
  width: min(92vw, 500px);
}

.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.save-feedback {
  position: fixed;
  top: 6rem;
  right: 1.5rem;
  z-index: 80;
  background: #111827;
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.save-feedback--error {
  background: #991b1b;
}

@media (max-width: 1024px) {
  .floating-btn--compact-mobile {
    min-width: 2.9rem;
    padding-inline: 0.8rem;
  }

  .floating-btn--compact-mobile .floating-btn__label {
    display: none;
  }
}

@media (max-width: 640px) {
  .save-feedback {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 6.5rem;
  }

  .reset-actions {
    flex-direction: column-reverse;
  }

  .reset-actions .floating-btn {
    width: 100%;
  }
}

.block-content {
  flex: 1;
  width: 100%;
  outline: none;
  padding: 1rem 1rem 1.3rem;
}

.block-content:focus {
  box-shadow: inset 0 0 0 2px #cbd5e1;
  border-radius: 0.75rem;
}

.dashboard-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

.dashboard-empty-state {
  border: 2px dashed #d1d5db;
  border-radius: 1.2rem;
  padding: 2rem;
  display: grid;
  gap: 0.75rem;
  place-items: center;
  color: #6b7280;
  text-align: center;
}

.dashboard-empty-state i {
  font-size: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.dashboard-card {
  border: 1px solid #e5e7eb;
  border-radius: 1.2rem;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.dashboard-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.dashboard-card__eyebrow {
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-badge {
  background: #ede9fe;
  color: #5b21b6;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-meta {
  display: grid;
  gap: 0.8rem;
}

.dashboard-meta dt {
  color: #6b7280;
  font-size: 0.82rem;
}

.dashboard-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: #111827;
}

.dashboard-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

.dashboard-delete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
}

.share-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.share-option input {
  margin-top: 0.25rem;
}

.share-option strong,
.share-option small {
  display: block;
}

.share-option small {
  color: #6b7280;
  margin-top: 0.2rem;
}

.dashboard-card__actions {
  display: grid;
  gap: 0.75rem;
}

.dashboard-preview {
  position: relative;
  min-height: 13rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.dashboard-preview__image,
.dashboard-preview__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dashboard-preview__image {
  object-fit: cover;
}

.dashboard-preview__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 2rem;
}

.dashboard-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.78) 100%);
}

.dashboard-preview__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}

.dashboard-preview__content p {
  color: inherit;
}

.dashboard-preview__subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.82;
}

.dashboard-preview__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.dashboard-preview__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem;
  margin-bottom: auto;
}

.dashboard-badge--rose { background: #ffe4e6; color: #be123c; }
.dashboard-badge--violet { background: #ede9fe; color: #6d28d9; }
.dashboard-badge--amber { background: #fef3c7; color: #b45309; }
.dashboard-badge--sky { background: #e0f2fe; color: #0369a1; }
.dashboard-badge--cyan { background: #cffafe; color: #0e7490; }
.dashboard-badge--emerald { background: #d1fae5; color: #047857; }
.dashboard-badge--teal { background: #ccfbf1; color: #0f766e; }
.dashboard-badge--pink { background: #fce7f3; color: #be185d; }
.dashboard-badge--slate { background: #e2e8f0; color: #475569; }
.dashboard-badge--indigo { background: #e0e7ff; color: #4338ca; }
.dashboard-badge--gray { background: #f3f4f6; color: #374151; }

@media (max-width: 640px) {
  .elements-sidebar {
    top: 5rem;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 6.4rem;
    width: auto;
  }
}

.block-item--selected {
  border-color: transparent;
  z-index: 6;
}

.block-item--selected::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #7c3aed;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  background: transparent;
  pointer-events: none;
  z-index: 3;
}

.block-item--drop-target {
  border-color: #7c3aed;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.92), rgba(237, 233, 254, 0.96));
  box-shadow: inset 0 0 0 2px rgba(124, 58, 237, 0.18), 0 0 0 4px rgba(196, 181, 253, 0.34);
}

.customize-sidebar {
  right: 1rem;
}

.elements-sidebar__drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: fit-content;
  margin: 0 auto 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  cursor: grab;
}

.elements-sidebar__drag-handle span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #7c3aed;
}

.elements-sidebar--dragging .elements-sidebar__drag-handle {
  cursor: grabbing;
}

.elements-sidebar--dragging {
  transition: none;
  box-shadow: 0 28px 60px rgba(76, 29, 149, 0.22);
}

.customize-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.customize-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  padding-top: 0.5rem;
  border-top: 1px solid #ede9fe;
}

.brand-color-picker {
  position: relative;
}

.brand-color-picker [hidden] {
  display: none !important;
}

.brand-color-picker__trigger {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.brand-color-picker__swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.brand-color-picker__value {
  flex: 1;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-color-picker__presets {
  display: grid;
  gap: 0.75rem;
}

.brand-color-picker__preset-group {
  display: grid;
  gap: 0.45rem;
}

.brand-color-picker__preset-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-color-picker__preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.brand-color-picker__preset {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-color-picker__preset:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.16);
}

.brand-color-picker__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 5;
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.12);
  display: grid;
  gap: 0.9rem;
}

.brand-color-picker__freepick {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.brand-color-picker__native {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3rem;
  padding: 0.2rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.brand-color-picker__native::-webkit-color-swatch-wrapper {
  padding: 0;
}

.brand-color-picker__native::-webkit-color-swatch,
.brand-color-picker__native::-moz-color-swatch {
  border: 0;
  border-radius: 0.65rem;
}

.brand-color-picker__custom {
  display: grid;
  gap: 0.4rem;
}

.brand-color-picker__custom span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-color-picker__custom input {
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.file-picker-field {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px dashed #c4b5fd;
  border-radius: 1rem;
  background: #faf5ff;
}

.file-picker-field input[type="file"] {
  display: none;
}

.file-picker-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.file-picker-field__button:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
}

.file-picker-field__name {
  color: #6b7280;
  font-size: 0.92rem;
  word-break: break-word;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
}

.customize-switches {
  display: grid;
  gap: 0.75rem;
}

.block-content--cover {
  padding: 0;
  border-radius: inherit;
}

.cover-element {
  width: 100%;
  border-radius: inherit;
  display: flex;
  background-repeat: no-repeat;
  overflow: hidden;
}

.cover-element__inner {
  width: 100%;
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
}

.cover-element__logo {
  max-width: min(180px, 100%);
  max-height: 96px;
  object-fit: contain;
}

.cover-element__logo-wrap {
  display: flex;
  width: 100%;
}

.cover-element__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.85;
}

.cover-element__title,
.cover-element__meta p,
.cover-element__eyebrow {
  color: inherit;
  margin: 0;
}

.cover-element__meta {
  display: grid;
  gap: 0.3rem;
}

.block-content--youtube {
  padding: 0;
}

.youtube-element {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  background: #fff;
  color: #111827;
  min-height: 100%;
}

.youtube-element__title,
.youtube-element__description,
.youtube-element__placeholder {
  margin: 0;
}

.youtube-element__title {
  font-size: 1.35rem;
  font-weight: 700;
}

.youtube-element__description {
  color: #4b5563;
  line-height: 1.5;
}

.youtube-element__frame-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111827;
}

.youtube-element--video-only {
  padding: 0;
}

.youtube-element--video-only .youtube-element__frame-wrapper,
.youtube-element--video-only .youtube-element__placeholder {
  border-radius: inherit;
}

.youtube-element--with-meta .youtube-element__frame-wrapper,
.youtube-element--with-meta .youtube-element__placeholder {
  border-radius: 0;
}

.youtube-element__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-element__placeholder {
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f3f4f6;
  color: #6b7280;
}

.details-helper-text {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.5;
}

.block-content--link,
.block-content--countdown,
.block-content--text,
.block-content--image,
.block-content--itinerary {
  display: flex;
  align-items: stretch;
  padding: 0;
  min-height: 100%;
}

.link-element,
.countdown-element {
  display: grid;
  flex: 1 1 auto;
  gap: 1rem;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 1.25rem;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
}

.text-element,
.image-element,
.itinerary-element {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 1rem;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 1.25rem;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
}

.text-element,
.itinerary-element {
  background: transparent;
}

.text-element__content {
  margin: 0;
  line-height: 1.7;
  white-space: normal;
}

.text-element--sm .text-element__content { font-size: 1rem; }
.text-element--md .text-element__content { font-size: 1.15rem; }
.text-element--lg .text-element__content { font-size: 1.35rem; }
.text-element--xl .text-element__content { font-size: 1.65rem; }

.image-element__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.08);
}

.image-element--cover .image-element__frame {
  aspect-ratio: 16 / 10;
}

.image-element--polaroid .image-element__frame {
  padding: 0.7rem 0.7rem 2.8rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.image-element--thumbtack .image-element__frame {
  padding: 0.65rem;
  background: #fff8dc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.image-element--thumbtack .image-element__frame::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #ef4444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

.image-element__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-element__description,
.image-element__placeholder,
.itinerary-item__time,
.itinerary-item__title {
  margin: 0;
}

.image-element__placeholder {
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
}

.itinerary-element {
  gap: 1.1rem;
}

.itinerary-element,
.text-element {
  align-self: stretch;
}

.itinerary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.itinerary-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.itinerary-item__time {
  color: #6b7280;
  font-size: 0.92rem;
}

.itinerary-item__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.itinerary-element--minimal .itinerary-item {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.itinerary-element--zigzag .itinerary-item:nth-child(even) {
  direction: rtl;
}

.itinerary-element--zigzag .itinerary-item:nth-child(even) .itinerary-item__body {
  direction: ltr;
  text-align: right;
}

.itinerary-activities-list {
  display: grid;
  gap: 1rem;
}

.itinerary-activity-editor {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.link-element__title,
.link-element__description,
.link-element__url,
.link-element__placeholder,
.countdown-element__title,
.countdown-element__subtitle,
.countdown-unit__label,
.countdown-unit__value {
  margin: 0;
}

.link-element__title,
.countdown-element__title {
  font-size: 1.35rem;
  font-weight: 700;
}

.link-element__description,
.link-element__url,
.link-element__placeholder,
.countdown-element__subtitle {
  color: #4b5563;
  line-height: 1.5;
}

.link-element__anchor,
.countdown-element__details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.link-element__anchor[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.countdown-element__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.countdown-element--row .countdown-element__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.countdown-unit {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 0.8rem;
  border-radius: 1rem;
  text-align: center;
  background: var(--countdown-card-color, #f3f4f6);
  min-width: 0;
  overflow: hidden;
}

.countdown-element--digital .countdown-unit {
  background: var(--countdown-card-color, #f3f4f6);
}

.countdown-element--digital .countdown-unit__value {
  font-variant-numeric: tabular-nums;
  font-family: var(--invix-font-primary);
}

.countdown-element--flip .countdown-unit {
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 49%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.2) 100%), var(--countdown-card-color, #111827);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 24px rgba(15, 23, 42, 0.18);
}

.countdown-element--flip .countdown-unit__label {
  color: rgba(255,255,255,0.76);
}

.countdown-unit__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-family: var(--invix-font-primary);
}

.countdown-unit__value--flip {
  font-family: var(--invix-font-primary);
}

.countdown-unit__flip-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  position: relative;
  overflow: hidden;
  min-height: 2.55em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.countdown-unit__flip-card::before,
.countdown-unit__flip-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
}

.countdown-unit__flip-card::before {
  top: 0;
  background: rgba(255, 255, 255, 0.08);
}

.countdown-unit__flip-card::after {
  bottom: 0;
  background: rgba(0, 0, 0, 0.12);
}

.countdown-unit__value--flip {
  position: relative;
  z-index: 1;
}

.countdown-unit__value--flip::after {
  content: "";
  position: absolute;
  left: -0.45rem;
  right: -0.45rem;
  top: 50%;
  height: 1px;
  background: rgba(15, 23, 42, 0.4);
}

.countdown-element--xs .countdown-unit__value,
.countdown-element--xs .countdown-unit__value--flip { font-size: 1.05rem; }
.countdown-element--sm .countdown-unit__value { font-size: 1.5rem; }
.countdown-element--md .countdown-unit__value { font-size: 2rem; }
.countdown-element--lg .countdown-unit__value { font-size: 2.55rem; }
.countdown-element--sm .countdown-unit__value--flip { font-size: 1.3rem; }
.countdown-element--md .countdown-unit__value--flip { font-size: 1.8rem; }
.countdown-element--lg .countdown-unit__value--flip { font-size: 2.2rem; }

.countdown-element--row.countdown-element--lg .countdown-unit__value,
.countdown-element--row.countdown-element--lg .countdown-unit__value--flip {
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
}

@media (max-width: 640px) {
  .countdown-element--row .countdown-element__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cover-title--sm .cover-element__title { font-size: 1.55rem; }
.cover-title--md .cover-element__title { font-size: 2rem; }
.cover-title--lg .cover-element__title { font-size: 2.5rem; }
.cover-title--xl .cover-element__title { font-size: clamp(2.7rem, 8vw, 3.5rem); }
.cover-title--xxl .cover-element__title { font-size: 4.25rem !important; line-height: 1.05; }

@media (max-width: 1280px) {
  .customize-sidebar {
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .customize-sidebar {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 6.4rem;
    width: auto;
    height: calc(100vh - 11.4rem);
    max-height: calc(100vh - 11.4rem);
  }

  .brand-color-picker__freepick {
    grid-template-columns: 1fr;
  }

  .brand-color-picker__native {
    width: 100%;
    min-width: 100%;
  }
}

.block-content {
  width: 100%;
}

.block-item--filled .block-content {
  flex: 1 1 auto;
  height: 100%;
  min-height: inherit;
  align-self: stretch;
  overflow: hidden;
  border-radius: inherit;
}

.block-item--filled .cover-element {
  margin: 0;
  width: 100%;
}

.block-item--drag-source {
  outline: 2px solid rgba(124, 58, 237, 0.35);
}

.element-item--dragging {
  opacity: 0.35;
  transform: scale(0.98);
}

.preview-canvas--dragging-element .block-item--empty {
  border-style: solid;
}

.builder-is-dragging {
  cursor: grabbing;
}

.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  margin: 0;
  transform: rotate(1.5deg);
}

.drag-ghost--block {
  opacity: 0.96;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.28);
  border-color: rgba(124, 58, 237, 0.65);
  background: #ffffff;
}

.drag-ghost--element {
  opacity: 0.98;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.22);
}

.itinerary-element--timeline-real {
  position: relative;
}

.itinerary-element--timeline-real::before {
  content: "";
  position: absolute;
  top: 5.5rem;
  bottom: 1.5rem;
  left: 2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(124,58,237,.28), rgba(124,58,237,.72));
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-event__marker {
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-left: 1.55rem;
  margin-top: .45rem;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 0 0 0 6px rgba(124,58,237,.14);
  z-index: 1;
}

.timeline-event__content {
  padding: 0 0 0.25rem 0.35rem;
}

.timeline-event--card .timeline-event__content {
  padding: 1rem 1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
}

.panel-icon-btn { border: 1px solid #e5e7eb; width: 2.35rem; height: 2.35rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.panel-avatar-btn { border: none; background: transparent; padding: 0; }
.panel-avatar-img { width: 2.5rem; height: 2.5rem; border-radius: 9999px; object-fit: cover; border: 2px solid #e5e7eb; }
.panel-profile-menu { position: absolute; right: 0; margin-top: .5rem; width: 12rem; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff; padding: .35rem; box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.panel-profile-item { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; border-radius: .5rem; font-weight: 600; color: #374151; }
.panel-profile-item:hover { background: #f3f4f6; }
.panel-sidebar { position: fixed; top: 0; left: 0; width: min(84vw, 300px); height: 100vh; background: #fff; border-right: 1px solid #e5e7eb; z-index: 60; transform: translateX(-102%); transition: transform .2s ease; }
.panel-sidebar.is-open { transform: translateX(0); }
.panel-sidebar-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 55; }
.panel-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
.panel-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #e5e7eb; font-weight: 700; }
.panel-sidebar__nav { display: flex; flex-direction: column; padding: .85rem; gap: .45rem; }
.panel-sidebar__item { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem; border-radius: .7rem; font-weight: 600; color: #374151; }
.panel-sidebar__item:hover, .panel-sidebar__item.is-active { background: #f3f4f6; color: #111827; }
