:root {
  color-scheme: dark;
  --ink: #fff7fb;
  --muted: #bda8ba;
  --soft: #f4d7e9;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #070509;
  --surface: rgba(22, 12, 24, 0.82);
  --surface-strong: rgba(39, 17, 38, 0.94);
  --night: #070509;
  --black: #050306;
  --pink: #ff2a9f;
  --pink-hot: #ff4db5;
  --orange: #ff9b1f;
  --amber: #ffd36a;
  --violet: #6126a6;
  --cyan: #34e7ff;
  --green: #23d18b;
  --danger: #ff4b5f;
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
  --glow-pink: 0 0 22px rgba(255, 42, 159, 0.5);
  --glow-orange: 0 0 24px rgba(255, 155, 31, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 42, 159, 0.18), rgba(7, 5, 9, 0.88) 36%, #070509 100%),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 42, 159, 0.18), rgba(52, 231, 255, 0.08) 34%, rgba(255, 155, 31, 0.15) 72%, rgba(7, 5, 9, 0.95)),
    url("assets/texture-ibiza-marbella.jpg") center top / cover no-repeat;
  transform: scale(1.04);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 70%);
  pointer-events: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 14px calc(94px + env(safe-area-inset-bottom));
  position: relative;
}

.topbar {
  min-height: 72px;
  padding: 12px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(7, 5, 9, 0.94), rgba(7, 5, 9, 0.72));
  backdrop-filter: blur(22px);
}

.brand {
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 4px 6px 4px 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.brand:active,
.icon-button:active,
.tab:active,
.button:active,
.quick-action:active,
.tiny-action:active,
.option-button:active {
  transform: scale(0.97);
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--glow-pink), 0 14px 28px rgba(0, 0, 0, 0.38);
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.section-title h1,
.section-title h2,
.card-title,
.stat strong,
.trip-identity-copy strong {
  overflow-wrap: anywhere;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.08;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: rgba(255, 42, 159, 0.46);
  background: rgba(255, 42, 159, 0.14);
}

.icon-button.is-hot {
  border-color: rgba(255, 42, 159, 0.72);
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 211, 106, 0.44), transparent 24%),
    rgba(255, 42, 159, 0.16);
  box-shadow: var(--glow-pink), 0 14px 26px rgba(0, 0, 0, 0.22);
  animation: bellPulse 1.8s ease-in-out infinite;
}

.icon-button.subtle {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg,
.tab svg,
.button svg,
.tiny-action svg,
.quick-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.view {
  outline: none;
}

.view.is-ready .page > * {
  animation: panelIn 520ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.view.is-ready .page > *:nth-child(2) {
  animation-delay: 45ms;
}

.view.is-ready .page > *:nth-child(3) {
  animation-delay: 90ms;
}

.view.is-ready .page > *:nth-child(4) {
  animation-delay: 135ms;
}

.view.is-ready .page > *:nth-child(5) {
  animation-delay: 180ms;
}

.tabbar {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 690px);
  margin: 0 auto;
  min-height: 72px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(8, 5, 10, 0.86);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px);
  z-index: 20;
}

.tab {
  min-width: 0;
  min-height: 56px;
  padding: 7px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 247, 251, 0.58);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 820;
  transition: transform 160ms ease, background 180ms ease, color 180ms ease;
}

.tab.is-active {
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.95), rgba(255, 155, 31, 0.9));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, var(--glow-pink);
}

