:root {
  --ink: #342933;
  --muted: #827780;
  --rose: #ae4569;
  --rose-dark: #87344f;
  --line: #eae3e6;
  --paper: #fcfaf9;
  --blush: #f7ebef;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 "DM Sans",
    sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ae456977;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
}
h1 em {
  font-weight: 400;
  color: var(--rose);
}
.account-header {
  height: 96px;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-bottom: 1px solid var(--line);
}
.account-header img {
  display: block;
  width: 152px;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-actions a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}
.quiet {
  background: transparent;
  color: var(--rose);
  padding: 8px 0;
  font-size: 13px;
}
.loading {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
main {
  min-height: calc(100vh - 190px);
}
.login-layout {
  max-width: 1160px;
  padding: 68px 44px 72px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 100px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: var(--rose);
}
.login-story h1 {
  font-size: 60px;
  margin: 20px 0 22px;
}
.login-story > p {
  color: var(--muted);
  max-width: 365px;
  line-height: 1.85;
}
.login-card {
  background: white;
  padding: 44px 36px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 80px #48334006;
}
.small-heart {
  display: grid;
  place-items: center;
  background: var(--blush);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--rose);
  font-size: 26px;
  margin-bottom: 24px;
}
.login-card h2 {
  font:
    500 26px/1.25 "Outfit",
    sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin: 26px 0 9px;
}
input {
  width: 100%;
  border: 1px solid #dfd6dc;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  min-height: 52px;
}
.primary,
.secondary {
  border-radius: 40px;
  padding: 13px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  transition: background 0.15s;
}
.primary {
  background: var(--rose);
  color: #fff;
}
.primary:hover {
  background: var(--rose-dark);
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
form .primary {
  width: 100%;
  margin-top: 18px;
  justify-content: space-between;
}
.login-foot {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 26px !important;
  font-size: 12px !important;
}
.feedback {
  font-size: 13px;
  color: var(--rose);
  line-height: 1.6;
  min-height: 20px;
  margin: 12px 0;
}
.feedback.error {
  color: #a02e39;
}
.code-input {
  font-size: 26px;
  text-align: center;
  letter-spacing: 10px;
}
.code-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.envelope-art {
  height: 190px;
  width: 260px;
  margin: 40px 0 22px 35px;
  position: relative;
  transform: rotate(-7deg);
}
.note {
  position: absolute;
  inset: 0 20px 32px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #eadce0;
  box-shadow: 0 8px 30px #914b6710;
  font: 22px/1.2 var(--serif);
  transform: rotate(4deg);
}
.note em {
  color: var(--rose);
}
.note span {
  display: block;
  text-align: right;
  padding-top: 5px;
  font-size: 30px;
  color: var(--rose);
}
.envelope-front {
  position: absolute;
  inset: 68px 0 0;
  background:
    linear-gradient(150deg, transparent 49.5%, #f3dce4 50%) left/50% 100%
      no-repeat,
    linear-gradient(210deg, transparent 49.5%, #ecd0da 50%) right/50% 100%
      no-repeat;
  border-bottom: 4px solid #edd2dc;
  border-radius: 0 0 7px 7px;
  filter: drop-shadow(0 10px 10px #834b6410);
}
.seal {
  position: absolute;
  bottom: 24px;
  left: 112px;
  border-radius: 50%;
  background: #b35476;
  width: 40px;
  height: 40px;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 23px;
}
.story-footer {
  font-size: 11px;
  color: var(--muted);
}
.story-footer span {
  color: var(--rose);
  margin-right: 8px;
}
.account-footer {
  border-top: 1px solid var(--line);
  max-width: 1176px;
  margin: auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.account-footer div {
  display: flex;
  gap: 24px;
}
.account-footer a {
  text-decoration: none;
}
.dashboard {
  max-width: 1280px;
  margin: auto;
  padding: 64px 52px;
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dashboard-heading h1 {
  font-size: 64px;
  margin: 14px 0 18px;
}
.heading-heart {
  font-family: var(--serif);
  font-size: 46px;
  color: #d6adb9;
  display: inline-block;
  transform: rotate(15deg);
  margin-left: 20px;
}
.dashboard-heading p {
  color: var(--muted);
  font-size: 14px;
}
.new-gift {
  white-space: nowrap;
}
.collection-bar {
  margin-top: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.filters {
  display: flex;
  gap: 8px;
}
.filters button {
  background: transparent;
  border-radius: 25px;
  padding: 9px 17px;
  font-size: 12px;
  color: var(--muted);
}
.filters .selected {
  background: var(--ink);
  color: white;
}
.account-email {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.gift-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.gift-card:hover {
  box-shadow: 0 16px 36px #4d2e4010;
  transform: translateY(-3px);
}
.gift-cover {
  height: 218px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4e1e5, #eee6db);
  display: grid;
  place-items: center;
}
.gift-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-heart {
  font: 64px var(--serif);
  color: #bd8498;
}
.status {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 11px;
  background: #fffc;
  border: 1px solid #fff9;
  border-radius: 20px;
  font-size: 10px;
  backdrop-filter: blur(10px);
  color: #5c4b54;
}
.gift-body {
  padding: 22px;
}
.gift-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  gap: 8px;
}
.gift-body h2 {
  font:
    500 24px/1.3 "Outfit",
    sans-serif;
  margin: 10px 0 5px;
  overflow-wrap: anywhere;
}
.gift-recipient {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.gift-opened {
  font-size: 11px;
  color: var(--rose);
  min-height: 18px;
  margin: 0 0 17px;
}
.gift-actions {
  display: flex;
  gap: 8px;
}
.gift-actions .primary {
  flex: 1;
  padding: 10px 12px;
  min-height: 42px;
}
.gift-actions .secondary {
  padding: 10px 14px;
  min-height: 42px;
  font-size: 12px;
}
.gift-details {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 14px 0 0;
  display: block;
  width: 100%;
  text-align: center;
}
.empty {
  text-align: center;
  border: 1px dashed #dbcbd2;
  border-radius: 20px;
  padding: 60px 20px;
  margin-top: 24px;
}
.empty > span {
  font-size: 46px;
  color: var(--rose);
}
.empty h2 {
  font: 26px var(--serif);
  margin-top: 10px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.collection-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 38px 0 0;
}
.load-more {
  display: block;
  margin: 26px auto;
}
.details {
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 24px 100px #2c152c20;
}
.details::backdrop {
  background: #2e172c66;
  backdrop-filter: blur(4px);
}
.close-dialog {
  float: right;
  background: var(--blush);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: var(--rose);
}
.details h2 {
  font: 28px var(--serif);
  padding-right: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.detail-row span:first-child {
  color: var(--muted);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.notification-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
}
.notification-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--rose);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  max-width: calc(100% - 32px);
  font-size: 13px;
  z-index: 10;
}
@media (min-width: 1500px) {
  .login-layout {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
@media (max-width: 1050px) {
  .login-layout {
    gap: 44px;
  }
  .login-story h1 {
    font-size: 50px;
  }
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-footer {
    margin: 0 44px;
  }
}
@media (max-width: 720px) {
  .account-header {
    height: 76px;
    padding: 0 22px;
  }
  .account-header img {
    width: 133px;
  }
  .header-actions {
    gap: 15px;
  }
  .header-actions a {
    font-size: 11px;
  }
  .login-layout {
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .login-story {
    text-align: center;
  }
  .login-story h1 {
    font-size: 39px;
    letter-spacing: -1px;
    margin: 14px 0;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story > p {
    font-size: 13px;
    margin: 0 auto;
  }
  .envelope-art,
  .story-footer {
    display: none;
  }
  .login-card {
    width: 100%;
    max-width: 440px;
    padding: 28px 24px;
  }
  .small-heart {
    margin-bottom: 18px;
  }
  .account-footer {
    margin: 0 22px;
    display: block;
    text-align: center;
    padding: 22px 0;
  }
  .account-footer div {
    justify-content: center;
    margin-top: 10px;
  }
  .dashboard {
    padding: 36px 22px;
  }
  .dashboard-heading {
    display: block;
  }
  .dashboard-heading h1 {
    font-size: 48px;
  }
  .new-gift {
    margin-top: 8px;
  }
  .collection-bar {
    margin-top: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    padding: 8px 13px;
  }
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gift-cover {
    height: 240px;
  }
  .account-email {
    font-size: 10px;
  }
  .dashboard-heading p {
    font-size: 13px;
  }
  .details {
    padding: 25px;
  }
  .collection-note {
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .gift-card:hover {
    transform: none;
  }
}
