/* Boutons désactivés QR code */
.btn-disabled {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
/* --- Admin API Keys Table --- */

/* --- Admin API Keys Table (MODERN) --- */
.api-keys-table {
    width: 98vw;
    max-width: 1200px;
    margin: 2rem auto 1.5rem auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 16px #0002;
    overflow-x: auto;
}
.api-keys-table {
    width: 100%;
    max-width: 100vw;
    margin: 2rem 0 1.5rem 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 16px #0002;
    overflow-x: auto;
}
#api-keys-list {
    width: 100%;
    margin: 0 auto;
    display: block;
}
.api-keys-header, .api-keys-row {
    display: grid;
    grid-template-columns: 2.5fr 2fr 1.2fr 2.5fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem 1.2rem;
}
.api-keys-header {
    background: linear-gradient(90deg,#f5f7fa 80%,#e3e7ee 100%);
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}
.api-keys-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 1.04rem;
}
.api-keys-row:nth-child(even) {
    background: #fafbfc;
}
.api-keys-row:last-child {
    border-bottom: none;
}
.api-key {
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 1rem;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 0.2em 0.5em;
    color: #2d3748;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.api-site {
    color: #2d3748;
    font-weight: 500;
    font-size: 1.01rem;
    letter-spacing: 0.01em;
}
.api-status {
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 0.25em 0.7em;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.api-status.active {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #b2dfdb;
}
.api-status.suspended {
    background: #fffde7;
    color: #f9a825;
    border: 1px solid #ffe082;
}
.api-status.canceled {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}
.api-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.btn-action {
    border: none;
    background: #e3e7ee;
    color: #222;
    padding: 0.35rem 0.9rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    outline: none;
    box-shadow: 0 1px 2px #0001;
}
.btn-action:hover {
    background: #d1d9e6;
}
.btn-action.delete {
    background: #ffeaea;
    color: #b71c1c;
    padding: 0.35rem 0.7rem;
}
.btn-action.delete:hover {
    background: #ffcfcf;
}
@media (max-width: 700px) {
    .api-keys-header, .api-keys-row {
        grid-template-columns: 1.5fr 1.2fr 1fr 1.5fr;
        font-size: 0.97rem;
        padding: 0.7rem 0.5rem;
    }
    .api-status {
        min-width: 60px;
        font-size: 0.93rem;
    }
    .btn-action {
        font-size: 0.93rem;
        padding: 0.25rem 0.7rem;
    }
}

/* Scroll sur tout le body de la modale wallet-result, sans scrollbar visible */

/* Scroll sur tout le body de la modale (modal-content) quand wallet-result est affiché */
#modal-wallet-manager .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

#wallet-result {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    overflow: visible;
    animation: slideIn 0.4s ease;
    padding-bottom: 0.5rem;
}

#btn-confirm-wallet {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    align-self: stretch;
}

@media (max-width: 600px) {
    #modal-wallet-manager .modal-content {
        max-width: 98vw;
        width: 98vw;
        max-height: 98vh;
        padding: 0.5rem;
    }
    #wallet-result {
        padding-bottom: 0.5rem;
    }
}
/**
 * TX Wallet - Main Stylesheet
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --transition: all 0.3s ease;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-input: #ffffff;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --navbar-gradient: linear-gradient(90deg, #10b981 0%, #059669 100%);
    --navbar-color: white;
}

/* Theme: Light (default) */
body.theme-light {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-input: #ffffff;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --navbar-gradient: linear-gradient(90deg, #10b981 0%, #059669 100%);
    --navbar-color: white;
}

/* Theme: Dark */
body.theme-dark {
    --primary-color: #22d3ee;
    --secondary-color: #06b6d4;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-input: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --navbar-gradient: linear-gradient(90deg, #0d2f2f 0%, #0f4e4e 100%);
    --navbar-color: #e0e0e0;
}

/* Theme: Blue */
body.theme-blue {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-input: #ffffff;
    --text-primary: #1e40af;
    --text-secondary: #1e3a8a;
    --border-color: #bfdbfe;
    --navbar-gradient: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
    --navbar-color: white;
}

