:root {
  --rallyo-shell-bg: #f6f7f5;
  --rallyo-shell-border: #e5e7eb;
  --rallyo-shell-text: #111827;
  --rallyo-shell-muted: #6b7280;
}

body.rallyo-app {
  min-height: 100vh;
  background: var(--rallyo-shell-bg);
  color: var(--rallyo-shell-text);
  display: flex;
  flex-direction: column;
}

.rallyo-app-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--rallyo-shell-border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.rallyo-app-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}

.rallyo-app-header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


.rallyo-brand {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.rallyo-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 45px;
  max-width: min(140px, 42vw);
  object-fit: contain;
}

.rallyo-brand-fallback {
  font-weight: 700;
  color: var(--rallyo-shell-text);
  font-size: 1rem;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .rallyo-brand-logo {
    max-height: 34px;
    max-width: min(120px, 46vw);
  }
}

.rallyo-app-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--rallyo-shell-border);
  border-radius: 0.65rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  padding: 0.6rem;
  z-index: 30;
}

.rallyo-app-nav a {
  color: var(--rallyo-shell-text);
  text-decoration: none;
  font-size: 0.925rem;
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
}

.rallyo-app-nav a:hover,
.rallyo-app-nav a:focus-visible {
  background: #f3f4f6;
  color: #0d6efd;
}

.rallyo-app-menu {
  position: relative;
}

.rallyo-menu-toggle {
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--rallyo-shell-border);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--rallyo-shell-text);
  font-size: 1.1rem;
  line-height: 1;
}

.rallyo-menu-toggle:hover,
.rallyo-menu-toggle:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  outline: none;
}

main.rallyo-app-main {
  flex: 1;
  width: 100%;
  padding: 1rem 0;
}

.rallyo-app-footer {
  border-top: 1px solid var(--rallyo-shell-border);
  color: var(--rallyo-shell-muted);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem 0 1.1rem;
}


.rallyo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  min-height: 2.5rem;
  line-height: 1.2;
}

.rallyo-action-btn.w-100 {
  width: 100%;
}


.rallyo-nav-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  color: var(--rallyo-shell-text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0.45rem;
  transition: color 140ms ease, background-color 140ms ease;
}

.rallyo-nav-inline-link:hover,
.rallyo-nav-inline-link:focus-visible {
  color: #0d6efd;
  background-color: #f3f4f6;
  outline: none;
}

@media (max-width: 991.98px) {
  .rallyo-app-header-inner {
    min-height: 60px;
  }
}

.rallyo-signup-page {
  max-width: 1080px;
}

.rallyo-signup-hero {
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 65%, #f5f8ff 100%);
}

.rallyo-signup-hero-image {
  width: min(100%, 320px);
  max-height: 260px;
  object-fit: contain;
}

.rallyo-signup-lead {
  color: #334155;
  font-size: 1.05rem;
}

.rallyo-share-card {
  background: #f8faff;
}

.loop-occurrence-input:checked + .loop-occurrence-card {
  border-color: #0d6efd !important;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.08);
}

@media (max-width: 575.98px) {
  .rallyo-signup-hero .display-6 {
    font-size: 2rem;
  }
}

/* Create Event polish */
.rallyo-create-event-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #e5ebf5;
  border-radius: 1.25rem;
}

.rallyo-create-event-hero-main {
  margin: 0;
}

.rallyo-create-event-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.rallyo-create-event-icon-badge,
.rallyo-step-card-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #315cd8;
  background: linear-gradient(145deg, #f1f4ff 0%, #e8edff 100%);
}

.rallyo-create-event-hero-placeholder {
  min-height: 118px;
  width: 100%;
  border: 1px dashed #c9d8f8;
  border-radius: 1rem;
  background: linear-gradient(145deg, #f5f8ff, #edf2ff);
  color: #4f74db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.rallyo-create-poll-callout {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #dce8ff;
  background: linear-gradient(145deg, #eff4ff 0%, #eaf0ff 100%);
}

.rallyo-create-poll-callout-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #e1ebff;
  color: #315cd8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rallyo-step-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.rallyo-step-progress-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #e9eef9;
  overflow: hidden;
}

.rallyo-step-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2e6bff, #3d57d4);
  transition: width 180ms ease;
}

.rallyo-step-card {
  background: #fff;
  border-color: #e2e9f5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.rallyo-step-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.rallyo-field-with-icon {
  position: relative;
}

.rallyo-field-icon {
  position: absolute;
  left: 0.9rem;
  top: 2.15rem;
  color: #6c7ea5;
  pointer-events: none;
}

.rallyo-field-with-icon .loop-input,
.rallyo-field-with-icon .loop-textarea {
  padding-left: 2.55rem;
}

@media (max-width: 767.98px) {
  .rallyo-create-event-hero-placeholder {
    min-width: 0;
  }

  .rallyo-step-progress {
    grid-template-columns: 1fr;
  }
}
