:root {
  --bg-outer: #030305;
  --tablet-bg: #08080c;
  --card-bg: linear-gradient(165deg, rgba(20, 20, 28, 0.94), rgba(11, 11, 16, 0.96));
  --tile-bg: #13131c;
  --tile-hover: #1b1b27;
  --border: rgba(245, 197, 66, 0.2);
  --border-active: #f5c542;
  --gold: #f5c542;
  --gold-bright: #ffe27a;
  --gold-deep: #c99214;
  --gold-soft: rgba(245, 197, 66, 0.14);
  --warn: #fb923c;
  --emerald: #34d399;
  --text: #fafaf9;
  --muted: #a1a1aa;
  --font-display: "Chakra Petch", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-outer);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  user-select: none;
  touch-action: manipulation;
  overflow-x: hidden;
}

/* Fundo Preto & Dourado */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% -15%, #2b2007 0%, #09080b 52%, #020203 100%);
}

.bg-carbon {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(27deg, #09090c 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #09090c 5px, transparent 5px) 10px 0,
    linear-gradient(27deg, #101016 5px, transparent 5px) 0 10px,
    linear-gradient(207deg, #101016 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #050507 10px, transparent 10px),
    linear-gradient(#0b0b10 25%, #050507 25%, #050507 50%, transparent 50%, transparent 75%, #0c0c12 75%, #0c0c12);
  background-size: 20px 20px;
  opacity: 0.55;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 66, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 66, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.bg-glow-1 {
  width: 620px;
  height: 380px;
  top: -130px;
  left: -100px;
  background: rgba(245, 197, 66, 0.16);
}

.bg-glow-2 {
  width: 540px;
  height: 420px;
  bottom: -150px;
  right: -80px;
  background: rgba(201, 146, 20, 0.16);
}

.bg-glow-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 48%;
  background: rgba(245, 197, 66, 0.08);
}

.bg-stripes {
  position: fixed;
  display: flex;
  gap: 10px;
  transform: skewX(-24deg);
  opacity: 0.35;
}

.bg-stripes-right {
  top: -40px;
  right: 8%;
}

.bg-stripes-left {
  bottom: -40px;
  left: 6%;
}

.bg-stripes span {
  display: block;
  width: 14px;
  height: 220px;
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.45), transparent);
}

/* Tablet Shell */
.tablet-shell {
  position: relative;
  z-index: 1;
  max-width: 1250px;
  margin: 26px auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(12, 12, 17, 0.95), rgba(7, 7, 10, 0.96));
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 22px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.92),
    0 0 60px rgba(245, 197, 66, 0.05),
    inset 0 1px 0 rgba(255, 226, 122, 0.14);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.tablet-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 122, 0.85), transparent);
  pointer-events: none;
}

/* Topbar */
.tablet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(24, 24, 34, 0.96), rgba(13, 13, 19, 0.96));
  border: 1px solid rgba(245, 197, 66, 0.24);
  border-radius: 15px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 226, 122, 0.08);
  margin-bottom: 14px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe27a 0%, #f5c542 52%, #b77e08 100%);
  color: #09090d;
  box-shadow:
    0 4px 18px rgba(245, 197, 66, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-emblem svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  background: linear-gradient(90deg, #fff1b8, #f5c542, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tier-switch {
  display: flex;
  background: #07070a;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
  gap: 4px;
}

.tier-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tier-btn:hover {
  color: var(--text);
}

.tier-btn.active {
  background: linear-gradient(135deg, #ffe27a 0%, #f5c542 50%, #c99214 100%);
  color: #09090d;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(245, 197, 66, 0.35);
}

.topbar-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 16px;
  background: radial-gradient(circle at 100% 0%, rgba(245, 197, 66, 0.2), rgba(245, 197, 66, 0.05));
  border: 1px solid rgba(245, 197, 66, 0.42);
  border-radius: 11px;
  min-width: 156px;
  box-shadow: inset 0 1px 0 rgba(255, 226, 122, 0.15);
}

.topbar-total span {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  color: #fde68a;
  font-weight: 600;
}

.topbar-total strong {
  font-family: var(--font-display);
  font-size: 1.42rem;
  background: linear-gradient(90deg, #fff1b8, #f5c542);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Banner */
.banner {
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 0.86rem;
  margin-bottom: 14px;
  border: 1px solid;
}

.banner-gold {
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.1), rgba(245, 197, 66, 0.04));
  border-color: rgba(245, 197, 66, 0.28);
  color: #fef3c7;
}

.banner-announcement {
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.2), rgba(245, 197, 66, 0.06));
  border-color: rgba(245, 197, 66, 0.58);
  border-left: 4px solid var(--gold);
  color: #ffe89e;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.08);
}

