* {
  box-sizing: border-box;
}

:root {
  --text: #1f2430;
  --muted: #687086;
  --white: rgba(255, 255, 255, 0.78);
  --white-strong: rgba(255, 255, 255, 0.95);
  --shadow: 0 24px 70px rgba(38, 42, 72, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --girl-main: #ff79bd;
  --girl-dark: #d72b83;
  --girl-soft: #fff0f8;
  --boy-main: #4e8cff;
  --boy-dark: #1d55bd;
  --boy-soft: #eef5ff;
}

html {
  min-height: 100%;
}

body {
  max-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 113, 189, 0.26),
      transparent 38%
    ),
    radial-gradient(
      circle at top right,
      rgba(66, 134, 255, 0.28),
      transparent 34%
    ),
    linear-gradient(135deg, #fff7fb 0%, #eef5ff 100%);
}

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

button {
  cursor: pointer;
}

.background-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(1px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.8);
  animation: float 8s ease-in-out infinite;
}

.bubble-1 {
  width: 140px;
  height: 140px;
  left: 4%;
  top: 20%;
}

.bubble-2 {
  width: 90px;
  height: 90px;
  right: 7%;
  top: 14%;
  animation-delay: -2s;
}

.bubble-3 {
  width: 170px;
  height: 170px;
  right: 18%;
  bottom: 4%;
  animation-delay: -4s;
}

.bubble-4 {
  width: 70px;
  height: 70px;
  left: 46%;
  bottom: 12%;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

.topbar {
  width: min(1440px, calc(100% - 32px));
  margin: 22px auto 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(67, 75, 120, 0.13);
}

.eyebrow,
.side-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-card {
  min-width: min(100%, 420px);
}

.login-form,
.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--white-strong);
  box-shadow: 0 12px 26px rgba(69, 75, 112, 0.12);
}

.login-form input,
.login-form select {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f7ff;
}

.primary-btn,
.ghost-btn,
.wish-form button,
.icon-btn,
.card-action {
  border: 0;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.primary-btn,
.wish-form button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--girl-main), var(--boy-main));
  box-shadow: 0 14px 28px rgba(74, 122, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.wish-form button:hover,
.icon-btn:hover,
.card-action:hover {
  transform: translateY(-2px);
}

.user-box {
  justify-content: space-between;
  border-radius: 24px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  background: #f6f7ff;
}

.ghost-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  background: #eef1fb;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.side {
  position: relative;
  min-height: calc(100vh - 160px);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.girl-side {
  background:
    radial-gradient(
      circle at 20% 12%,
      rgba(255, 255, 255, 0.78),
      transparent 26%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(255, 209, 230, 0.9),
      transparent 30%
    ),
    linear-gradient(160deg, #ffe6f3 0%, #ffc5e3 55%, #fff2fa 100%);
}

.boy-side {
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(255, 255, 255, 0.78),
      transparent 26%
    ),
    radial-gradient(
      circle at 10% 0%,
      rgba(157, 198, 255, 0.9),
      transparent 31%
    ),
    linear-gradient(160deg, #eaf3ff 0%, #a9cbff 55%, #edf6ff 100%);
}

.side::before,
.side::after {
  position: absolute;
  z-index: 0;
  opacity: 0.16;
  font-size: 120px;
  pointer-events: none;
}

.girl-side::before {
  content: '♡';
  left: 20px;
  bottom: 8px;
  color: var(--girl-dark);
}

.girl-side::after {
  content: '🎀';
  right: 28px;
  bottom: 14px;
}

.boy-side::before {
  content: '🎮';
  left: 24px;
  bottom: 18px;
}

.boy-side::after {
  content: '⚙';
  right: 26px;
  bottom: 0;
  color: var(--boy-dark);
}

.side > *:not(.side-glow) {
  position: relative;
  z-index: 1;
}

.side-glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(38px);
}

.side-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.side-header h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.side-description {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(31, 36, 48, 0.72);
  font-weight: 650;
}

.mascot {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(48, 52, 82, 0.16);
  font-size: 42px;
  transform: rotate(5deg);
}

.girl-mascot {
  color: var(--girl-dark);
}

.boy-mascot {
  color: var(--boy-dark);
  transform: rotate(-5deg);
}

.kitty-face {
  position: relative;
  width: 68px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 48% 48% 45% 45%;
  font-size: 20px;
  background: white;
}

.kitty-face::before,
.kitty-face::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 22px;
  height: 22px;
  background: white;
  border-top: 3px solid currentColor;
}

.kitty-face::before {
  left: 7px;
  border-left: 3px solid currentColor;
  transform: rotate(28deg);
}

.kitty-face::after {
  right: 7px;
  border-right: 3px solid currentColor;
  transform: rotate(-28deg);
}

.wish-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.57);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(70, 72, 100, 0.13);
}

.wish-form[hidden] {
  display: none;
}

.wish-form input,
.wish-form textarea,
.wish-form select,
.edit-card input,
.edit-card textarea,
.edit-card select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wish-form textarea,
.edit-card textarea {
  min-height: 86px;
  resize: vertical;
}