/* Theme: Pink */
body.theme-pink {
    --primary-color: #ec4899;
    --secondary-color: #be185d;
    --bg-primary: #fdf2f8;
    --bg-secondary: #fbcfe8;
    --bg-input: #ffffff;
    --text-primary: #831843;
    --text-secondary: #500724;
    --border-color: #fbcfe8;
    --navbar-gradient: linear-gradient(90deg, #831843 0%, #be185d 100%);
    --navbar-color: white;
}

/* Theme: Orange */
body.theme-orange {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --bg-primary: #fff7ed;
    --bg-secondary: #fed7aa;
    --bg-input: #ffffff;
    --text-primary: #92400e;
    --text-secondary: #7c2d12;
    --border-color: #fed7aa;
    --navbar-gradient: linear-gradient(90deg, #92400e 0%, #b45309 100%);
    --navbar-color: white;
}

/* Theme: Purple */
body.theme-purple {
    --primary-color: #a855f7;
    --secondary-color: #9333ea;
    --bg-primary: #faf5ff;
    --bg-secondary: #f3e8ff;
    --bg-input: #ffffff;
    --text-primary: #6b21a8;
    --text-secondary: #4c1d95;
    --border-color: #e9d5ff;
    --navbar-gradient: linear-gradient(90deg, #6b21a8 0%, #7e22ce 100%);
    --navbar-color: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-container {
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

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

.login-box {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-box h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid #e0e7ff;
    border-radius: 8px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    font-family: inherit;
    min-height: 50px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
    font-style: italic;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    border-radius: 6px !important;
    min-height: 50px !important;
}

textarea {
    border-radius: 6px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
                inset 0 1px 2px rgba(16, 185, 129, 0.05);
    background-color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

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

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    margin-right: 0.5rem;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

/* Center non-primary buttons - grouped */
#reset-form {
    text-align: center;
}

#reset-form > button {
    display: inline-block;
    width: auto;
    margin: 0 0.25rem;
}

#setup-form > button {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border-left-color: #10b981;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #0c4a6e;
    border-left-color: #3b82f6;
}

#alert-container {
    margin-bottom: 1.5rem;
}

/* Login Links */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links p {
    margin: 0;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.strength-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.strength-very-weak {
    width: 20% !important;
    background-color: #ef4444;
}

.strength-weak {
    width: 40% !important;
    background-color: #f59e0b;
}

.strength-medium {
    width: 60% !important;
    background-color: #eab308;
}

.strength-good {
    width: 80% !important;
    background-color: #84cc16;
}

.strength-excellent {
    width: 100% !important;
    background-color: #10b981;
}

.password-strength small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}

/* Button Link */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Password Input with Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.btn-toggle-password:hover {
    color: var(--primary-color);
}

.btn-toggle-password svg {
    width: 22px;
    height: 22px;
}

.btn-toggle-password .icon-eye,
.btn-toggle-password .icon-eye-off {
    transition: all 0.2s ease;
}

/* Dashboard */
.dashboard-root,
.dashboard-page {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-root::-webkit-scrollbar,
.dashboard-page::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 75px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}


.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
}

.navbar-brand h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    color: white;
    border-bottom-color: #a7f3d0;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navbar Toggles */
.navbar-toggles {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.toggle-group {
    position: relative;
    display: inline-block;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    position: relative;
}

.toggle-label .icon-eye,
.toggle-label .icon-eye-off {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-label .icon-eye {
    opacity: 1;
}

.toggle-label .icon-eye-off {
    opacity: 0;
    position: absolute;
}

.toggle-checkbox:checked + .toggle-label .icon-eye {
    opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .icon-eye-off {
    opacity: 1;
}

.toggle-label:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-checkbox:checked + .toggle-label {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.2);
}

/* Toggle Biométrie - Amélioré */
.toggle-biometric-label {
    width: 2.8rem;
    height: 2.8rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)) !important;
    border: 2px solid var(--primary-color, rgba(16, 185, 129, 0.4)) !important;
    color: var(--primary-color, #10b981);
}

.toggle-biometric-label .icon-biometric-off,
.toggle-biometric-label .icon-biometric-on {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toggle-biometric-label .icon-biometric-off {
    opacity: 1;
    transform: scale(1);
}

.toggle-biometric-label .icon-biometric-on {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
}

.toggle-checkbox:checked + .toggle-biometric-label .icon-biometric-off {
    opacity: 0;
    transform: scale(0.8);
}

.toggle-checkbox:checked + .toggle-biometric-label .icon-biometric-on {
    opacity: 1;
    transform: scale(1);
}

.toggle-biometric-label:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1)) !important;
    border-color: var(--primary-color, rgba(16, 185, 129, 0.6)) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.toggle-checkbox:checked + .toggle-biometric-label {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15)) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Bouton Icone Réglages */
.btn-icon-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    padding: 0;
    color: white;
}

.btn-icon-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modal Réglages - Styles supplémentaires */
#modal-settings .modal-content {
    max-width: 500px;
}

@media (max-width: 600px) {
    #modal-settings .modal-content,
    .modal-content {
        max-width: 90vw;
        width: 90vw;
        max-height: 90vh;
        overflow-y: auto;
    }
}

#modal-settings h2 {
    margin-bottom: 0;
}

.settings-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), transparent);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .settings-group {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

.settings-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Grille de boutons de thème */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.theme-btn {
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.theme-btn.active {
    border-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Option de paramètre */
.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(16, 185, 129, 0.03));
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
}

#settings-biometric-group {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03)) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

#settings-biometric-group span {
    font-weight: 600;
    color: var(--primary-color, #10b981);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .settings-option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Theme Styles - Applies to all themes */
.navbar {
    background: var(--navbar-gradient);
    color: var(--navbar-color);
}

.nav-link {
    color: var(--navbar-color);
}

.container,
.modal-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group label,
.form-group input,
.form-group textarea,
.btn,
.card,
.tab-content {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    border-color: var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.user-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sidebar {
    background-color: var(--bg-primary);
}

/* Select Styling */
.select-theme {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.select-theme:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.select-theme option {
    background-color: #333333;
    color: white;
}

.theme-label {
    color: white;
    margin-right: 0.5rem;
    font-weight: 500;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(to bottom, #f3f4f6, #ffffff);
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
}

.user-card {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 600px) {
    .user-card {
        padding: 1rem;
    }
}

.user-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.wallet-address {
    color: #6b7280;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Liste des wallets */
#wallets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.wallet-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wallet-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.wallet-item-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wallet-item-addr {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    font-family: monospace;
}

/* Main Content */
.main-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    border-top: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 1rem;
    }
}

#page-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    #page-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    #page-content h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}
    color: var(--dark-color);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

/* Balances */
.balances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .balances-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

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

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .balance-card {
        padding: 1.2rem;
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .balance-card {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
}

.balance-card:active {
    cursor: grabbing;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.token-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    opacity: 0.3;
    transition: opacity 0.3s ease-in;
}

@media (max-width: 600px) {
    .token-icon {
        width: 40px;
        height: 40px;
    }
}

.token-icon.loaded {
    opacity: 1;
}

.token-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.balance-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .balance-card h3 {
        font-size: 0.9rem;
    }
}

.balance-amount {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .balance-amount {
        font-size: 1rem;
    }
}

.balance-value {
    opacity: 0.9;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .balance-value {
        font-size: 0.8rem;
    }
}

.mini-pse-card {
    margin-bottom: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--panel-soft-border, var(--border-color));
    background: var(--panel-soft-bg, linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.35)));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .mini-pse-card {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
}

.mini-pse-card-loading {
    opacity: 0.88;
}

.mini-pse-card-ready {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-pse-card-ready:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}

.mini-pse-card-ready:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22), 0 8px 20px rgba(16, 185, 129, 0.16);
}