/* Main Grid */
.tablet-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

.modules-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.order-col {
  min-width: 0;
}

.top-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.block-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px;
  min-width: 0;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 226, 122, 0.08);
  transition: border-color 0.2s ease;
}

.block-card:hover {
  border-color: rgba(245, 197, 66, 0.32);
}

.block-card.block-warn {
  border-color: rgba(251, 146, 60, 0.28);
}

.block-card.block-warn:hover {
  border-color: rgba(251, 146, 60, 0.45);
}

.block-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.block-head-between {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.block-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fde68a;
}

.block-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Input de Valor Sujo / Limpo */
.amount-input-wrap {
  display: flex;
  align-items: center;
  background: #060609;
  border: 1.5px solid rgba(245, 197, 66, 0.38);
  border-radius: 13px;
  padding: 8px 10px 8px 18px;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.78);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.amount-input-wrap:focus-within {
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.78),
    0 0 0 3px rgba(245, 197, 66, 0.16),
    0 0 24px rgba(245, 197, 66, 0.14);
}

.currency-prefix {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--gold);
  margin-right: 10px;
}

.amount-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.amount-input::placeholder {
  color: #3f3f46;
}

.input-clear-btn {
  border: 1px solid rgba(245, 197, 66, 0.3);
  background: rgba(245, 197, 66, 0.09);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.input-clear-btn:hover {
  background: rgba(245, 197, 66, 0.2);
  border-color: var(--gold);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 11px;
}

.quick-btn {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #191924, #111118);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background: linear-gradient(180deg, #232332, #171722);
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 66, 0.12);
}

.quick-btn:active {
  transform: scale(0.97);
}

/* Tile Grid */
.tile-grid {
  display: grid;
  gap: 10px;
}

.tile-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tile-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  background: linear-gradient(180deg, #171722, #111119);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.16s ease;
}

.tile-btn:hover {
  background: linear-gradient(180deg, #1f1f2d, #161620);
  border-color: rgba(245, 197, 66, 0.45);
  transform: translateY(-1px);
}

.tile-btn.selected {
  background: linear-gradient(145deg, rgba(245, 197, 66, 0.2), rgba(184, 134, 11, 0.08));
  border-color: var(--gold);
  border-left: 3px solid var(--gold-bright);
  box-shadow:
    0 6px 22px rgba(245, 197, 66, 0.16),
    inset 0 1px 0 rgba(255, 226, 122, 0.22);
}

.tile-btn.warn.selected {
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.2), rgba(194, 65, 12, 0.08));
  border-color: var(--warn);
  border-left: 3px solid #fdba74;
  box-shadow:
    0 6px 22px rgba(251, 146, 60, 0.16),
    inset 0 1px 0 rgba(253, 186, 116, 0.22);
}

.tile-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.tile-icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.tile-btn.warn .tile-icon {
  color: var(--warn);
}

.tile-name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.tile-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
}

.tile-btn.warn .tile-price {
  color: var(--warn);
}

/* Barra Proporcional & Stats Grid */
.margin-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid rgba(245, 197, 66, 0.42);
  color: var(--gold-bright);
}

.dist-bar-wrap {
  margin-bottom: 12px;
}

.dist-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
  padding: 1px;
}

