:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --accent1: #eb3656;
  --accent2: #ff9c6b;
  --text: #111827;
  --muted: #6b7280;
  --card: rgba(0,0,0,0.02);
  --border: rgba(0,0,0,0.08);
  --radius: 14px;
}

::selection {
  background: #eb3656;
  color: #fff; 
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #e2e8f0, #f8fafc);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: 900px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 24px;
  border: 1px solid var(--border);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px; 
  height: 48px;
}

.brand h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  color: #eb3656;
  letter-spacing: 1px;
  font-weight: 700;
}

.hero {
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(14,165,233,0.06));
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  font-size: 14px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: none;
}

.service:has(input[type="checkbox"]:checked) {
  background: rgba(14,165,233,0.1); 
  transform: translateY(-2px); 
}

.service {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.25s ease;
  transform: translateY(0);
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

input[type="checkbox"] {
  width: 24px; height: 24px;
  accent-color: var(--accent1);
  cursor: pointer;
}

.price {
  color: var(--text);
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.total {
  font-size: 18px;
  font-weight: 700;
}

.btn { 
  border: none; 
  border-radius: 10px; 
  padding: 12px 20px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.25s ease; 
  user-select: none;
}

/* ///////////////////// */

#payBtn {
  background: #eb3656;
  color:#fff;
  border:none;
  outline:none;
  font-size: 1rem;
  border-radius: 10px;
  padding:12px 24px
}

/* ////////////////// */
.btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.leaderboard, .feedbacks {
  margin-top: 30px;
}

.leaderboard h3, .feedbacks h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text);
  border-left: 3px solid var(--accent1);
  padding-left: 8px;
}

.lb-item, .fb {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb {
  flex-direction: column;
  align-items: flex-start;
}

.fb small {
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  body { padding: 16px; }
  .wrapper { padding: 18px; }
  .hero h2 { font-size: 16px; }
  .hero p { font-size: 13px; }
  .brand h1 { font-size: 18px; }
  .total { font-size: 16px; }
  .btn { padding: 10px 14px; font-size: 14px; }
}

.payment_box {
  margin-top: 1rem;
  display: none;
  text-align: center;
}

/* ////////////////////////////////// */

.qr-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #eb3656;
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
}

.qr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-copy-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-text span.address-label {
  color: #888888;
  font-size: 12px;
  text-align: left;
}

.qr-text span.address-value {
  word-break: break-all;
  font-family: monospace;
  margin-top: 2px;
  font-size: 1rem;
}

.copy-btn {
  position: relative;
  cursor: pointer;
  border: none;
  background: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.1s ease
}

.copy-btn:active {
  transform: translateY(2px);
}

.copy-btn:focus {
  outline: none;   /* removes blue outline */
  scroll-margin: 0; /* extra safety */
}

.copy-btn .tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.copy-btn.show-tooltip .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ///////////////////////////// */
.waiting-payment {
  display: none; 
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #eb3656;
}

.waiting-payment .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f795a7;
  border-top-color: #eb3656;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.waiting-payment .warning-text {
  color: #e63946;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .qr-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .address-copy-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

/* /////////////////////// */

.alert {
  display: none;
  background-color: #1a1a1a;
  color: #00ff99;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 16px;
  border: 2px solid #00ff99;
  border-radius: 8px;
  text-align: center;
  animation: glow 1.5s infinite alternate;
  max-width: 90%;
  margin: 10px auto;
}

.amount {
  font-size: 1.4rem;
  text-decoration: underline;
  color: #00ffcc;
}

.warning {
  display: block;
  font-size: 1rem;
  color: #b3ffcc;
  margin-top: 4px;
}

@keyframes glow {
  0% { text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99; }
  50% { text-shadow: 0 0 10px #00ff99, 0 0 20px #00ffcc; }
  100% { text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99; }
}

@media (max-width: 400px) {
  .alert {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .amount {
    font-size: 1.2rem;
  }

  .warning {
    font-size: 0.9rem;
  }
}

/* ////////////////// */

.success {
  text-align: center; 
  padding: 1rem; 
  background: #f0f8ff; 
  border-radius: 15px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
  font-family: 'Segoe UI', sans-serif;
  display: none;
}
.txid {
  color:#eb3656
}

/* /////////////////////// */

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.25s ease;
}

.service-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.service-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.service-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.service-center input.quantity {
  width: 50px;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border);
  outline: none;
}

.devices-label {
  font-size: 14px;
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 600px) {
  .service {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .service-center {
    justify-content: flex-start;
    width: 100%;
  }

  .service-center input.quantity {
    width: 40px;
    font-size: 16px; /* keep at least 16px */
  }

  .service-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* //////////////////// */

/* ========================= */
/* STUNNING SERVICES HEADER  */
/* ========================= */

.services-header {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 16px;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center; /* start text at left */
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80, #facc15, #f472b6, #06b6d4);
  background-size: 1200% 100%;
  animation: gradientSlide 15s ease infinite;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.2) inset;
  position: relative;
}

/* marquee text container */
.discount-announcement {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

/* background gradient animation */
@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================================= */
/* === ANIMATION PACK (APPENDED — NO STRUCTURE CHANGES) ==== */
/* ========================================================= */

.fade-in { opacity: 0; animation: fadeIn .8s ease-out forwards; }
.slide-up { opacity: 0; transform: translateY(20px); animation: slideUp .7s ease-out forwards; }
.slide-down { opacity: 0; transform: translateY(-20px); animation: slideDown .7s ease-out forwards; }
.slide-left { opacity: 0; transform: translateX(20px); animation: slideLeft .7s ease-out forwards; }
.slide-right { opacity: 0; transform: translateX(-20px); animation: slideRight .7s ease-out forwards; }
.scale-in { opacity: 0; transform: scale(.95); animation: scaleIn .6s ease-out forwards; }

.float { animation: float 3s ease-in-out infinite; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }

.hover-grow { transition: transform .25s ease; }
.hover-grow:hover { transform: scale(1.05); }

.hover-fade { transition: opacity .25s ease; }
.hover-fade:hover { opacity: .7; }

.hover-tilt { transition: transform .25s ease; }
.hover-tilt:hover { transform: rotate(2deg); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity:1; transform:translateY(0);} }
@keyframes slideDown { to { opacity:1; transform:translateY(0);} }
@keyframes slideLeft { to { opacity:1; transform:translateX(0);} }
@keyframes slideRight { to { opacity:1; transform:translateX(0);} }
@keyframes scaleIn { to { opacity:1; transform:scale(1);} }

@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.06);} }

/* ////////////////////////////////////////////////////////////// */

.---react-ui-TransactionsScreenItem-styles-module__date--nKgsu {
  display: flex;
  gap: 4px;
}

/* Mobile: same line */
@media (max-width: 767px) {
  .---react-ui-TransactionsScreenItem-styles-module__date--nKgsu {
    flex-direction: row;
  }
}

/* Desktop: line break */
@media (min-width: 768px) {
  .---react-ui-TransactionsScreenItem-styles-module__date--nKgsu {
    flex-direction: column;
    gap: 0;
  }
}
