:root {
  --wine: #5b2030;
  --wine-dark: #431524;
  --rose: #8c5660;
  --cream: #faf7f2;
  --paper: #fff;
  --sand: #ede6e0;
  --border: #eadfdb;
  --ink: #372d32;
  --muted: #8b8085;
  --green: #366e52;
  --gold: #b4946c;
  --shadow: 0 7px 30px rgba(68, 24, 39, 0.04);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f9f7f5;
  color: var(--ink);
  font:
    13px/1.55 Manrope,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.hidden {
  display: none !important;
}
input,
textarea,
select {
  border: 1px solid #dfd5d3;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
  max-width: 100%;
  outline-offset: 2px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #be9aa2;
}
input[type="checkbox"] {
  accent-color: var(--wine);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #ded2d0;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.btn.primary {
  background: var(--wine);
  border-color: var(--wine);
  color: white;
}
.btn:hover {
  filter: brightness(0.94);
}
.btn.outlined {
  background: #fff;
  color: var(--wine);
}
.btn.full {
  width: 100%;
}
.kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ac7482;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f0e1d2;
  background: radial-gradient(circle at center, #753448, #491626);
  overflow: hidden;
}
.login-art:before {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px solid #9e7c7a;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid #a57a7c;
  border-radius: 50%;
}
.login-monogram {
  font:
    500 clamp(95px, 12vw, 190px) "Cormorant Garamond",
    serif;
  z-index: 1;
  letter-spacing: -17px;
}
.login-monogram i {
  font-size: 0.5em;
}
.login-art p {
  z-index: 1;
  letter-spacing: 5px;
  font-size: 13px;
}
.login-art span {
  z-index: 1;
  position: absolute;
  bottom: 75px;
  font-size: 10px;
  letter-spacing: 4px;
}
.login-form-panel {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-box {
  max-width: 410px;
  width: 100%;
}
.login-box h1 {
  font:
    500 62px/1 "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 19px 0;
}
.login-box h1 i {
  font-weight: 400;
}
.login-box > p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 36px;
}
.login-box label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 7px;
}
.login-box input {
  width: 100%;
  margin-bottom: 13px;
}
.login-box .btn {
  padding: 15px;
}
.login-box .btn span {
  margin-left: auto;
}
.error-message {
  color: #ab3d4d;
}
.back-link {
  display: inline-block;
  color: var(--wine);
  font-size: 11px;
  margin-top: 29px;
}
.app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--wine-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  padding: 30px 28px 48px;
  border-bottom: 1px solid #ffffff17;
}
.logo {
  font:
    500 42px "Cormorant Garamond",
    serif;
  letter-spacing: -3px;
}
.logo i {
  font-size: 25px;
}
.sidebar-brand small {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #d8b6b6;
}
.sidebar-nav {
  padding: 28px 12px;
  display: grid;
  gap: 7px;
}
.sidebar-nav button {
  border: none;
  background: transparent;
  color: #ddc5c7;
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sidebar-nav button span {
  font:
    23px/1 "Cormorant Garamond",
    serif;
  width: 24px;
  text-align: center;
}
.sidebar-nav button:hover,
.sidebar-nav button.active {
  background: #ffffff18;
  color: white;
}
.sidebar-nav button.active {
  box-shadow: inset 3px 0 #d4b7a0;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px;
  display: grid;
  gap: 19px;
  border-top: 1px solid #ffffff1a;
  font-size: 11px;
  color: #d7bfc3;
}
.sidebar-foot button {
  color: inherit;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
}
.main-content {
  min-width: 0;
}
.app-header {
  background: #fff;
  padding: 25px clamp(20px, 3vw, 50px);
  border-bottom: 1px solid #eee5e2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-header h1 {
  font:
    500 36px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 3px 0 0;
}
.app-header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.wedding-date {
  font-size: 11px;
  color: #886a75;
  font-weight: 700;
}
.avatar {
  border-radius: 50%;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #f2e4e6;
  color: var(--wine);
  font:
    600 19px "Cormorant Garamond",
    serif;
}
.panel-content {
  padding: 35px clamp(20px, 3vw, 50px) 65px;
  max-width: 1560px;
  margin: auto;
}
.tab {
  display: none;
}
.tab.active {
  display: block;
}
.welcome-panel {
  background: linear-gradient(115deg, #5f2035, #7b3d4d);
  color: #fff;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.welcome-panel:after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  right: -130px;
  top: -170px;
}
.welcome-panel .kicker {
  color: #e5c8b5;
}
.welcome-panel h2 {
  font:
    500 47px/1.1 "Cormorant Garamond",
    serif;
  margin: 12px 0;
}
.welcome-panel h2 i {
  font-weight: 400;
}
.welcome-panel p {
  color: #e8cdd3;
  font-size: 12px;
}
.welcome-ring {
  flex-shrink: 0;
  border: 1px solid #cb9f9d;
  border-radius: 50%;
  height: 145px;
  width: 145px;
  display: grid;
  align-content: center;
  justify-items: center;
  font:
    500 85px/1 "Cormorant Garamond",
    serif;
  z-index: 1;
  margin-right: 30px;
}
.welcome-ring span {
  font:
    700 10px Manrope,
    sans-serif;
  letter-spacing: 2px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 25px 0;
}
.stat-grid article,
.panel-card {
  border: 1px solid #eee5e2;
  background: white;
  box-shadow: var(--shadow);
}
.stat-grid article {
  padding: 25px;
}
.stat-grid article > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #967c85;
}
.stat-grid strong {
  font:
    600 37px "Cormorant Garamond",
    serif;
  display: block;
  color: var(--wine);
  margin: 11px 0;
}
.stat-grid small {
  color: #99888c;
  font-size: 10px;
}
.overview-grid,
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel-card {
  padding: 27px;
  margin-bottom: 18px;
}
.panel-card h3 {
  font:
    600 29px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 0 0 16px;
}
.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.text-action {
  border: 0;
  background: none;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}
.progress-track {
  width: 100%;
  background: #eee5e5;
  height: 9px;
  border-radius: 15px;
  overflow: hidden;
  margin: 24px 0 12px;
}
.progress-track div {
  height: 100%;
  background: #95616e;
  width: 0;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #765b62;
}
.hint {
  font-size: 11px;
  color: #95888b;
  line-height: 1.8;
  margin-top: 18px;
}
.money-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee6e2;
  padding: 12px 0;
  font-size: 12px;
}
.money-line strong {
  color: var(--wine);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 {
  font:
    500 42px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 0;
}
.section-heading p {
  color: #8e8184;
  font-size: 12px;
  margin: 5px 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.file-label {
  cursor: pointer;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar input {
  min-width: 260px;
}
.toolbar-count {
  margin-left: auto;
  color: #9a8c90;
  font-size: 11px;
}
.table-scroller {
  overflow-x: auto;
  border: 1px solid #eee5e2;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
thead {
  background: #f6f1ef;
  color: #a08b91;
  font-size: 9px;
  letter-spacing: 1px;
}
th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid #f1ebe8;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #49343c;
  display: block;
  font-size: 12px;
}
td small {
  color: #96868c;
  font-size: 10px;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 160px;
}
.table-actions button {
  border: 1px solid #e8dad9;
  background: white;
  color: #6a3645;
  border-radius: 4px;
  font-size: 10px;
  padding: 6px 8px;
  white-space: nowrap;
}
.table-actions button:hover {
  background: #f5eae8;
}
.pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 9px;
  white-space: nowrap;
}
.pill.yes,
.pill.confirmed {
  background: #e5f3ea;
  color: #367350;
}
.pill.pending {
  background: #fff3de;
  color: #a06b26;
}
.pill.no,
.pill.cancelled,
.pill.failed {
  background: #f1ebeb;
  color: #8f6270;
}
.admin-gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.admin-gift-card {
  background: #fff;
  border: 1px solid #ebe0dc;
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.admin-gift-card .emoji {
  font-size: 30px;
}
.admin-gift-card h3 {
  font:
    600 29px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 10px 0 5px;
}
.admin-gift-card p {
  font-size: 11px;
  color: #94868b;
  min-height: 38px;
}
.admin-gift-card strong {
  font:
    600 25px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin-top: auto;
}
.admin-gift-card .btn {
  margin-top: 17px;
}
.admin-gift-card.inactive {
  opacity: 0.5;
}
.payment-notice {
  padding: 14px 18px;
  background: #fff4e7;
  color: #815f3c;
  border: 1px solid #f3e2cb;
  font-size: 11px;
  margin-bottom: 18px;
}
.message-grid {
  margin-bottom: 20px;
}
.message-icon {
  font:
    40px "Cormorant Garamond",
    serif;
  color: var(--wine);
}
.message-grid p {
  color: #8f8086;
  font-size: 12px;
  min-height: 60px;
}
.message-grid small {
  display: block;
  color: #a09397;
  font-size: 10px;
  margin-top: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.settings-grid label,
.dialog-fields label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #735961;
}
.settings-grid label input,
.settings-grid label textarea {
  width: 100%;
  font-weight: 500;
}
.span-all {
  grid-column: 1/-1;
}
.save-btn {
  margin-top: 8px;
  padding: 13px 30px;
}
.edit-dialog {
  width: min(92vw, 540px);
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  border: 1px solid #e9dbd6;
  box-shadow: 0 30px 85px #25131a54;
  border-radius: 6px;
}
.edit-dialog::backdrop {
  background: #281a23a6;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  border-bottom: 1px solid #eee5e2;
}
.dialog-head h2 {
  font:
    600 35px "Cormorant Garamond",
    serif;
  color: var(--wine);
  margin: 0;
}
.dialog-head button {
  background: none;
  border: none;
  font-size: 27px;
}
.edit-dialog form {
  padding: 25px 28px;
}
.dialog-fields {
  display: grid;
  gap: 16px;
}
.dialog-fields label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #7d6570;
}
.dialog-fields input {
  width: 100%;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 23px;
}
.notice {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  padding: 14px 20px;
  color: #fff;
  background: var(--wine);
  max-width: 390px;
  box-shadow: 0 10px 20px #0002;
  font-size: 12px;
}
.notice.show {
  display: block;
}
@media (max-width: 1180px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-gift-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 800px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .app {
    display: block;
  }
  .sidebar {
    min-height: 0;
    height: auto;
    position: static;
  }
  .sidebar-brand {
    padding: 15px 20px;
  }
  .sidebar-brand .logo {
    font-size: 30px;
  }
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 5px 10px 12px;
  }
  .sidebar-nav button {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .sidebar-foot {
    display: none;
  }
  .app-header {
    padding: 18px 20px;
  }
  .panel-content {
    padding: 24px 16px;
  }
  .welcome-panel {
    padding: 25px;
  }
  .welcome-ring {
    display: none;
  }
  .overview-grid,
  .message-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    min-width: 150px;
    flex: 1;
  }
}
@media (max-width: 520px) {
  .stat-grid {
    gap: 10px;
  }
  .stat-grid article {
    padding: 16px 12px;
  }
  .stat-grid strong {
    font-size: 29px;
  }
  .stat-grid article > span {
    font-size: 8px;
  }
  .admin-gift-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .welcome-panel h2 {
    font-size: 36px;
  }
  .wedding-date {
    display: none;
  }
  .app-header h1 {
    font-size: 30px;
  }
  .toolbar-count {
    width: 100%;
  }
  .edit-dialog form {
    padding: 20px 15px;
  }
}