.dist-seg {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.dist-seg-client {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.dist-seg-machine {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}

.dist-seg-profit {
  background: linear-gradient(90deg, #c99214, #ffe27a);
}

.dist-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 7px;
  font-size: 0.73rem;
  color: var(--muted);
}

.dist-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dist-legend-item i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-client {
  background: var(--emerald);
}

.dot-machine {
  background: var(--warn);
}

.dot-profit {
  background: var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-box {
  background: linear-gradient(180deg, #161621, #111118);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-box-warn {
  border-color: rgba(251, 146, 60, 0.32);
}

.stat-box-gold {
  background: linear-gradient(145deg, rgba(245, 197, 66, 0.14), rgba(20, 20, 28, 0.95));
  border-color: rgba(245, 197, 66, 0.48);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.stat-box-warn .stat-value {
  color: var(--warn);
}

.stat-box-gold .stat-value {
  color: var(--gold-bright);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stat-box-split {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.09), rgba(18, 18, 25, 0.94));
  border-color: rgba(245, 197, 66, 0.32);
}

.stat-box-split .stat-value {
  color: #fde68a;
}

/* Coluna Direita: Resumo */
.order-card {
  position: sticky;
  top: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(245, 197, 66, 0.32);
  border-top: 2px solid rgba(245, 197, 66, 0.72);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 226, 122, 0.1);
}

.order-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.order-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.order-emblem {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(201, 146, 20, 0.08));
  border: 1px solid rgba(245, 197, 66, 0.42);
  color: var(--gold);
}

.order-emblem svg {
  width: 20px;
  height: 20px;
}

.order-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-mode {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}

.order-list-wrap {
  min-height: 155px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-hero-box {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 11px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-hero-box.is-client {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.04));
  border-color: rgba(52, 211, 153, 0.4);
}

.summary-hero-label {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.summary-hero-val {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text);
}

.summary-hero-box.is-client .summary-hero-val {
  color: var(--emerald);
}

.summary-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2px 0;
}

.summary-divider::before,
.summary-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.summary-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-split-box {
  background: var(--tile-bg);
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-split-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.summary-split-val {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: #fde68a;
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--tile-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  font-size: 0.87rem;
}

.order-item-label {
  color: var(--muted);
}

.order-item-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.order-item-val.is-client {
  color: var(--emerald);
}

.order-item-val.is-warn {
  color: var(--warn);
}

.order-item-val.is-gold {
  color: var(--gold);
}

.order-empty {
  text-align: center;
  color: var(--muted);
  margin: 52px 0;
  font-size: 0.88rem;
}

.hidden {
  display: none !important;
}

.order-foot {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.order-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(184, 134, 11, 0.06));
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 226, 122, 0.18);
}

.order-total-box span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde68a;
  font-weight: 600;
}

.formula-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.order-total-box strong {
  font-family: var(--font-display);
  font-size: 1.58rem;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(245, 197, 66, 0.3);
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.discord-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-input {
  width: 100%;
  background: #060609;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.meta-input::placeholder {
  color: #71717a;
}

.meta-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.14);
}

.meta-input.input-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.22);
}

#copyDiscordBtn {
  grid-column: 1 / -1;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffe27a 0%, #f5c542 48%, #c99214 100%);
  color: #09090d;
  box-shadow:
    0 6px 20px rgba(245, 197, 66, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.36);
}

.btn-secondary {
  background: linear-gradient(180deg, #181824, #12121a);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-clear {
  grid-column: 1 / -1;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.btn-clear:hover {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.feedback {
  min-height: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold);
}

/* Responsivo */
@media (max-width: 980px) {
  .tablet-shell {
    margin: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .tablet-body {
    grid-template-columns: 1fr;
  }

  .order-card {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tablet-shell {
    margin: 0;
    padding: 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    min-height: 100vh;
  }

  .tablet-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  .topbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tier-switch {
    width: 100%;
  }

  .tier-btn {
    flex: 1;
    min-height: 42px;
  }

  .topbar-total {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .top-blocks {
    grid-template-columns: 1fr;
  }

  .quick-amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-btn {
    min-height: 42px;
  }

  .block-head-between {
    flex-direction: column;
    align-items: stretch;
  }

  .discord-meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-input {
    font-size: 16px;
    padding: 11px 12px;
  }

  .btn {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .dist-legend {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .tile-grid.cols-2,
  .summary-hero-grid,
  .summary-split-grid,
  .split-grid,
  .order-actions {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
