.aepgtons-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.aepgtons-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

.aepgtons-balance {
    display: flex;
    flex-direction: column;  /* ⬇️ titre au-dessus, solde centré */
    align-items: center;     /* horizontal */
    justify-content: center; /* vertical */
    text-align: center;
}

.aepgtons-balance h2 {
    margin: 0;
    font-size: 1.4rem;
}

.aepgtons-amount {
    font-size: 1.6rem;        /* ⬇️ plus discret */
    font-weight: 700;
    color: #f688c4;
    margin-top: 6px;
}

.aepgtons-actions {
    margin-top: 15px;
}

.aepgtons-actions a {
    display: inline-block;
    padding: 10px 16px;
    background: #f688c4;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.aepgtons-actions a:hover {
    opacity: .9;
}

.aepgtons-table {
    width: 100%;
    border-collapse: collapse;
}

.aepgtons-table th,
.aepgtons-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.aepgtons-table th {
    background: #fafafa;
    font-weight: 600;
}

.aepgtons-credit {
    color: #2e7d32;
    font-weight: bold;
}

.aepgtons-debit {
    color: #c62828;
    font-weight: bold;
}

.aepgtons-message {
    text-align: center;
    font-size: 1rem;
}

.aepgtons-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.aepgtons-info {
    background: #f3f4f6;
    color: #333;
}

.aepgtons-error {
    background: #fdecea;
    color: #c62828;
}

.aepgtons-table {
    width: 100%;
    border-collapse: collapse;
}

.aepgtons-table th,
.aepgtons-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.aepgtons-credit {
    color: #2e7d32;
    font-weight: 800;
}

.aepgtons-debit {
    color: #c62828;
    font-weight: 800;
}

#qrModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#qrModal.hidden {
  display: none;
}

#qrModal img {
  width: 280px;
  height: 280px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}