/* ============================================================================
   gift.css — the "Gift AIVH" sheet (§212 Phase 2).
   Uses the brand.css :root tokens so it matches the rest of the product.
   ========================================================================== */

.gift-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.gift-modal.open { display: block; }
body.gift-open { overflow: hidden; }

.gift-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
}

.gift-sheet {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px 22px 20px;
}

.gift-x {
  position: absolute; right: 12px; top: 10px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-dim);
  font-size: 1.05rem; cursor: pointer; line-height: 1;
}
.gift-x:hover { background: var(--panel-2); color: var(--text); }

.gift-head { text-align: center; margin-bottom: 16px; }
.gift-to { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.gift-to img, .gift-to .avatar { width: 40px; height: 40px; border-radius: 50%; }
.gift-to-name { color: var(--text-dim); font-size: .92rem; }
.gift-title { margin: 0 0 4px; font-size: 1.35rem; }
.gift-sub { margin: 0; color: var(--text-dim); font-size: .86rem; }

.gift-amounts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px;
}
.gift-chip {
  padding: 12px 6px; border-radius: var(--radius); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-weight: 700; font-size: .95rem; transition: .15s ease; font-family: inherit;
}
.gift-chip:hover { border-color: var(--accent); }
.gift-chip.active { background: var(--accent); border-color: var(--accent); color: #1a0d05; }

.gift-label {
  display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-dim); margin: 12px 0 6px;
}
.gift-label .dim { text-transform: none; letter-spacing: 0; }

.gift-custom { display: flex; align-items: center; gap: 8px; }
.gift-prefix { font-weight: 800; color: var(--accent-3); font-size: .9rem; }
.gift-input {
  width: 100%; padding: 11px 12px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.gift-input:focus { outline: none; border-color: var(--accent-2); }

.gift-preview {
  margin: 16px 0; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--border); font-size: .9rem;
}
.gift-split { display: flex; flex-direction: column; gap: 4px; }
.gift-split b { color: var(--accent-3); }

.gift-send { width: 100%; padding: 13px; font-size: 1rem; }
.gift-send:disabled { opacity: .55; cursor: not-allowed; }
.gift-fine { margin: 10px 0 0; font-size: .74rem; text-align: center; line-height: 1.4; }

/* ---- gift feed (wallet + profile) ---------------------------------------- */
.gift-empty { color: var(--text-dim); font-size: .88rem; padding: 10px 2px; }
.gift-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 2px; border-bottom: 1px solid var(--border);
}
.gift-row:last-child { border-bottom: 0; }
.gift-row-ico { font-size: 1.15rem; line-height: 1.2; }
.gift-row-main { flex: 1; min-width: 0; }
.gift-row-top { font-size: .92rem; }
.gift-row-top b { color: var(--accent-3); }
.gift-row-note { font-style: italic; color: var(--text-dim); font-size: .86rem; margin-top: 2px; }
.gift-row-when { font-size: .74rem; margin-top: 3px; }
