.resale-studio {
  --resale-edge:#d6cec1;
  --resale-card:#fffcf6;
  --resale-card-end:#f6f1e7;
  --resale-ink:#26231e;
  --resale-secondary:#685a47;
}
[data-theme="dark"] .resale-studio {
  --resale-edge:#4e473c;
  --resale-card:#2a2825;
  --resale-card-end:#242320;
  --resale-ink:#f8f5ec;
  --resale-secondary:#ccbfaa;
}
.resale-layout,.resale-tools { display:grid; gap:12px; min-width:0 }
.resale-tools { grid-template-columns:repeat(2,minmax(0,1fr)) }
.resale-invite {
  --resale-pad:clamp(20px,3vw,38px);
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) min(34%,180px);
  align-content:center;
  align-items:center;
  min-width:0;
  padding:var(--resale-pad);
  border-radius:19px;
  border:1px solid #736447;
  color:#fffaf0;
  background:
    radial-gradient(ellipse at 93% 8%,#8d724958,transparent 51%),
    linear-gradient(120deg,#21221f 8%,#282720 52%,#443927 100%);
  box-shadow:inset 0 1px 0 #ffe6ac27,0 3px 9px #412e1612;
}
.resale-invite-head { grid-column:1; grid-row:1; z-index:1 }
.resale-invite h3 {
  margin:0 0 7px;
  font-size:clamp(.96rem,1.65vw,1.22rem);
  line-height:1.2;
  font-weight:620;
  color:#f7f2e5;
}
.resale-reward strong {
  display:block;
  font-size:clamp(2.6rem,5.9vw,4.3rem);
  font-weight:740;
  line-height:1;
  letter-spacing:-.065em;
  color:#f3dcac;
  background:linear-gradient(112deg,#fff2d4,#f1d4a0 68%,#d8b77e);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  width:fit-content;
}
.resale-reward span { display:block; font-size:clamp(1rem,2vw,1.25rem); color:#f5dfb6; line-height:1.25; margin-top:4px; }
.resale-tickets {
  grid-column:2;
  grid-row:1;
  display:block;
  width:118%;
  max-width:calc(100% + var(--resale-pad) - 4px);
  justify-self:start;
  transform:rotate(-3deg);
  filter:drop-shadow(1px 8px 5px #08070565);
  pointer-events:none;
}
.resale-invite-copy {
  grid-column:1 / -1;
  max-width:44ch;
  margin:17px 0 15px;
  color:#e2dbcb;
  font-size:.94rem;
  line-height:1.45;
}
.resale-invite-action {
  grid-column:1 / -1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 21px;
  border:1px solid #dbc595;
  border-radius:10px;
  color:#251e14;
  background:linear-gradient(125deg,#d7ba81,#f9e9c5 43%,#ecd0a1);
  box-shadow:inset 0 1px 0 #fff9e9aa;
  text-decoration:none;
  font-size:.92rem;
  font-weight:720;
}
.resale-tool {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:0;
  min-width:0;
  padding:clamp(14px,2.2vw,24px);
  border:1px solid var(--resale-edge);
  border-radius:16px;
  color:var(--resale-ink);
  background:linear-gradient(132deg,var(--resale-card) 32%,var(--resale-card-end) 130%);
  box-shadow:inset 0 1px 0 #ffffff17,0 2px 7px #31210e08;
  text-decoration:none;
}
.resale-tool--pdf { --deep:#752534; --mid:#af3a50; --light:#e9808c; --rim:#ac5a63 }
.resale-tool--photos { --deep:#26495b; --mid:#467185; --light:#97b7c4; --rim:#7593a3 }
.resale-tool--compare { --deep:#695029; --mid:#8c693a; --light:#d4b37c; --rim:#ad9269 }
.resale-tool--whatsapp { --deep:#124c39; --mid:#227456; --light:#78b69a; --rim:#61927d }
.resale-icon {
  flex:none;
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border-radius:13px;
  border:1px solid var(--rim);
  background:linear-gradient(145deg,var(--light) -4%,var(--mid) 26%,var(--light) 42%,var(--mid) 57%,var(--deep) 100%);
  color:#fffdf4;
  box-shadow:inset 0 1px 1px #ffffff95,inset 0 -2px 2px #0003,0 2px 4px #22160d25;
}
.resale-icon svg,.resale-icon img {
  display:block;
  width:29px;
  height:29px;
  filter:drop-shadow(0 1px 1px #0009);
}
.resale-tool--whatsapp .resale-icon img { width:25px; height:25px }
.resale-tool h3 {
  margin:12px 0 4px;
  font-size:clamp(1rem,1.55vw,1.24rem);
  font-weight:710;
  letter-spacing:-.03em;
  line-height:1.19;
  text-wrap:balance;
  scroll-margin-top:calc(var(--site-header-height) + 14px);
}
.resale-tool-action {
  margin-top:auto;
  padding-top:2px;
  font-size:.875rem;
  line-height:1.3;
  color:var(--resale-secondary);
}
.resale-studio a:focus-visible { outline:3px solid var(--focus-ring); outline-offset:3px }
.resale-invite-action:focus-visible { outline-color:#fff0c6 !important }
@media (min-width:850px) {
  .resale-layout { grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:16px }
}
@media (max-width:480px) {
  .resale-layout,.resale-tools { gap:9px }
  .resale-invite { --resale-pad:18px; border-radius:16px }
  .resale-tool { border-radius:13px }
  .resale-tool h3 { margin-top:9px }
  .resale-icon { width:38px; height:38px; border-radius:11px }
  .resale-icon svg { width:26px; height:26px }
  .resale-tool--whatsapp .resale-icon img { width:23px; height:23px }
}
@media (hover:hover) {
  .resale-tool:hover { border-color:var(--rim) }
  .resale-tool:hover .resale-tool-action,.resale-invite-action:hover { text-decoration:underline; text-underline-offset:.22em }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .resale-tool,.resale-invite-action { transition:transform .18s ease,border-color .18s ease }
  .resale-tool:hover,.resale-invite-action:hover { transform:translateY(-2px) }
}
@media (forced-colors:active) {
  .resale-reward strong { -webkit-text-fill-color:CanvasText }
  .resale-tool,.resale-invite,.resale-invite-action,.resale-icon { border-color:ButtonText }
}