.girl-side .wish-form button {
  background: linear-gradient(135deg, #ff6ab8, #ff9acb);
  box-shadow: 0 14px 26px rgba(215, 43, 131, 0.25);
}

.boy-side .wish-form button {
  background: linear-gradient(135deg, #3d7cff, #6aa7ff);
  box-shadow: 0 14px 26px rgba(29, 85, 189, 0.25);
}

.list-toolbar {
  margin: 18px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(31, 36, 48, 0.72);
  font-weight: 900;
}

.mini-sticker {
  letter-spacing: 0.14em;
}

.wish-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  color: rgba(31, 36, 48, 0.64);
  font-weight: 750;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.wish-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(55, 58, 91, 0.12);
  animation: cardIn 0.22s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wish-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wish-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.wish-card p {
  margin-bottom: 0;
  color: rgba(31, 36, 48, 0.67);
  font-weight: 600;
  line-height: 1.45;
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f3f5ff;
}

.priority-high {
  color: #b50054;
  background: #ffe0ee;
}

.priority-medium {
  color: #8b5800;
  background: #fff2cc;
}

.priority-low {
  color: #2c6a45;
  background: #ddf7e8;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.card-action {
  min-width: 40px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(54, 57, 89, 0.09);
}

.card-action.danger {
  color: #b01648;
}

.card-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.locked-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(31, 36, 48, 0.64);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.48);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(29, 35, 54, 0.92);
  box-shadow: 0 18px 46px rgba(20, 24, 38, 0.24);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.edit-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 30px;
  background: transparent;
}

.edit-dialog::backdrop {
  background: rgba(24, 26, 38, 0.42);
  backdrop-filter: blur(7px);
}

.edit-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.dialog-header h3 {
  margin-bottom: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-weight: 900;
  background: #eef1fb;
}

.edit-card label {
  display: grid;
  gap: 8px;
  color: rgba(31, 36, 48, 0.72);
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar,
  .app-shell {
    width: min(720px, calc(100% - 24px));
  }

  .topbar,
  .login-form,
  .user-box {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .side-header {
    flex-direction: column;
  }

  .mascot {
    width: 82px;
    height: 82px;
    border-radius: 26px;
  }
}

/* Compact polish after redesign */
.topbar {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

h1 {
  font-size: clamp(22px, 3vw, 34px);
}

.login-form {
  border-radius: 24px;
}

.auth-card {
  min-width: min(100%, 360px);
}

.login-form input {
  width: 130px;
}

.app-shell {
  gap: 14px;
}

.side {
  min-height: calc(100vh - 132px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 34px;
}

.side-header {
  margin-bottom: 14px;
}

.side-header h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw, 44px);
}

.side-description {
  font-size: 14px;
  line-height: 1.35;
}

.mascot {
  width: 78px;
  height: 78px;
  border-radius: 24px;
}

.mascot img {
  width: 88px;
  height: 74px;
  object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 14px rgba(99, 36, 70, 0.14));
}

.wish-form {
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
}

.wish-form input,
.wish-form textarea,
.wish-form select,
.edit-card input,
.edit-card textarea,
.edit-card select {
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 14px;
}

.wish-form textarea,
.edit-card textarea {
  min-height: 70px;
}

.wish-form button,
.primary-btn {
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
}

.list-toolbar {
  margin: 12px 4px 8px;
  font-size: 14px;
}

.sticker-row {
  display: grid;
  grid-template-columns: 0.78fr 1fr 0.78fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.sticker-row img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(99, 36, 70, 0.16));
}

.sticker-row img:nth-child(1) {
  transform: rotate(-8deg);
}

.sticker-row img:nth-child(2) {
  transform: rotate(2deg);
}

.sticker-row img:nth-child(3) {
  transform: rotate(8deg);
}

.wish-list {
  gap: 9px;
}

.wish-card {
  padding: 13px;
  border-radius: 20px;
}

.wish-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.wish-card p {
  font-size: 14px;
  line-height: 1.38;
}

.priority {
  margin-bottom: 8px;
  padding: 5px 9px;
  font-size: 10px;
}

.card-actions {
  margin-top: 10px;
  gap: 6px;
}

.card-action {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.confirm-dialog {
  width: min(430px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 30px;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(24, 26, 38, 0.46);
  backdrop-filter: blur(8px);
}

.confirm-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(255, 160, 207, 0.32),
      transparent 36%
    ),
    radial-gradient(
      circle at 86% 12%,
      rgba(113, 164, 255, 0.24),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.confirm-card h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.confirm-text {
  margin: 0;
  color: rgba(31, 36, 48, 0.68);
  font-weight: 700;
  line-height: 1.45;
}

.confirm-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 22px;
  font-size: 28px;
  background: #fff0f8;
  box-shadow: 0 14px 28px rgba(215, 43, 131, 0.16);
}

.danger-btn {
  background: linear-gradient(135deg, #ff4f93, #ff7b7b);
  box-shadow: 0 14px 26px rgba(215, 43, 83, 0.24);
}

@media (max-width: 980px) {
  .side {
    min-height: auto;
  }

  .login-form input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .sticker-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .sticker-row img {
    max-height: 68px;
  }
}