.page {
  display: grid;
  gap: 16px;
  padding: 8px 0 118px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-title h1 {
  font-size: 2.38rem;
  text-shadow: 0 0 18px rgba(255, 42, 159, 0.24);
}

.section-title h2 {
  font-size: 1.35rem;
}

.section-title p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.stack,
.reminder-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.quick-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-action,
.stat,
.panel,
.card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-action {
  min-height: 88px;
  padding: 14px;
  color: var(--ink);
  display: grid;
  align-content: space-between;
  gap: 12px;
  text-align: left;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-action::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
}

.quick-action svg {
  width: 24px;
  height: 24px;
}

.quick-action span {
  font-weight: 880;
  line-height: 1.08;
}

.quick-action.media {
  border-color: rgba(52, 231, 255, 0.24);
  background: linear-gradient(135deg, rgba(52, 231, 255, 0.18), rgba(255, 255, 255, 0.07));
}

.quick-action.poll {
  border-color: rgba(255, 42, 159, 0.34);
  background: linear-gradient(135deg, rgba(255, 42, 159, 0.2), rgba(255, 155, 31, 0.12));
}

.quick-action:hover {
  transform: translateY(-2px);
}

.trip-identity {
  min-height: 236px;
  border: 1px solid rgba(255, 42, 159, 0.46);
  border-radius: 8px;
  overflow: hidden;
  background: var(--night);
  color: #ffffff;
  position: relative;
  display: grid;
  align-items: start;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), var(--glow-pink);
  isolation: isolate;
}

.trip-identity img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.02);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

.trip-identity::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 9, 0.02), rgba(7, 5, 9, 0.7)),
    linear-gradient(90deg, rgba(255, 42, 159, 0.28), transparent 34%, rgba(255, 155, 31, 0.2));
  z-index: 1;
}

.trip-identity::after {
  content: "";
  position: absolute;
  left: -35%;
  right: -35%;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.55;
  z-index: 2;
  animation: neonSweep 4.8s ease-in-out infinite;
}

.trip-identity-copy {
  position: relative;
  z-index: 3;
  margin: 12px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 5, 9, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-pink);
}

.trip-identity-copy span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trip-identity-copy strong {
  font-size: 1.2rem;
  line-height: 1.04;
}

.countdown-panel {
  border: 1px solid rgba(255, 42, 159, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.24), rgba(255, 155, 31, 0.14) 58%, rgba(52, 231, 255, 0.12)),
    rgba(10, 4, 13, 0.94);
  color: #ffffff;
  padding: 15px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), var(--glow-orange);
  position: relative;
  overflow: hidden;
}

.countdown-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 0 40%, rgba(255, 255, 255, 0.12), transparent 60% 100%);
  transform: translateX(-100%);
  animation: cardSweep 5.4s ease-in-out infinite;
}

.countdown-panel > * {
  position: relative;
}

.countdown-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
}

.countdown-head span,
.admin-badge {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.countdown-head h2,
.countdown-head h3 {
  margin: 4px 0 0;
  color: #ffffff;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-unit {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.countdown-unit strong {
  font-size: 1.48rem;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
  animation: numberPulse 1s ease both;
}

.countdown-unit span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
  font-weight: 900;
}

.countdown-done {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 42, 159, 0.28);
  font-weight: 920;
  text-align: center;
}

.stat {
  min-height: 102px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 42, 159, 0.08), transparent 48%, rgba(255, 155, 31, 0.08));
  pointer-events: none;
}

.stat span,
.meta,
.people-list {
  color: var(--muted);
}

.stat span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  position: relative;
}

.stat strong {
  font-size: 2.02rem;
  line-height: 1;
  color: var(--ink);
  position: relative;
}

.panel {
  padding: 15px;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label,
.label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 860;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

select {
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 247, 251, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 42, 159, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 42, 159, 0.18), var(--glow-pink);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.file-drop {
  min-height: 118px;
  border: 1px dashed rgba(52, 231, 255, 0.48);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(52, 231, 255, 0.08);
  color: var(--ink);
  text-align: center;
}

.file-drop input {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #ffffff;
  box-shadow: var(--glow-pink);
}

.button.accent {
  background: linear-gradient(135deg, var(--danger), var(--pink));
  color: #ffffff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover {
  filter: brightness(1.08);
}

.button:disabled {
  opacity: 0.48;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 10px;
}

.memory-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.memory-media img,
.memory-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card {
  overflow: hidden;
}

.card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}

.meta {
  font-size: 0.78rem;
  line-height: 1.35;
}

.note {
  margin: 0;
  color: rgba(255, 247, 251, 0.82);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tiny-action {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
}

.tiny-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.poll-options {
  display: grid;
  gap: 9px;
}

.option-button {
  width: 100%;
  min-height: 52px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.option-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score, 0%);
  background: linear-gradient(90deg, rgba(255, 42, 159, 0.24), rgba(255, 155, 31, 0.18));
  pointer-events: none;
  transition: width 280ms ease;
}

