:root {
  --bg-gradient: radial-gradient(circle at 50% 30%, #152a52 0%, #070f24 80%);
  --bg-base: #070f24;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-text: #ffffff;
  
  --card-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted-dark: #64748b;
  --input-bg: #f8fafc;
  --input-border: #e2e8f0;
  
  --primary: #10b981; /* Verde esmeralda moderno para combinar com o tema */
  --primary-hover: #059669;
  --accent: #3b82f6;
  
  --radius-xl: 32px; /* Super arredondado como no app Plata */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-attachment: fixed;
  line-height: 1.6;
}

.app-container {
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}

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

.brand-icon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: rgba(255, 255, 255, 0.7);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphism Cards (Área Superior / Serviços) */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.glass-panel h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.glass-panel p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Services */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.service-card.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.service-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.service-price {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 30px;
}

.custom-amount-box {
  margin-top: 24px;
}

.custom-amount-box label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  display: block;
}

/* Glass Inputs */
.glass-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-input-wrapper .prefix {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 18px;
}

.glass-input-wrapper input {
  width: 100%;
  height: 56px;
  padding-left: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  transition: all 0.3s ease;
}

.glass-input-wrapper input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* White Premium Card (Como a base inferior branca do app Plata) */
.white-card {
  background: var(--card-white);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--text-dark);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.white-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.white-card p {
  color: var(--text-muted-dark);
  font-size: 14px;
  margin-bottom: 28px;
}

/* White Form controls */
.form-group {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.white-card label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.white-card input {
  width: 100%;
  height: 52px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.white-card input:hover {
  border-color: #cbd5e1;
}

.white-card input:focus {
  border-color: var(--text-dark);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.white-card input::placeholder {
  color: #94a3b8;
}

/* Premium Button (Como os botões "Recibir / Transferir" arredondados e elegantes) */
.btn-premium {
  width: 100%;
  height: 58px;
  background: var(--text-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  margin-top: 12px;
}

.btn-premium:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
}

.btn-premium:active {
  transform: translateY(1px);
}

.btn-premium:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Right Column */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Resumo da Cobrança em Glassmorphism */
.summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.summary-price {
  font-weight: 600;
  color: #ffffff;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--glass-border);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.total-price {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

/* Pix Card Resultado */
.pix-card {
  background: var(--card-white);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pix-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qr-container {
  background: #ffffff;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.qr-container img {
  display: block;
}

.pix-copia-cola-box label {
  text-align: left;
  font-size: 13px;
  text-transform: none;
  color: var(--text-muted-dark);
}

.copy-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.copy-input-group input {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-dark);
  font-family: monospace;
  font-size: 13px;
}

.btn-copy {
  padding: 0 20px;
  background: var(--text-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: #1e293b;
}

.pix-instructions {
  text-align: left;
  background: var(--input-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--input-border);
}

.pix-instructions h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.pix-instructions ol {
  padding-left: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-muted-dark);
  counter-reset: step-counter;
}

.pix-instructions li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}

.pix-instructions li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  background: #e2e8f0;
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

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

/* Footer */
.footer {
  text-align: center;
  padding-top: 16px;
}

.footer-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.trust-item svg {
  color: #10b981;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsividade para Celulares */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .app-container {
    gap: 20px;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .brand-name {
    font-size: 22px;
  }

  .security-badge {
    width: 100%;
    justify-content: center;
  }

  .glass-panel {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .service-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .service-info h4 {
    font-size: 15px;
  }

  .service-info p {
    font-size: 12px;
  }

  .service-price {
    font-size: 13px;
    padding: 4px 10px;
  }

  .custom-amount-box {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .glass-input-wrapper input {
    height: 48px;
    font-size: 16px;
  }

  .btn-premium {
    height: 52px;
    font-size: 15px;
  }

  .summary-card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .total-price {
    font-size: 24px;
  }

  .pix-card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .copy-input-group {
    flex-direction: column;
  }

  .btn-copy {
    height: 48px;
    justify-content: center;
    width: 100%;
  }

  .pix-instructions {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .footer-trust {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

