:root {
  --bg: #191919;
  --surface-main: #333333;
  --surface-card: #282828;
  --surface-glass: rgba(255, 255, 255, 0.15);
  --surface-light: #2f2f2f;
  --text: #f1f5f9;
  --text-muted: #b5b5b5;
  --text-soft: #94a3b8;
  --brand: #5500ff;
  --brand-hover: #4300cb;
  --ok: #16a34a;
  --ok-bg: #dff5ea;
  --ok-fg: #0f9d58;
  --danger: #dc2626;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.2;
}

.page-shell {
  min-height: 100vh;
}

.container-600 {
  width: min(100%, 600px);
  margin-inline: auto;
  padding-inline: 12px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: var(--brand);
  box-shadow: 0 10px 30px 1px rgba(0, 0, 0, 0.06);
}

.header-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  flex: 1;
}

.brand-logo {
  max-height: 52px;
  max-width: 190px;
  display: block;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0.86;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.black-bar {
  height: 18px;
  background: #000;
}

.app-main {
  margin-top: -14px;
  padding-top: 16px;
  padding-bottom: 32px;
  background: var(--surface-main);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.mockup-capture {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

.demo-banner-top {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 219, 40, 0.4);
  border-radius: 10px;
  background: rgba(255, 174, 0, 0.18);
  color: #fff8dd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.demo-banner-top span {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 4px 10px;
}

.watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-23deg);
  transform-origin: center;
  font-size: clamp(20px, 5vw, 34px);
  letter-spacing: 2px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.card-glass,
.card-light,
.card-dark {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-glass);
  padding: 10px;
  margin-bottom: 12px;
}

.roleta-card {
  background: var(--surface-card);
  margin-bottom: 12px;
}

.roleta-body {
  padding: 10px;
}

.roleta-count-text {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.roleta-all-spins-wrap {
  text-align: center;
}

.roleta-all-spins {
  display: none;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
}

.spinWheelGame {
  display: grid;
  gap: 7px;
}

.roleta-game-card {
  border-radius: 8px;
  padding: 5px 15px 5px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.roleta-game-card.is-loss {
  background: linear-gradient(45deg, #a13838, #e25a8b);
}

.roleta-game-card.is-win {
  background: linear-gradient(45deg, #38a143, #d7e25a);
}

.roleta-game-content {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #fff;
}

.roleta-game-icon {
  font-size: 28px;
  margin-right: 15px;
}

.roleta-game-text b {
  font-weight: 700;
}

.roleta-game-badge {
  font-size: 10px;
  text-transform: uppercase;
  border-radius: 8px;
  background: rgba(243, 244, 246, 0.25);
  color: #fff;
  padding: 4px 8px;
  font-weight: 600;
}

.status-icon {
  font-size: 28px;
}

.status-title {
  margin: 0;
  font-size: clamp(18px, 3.3vw, 22px);
  font-weight: 600;
}

.status-subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.offer-card {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: var(--surface-card);
  margin-bottom: 12px;
}

.offer-image-wrap {
  width: 90px;
  min-width: 90px;
  height: 90px;
  border-radius: 9px;
  overflow: hidden;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
}

.offer-subtitle {
  margin: 2px 0 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.offer-badge {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  border-radius: 7px;
  background: #22c55e;
  color: #fff;
  padding: 3px 8px;
}

.details-card {
  background: var(--surface-card);
  padding: 10px;
}

.details-header h3 {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.purchase-id {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-soft);
  word-break: break-all;
}

.details-section {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}

.details-section h4 {
  margin: 0 0 8px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.label {
  font-weight: 600;
}

.value {
  color: #f8fafc;
}

.uppercase {
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.pix-receipt-card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #e7e7e7;
  color: #6d6e71;
  box-shadow: var(--shadow);
  font-family: "Roboto", sans-serif;
  position: relative;
  z-index: 2;
  overflow: hidden;
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1.25% 18% 14% 5% 28.75% 5% 28%;
}

.pix-receipt-area {
  margin-top: 14px;
}

.pix-receipt-preview {
  border-radius: 10px;
  overflow: hidden;
}

.pix-top-line {
  width: 100%;
  background: #2f8a1f;
}

.pix-hero {
  margin-top: 0;
  padding: 8.5% 7.8% 0;
  display: flex;
  align-items: flex-start;
  gap: 5%;
}

.pix-check-wrap {
  width: 9.4%;
  min-width: 9.4%;
  margin-top: 0.7%;
}

.pix-check-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.pix-hero h2 {
  margin: 0;
  color: #6d6e71;
  font-size: 7.2cqw;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0;
}

.pix-value-block {
  margin-top: 0;
  padding: 5% 8.7% 0;
}

.pix-label {
  display: block;
  color: #6d6e71;
  font-size: 2.1cqw;
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-bottom: 1.1%;
}

.pix-value-block strong {
  display: block;
  color: #2f8a1f;
  font-size: 7cqw;
  font-weight: 700;
  line-height: 1.1;
}

.pix-value-block p {
  margin: 4.1% 0 0;
  color: #6d6e71;
  font-size: 2.8cqw;
  line-height: 1.28;
  font-weight: 400;
}

.pix-separator {
  position: relative;
  height: 0;
  margin: 0;
  align-self: center;
  width: 100%;
  border-top: 2px dashed #c9d4df;
}

.pix-separator::before,
.pix-separator::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cfdae5;
}

.pix-separator::before {
  left: -8px;
}

.pix-separator::after {
  right: -8px;
}

.pix-section {
  padding: 0 8.7%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pix-section:first-of-type {
  padding-top: 7.5%;
}

.pix-section:last-of-type {
  padding-top: 9%;
  padding-bottom: 3.2%;
}

.pix-section h3 {
  margin: 0 0 6.1%;
  font-size: 5.6cqw;
  line-height: 1.08;
  color: #6d6e71;
  font-weight: 700;
}

.pix-field {
  margin-bottom: 5.2%;
}

.pix-field:last-child {
  margin-bottom: 0;
}

.pix-field-label {
  display: block;
  margin-bottom: 0.9%;
  color: #6d6e71;
  font-size: 2.1cqw;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.pix-field-value {
  display: block;
  color: #6d6e71;
  font-size: 4.75cqw;
  line-height: 1.15;
  font-weight: 400;
  word-break: break-word;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.ticket-item {
  background: #5f5f5f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 2px;
}

.mockup-footer-warning {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(220, 38, 38, 0.25);
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

.config-panel {
  margin-top: 18px;
  padding: 12px;
  background: #212121;
}

.panel-title-wrap h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.panel-title-wrap p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: var(--text-muted);
}

input,
select,
button {
  font-family: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: #2c2c2c;
  color: #fff;
  min-height: 40px;
  padding: 0 10px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(85, 0, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(85, 0, 255, 0.2);
}

.panel-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 9px;
  min-height: 40px;
  padding: 0 12px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  background: #1f9d57;
}

.btn-secondary:hover {
  background: #19874a;
}

.btn-muted {
  background: #525252;
}

.btn-muted:hover {
  background: #676767;
}

.panel-divider {
  margin: 14px 0 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.time-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn-time {
  background: #444;
}

.btn-time:hover {
  background: #5a5a5a;
}

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

.btn-full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .app-main {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding-inline: 10px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .time-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-time-grid {
    grid-template-columns: 1fr;
  }

  .tickets-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
