* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0d0d0f;
    color: #e6e6e6;
    min-height: 100vh;
}

/* ============================================================
   LOGIN
   ============================================================ */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrap { width: 100%; max-width: 420px; }

.login-card {
    background: #131316;
    border: 1px solid #23232a;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.login-brand-text { text-align: left; }

.login-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #ffffff;
}

.login-sub {
    text-align: center;
    color: #7a7a85;
    font-size: 13px;
    margin-bottom: 28px;
}

.login-error {
    background: #2a1a1a;
    color: #ff5577;
    border: 1px solid #3a1a2a;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.login-error.banned {
    background: #2a0a0a;
    border-color: #5a1a1a;
    color: #ff3355;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }

.login-label {
    font-size: 11px;
    color: #55555f;
    letter-spacing: 1px;
    font-weight: 600;
}

.login-input {
    background: #0f0f13;
    border: 1px solid #2a2a33;
    color: #e6e6e6;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border 0.15s;
}

.login-input:focus { border-color: #e6b800; }
.login-input:disabled { opacity: 0.5; cursor: not-allowed; }

.login-btn {
    background: #e6b800;
    color: #0d0d0f;
    border: none;
    padding: 15px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}

.login-btn:hover:not(:disabled) { background: #f5c518; }
.login-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: #3a3a44;
    letter-spacing: 0.5px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: #131316;
    border-right: 1px solid #23232a;
    padding: 20px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.nav-bottom { margin-top: auto; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }

.brand-logo {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #ff3366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.brand-name { font-weight: 600; font-size: 14px; }
.brand-sub { font-size: 12px; color: #7a7a85; }

.nav-section { margin-bottom: 24px; }

.nav-title {
    font-size: 11px;
    color: #55555f;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #a0a0ab;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 4px;
    cursor: pointer;
}

.nav-link:hover { background: #1d1d24; }
.nav-link.active { background: #1d1d24; color: #e6b800; font-weight: 600; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.top-bar {
    padding: 18px 32px;
    border-bottom: 1px solid #23232a;
    background: #0d0d0f;
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #2a2a33;
    color: #e6e6e6;
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.top-bar-title { font-size: 15px; font-weight: 600; color: #e6b800; }

.content { padding: 32px; max-width: 1400px; width: 100%; }

/* FILTER BAR */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: #131316;
    border: 1px solid #23232a;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }

.filter-label {
    font-size: 11px;
    color: #55555f;
    letter-spacing: 1px;
    font-weight: 600;
}

.filter-input {
    background: #0f0f13;
    border: 1px solid #2a2a33;
    color: #e6e6e6;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    width: 130px;
    outline: none;
    font-family: inherit;
}

.filter-input:focus { border-color: #e6b800; }
.filter-input::placeholder { color: #3a3a44; }

.btn-apply {
    background: #e6b800;
    color: #0d0d0f;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-apply:hover { background: #f5c518; }

.btn-clear {
    background: #1d1d24;
    color: #a0a0ab;
    border: 1px solid #2a2a33;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear:hover { background: #2a2a33; color: #e6e6e6; }

.filter-status {
    margin-left: auto;
    font-size: 12px;
    color: #55555f;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-status.active { color: #e6b800; }

/* FICHE */
.fiche-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #131316;
    border: 1px solid #23232a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.avatar {
    width: 72px; height: 72px;
    border-radius: 12px;
    background: #e6b800;
    color: #0d0d0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 26px;
    flex-shrink: 0;
}

.fiche-name { font-size: 22px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }

.fiche-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
    background: #1d1d24;
    color: #e6b800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #2a2a33;
}

.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

.card {
    background: #131316;
    border: 1px solid #23232a;
    border-radius: 12px;
    padding: 24px;
}

.card-title {
    font-size: 13px;
    color: #e6b800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.field {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1d1d24;
}

.field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.label {
    display: block;
    font-size: 10px;
    color: #55555f;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.value { font-size: 14px; color: #e6e6e6; word-break: break-word; }

.actions { display: flex; justify-content: flex-end; gap: 12px; }

.btn-primary {
    background: #e6b800;
    color: #0d0d0f;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover { background: #f5c518; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: #1d1d24;
    color: #e6e6e6;
    border: 1px solid #2a2a33;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover:not(:disabled) { background: #2a2a33; }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
    background: #2a1a1a;
    color: #ff5577;
    border: 1px solid #3a1a2a;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-danger:hover { background: #3a1a2a; }

/* DASHBOARD */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #131316;
    border: 1px solid #23232a;
    border-radius: 12px;
    padding: 28px;
}

.stat-label {
    font-size: 11px;
    color: #55555f;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-value { font-size: 36px; font-weight: 700; color: #e6b800; }
.stat-value.small { font-size: 18px; color: #e6e6e6; }

/* IBAN BREAKDOWN */
.iban-breakdown {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #0f0f13;
    border: 1px solid #1d1d24;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iban-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }

.iban-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e6b800;
    flex-shrink: 0;
}

.iban-icon { font-size: 14px; flex-shrink: 0; }

.iban-label { color: #a0a0ab; font-weight: 500; min-width: 110px; }

.iban-value { color: #e6e6e6; font-weight: 600; }

.iban-badge {
    background: #1d1d24;
    color: #e6e6e6;
    padding: 3px 10px;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    border: 1px solid #2a2a33;
}

.iban-banque-row {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #1d1d24;
}

.iban-banque-row .iban-value { color: #e6b800; font-weight: 700; }

/* OVERLAY (mobile) */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
}

.overlay.show { display: block; }

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */

@media (max-width: 900px) {
    .menu-toggle { display: block; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    .sidebar.open { transform: translateX(0); }

    .content { padding: 20px 16px; }

    .top-bar { padding: 14px 16px; }

    .fiche-grid { grid-template-columns: 1fr; gap: 16px; }

    .fiche-header { padding: 18px; gap: 14px; }

    .avatar { width: 56px; height: 56px; font-size: 20px; }

    .fiche-name { font-size: 18px; }

    .card { padding: 18px; }

    .actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .actions button { width: 100%; }

    .filter-bar { padding: 14px; gap: 10px; }

    .filter-group { flex: 1 1 100%; }

    .filter-input { width: 100%; }

    .btn-apply, .btn-clear { flex: 1; }

    .filter-status { width: 100%; text-align: left; margin-left: 0; }

    .stat-value { font-size: 28px; }

    .login-card { padding: 32px 22px; }
}

@media (max-width: 480px) {
    .content { padding: 16px 12px; }

    .fiche-name { font-size: 16px; word-break: break-word; }

    .value { font-size: 13px; }

    .iban-label { min-width: 90px; font-size: 12px; }
}