/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root{
  --bg: #16120E;
  --surface: #221C16;
  --surface-2: #2A2219;
  --ink: #F3ECE0;
  --ink-soft: #B6A98F;
  --ink-faint: #8A7E68;
  --brass: #C89A56;
  --brass-dim: rgba(200, 154, 86, 0.28);
  --shadow: rgba(0, 0, 0, 0.5);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --radius-card: 22px;
  --radius-row: 0px;
  --max-width: 420px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, #201911 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection{
  background: var(--brass-dim);
  color: var(--ink);
}

a{ color: inherit; text-decoration: none; }

button{
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Visible keyboard focus everywhere */
:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------
   Stage / Card
--------------------------------------------- */
.stage{
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}

.card{
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  box-shadow:
    0 30px 70px var(--shadow),
    0 1px 0 rgba(255,255,255,0.03) inset;
  padding: 40px 28px 8px;
  opacity: 0;
  transform: translateY(14px);
}

.card.is-ready{
  animation: rise 640ms cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes rise{
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .card{ opacity: 1; transform: none; }
  .card.is-ready{ animation: none; }
}

/* ---------------------------------------------
   Identity block
--------------------------------------------- */
.id{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.id__avatar{
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--brass-dim);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--brass);
}

.id__name{
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.id__role{
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 30ch;
}

/* ---------------------------------------------
   Rule
--------------------------------------------- */
.rule{
  width: 48px;
  height: 1px;
  margin: 28px auto 6px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

/* ---------------------------------------------
   Links list
--------------------------------------------- */
.links{
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: opacity 120ms ease;
}

.row:last-child{
  border-bottom: none;
}

a.row:active,
button.row:active{
  opacity: 0.6;
}

.row__icon{
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brass);
}
.row__icon svg{ width: 100%; height: 100%; display: block; }

.row__label{
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.row__sub{
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 2px;
}

.row__chevron{
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  transition: transform 200ms ease;
}

.row[aria-expanded="true"] .row__chevron{
  transform: rotate(90deg);
  color: var(--brass);
}

/* Expandable payment panel */
.panel{
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
}
.panel.is-open{
  max-height: 320px;
}

.panel__inner{
  padding: 2px 4px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 14px;
}

.method__text{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.method__name{
  font-size: 13px;
  color: var(--ink-faint);
}

.method__value{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method__copy{
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brass);
  padding: 6px 10px;
  border: 1px solid var(--brass-dim);
  border-radius: 8px;
}

.method__copy.is-copied{
  color: var(--ink);
  border-color: var(--ink-faint);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.foot{
  padding: 26px 4px 22px;
  text-align: center;
}

.foot__text{
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------
   Password gate
--------------------------------------------- */
.gate{
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.gate__form{
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.gate__label{
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px;
}

.gate__input{
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  text-align: center;
}

.gate__input::placeholder{ color: var(--ink-faint); }

.gate__submit{
  background: var(--brass);
  color: #1B1508;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px;
  font-size: 14.5px;
  margin-top: 4px;
}

.gate__error{
  color: #D98066;
  font-size: 13px;
  margin: 2px 0 0;
}

/* ---------------------------------------------
   Small screens
--------------------------------------------- */
@media (max-width: 380px){
  .card{ padding: 34px 20px 6px; }
}