.mini-pse-card-excluded {
    border-color: #facc15;
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    color: #854d0e;
}

.mini-pse-card-error {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.mini-pse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.mini-pse-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mini-pse-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.mini-pse-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.mini-pse-metrics-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-pse-metrics-single {
    grid-template-columns: 1fr;
}

.mini-pse-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.mini-pse-inner-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.mini-pse-inner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.14);
}

.mini-pse-inner-card:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 8px 18px rgba(16, 185, 129, 0.14);
}

.mini-staking-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08));
}

.mini-pse-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mini-pse-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.mini-pse-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-pse-countdown {
    margin-top: 0.7rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .mini-pse-cards-grid {
        grid-template-columns: 1fr;
    }

    .mini-pse-metrics {
        grid-template-columns: 1fr;
    }

    .mini-pse-metrics-two-cols {
        grid-template-columns: 1fr;
    }
}

/* PSE */
.pse-wallet-name {
    margin-top: -0.4rem;
    margin-bottom: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.pse-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pse-grid-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .pse-grid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

@media (max-width: 768px) {
    .pse-grid-estimates {
        grid-template-columns: 1fr;
    }
}

.pse-card {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

@media (max-width: 600px) {
    .pse-card {
        padding: 0.8rem;
    }
}

.pse-card,
.dashboard-panel,
.staking-summary-card,
.staking-delegation-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pse-card:hover,
.dashboard-panel:hover,
.staking-summary-card:hover,
.staking-delegation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.16);
}

.pse-card:focus-within,
.dashboard-panel:focus-within,
.staking-summary-card:focus-within,
.staking-delegation-item:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 8px 20px rgba(16, 185, 129, 0.16);
}

.pse-grid-stats .pse-card {
    min-height: 118px;
}

.pse-grid-estimates .pse-card {
    min-height: 132px;
}

.pse-card-default {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.35));
    margin-bottom: 1rem;
}

.pse-links-panel {
    margin-bottom: 1rem;
}

.pse-links-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.pse-links-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pse-links-note {
    max-width: 360px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: right;
}

.pse-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 700px) {
    .pse-links-head {
        flex-direction: column;
    }

    .pse-links-note {
        max-width: none;
        text-align: left;
    }

    .pse-links-grid {
        grid-template-columns: 1fr;
    }
}

.pse-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--panel-soft-border);
    background: var(--panel-soft-bg);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pse-link-card:hover,
.pse-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.12);
    outline: none;
}

.pse-link-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pse-link-description {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.pse-link-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pse-card-soft {
    border-color: rgba(0, 0, 0, 0.07);
}

.pse-card-soft-a {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(147, 51, 234, 0.08));
}

.pse-card-soft-b {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.08));
}

.pse-card-soft-c {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.08));
}

body.theme-blue .pse-card-soft-a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(37, 99, 235, 0.09));
}

body.theme-blue .pse-card-soft-b {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(59, 130, 246, 0.09));
}

body.theme-blue .pse-card-soft-c {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(79, 70, 229, 0.09));
}

body.theme-pink .pse-card-soft-a {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(219, 39, 119, 0.09));
}

body.theme-pink .pse-card-soft-b {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(236, 72, 153, 0.09));
}

body.theme-pink .pse-card-soft-c {
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.16), rgba(157, 23, 77, 0.09));
}

body.theme-orange .pse-card-soft-a {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 88, 12, 0.1));
}

body.theme-orange .pse-card-soft-b {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(249, 115, 22, 0.1));
}

body.theme-orange .pse-card-soft-c {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.1));
}

body.theme-purple .pse-card-soft-a {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.17), rgba(147, 51, 234, 0.09));
}

body.theme-purple .pse-card-soft-b {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.17), rgba(124, 58, 237, 0.09));
}

body.theme-purple .pse-card-soft-c {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.17), rgba(168, 85, 247, 0.09));
}

