/* ============================================================
   APP PAY - Styles client
   ============================================================ */

:root {
    --primary-color: #ff7a00;
    --primary-color-light: #ffaa5c;
    --primary-color-dark: #e66d00;
    --primary-color-soft: rgba(255, 122, 0, 0.1);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #e8e9ec;
    color: #333;
    height: 100vh;
    overflow: hidden;
    zoom: 0.6;
}

.screen {
    position: fixed;
    inset: 0;
    display: none;
}
.screen.active {
    display: flex;
}

/* ============ ÉCRAN LIEN INVALIDE ============ */
#invalid-screen {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.invalid-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    padding: 40px 30px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.invalid-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fde8e8;
    color: #e02424;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 36px;
}

.invalid-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.invalid-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.invalid-info {
    background-color: #f8f9fa;
    border-left: 4px solid #ff7a00;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.invalid-info i {
    color: #ff7a00;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============ ÉCRAN DE CONNEXION ============ */
#login-screen {
    background-color: #f4f5f7;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.5s ease;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo-graphic {
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 4px;
    margin-bottom: 12px;
    transform: scale(1.1);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.blue-dark { background-color: #0d47a1; }
.dot.blue-mid { background-color: #1976d2; }
.dot.blue-light { background-color: #2196f3; }
.dot.green { background-color: #00c853; }
.dot.green-light { background-color: #69f0ae; }

.logo-text {
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: #1976d2;
    letter-spacing: 0.5px;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}

.user-badge {
    background-color: #e4e6eb;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    max-width: 100%;
    overflow: hidden;
}

.user-badge i {
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
}

.user-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    background-color: var(--card-bg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.input-icon-box {
    width: 45px;
    height: 45px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606266;
    border-right: 2px solid #dcdfe6;
    font-size: 15px;
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: transparent;
    min-width: 0;
}

.input-group input::placeholder {
    color: #909399;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-login:hover { background-color: #1557b0; }
.btn-login:active { transform: scale(0.96); }
.btn-login:disabled { background-color: #a0c3ee; cursor: not-allowed; }

.login-error {
    color: #e02424;
    font-size: 13px;
    text-align: center;
    margin-top: 5px;
    min-height: 18px;
    font-weight: 600;
}

/* ============ ÉCRAN APPLICATION ============ */
#app-screen {
    background-color: #e8e9ec;
    display: none;
}
#app-screen.active {
    display: flex;
}

/* 🆕 SIDEBAR : Largeur ajustée et espacement augmenté */
.sidebar {
    width: 180px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
}

.logo-apppay {
    display: flex;
    align-items: center;
    padding: 0 15px 20px 15px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.logo-apppay i {
    font-size: 18px;
    margin-right: 8px;
}

.nav-links {
    list-style: none;
    margin-top: 10px;
}

/* 🆕 ESPACEMENT DES BOUTONS DE GAUCHE */
.nav-links li {
    padding: 16px 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
    margin-bottom: 5px; /* Espace entre les boutons */
}

.nav-links li i {
    margin-right: 10px;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.nav-links li.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    border-left: 4px solid white;
    padding-left: 11px;
}

.nav-links li:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}
.nav-links li:active {
    transform: scale(0.95);
}

.logout-container {
    padding: 0 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.logout-container ul {
    list-style: none;
}

.logout-container li {
    padding: 14px 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.logout-container li:active { transform: scale(0.95); }

.logout-container li:hover {
    opacity: 0.8;
}

.logout-container li i {
    margin-right: 10px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #e8e9ec;
    min-width: 0;
}

/* 🆕 HEADER RÉPARÉ */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border-bottom: 1px solid #e8eaee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
    min-height: 65px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    border: none;
    font-size: 15px;
    position: relative;
    transition: background 0.2s, transform 0.1s;
}
.icon-btn:hover { background-color: #d8dade; }
.icon-btn:active { transform: scale(0.9); }

.icon-btn .notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #e02424;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}
.user-avatar:active { transform: scale(0.9); }

/* 🆕 DROPDOWN BIEN POSITIONNÉ */
.notif-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 100;
    display: none;
    animation: fadeInDown 0.2s ease;
    border: 1px solid #e8eaee;
}
.notif-dropdown.show {
    display: block;
}
.notif-dropdown-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
}
.notif-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.15s;
    cursor: pointer;
}
.notif-item:hover {
    background-color: #f8f9fa;
}
.notif-item i {
    color: var(--primary-color);
    font-size: 15px;
    margin-top: 2px;
}
.notif-item-text {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}
.notif-item-text strong {
    display: block;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ============================================================
   Corps du dashboard
   ============================================================ */
.dashboard-body {
    padding: 15px 15px 25px 15px;
    max-width: 100%;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.welcome-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

/* ============ CARTE DE SOLDE ============ */
.balance-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    gap: 6px;
    font-weight: 600;
}

.balance-header i {
    color: var(--primary-color);
    font-size: 13px;
    transition: color 0.3s;
}

.balance-amount {
    font-size: 30px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    text-align: center;
}

.balance-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* 🆕 BOUTONS RONDS ET GESTION DU TEXTE */
.balance-actions {
    display: flex;
    justify-content: center;
    gap: 80px; /* 🆕 ESPACEMENT AUGMENTÉ ENTRE LES DEUX BOUTONS */
    margin-top: 25px;
    width: 100%;
}

.round-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}
.round-action-wrapper:hover {
    transform: translateY(-2px);
}
.round-action-wrapper:active {
    transform: scale(0.9);
}

.round-action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #111111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}
.round-action-wrapper:hover .round-action-btn {
    background-color: #333333;
}

/* 🆕 FORCER LE TEXTE SUR UNE SEULE LIGNE */
.round-action-wrapper span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    line-height: 1.2;
}

.wallet-bg-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    color: #f0f2f5;
}

/* ============ 3 MINI CARTES ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; 
    margin-bottom: 15px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.stat-card:active {
    transform: scale(0.95);
}

.stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px auto;
    border-radius: 8px;
    background-color: var(--primary-color-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* ============================================================
   CARTE HISTORIQUE
   ============================================================ */
.history-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 15px;
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.history-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.history-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color-soft) 0%, rgba(255, 122, 0, 0.18) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.history-card-header-left span {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.history-count-badge {
    background-color: #f0f0f3;
    color: #555;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.history-list {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.history-date-separator {
    padding: 14px 20px 8px 20px;
    font-size: 13px;
    color: #888;
    font-weight: 600;
    background-color: transparent;
}

/* ============================================================
   TRANSACTION ITEM
   ============================================================ */
.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 12px;
    transition: background 0.15s, transform 0.1s;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}
.transaction-item:active {
    transform: scale(0.98);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item.is-credit {
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.06) 0%, rgba(0, 200, 83, 0.02) 100%);
}

.transaction-item.is-debit {
    background: linear-gradient(90deg, rgba(224, 36, 36, 0.06) 0%, rgba(224, 36, 36, 0.02) 100%);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tx-icon.red { background-color: #fde8e8; color: #e02424; }
.tx-icon.green { background-color: #def7ec; color: #00a04a; }

.tx-icon-bank {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 2px solid #e8eaee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tx-icon-bank img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.tx-icon-bank.fallback {
    background-color: var(--primary-color-soft);
    color: var(--primary-color);
    font-size: 18px;
    padding: 0;
}

.tx-details {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tx-details h4 {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.tx-details .tx-time {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.tx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    margin-left: 8px;
}

.tx-amount {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.tx-amount.red { color: #e02424; }
.tx-amount.green { color: #00a04a; }

.tx-status {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.tx-status.red { color: #c0392b; opacity: 0.9; }
.tx-status.green { color: #00a04a; opacity: 0.9; }

.tx-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 15px;
    font-weight: 500;
}

/* ============ FORMULAIRE DE VIREMENT ============ */
.transfer-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.transfer-info-top {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.transfer-info-top strong {
    font-weight: 800;
}

.international-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    cursor: pointer;
}
.international-link:active {
    transform: scale(0.97);
}

.international-link i {
    color: var(--primary-color);
    font-size: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 700;
}

.input-with-addon {
    display: flex;
    align-items: center;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-with-addon:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-soft);
}

.input-with-addon input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: transparent;
    min-width: 0;
}

.input-addon {
    padding: 0 15px;
    font-weight: 800;
    color: #444;
    background-color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.standard-input {
    width: 100%;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    outline: none;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.standard-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-soft);
}

.btn-continue {
    width: 100%;
    background-color: var(--primary-color-light);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}
.btn-continue:hover { background-color: var(--primary-color); }
.btn-continue:active { transform: scale(0.96); }
.btn-continue:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ VÉRIFICATION ============ */
.verification-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    position: relative;
}

.card-header-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #222;
    margin-bottom: 18px;
    gap: 8px;
}

.card-header-title i {
    color: var(--primary-color);
    font-size: 16px;
}

.detail-row {
    margin-bottom: 12px;
}

.detail-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    word-break: break-all;
}

.btn-cancel {
    background-color: #fff;
    border: 2px solid #f5c6cb;
    color: #e02424;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}
.btn-cancel:hover { background-color: #fff5f5; }
.btn-cancel:active { transform: scale(0.95); }

.activation-section-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    gap: 8px;
}

.activation-section-title i {
    color: #444;
    font-size: 15px;
}

/* ============ PROGRESSION ============ */
.progress-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.success-message-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    gap: 8px;
}

.success-message-title i {
    color: #444;
    font-size: 15px;
}

.progress-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.progress-container {
    width: 100%;
    border: 2px solid var(--primary-color-light);
    border-radius: 8px;
    height: 40px;
    padding: 3px;
    margin-bottom: 20px;
    background-color: #fff;
}

.progress-bar-fill {
    width: 0%;
    background-color: var(--primary-color-light);
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    transition: width 0.4s ease, background-color 0.3s;
}

.details-section-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
    gap: 8px;
}

.details-section-title i {
    color: var(--primary-color);
    font-size: 15px;
}

.inner-details-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

/* ============ SUCCÈS / ÉCHEC ============ */
.success-card, .failed-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 600px;
}

.success-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #def7ec;
    color: #00a04a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 32px;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.failed-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fde8e8;
    color: #e02424;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 32px;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.success-title, .failed-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

.success-subtitle, .failed-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    white-space: pre-line;
    font-weight: 500;
}

.success-summary, .failed-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.failed-summary {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
}

/* ============ CARTE VIRTUELLE ============ */
.virtual-card-wrapper {
    max-width: 400px;
    margin-bottom: 20px;
}

.virtual-card {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px var(--primary-color-soft);
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.virtual-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.vc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.vc-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    border-radius: 6px;
    position: relative;
}
.vc-chip::after {
    content: '';
    position: absolute;
    inset: 6px 4px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
}

.vc-number {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.vc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.vc-label {
    font-size: 8px;
    opacity: 0.85;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 600;
}

.vc-value {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

.vc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.vc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.vc-info-item {
    background: var(--card-bg);
    padding: 14px 15px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.vc-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
}

.vc-info-value {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

/* ============ MON COMPTE ============ */
.account-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.account-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}

.account-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.account-role {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.account-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background-color: #def7ec;
    color: #00a04a;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
}

/* ============ BOUTONS D'ACTION GÉNÉRIQUES ============ */
.action-chip {
    background-color: #eef0f3;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.2;
    padding: 10px 15px;
}

.action-chip:hover {
    background-color: #e2e4e8;
}
.action-chip:active {
    transform: scale(0.95);
}

.action-chip i {
    color: #444;
    font-size: 14px;
    flex-shrink: 0;
}

.action-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #111;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInDown 0.3s ease;
    max-width: 350px;
}
.toast i { color: var(--primary-color); }
.toast.success i { color: #00c853; }
.toast.error i { color: #e02424; }

.hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 450px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stat-card { padding: 12px 6px; }
    .stat-icon { width: 30px; height: 30px; font-size: 13px; margin-bottom: 6px; }
    .stat-value { font-size: 12px; }
    .stat-label { font-size: 8px; }
    .history-card-header { padding: 14px 16px; }
    .transaction-item { padding: 14px 16px; gap: 10px; }
    .tx-icon, .tx-icon-bank { width: 40px; height: 40px; }
    .tx-details h4 { font-size: 13px; }
    .tx-amount { font-size: 13px; }
    
    /* Ajustement des boutons ronds sur mobile */
    .balance-actions { gap: 40px; }
    .round-action-btn { width: 55px; height: 55px; font-size: 20px; }
    .round-action-wrapper span { font-size: 11px; max-width: 80px; }
}