.option-button > * {
  position: relative;
}

.option-button.is-selected {
  border-color: rgba(255, 155, 31, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 155, 31, 0.42), var(--glow-orange);
}

.option-label {
  font-weight: 860;
  overflow-wrap: anywhere;
}

.option-count {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.people-list {
  font-size: 0.76rem;
  line-height: 1.35;
  grid-column: 1 / -1;
  min-height: 1em;
}

.reminder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
}

.date-pill {
  width: 60px;
  min-height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 920;
  line-height: 1.05;
  box-shadow: var(--glow-pink);
}

.date-pill span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.date-pill strong {
  display: block;
  font-size: 1.34rem;
}

.empty-state {
  min-height: 118px;
  padding: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.admin-lock {
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.14), rgba(255, 155, 31, 0.1)),
    var(--surface);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-status {
  border-color: rgba(255, 42, 159, 0.32);
}

.sheet {
  width: min(calc(100% - 24px), 520px);
  border: 0;
  padding: 0;
  border-radius: 16px;
  background: transparent;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.sheet-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(18, 9, 20, 0.96);
  padding: 15px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-actions {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(102px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(calc(100% - 32px), 520px);
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 6, 14, 0.96);
  color: #ffffff;
  box-shadow: var(--shadow), var(--glow-pink);
  font-weight: 820;
  text-align: center;
  animation: toastIn 260ms ease both;
}

.puff-toast {
  position: fixed;
  left: 14px;
  right: 14px;
  top: calc(14px + env(safe-area-inset-top));
  z-index: 40;
  pointer-events: none;
  width: min(calc(100% - 28px), 520px);
  min-height: 74px;
  margin: 0 auto;
  padding: 13px 14px 13px 58px;
  border: 1px solid rgba(255, 42, 159, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.22), rgba(255, 155, 31, 0.12)),
    rgba(10, 4, 13, 0.95);
  box-shadow: var(--shadow), var(--glow-pink);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: puffDrop 520ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.puff-toast::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.16), transparent 60% 100%);
  animation: cardSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

.puff-toast > span {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: var(--glow-pink);
}

.puff-toast svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.puff-toast strong,
.puff-toast p {
  position: relative;
  z-index: 1;
}

.puff-toast strong {
  display: block;
  color: #ffffff;
  line-height: 1.15;
}

.puff-toast p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
  font-size: 0.86rem;
}

.notification-sheet .sheet-panel {
  max-height: min(78vh, 720px);
}

.notification-center {
  display: grid;
  gap: 12px;
}

.notification-status {
  min-height: 72px;
  border: 1px solid rgba(255, 42, 159, 0.24);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.15), rgba(52, 231, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.notification-status span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.notification-status strong {
  color: #ffffff;
  font-size: 1.25rem;
}

.puff-list {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 2px;
}

.puff-item {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  background: rgba(255, 255, 255, 0.07);
}

.puff-item.is-unread {
  border-color: rgba(255, 42, 159, 0.44);
  box-shadow: 0 0 20px rgba(255, 42, 159, 0.16);
}

.puff-dot {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.puff-item.is-unread .puff-dot {
  background: var(--pink);
  box-shadow: var(--glow-pink);
}

.puff-item h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.18;
}

.puff-item p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.35;
}

.puff-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(-3px, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(3px, -3px, 0);
  }
}

@keyframes neonSweep {
  0%,
  100% {
    transform: translateX(-24%) rotate(-2deg);
  }
  50% {
    transform: translateX(24%) rotate(-2deg);
  }
}