body.theme-light {
    --panel-soft-bg: linear-gradient(135deg, #ffffff, #f8fafc);
    --panel-soft-border: #e5e7eb;
}

body.theme-dark {
    --panel-soft-bg: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    --panel-soft-border: #3a3a3a;
}

body.theme-blue {
    --panel-soft-bg: linear-gradient(135deg, #eff6ff, #dbeafe);
    --panel-soft-border: #bfdbfe;
}

body.theme-pink {
    --panel-soft-bg: linear-gradient(135deg, #fdf2f8, #fce7f3);
    --panel-soft-border: #fbcfe8;
}

body.theme-orange {
    --panel-soft-bg: linear-gradient(135deg, #fff7ed, #ffedd5);
    --panel-soft-border: #fed7aa;
}

body.theme-purple {
    --panel-soft-bg: linear-gradient(135deg, #faf5ff, #f3e8ff);
    --panel-soft-border: #e9d5ff;
}

.pse-card-accent {
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.pse-card-realtime {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.pse-card-monthly {
    background: linear-gradient(135deg, #059669, #16a34a);
}

.pse-kpi-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pse-kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.3rem;
    line-height: 1.1;
}

.pse-kpi-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.22rem;
}

.pse-stake-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.3rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.pse-hero-title {
    font-size: 0.84rem;
    opacity: 0.92;
    font-weight: 600;
}

.pse-hero-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.28rem;
    line-height: 1.08;
}

.pse-hero-sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.12rem;
    font-weight: 600;
}

.pse-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pse-progress-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

#pse-month-progress {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pse-progress-track {
    margin-top: 0.72rem;
    width: 100%;
    height: 14px;
    background: var(--bg-primary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pse-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.2s linear;
}

.pse-animate {
    animation: dashboardCardEnter 0.3s ease both;
}

.pse-animate-group .pse-animate:nth-child(1) {
    animation-delay: 0.02s;
}

.pse-animate-group .pse-animate:nth-child(2) {
    animation-delay: 0.08s;
}

.pse-animate-group .pse-animate:nth-child(3) {
    animation-delay: 0.14s;
}

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

.pse-countdown-value {
    margin-top: 0.5rem;
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', Courier, monospace;
}

.pse-excluded-alert {
    border: 1px solid #facc15;
    background: #fef9c3;
    color: #854d0e;
}

.pse-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pse-history-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pse-history-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.pse-history-note {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pse-history-total {
    margin-top: 0.55rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pse-history-total strong {
    color: var(--text-primary);
    font-size: 1.22rem;
    font-weight: 700;
    white-space: nowrap;
}

.pse-history-dropdown {
    margin-top: 0.8rem;
}

.pse-history-dropdown summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.pse-history-dropdown summary::-webkit-details-marker {
    display: none;
}

.pse-history-dropdown summary::after {
    content: '▾';
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.pse-history-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.pse-history-list {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.72rem;
}

.pse-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.42);
}

.pse-history-row.is-detected {
    border-color: rgba(16, 185, 129, 0.22);
}

.pse-history-row.is-missing {
    opacity: 0.82;
}

.pse-history-meta {
    min-width: 0;
}

.pse-history-period {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pse-history-date,
.pse-history-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pse-history-source {
    grid-column: 1 / -1;
}

.pse-history-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.pse-history-status {
    justify-self: end;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
}

.pse-history-empty {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.3);
}

body.theme-dark .pse-card-default {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(34, 211, 238, 0.07));
}

body.theme-dark .pse-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.theme-dark .pse-card-soft-a {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(147, 51, 234, 0.14));
}

body.theme-dark .pse-card-soft-b {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(99, 102, 241, 0.14));
}

body.theme-dark .pse-card-soft-c {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.24), rgba(219, 39, 119, 0.14));
}

body.theme-dark .pse-history-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pse-history-dropdown summary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pse-history-empty {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 980px) {
    .pse-grid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pse-grid-stats,
    .pse-grid-estimates {
        grid-template-columns: 1fr;
    }

    .pse-stake-value,
    .pse-hero-value {
        font-size: 1.65rem;
    }

    .pse-countdown-value {
        font-size: 1.16rem;
    }

    .pse-history-row {
        grid-template-columns: 1fr;
    }

    .pse-history-status {
        justify-self: start;
    }

    .pse-grid-stats .pse-card,
    .pse-grid-estimates .pse-card,
    .dashboard-panel {
        min-height: auto;
    }
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-panel {
    border-radius: 8px;
    border: 1px solid var(--panel-soft-border, var(--border-color));
    background: var(--panel-soft-bg, linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.35)));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    padding: 1rem;
    min-height: 118px;
}

.dashboard-panel-animate {
    animation: dashboardCardEnter 0.3s ease both;
}

.settings-section {
    margin-bottom: 0;
}

.settings-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

body.theme-dark .dashboard-panel {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Transactions Table */
.transactions-table {
    width: 100%;
    overflow: visible;
}

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

.transactions-table thead {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--border-color);
}

.transactions-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transactions-table .tx-counterparty {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transactions-table .tx-counterparty-wallet {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transactions-table .tx-memo-line {
    margin-bottom: 0.1rem;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transactions-table tr:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.transactions-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.transactions-summary-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--panel-soft-border, var(--border-color));
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--panel-soft-bg, var(--bg-secondary));
    color: var(--text-primary);
}

.transactions-tabs-card {
    min-height: auto;
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.transactions-sections {
    display: block;
    overflow: visible;
}

.transactions-section {
    display: none;
    overflow: visible;
    max-height: none;
}

.transactions-section.active {
    display: block;
}

@media (max-width: 1100px) {
    .transactions-tabs-nav {
        flex-wrap: wrap;
    }
}

.transactions-table tbody tr {
    transition: background 0.2s ease;
}

.transactions-table tbody tr:active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.06));
}

/* Transaction Pagination */
.transactions-pagination {
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
}

