/* BP Invitations — account.css */
:root {
  --bp-gold:    #c9a84c;
  --bp-sage:    #8a9e7e;
  --bp-cream:   #fdf8f0;
  --bp-text:    #2c2416;
  --bp-muted:   #9a8e80;
  --bp-border:  #e8e2d9;
  --bp-bg:      #f7f5f2;
  --bp-white:   #ffffff;
}

/* ── Wrapper ── */
.bpi-account { font-family: 'Jost', 'Helvetica Neue', sans-serif; color: var(--bp-text); }

/* ── Header ── */
.bpi-account-header { margin-bottom: 28px; }
.bpi-account-header h2 { font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.bpi-sub { font-size: 13px; color: var(--bp-muted); }

/* ── Buttons ── */
.bpi-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--bp-border);
  background: var(--bp-white);
  color: var(--bp-text);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
}
.bpi-btn:hover { border-color: var(--bp-gold); color: var(--bp-gold); }
.bpi-btn--dark { background: var(--bp-text); color: #fff; border-color: var(--bp-text); }
.bpi-btn--dark:hover { background: #4a3c2a; color: #fff; border-color: #4a3c2a; }
.bpi-btn--gold { background: var(--bp-gold); color: var(--bp-text); border-color: var(--bp-gold); font-weight: 500; }
.bpi-btn--gold:hover { background: #b8943a; border-color: #b8943a; }
.bpi-btn--sm { padding: 6px 14px; font-size: 11px; }

/* ── Empty state ── */
.bpi-empty { text-align: center; padding: 60px 20px; }
.bpi-empty-icon { font-size: 48px; margin-bottom: 16px; }
.bpi-empty p { color: var(--bp-muted); margin-bottom: 20px; }

/* ── Invitation grid ── */
.bpi-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bpi-inv-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: 6px;
  padding: 24px;
  transition: box-shadow .2s;
}
.bpi-inv-card:hover { box-shadow: 0 4px 20px rgba(44,36,22,.08); }

.bpi-inv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bpi-tmpl-icon { font-size: 24px; }

.bpi-status {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.bpi-status--published { background: #d4ecd0; color: #3a6b32; }
.bpi-status--draft     { background: #f0e8d4; color: #7a5a20; }

.bpi-inv-name { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.bpi-inv-meta { font-size: 12px; color: var(--bp-muted); margin-bottom: 16px; }

.bpi-rsvp-summary {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
  margin-bottom: 16px;
}
.bpi-rsvp-stat { text-align: center; flex: 1; }
.bpi-rsvp-num { display: block; font-size: 22px; font-weight: 400; line-height: 1; }
.bpi-rsvp-lbl { font-size: 10px; color: var(--bp-muted); letter-spacing: .5px; }
.bpi-rsvp-yes .bpi-rsvp-num { color: var(--bp-sage); }
.bpi-rsvp-no  .bpi-rsvp-num { color: #c97a6a; }

.bpi-inv-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Editor nav ── */
.bpi-editor-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bp-border);
}
.bpi-back { font-size: 13px; color: var(--bp-muted); text-decoration: none; }
.bpi-back:hover { color: var(--bp-gold); }
.bpi-editor-title { font-size: 16px; font-weight: 400; }
.bpi-save-status { font-size: 12px; color: var(--bp-sage); margin-left: auto; }

/* ── Summary bar ── */
.bpi-summary-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 14px 20px;
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  border-radius: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bpi-summary-item { font-size: 13px; color: var(--bp-muted); }
.bpi-summary-item strong { color: var(--bp-text); font-weight: 500; }

/* ── Editor layout ── */
.bpi-editor-layout { display: flex; flex-direction: column; gap: 0; }
.bpi-editor-panel { width: 100%; }

/* ── Fieldsets ── */
.bpi-fieldset {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}
.bpi-fieldset-title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bp-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bp-border);
}

/* ── Fields ── */
.bpi-field { margin-bottom: 14px; }
.bpi-field:last-child { margin-bottom: 0; }
.bpi-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-muted);
  margin-bottom: 6px;
}
.bpi-field input,
.bpi-field textarea {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--bp-text);
  background: var(--bp-bg);
  outline: none;
  transition: border-color .2s;
}
.bpi-field input:focus,
.bpi-field textarea:focus { border-color: var(--bp-gold); background: #fff; }
.bpi-field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.bpi-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Upload ── */
.bpi-upload-area {
  border: 2px dashed var(--bp-border);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bp-bg);
}
.bpi-upload-area:hover { border-color: var(--bp-gold); background: var(--bp-cream); }
.bpi-upload-icon { font-size: 32px; margin-bottom: 8px; }
.bpi-upload-area p { font-size: 13px; color: var(--bp-muted); }
.bpi-photo-preview { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; }

/* ── Colors ── */
.bpi-color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.bpi-color-opt { cursor: pointer; }
.bpi-color-dot {
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform .2s, border-color .2s;
}
.bpi-color-opt:hover .bpi-color-dot { transform: scale(1.15); }
.bpi-color-opt.active .bpi-color-dot { border-color: var(--bp-text); }

/* ── Slug ── */
.bpi-slug-wrap { display: flex; align-items: center; gap: 0; }
.bpi-slug-prefix {
  padding: 10px 12px;
  background: var(--bp-border);
  border: 1px solid var(--bp-border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 12px;
  color: var(--bp-muted);
  white-space: nowrap;
}
.bpi-slug-wrap input {
  border-radius: 0 3px 3px 0 !important;
}

/* ── Form actions ── */
.bpi-form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ── RSVP table ── */
.bpi-rsvp-list { margin-top: 0; }
.bpi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bpi-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--bp-border);
}
.bpi-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bp-border);
  vertical-align: middle;
}
.bpi-table tr:last-child td { border-bottom: none; }
.bpi-table tr:hover td { background: var(--bp-bg); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .bpi-field-row { grid-template-columns: 1fr; }
  .bpi-form-actions { flex-direction: column; }
  .bpi-summary-bar { gap: 12px; }
}
