:root {
  --bg-1: #fff3ea;
  --bg-2: #f5dccf;
  --bg-3: #ecd0d6;
  --panel: rgba(255, 252, 249, 0.78);
  --panel-strong: rgba(255, 252, 249, 0.92);
  --text: #26160f;
  --muted: #77594c;
  --accent: #c6604e;
  --accent-strong: #8d2f28;
  --accent-soft: rgba(198, 96, 78, 0.12);
  --line: rgba(64, 29, 17, 0.12);
  --shadow: 0 32px 80px rgba(92, 43, 28, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

body[data-owner-theme="azizbek"] {
  --accent: #355f73;
  --accent-strong: #17394b;
  --accent-soft: rgba(53, 95, 115, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 199, 160, 0.65), transparent 30%),
    radial-gradient(circle at top right, rgba(235, 181, 194, 0.35), transparent 24%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 52%, var(--bg-3));
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-left {
  top: -90px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: rgba(255, 139, 111, 0.5);
}

.ambient-right {
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: rgba(255, 233, 168, 0.56);
}

.app-card {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  background: rgba(255, 249, 245, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fade-up 360ms ease;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h4 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
}

.hero-copy,
.panel-copy,
.step-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.compact {
  margin-top: 10px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: 0 18px 34px rgba(94, 53, 25, 0.08);
}

.login-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.login-story {
  padding: 18px 8px 18px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.security-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(113, 59, 37, 0.1);
  box-shadow: 0 18px 30px rgba(98, 45, 24, 0.08);
}

.security-card strong,
.profile-tab strong {
  font-size: 1.1rem;
}

.security-card span,
.profile-tab small {
  color: var(--muted);
  line-height: 1.6;
}

.login-panel {
  align-self: center;
  padding: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.field span,
.option-group legend {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(67, 32, 21, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(198, 96, 78, 0.85);
  box-shadow: 0 0 0 4px rgba(198, 96, 78, 0.14);
}

textarea {
  resize: vertical;
}

.primary-button,
.ghost-button,
.text-button,
.pill-button,
.icon-button,
.profile-tab {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.pill-button:hover,
.icon-button:hover,
.profile-tab:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.text-button:disabled,
.pill-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.primary-button {
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e59869);
  box-shadow: 0 16px 30px rgba(198, 96, 78, 0.28);
  font-weight: 800;
}

.ghost-button,
.pill-button,
.icon-button {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(67, 32, 21, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
}

.error-text,
.status-text {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.error-text {
  color: #ae2d24;
}

.status-text {
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.topbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.session-badge {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(67, 32, 21, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.owner-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.profile-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(78, 39, 24, 0.12);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  box-shadow: 0 16px 24px rgba(90, 43, 22, 0.08);
}

.profile-tab.active {
  background: linear-gradient(145deg, rgba(255, 243, 236, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(198, 96, 78, 0.28);
  box-shadow: 0 20px 40px rgba(198, 96, 78, 0.14);
}

.profile-tab img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(72, 30, 16, 0.16);
}

.profile-tab small {
  display: block;
}

.tab-total {
  text-align: right;
}

.tab-total strong {
  display: block;
  font-size: 1.05rem;
}

.tab-total span {
  color: var(--muted);
  font-size: 0.83rem;
}

.board-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-top: 24px;
  background:
    linear-gradient(135deg, rgba(255, 243, 236, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(145deg, rgba(237, 196, 176, 0.18), transparent);
}

.board-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}

.board-avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 14px 26px rgba(72, 30, 16, 0.18);
}

.board-side {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-total-box {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(198, 96, 78, 0.12);
}

.hero-total-box span,
.hero-total-box small {
  display: block;
}

.hero-total-box span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-total-box strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.hero-total-box small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.add-button {
  min-width: 180px;
}

.board-rule-wrap {
  margin-top: 14px;
}

.board-rule {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(73, 35, 20, 0.14);
  color: var(--muted);
  line-height: 1.7;
}

.board-list {
  margin-top: 24px;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.wish-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(89, 45, 26, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 28px rgba(90, 43, 22, 0.08);
}

.media-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(241, 212, 190, 0.86), rgba(249, 240, 231, 0.96));
}

.media-wrap img,
.media-wrap video,
.media-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.media-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.card-body {
  padding: 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-title {
  margin: 0;
  font-size: 1.55rem;
}

.price-tag {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.wish-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(67, 32, 21, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-description,
.funding-note {
  color: var(--muted);
  line-height: 1.7;
}

.card-description {
  margin: 12px 0 10px;
}

.funding-note {
  margin: 0 0 12px;
}

.card-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 12, 8, 0.46);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 1.6rem;
  transform: rotate(45deg);
}

.wizard-dots {
  display: flex;
  gap: 10px;
  margin: 20px 0 24px;
}

.wizard-dot {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(79, 38, 22, 0.12);
  color: var(--muted);
  font-weight: 800;
}

.wizard-dot.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e29067);
  border-color: transparent;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fade-up 260ms ease;
}

.step-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.media-note,
.summary-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 248, 242, 0.88);
  border: 1px solid rgba(77, 37, 21, 0.1);
}

.media-note {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 4px 0 16px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.option-group {
  margin: 6px 0 18px;
  padding: 0;
  border: 0;
}

.option-group legend {
  margin-bottom: 12px;
}

.option-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(71, 33, 20, 0.11);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
}

.option-pill input {
  width: 18px;
  height: 18px;
}

.summary-card {
  display: grid;
  gap: 18px;
}

.summary-owner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-owner img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 20px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79, 38, 22, 0.08);
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row strong {
  flex-shrink: 0;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.hidden {
  display: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .login-layout,
  .owner-tabs,
  .board-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .board-side {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px;
  }

  .app-card,
  .modal-dialog {
    padding: 18px;
    border-radius: 28px;
  }

  .security-grid,
  .owner-tabs,
  .card-list {
    grid-template-columns: 1fr;
  }

  .profile-tab {
    grid-template-columns: auto 1fr;
  }

  .tab-total {
    grid-column: 1 / -1;
    text-align: left;
  }

  .wizard-footer,
  .footer-actions,
  .topbar,
  .topbar-actions,
  .board-identity {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-actions .ghost-button,
  .footer-actions .primary-button,
  .add-button {
    width: 100%;
  }
}