.btn-pagination {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-pagination:hover {
    background: var(--primary-color-dark, #0c9b6e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-pagination:active {
    transform: translateY(0);
}

.transactions-actions-row {
    display: flex;
    justify-content: flex-end;
    margin: 0.4rem 0 1rem;
}

.btn-transactions-reload {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

/* Transaction Tabs */
.transactions-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.transaction-tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.transaction-tab-btn:hover {
    color: var(--text-primary);
}

.transaction-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.transaction-tab {
    display: none;
}

.transaction-tab.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.transactions-sections {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .transactions-filter-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .transactions-filter-buttons {
        width: 100%;
        gap: 0.3rem;
    }

    .filter-btn {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .transactions-summary-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .transaction-tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .transactions-table th {
        font-size: 0.75rem;
    }

    .transactions-table tr:hover {
        background: none;
    }

    .transactions-tabs-nav {
        gap: 0.25rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        overflow: visible;
    }

    .transaction-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .transactions-table table {
        font-size: 0.85rem;
    }

    .btn-pagination {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .transaction-tab-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }

    .transactions-table .tx-counterparty {
        max-width: 76px;
        font-size: 0.69rem;
    }

    .transactions-summary-pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .transactions-table table {
        font-size: 0.75rem;
    }

    .badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }

    a {
        word-break: break-word;
    }

    .transactions-filter-row {
        flex-direction: column;
        padding: 0.6rem;
    }

    .filter-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }

    .btn-pagination {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

.badge-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Settings */
.settings-section:not(.dashboard-panel) {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Staking UI harmonisee */
.staking-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.staking-summary-card {
    padding: 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--panel-soft-border, var(--border-color));
    background: var(--panel-soft-bg, var(--bg-secondary));
}

.staking-summary-card-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(37, 99, 235, 0.08));
}

.staking-summary-card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.09));
}

.staking-summary-card-orange {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(234, 88, 12, 0.09));
}

.staking-summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.staking-summary-value {
    margin-top: 0.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.staking-summary-sub {
    margin-top: 0.18rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.staking-claim-inline-row {
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.staking-claim-inline-value {
    margin-top: 0;
}

.staking-claim-inline-button {
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.staking-rank-inline-row {
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.staking-rank-inline-value {
    margin-top: 0;
    flex: 0 0 auto;
    line-height: 1.05;
}

.staking-rank-inline-sub {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staking-rank-inline-sub-muted {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.staking-actions-row {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-staking-primary,
.btn-staking-secondary,
.btn-staking-danger,
.btn-staking-claim {
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-staking-primary {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    font-size: 0.95rem;
}

.btn-staking-secondary {
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.btn-staking-claim {
    margin-top: 0.5rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    background: #22c55e;
    color: white;
    border: 1px solid #22c55e;
}

.btn-staking-claim.is-disabled,
.btn-staking-claim:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

.btn-staking-danger {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border: 1px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.btn-staking-primary:hover,
.btn-staking-secondary:hover,
.btn-staking-danger:hover,
.btn-staking-claim:hover:not(.is-disabled):not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.2);
}

.btn-staking-primary:focus-visible,
.btn-staking-secondary:focus-visible,
.btn-staking-danger:focus-visible,
.btn-staking-claim:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.btn-staking-danger:hover {
    background: #ef4444;
    color: white;
}

.btn-staking-primary:active,
.btn-staking-secondary:active,
.btn-staking-danger:active,
.btn-staking-claim:active:not(.is-disabled):not(:disabled) {
    transform: translateY(0);
}

.staking-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.staking-delegations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.staking-delegation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--panel-soft-border, var(--border-color));
    border-radius: 8px;
    background: var(--panel-soft-bg, var(--bg-secondary));
    gap: 1rem;
}

@media (max-width: 768px) {
    .staking-delegation-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .staking-delegation-item {
        padding: 0.8rem;
        gap: 0.5rem;
    }
}

.staking-delegation-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.staking-validator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.staking-delegation-meta {
    flex: 1;
    min-width: 0;
}

.staking-validator-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staking-delegation-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.staking-delegation-amount {
    color: var(--primary-color);
    font-weight: 600;
}

.staking-separator {
    margin: 0 0.3rem;
}

.staking-reward {
    font-size: 0.75rem;
    color: #22c55e;
}

.staking-empty-state {
    padding: 1.5rem;
    text-align: center;
    background: var(--panel-soft-bg, var(--bg-secondary));
    border-radius: 8px;
    color: var(--text-secondary);
    border: 1px solid var(--panel-soft-border, var(--border-color));
}

.staking-empty-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

.settings-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 2.5rem 1.5rem;
    }

    .login-box h1 {
        font-size: 2rem;
    }

    .login-box h2 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .navbar-menu {
        display: none;
    }

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

    .navbar-container {
        flex-wrap: wrap;
    }

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

@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1rem;
    }

    .login-box h1 {
        font-size: 1.75rem;
    }

    .login-box h2 {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.9rem;
    }

    .btn-toggle-password svg {
        width: 20px;
        height: 20px;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(2px);
    }
}

.modal-content {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        #ec4899 100%);
    animation: gradientShift 3s ease infinite;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 0.5rem;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

@media (max-width: 600px) {
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
    }
}

.modal-close:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.modal-content h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 50%, 
        rgba(236, 72, 153, 0.05) 100%);
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 600px) {
    .modal-content h2 {
        font-size: 1.1rem;
        padding: 1.5rem 1rem 1.2rem;
        gap: 0.5rem;
    }
}

/* Contenu interne des modales */
.modal-content > *:not(h2):not(.modal-close):not(h3) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.modal-content > div,
.modal-content > form {
    padding: 1.5rem;
}

@media (max-width: 600px) {
    .modal-content > div,
    .modal-content > form {
        padding: 1rem;
    }
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .modal-content .form-group {
        margin-bottom: 1.2rem;
    }
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--bg-input), rgba(16, 185, 129, 0.02));
    color: var(--text-primary);
    transition: var(--transition);
}