@keyframes cardSweep {
  0%,
  72% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes numberPulse {
  from {
    transform: translateY(3px) scale(0.96);
    opacity: 0.58;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes puffDrop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bellPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.countdown-panel {
  min-height: 330px;
  padding: 16px;
  border-color: rgba(255, 42, 159, 0.66);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 42, 159, 0.34), transparent 35%),
    radial-gradient(circle at 82% 16%, rgba(52, 231, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 42, 159, 0.16), rgba(255, 155, 31, 0.1) 54%, rgba(6, 4, 12, 0.96)),
    rgba(7, 5, 9, 0.98);
}

.countdown-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.countdown-stage {
  display: grid;
  gap: 15px;
}

.countdown-orbit {
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    conic-gradient(from -90deg, var(--pink) 0 var(--progress), rgba(255, 255, 255, 0.11) var(--progress) 100%),
    radial-gradient(circle, rgba(255, 155, 31, 0.3), rgba(255, 42, 159, 0.12) 46%, transparent 70%);
  box-shadow: 0 0 48px rgba(255, 42, 159, 0.38), inset 0 0 30px rgba(255, 255, 255, 0.08);
  animation: orbitFloat 4s ease-in-out infinite;
}

.countdown-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  animation: orbitSpin 14s linear infinite;
}

.countdown-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.12), rgba(10, 4, 13, 0.96) 62%);
  box-shadow: inset 0 0 24px rgba(255, 42, 159, 0.3), inset 0 0 44px rgba(52, 231, 255, 0.08);
}

.countdown-orbit-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  padding: 20px;
}

.countdown-orbit-core span {
  min-height: 28px;
  color: var(--amber);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.countdown-orbit-core strong {
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.34), var(--glow-pink);
}

.countdown-orbit-core em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.countdown-unit {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}

.countdown-unit strong {
  animation: digitSnap 800ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.vault-page {
  position: relative;
}

.vault-hero {
  min-height: 220px;
  border: 1px solid rgba(52, 231, 255, 0.35);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 5, 9, 0.12), rgba(7, 5, 9, 0.9)),
    url("assets/hero-ibiza-marbella.jpg") center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 34px rgba(52, 231, 255, 0.18);
}

.vault-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(52, 231, 255, 0.16), transparent 42%, rgba(255, 42, 159, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 10px);
  opacity: 0.7;
  animation: vaultScan 6s ease-in-out infinite;
}

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

.vault-kicker {
  width: fit-content;
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid rgba(52, 231, 255, 0.36);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(7, 5, 9, 0.52);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 0 20px rgba(52, 231, 255, 0.18);
}

.vault-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  text-shadow: var(--glow-pink);
}

.vault-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.vault-lock,
.vault-upload,
.vault-card {
  border-color: rgba(52, 231, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(52, 231, 255, 0.1), rgba(255, 42, 159, 0.1)),
    var(--surface);
}

.vault-grid .memory-media::after {
  content: "Privé";
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(52, 231, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(7, 5, 9, 0.58);
  font-size: 0.68rem;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}

.card,
.panel,
.quick-action,
.countdown-panel {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.panel:hover {
  border-color: rgba(255, 42, 159, 0.24);
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes digitSnap {
  from {
    opacity: 0.45;
    transform: translateY(6px) scale(0.94);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes vaultScan {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.48;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.76;
  }
}

.fab {
  position: fixed;
  right: max(18px, calc((100vw - 690px) / 2 + 18px));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 24;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: var(--glow-pink), 0 18px 36px rgba(0, 0, 0, 0.42);
  transition: transform 160ms ease, filter 160ms ease;
}

.fab:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.12);
}

.fab svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.action-grid,
.more-grid,
.home-grid,
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-page .trip-identity {
  min-height: 210px;
}

.home-hero {
  min-height: 184px;
  padding: 18px;
  border: 1px solid rgba(255, 42, 159, 0.42);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.28), rgba(255, 155, 31, 0.16), rgba(52, 231, 255, 0.1)),
    url("assets/hero-ibiza-marbella.jpg") center / cover no-repeat;
  box-shadow: var(--shadow), var(--glow-pink);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 5, 9, 0.08), rgba(7, 5, 9, 0.72));
}

.home-hero h1 {
  margin: 4px 0;
  font-size: clamp(2.1rem, 11vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255, 42, 159, 0.42);
}

.home-hero p {
  margin: 0;
  color: rgba(255, 247, 251, 0.82);
  line-height: 1.35;
}

.sync-chip,
.sync-state {
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  background: rgba(7, 5, 9, 0.46);
  box-shadow: var(--glow-pink);
  font-size: 0.72rem;
  font-weight: 900;
}