.modal-content input[type="text"]:focus,
.modal-content input[type="password"]:focus,
.modal-content input[type="email"]:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal-content .btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    width: 100%;
    margin-top: 1rem;
}

.modal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

small {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Wallet Manager Tabs */
.wallet-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    border-bottom: 2px solid var(--border-color);
    padding: 0 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), transparent);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.tab-btn.active::after {
    opacity: 0;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Copy Field */
.copy-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.copy-field input,
.copy-field textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.copy-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.copy-btn:active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(0.95);
}

.copy-btn svg {
    stroke: currentColor;
}

/* Wallet Result */
.wallet-result {
    padding: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    overflow: hidden;
    animation: slideIn 0.4s ease;
    display: none;
}

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

/* Modal Sélection de Wallets - Styles Spécifiques */
#wallets-manage-list {
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.02) 0%, 
        transparent 100%);
    max-height: 400px;
    overflow-y: auto;
}

.wallet-selector-item {
    animation: slideIn 0.3s ease;
    border: 2px solid var(--border-color) !important;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.wallet-selector-item:active {
    cursor: grabbing;
}

.wallet-selector-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--primary-color));
    opacity: 0;
    transition: var(--transition);
}

.wallet-selector-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.wallet-selector-item:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    transform: translateX(4px) translateY(-2px);
}

.wallet-selector-item:hover::before {
    opacity: 1;
}

.wallet-selector-item:hover::after {
    opacity: 0.4;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.wallet-selector-item.active-wallet {
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.2) 0%, 
        rgba(16, 185, 129, 0.1) 50%, 
        rgba(16, 185, 129, 0.05) 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
    border-left: 4px solid var(--primary-color);
}

.wallet-selector-item.active-wallet::before {
    opacity: 1;
    width: 6px;
}

.wallet-selector-item.active-wallet::after {
    content: '✓';
    position: absolute !important;
    right: 1.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.8rem;
    animation: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    opacity: 1 !important;
}

.btn-delete-wallet {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    animation: slideIn 0.3s ease;
    transition: var(--transition);
}

.btn-delete-wallet:hover {
    background: linear-gradient(135deg, #ee5a5a, #dc2626);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete-wallet:active {
    transform: scale(0.95);
}

#modal-select-wallet .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

#modal-select-wallet .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Vérification rapide - pas de wallets */
#wallets-manage-list:empty::after {
    content: 'Aucun wallet trouvé';
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Dark Theme - All Modales */
body.theme-dark .modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.theme-dark .modal-content h2 {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(6, 182, 212, 0.1));
    color: #22d3ee;
    border-bottom-color: #22d3ee;
}

body.theme-dark .modal-content input,
body.theme-dark .modal-content textarea {
    background: linear-gradient(135deg, #2a3a5a, rgba(34, 211, 238, 0.05));
    border-color: #3a4a6a;
    color: #e0e0e0;
}

/* Blue Theme - All Modales */
body.theme-blue .modal-content h2 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.1));
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

body.theme-blue .modal-content::before {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
}

/* Pink Theme - All Modales */
body.theme-pink .modal-content h2 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(59, 130, 246, 0.1));
    color: #ec4899;
    border-bottom-color: #ec4899;
}

body.theme-pink .modal-content::before {
    background: linear-gradient(90deg, #ec4899 0%, #f43f5e 50%, #06b6d4 100%);
}

/* Orange Theme - All Modales */
body.theme-orange .modal-content h2 {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(236, 72, 153, 0.1));
    color: #f97316;
    border-bottom-color: #f97316;
}

body.theme-orange .modal-content::before {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
}

/* Purple Theme - All Modales */
body.theme-purple .modal-content h2 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(249, 115, 22, 0.1));
    color: #a855f7;
    border-bottom-color: #a855f7;
}

body.theme-purple .modal-content::before {
    background: linear-gradient(90deg, #a855f7 0%, #d946ef 50%, #f97316 100%);
}

/* Bouton Ajouter Wallet en bas de modale */
.btn-add-wallet-bottom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-add-wallet-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

/* Richlist Modal Styles */
#modal-richlist .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

/* Masquer la scrollbar dans Chrome/Edge/Safari */
#modal-richlist .modal-content::-webkit-scrollbar {
    display: none;
}

.richlist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.stat-item > div:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-item > div:last-child {
    font-size: 1.3rem;
    font-weight: 700;
}

#modal-richlist table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#modal-richlist thead tr {
    border-bottom: 2px solid var(--border-color);
    background: rgba(16, 185, 129, 0.05);
}

#modal-richlist thead th {
    text-align: left;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#modal-richlist tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

#modal-richlist tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.05);
}

#modal-richlist tbody tr.current-wallet {
    background: rgba(16, 185, 129, 0.15);
    font-weight: 700;
    border-left: 3px solid var(--primary-color);
}

#modal-richlist tbody td {
    padding: 0.75rem;
}

#modal-richlist tbody td:nth-child(3),
#modal-richlist tbody td:nth-child(4) {
    text-align: right;
    font-weight: 500;
}

/* Balance Card Hover Effect */
.balance-card {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.balance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    color: #111111;
}

.balance-card:hover h3,
.balance-card:hover .balance-amount,
.balance-card:hover .balance-value {
    color: #111111;
}

.balance-card:active {
    transform: translateY(-2px);
}

.btn-add-wallet-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-add-wallet-bottom:hover::before {
    left: 100%;
}

.btn-add-wallet-bottom:active {
    transform: translateY(-1px);
}

.btn-add-wallet-bottom span:nth-child(2) {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    animation: slideIn 0.3s ease;
}

/* Themes pour le bouton Ajouter Wallet */
body.theme-dark .btn-add-wallet-bottom {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.25);
}

body.theme-dark .btn-add-wallet-bottom:hover {
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.4);
}

body.theme-blue .btn-add-wallet-bottom {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

body.theme-blue .btn-add-wallet-bottom:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

body.theme-pink .btn-add-wallet-bottom {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

body.theme-pink .btn-add-wallet-bottom:hover {
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

body.theme-orange .btn-add-wallet-bottom {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

body.theme-orange .btn-add-wallet-bottom:hover {
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

body.theme-purple .btn-add-wallet-bottom {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

body.theme-purple .btn-add-wallet-bottom:hover {
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}


.wallet-result-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem;
    text-align: center;
}

.wallet-result-header h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.result-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.wallet-result-section {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}}

.wallet-result-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-header label {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    font-size: 0.9rem;
}

.copy-btn-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}}

.copy-btn-text:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-btn-text:active {
    transform: translateY(0);
}

.copy-btn-text svg {
    stroke: currentColor;
}

/* Mnemonics Grid */
.mnemonics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    line-height: 2;
}

.mnemonic-badge {
    display: block;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    cursor: default;
    animation: fadeInUp 0.3s ease;
    transition: all 0.2s ease;
}

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

.mnemonic-badge:nth-child(odd) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.mnemonic-badge:nth-child(even) {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
}

.mnemonic-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    border-color: var(--secondary-color);
}

/* Address Display */
.address-display {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    animation: fadeInUp 0.3s ease;
}

.address-prefix {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.address-content {
    color: var(--text-primary);
    flex: 1;
}

/* Wallet Result Warning */
.wallet-result-warning {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning-color);
    color: var(--warning-color);
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.wallet-result-warning svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}}