.sync-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sync-state {
  margin-top: 0;
  color: var(--amber);
}

.eyebrow {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: 0;
}

.avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(255, 42, 159, 0.95), rgba(255, 155, 31, 0.88));
  box-shadow: var(--glow-pink);
  font-weight: 950;
}

.avatar-ring.large {
  width: 76px;
  height: 76px;
  font-size: 1.5rem;
}

.signal-card,
.mini-card,
.feed-item,
.activity-card,
.settlement-card,
.leader-row,
.account-row,
.member-card,
.quote-item,
.check-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 12, 24, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card {
  min-height: 120px;
  padding: 14px;
  color: var(--ink);
  display: grid;
  align-content: space-between;
  gap: 10px;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--cyan));
}

.signal-card svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: var(--pink-hot);
}

.signal-card small,
.challenge-meta span,
.status-pill,
.time-chip,
.settlement-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong {
  font-size: 1rem;
  line-height: 1.12;
}

.panel-heading,
.split-line,
.challenge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.75rem;
}

.feed-list,
.quote-list,
.checklist,
.settlement-list,
.leader-list,
.account-list {
  display: grid;
  gap: 9px;
}

.feed-item {
  min-height: 62px;
  padding: 11px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
}

.feed-item > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 159, 0.18);
}

.feed-item strong,
.feed-item small,
.quote-item p,
.quote-item small {
  display: block;
}

.feed-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.day-panel,
.album-section {
  display: grid;
  gap: 12px;
}

.album-section h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: capitalize;
}

.activity-card {
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.activity-card h3,
.member-card h2,
.challenge-card h2,
.profile-card h2 {
  margin: 0;
  line-height: 1.1;
}

.time-chip {
  min-width: 58px;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 42, 159, 0.7), rgba(255, 155, 31, 0.72));
  box-shadow: var(--glow-orange);
}

.status-row,
.reaction-row,
.badge-row,
.challenge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-badge,
.reaction-button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 850;
}

.status-badge.is-active,
.reaction-button.is-selected {
  color: #ffffff;
  border-color: rgba(255, 42, 159, 0.62);
  background: linear-gradient(135deg, rgba(255, 42, 159, 0.62), rgba(255, 155, 31, 0.46));
}

.comment-list {
  display: grid;
  gap: 6px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.comment-list p,
.quote-item p,
.member-card p,
.challenge-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.35;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.quote-list {
  margin-top: 10px;
}

.quote-item {
  padding: 12px;
}

.quote-item small {
  margin-top: 6px;
  color: var(--muted);
}

.check-item {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.check-item input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--pink);
}

.check-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.member-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-checks label {
  min-height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.member-checks input {
  width: 18px;
  min-height: 18px;
}

.settlement-card,
.leader-row,
.account-row {
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.leader-row span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 42, 159, 0.22);
  font-weight: 920;
}

.leader-row em {
  color: var(--amber);
  font-style: normal;
  font-weight: 920;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.member-card .avatar-ring {
  width: 58px;
  height: 58px;
}

.status-pill,
.badge-row span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.badge-row span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.challenge-card {
  display: grid;
  gap: 14px;
  border-color: rgba(255, 42, 159, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 42, 159, 0.22), rgba(255, 155, 31, 0.12)),
    rgba(17, 8, 20, 0.9);
}

.challenge-top strong {
  padding: 8px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 42, 159, 0.22);
  box-shadow: var(--glow-pink);
}

.proof-card .memory-media {
  aspect-ratio: 4 / 3;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (min-width: 680px) {
  .app-shell {
    padding-inline: 24px;
  }

  .page {
    gap: 18px;
  }

  .field-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trip-identity {
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 10px;
  }

  .tabbar {
    min-height: 70px;
    gap: 4px;
    padding: 7px;
  }

  .tab {
    font-size: 0.54rem;
  }

  .section-title h1 {
    font-size: 2rem;
  }

  .trip-identity {
    min-height: 210px;
  }
}

@media (max-width: 360px) {
  .field-row,
  .quick-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .countdown-orbit {
    width: min(100%, 238px);
  }

  .countdown-orbit-core strong {
    font-size: 1.72rem;
  }

  .tab span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