.btn-confirm {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Tab Navigation */
.wallet-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Bottom Navigation Bar (Mobile only) */
.bottom-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.nav-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Navigation - Show on small screens only */
@media (max-width: 768px) {
    .bottom-nav-bar {
        display: flex;
    }

    /* Ajouter du padding en bas de la page pour ne pas chevaucher le contenu */
    body {
        padding-bottom: 70px;
    }

    main {
        padding-bottom: 1rem;
    }
}

/* Desktop Navigation - Keep hidden on large screens */
@media (min-width: 769px) {
    .bottom-nav-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Desktop Navigation Bar (PC only) */
.desktop-nav {
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    justify-content: center;
    white-space: nowrap;
}

.desktop-nav-item:hover {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.desktop-nav-item.active {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
}

.desktop-nav-item .nav-icon {
    font-size: 1.25rem;
}

.desktop-nav-item .nav-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Show desktop nav on large screens */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
}

/* Mobile polish override: navbar + transactions */
@media (max-width: 768px) {
    .dashboard-page {
        padding-top: 64px;
    }

    .navbar-container {
        height: 64px;
        padding: 0 0.6rem;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    .navbar-brand {
        min-width: 0;
        gap: 0.45rem;
    }

    .navbar-logo {
        width: 36px;
        height: 36px;
    }

    .navbar-brand h1 {
        font-size: 1.05rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .navbar-user {
        gap: 0.4rem;
        min-width: 0;
        flex-shrink: 0;
    }

    .navbar-toggles {
        gap: 0.35rem;
    }

    .toggle-label,
    .btn-icon-toggle {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 0.45rem;
    }

    .btn-logout {
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
        line-height: 1.1;
        border-radius: 0.45rem;
        white-space: nowrap;
        max-width: 100%;
    }

    .transactions-filter-row {
        padding: 0.7rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .transactions-filter-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .filter-btn {
        width: 100%;
        padding: 0.5rem 0.35rem;
        font-size: 0.74rem;
        border-radius: 0.55rem;
    }

    .transactions-summary-row {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .transactions-summary-pill {
        font-size: 0.72rem;
        padding: 0.22rem 0.5rem;
    }

    .transactions-tabs-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        padding-bottom: 0;
        margin-bottom: 0.85rem;
        border-bottom: none;
        overflow: visible;
    }

    .transaction-tab-btn {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: 999px;
        padding: 0.44rem 0.45rem;
        font-size: 0.74rem;
        line-height: 1;
        background: var(--bg-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .transaction-tab-btn.active {
        background: rgba(16, 185, 129, 0.14);
        border-color: var(--primary-color);
    }

    .transactions-table {
        overflow: hidden;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--bg-primary);
    }

    .transactions-table table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .transactions-table th,
    .transactions-table td {
        font-size: 0.72rem;
        padding: 0.45rem 0.28rem;
        white-space: normal;
    }

    .transactions-table th:nth-child(1),
    .transactions-table td:nth-child(1) {
        width: 16%;
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .transactions-table th:nth-child(2),
    .transactions-table td:nth-child(2) {
        width: 31%;
        max-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.68rem;
    }

    .transactions-table th:nth-child(3),
    .transactions-table td:nth-child(3) {
        width: 27%;
        font-size: 0.67rem;
        line-height: 1.2;
    }

    .transactions-table th:nth-child(4),
    .transactions-table td:nth-child(4) {
        width: 16%;
        white-space: nowrap;
        text-align: center;
    }

    .transactions-table th:nth-child(5),
    .transactions-table td:nth-child(5) {
        width: 10%;
        white-space: nowrap;
        text-align: center;
    }

    .transactions-table .tx-counterparty {
        max-width: 100%;
        font-size: 0.68rem;
    }

    .transactions-table td:last-child a {
        white-space: nowrap;
        font-size: 0.7rem;
    }

    /* Unstake (6 colonnes) */
    #transaction-tab-unstaking .transactions-table th,
    #transaction-tab-unstaking .transactions-table td {
        font-size: 0.66rem;
        padding: 0.4rem 0.22rem;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(1),
    #transaction-tab-unstaking .transactions-table td:nth-child(1) {
        width: 15%;
        white-space: nowrap;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(2),
    #transaction-tab-unstaking .transactions-table td:nth-child(2) {
        width: 22%;
        max-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(3),
    #transaction-tab-unstaking .transactions-table td:nth-child(3),
    #transaction-tab-unstaking .transactions-table th:nth-child(4),
    #transaction-tab-unstaking .transactions-table td:nth-child(4) {
        width: 19%;
        font-size: 0.64rem;
        line-height: 1.15;
        white-space: normal;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(5),
    #transaction-tab-unstaking .transactions-table td:nth-child(5) {
        width: 16%;
        text-align: center;
        white-space: nowrap;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(6),
    #transaction-tab-unstaking .transactions-table td:nth-child(6) {
        width: 9%;
        text-align: center;
        white-space: nowrap;
    }

    #transaction-tab-unstaking .transactions-table td:nth-child(5) .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.1rem 0.3rem;
        font-size: 0.6rem;
        line-height: 1;
        border-radius: 999px;
        max-width: 100%;
    }

    /* Harmoniser la colonne Statut avec Unstake pour Envoyées/Stake */
    #transaction-tab-send .transactions-table td:nth-child(4) .badge,
    #transaction-tab-staking .transactions-table td:nth-child(4) .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.1rem 0.3rem;
        font-size: 0.6rem;
        line-height: 1;
        border-radius: 999px;
        max-width: 100%;
    }

    #transaction-tab-unstaking .transactions-table td:nth-child(6) a {
        font-size: 0.64rem;
    }

    /* Envoyées / Reçues : colonne Date (col 3) sur 2 lignes */
    #transaction-tab-send .transactions-table th:nth-child(3),
    #transaction-tab-send .transactions-table td:nth-child(3),
    #transaction-tab-received .transactions-table th:nth-child(3),
    #transaction-tab-received .transactions-table td:nth-child(3) {
        white-space: normal;
        line-height: 1.15;
    }

    /* Redélégations (4 colonnes) */
    #transaction-tab-redelegated .transactions-table th,
    #transaction-tab-redelegated .transactions-table td {
        font-size: 0.67rem;
        padding: 0.42rem 0.24rem;
    }

    #transaction-tab-redelegated .transactions-table th:nth-child(1),
    #transaction-tab-redelegated .transactions-table td:nth-child(1) {
        width: 20%;
        max-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #transaction-tab-redelegated .transactions-table th:nth-child(2),
    #transaction-tab-redelegated .transactions-table td:nth-child(2) {
        width: 36%;
        max-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.64rem;
    }

    #transaction-tab-redelegated .transactions-table th:nth-child(3),
    #transaction-tab-redelegated .transactions-table td:nth-child(3) {
        width: 30%;
        font-size: 0.64rem;
        line-height: 1.15;
    }

    #transaction-tab-redelegated .transactions-table th:nth-child(4),
    #transaction-tab-redelegated .transactions-table td:nth-child(4) {
        width: 14%;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .navbar-brand h1 {
        font-size: 0.98rem;
    }

    .btn-logout {
        padding: 0.4rem 0.52rem;
        font-size: 0.72rem;
    }

    .transactions-filter-buttons {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        font-size: 0.72rem;
    }

    .transactions-tabs-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .transaction-tab-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.35rem;
    }

    .transactions-table th,
    .transactions-table td {
        font-size: 0.68rem;
        padding: 0.38rem 0.22rem;
    }

    .transactions-table th:nth-child(2),
    .transactions-table td:nth-child(2) {
        font-size: 0.64rem;
    }

    .transactions-table th:nth-child(3),
    .transactions-table td:nth-child(3) {
        font-size: 0.62rem;
    }

    /* Ultra petit écran: réduire encore Unstake/Redélégations */
    #transaction-tab-unstaking .transactions-table th,
    #transaction-tab-unstaking .transactions-table td,
    #transaction-tab-redelegated .transactions-table th,
    #transaction-tab-redelegated .transactions-table td {
        font-size: 0.6rem;
        padding: 0.34rem 0.18rem;
    }

    #transaction-tab-unstaking .transactions-table th:nth-child(3),
    #transaction-tab-unstaking .transactions-table td:nth-child(3),
    #transaction-tab-unstaking .transactions-table th:nth-child(4),
    #transaction-tab-unstaking .transactions-table td:nth-child(4),
    #transaction-tab-redelegated .transactions-table th:nth-child(3),
    #transaction-tab-redelegated .transactions-table td:nth-child(3) {
        font-size: 0.58rem;
    }

    #transaction-tab-send .transactions-table td:nth-child(4) .badge,
    #transaction-tab-staking .transactions-table td:nth-child(4) .badge {
        font-size: 0.58rem;
        padding: 0.08rem 0.25rem;
    }

    /* Reçues: 4 colonnes sans statut — colonne 4 = Voir */
    #transaction-tab-received .transactions-table th:nth-child(4),
    #transaction-tab-received .transactions-table td:nth-child(4) {
        width: 10%;
        white-space: nowrap;
        text-align: center;
    }
}

