* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(23, 234, 217, 0.08), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(239, 50, 251, 0.08), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(96, 120, 234, 0.08), transparent 40%),
        #07080d;
    color: #f5f7fb;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(23, 234, 217, 0.05), transparent);
    animation: scan 6s linear infinite;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 24px 48px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.topbar-left h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
    background: linear-gradient(135deg, #17ead9, #ef32fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar-left p {
    margin: 0;
    color: #aab3c5;
    font-size: 15px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-primary {
    background: linear-gradient(135deg, #17ead9, #6078ea);
    color: #fff;
    box-shadow:
        0 0 10px rgba(23, 234, 217, 0.6),
        0 0 20px rgba(96, 120, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #3be2bc, #45e994);
    color: #07080d;
    box-shadow: 0 0 12px rgba(69, 233, 148, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #e64c4c, #ef32fb);
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 50, 251, 0.6);
}

.btn-dark {
    background: #1a1f2b;
    color: #fff;
    border: 1px solid #2a3142;
}

.btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(69, 233, 148, 0.12);
    border-color: rgba(69, 233, 148, 0.3);
    color: #b7ffd7;
    box-shadow: 0 0 20px rgba(69, 233, 148, 0.08);
}

.alert-error {
    background: rgba(230, 76, 76, 0.12);
    border-color: rgba(230, 76, 76, 0.3);
    color: #ffd0d0;
    box-shadow: 0 0 20px rgba(230, 76, 76, 0.08);
}

.alert-warning {
    background: rgba(239, 50, 251, 0.1);
    border-color: rgba(239, 50, 251, 0.24);
    color: #ffd4fc;
    box-shadow: 0 0 20px rgba(239, 50, 251, 0.08);
}

.board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.column {
    background: rgba(15, 19, 28, 0.55);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(14px);

    box-shadow:
        inset 0 0 0 1px rgba(96,120,234,0.08),
        0 20px 60px rgba(0,0,0,0.7),
        0 0 40px rgba(96,120,234,0.08);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.column-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.column-count {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #0f1117;
    border: 1px solid #2b3347;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6def0;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(96, 120, 234, 0.15);
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.ticket-card {
    background: linear-gradient(145deg, #0c1018, #0f131c);
    border-radius: 18px;
    overflow: hidden;
    position: relative;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.02);
}

.ticket-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 0 1px rgba(23, 234, 217, 0.2),
        0 0 20px rgba(23, 234, 217, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.7);
}

.ticket-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;

    background: linear-gradient(120deg,
        transparent,
        rgba(23,234,217,0.08),
        transparent,
        rgba(239,50,251,0.08)
    );

    opacity: 0;
    transition: 0.3s;
}

.ticket-card:hover::before {
    opacity: 1;
}

.ticket-body {
    padding: 16px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.02),
        rgba(0,0,0,0.1)
    );
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ticket-id {
    font-size: 12px;
    color: #9ba7bf;
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-new {
    background: rgba(59, 226, 188, 0.15);
    color: #7cf0d4;
    border: 1px solid rgba(59, 226, 188, 0.3);
    box-shadow: 0 0 10px rgba(59, 226, 188, 0.5);
}

.badge-treated {
    background: rgba(96, 120, 234, 0.15);
    color: #b9c6ff;
    border: 1px solid rgba(96, 120, 234, 0.3);
    box-shadow: 0 0 10px rgba(96, 120, 234, 0.5);
}

.badge-return {
    background: rgba(230, 76, 76, 0.15);
    color: #ffb5b5;
    border: 1px solid rgba(230, 76, 76, 0.3);
    box-shadow: 0 0 10px rgba(230, 76, 76, 0.5);
}

.badge-valid {
    background: rgba(69, 233, 148, 0.15);
    color: #bfffd7;
    border: 1px solid rgba(69, 233, 148, 0.3);
    box-shadow: 0 0 10px rgba(69, 233, 148, 0.5);
}

.ticket-link {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #dfe7f7;
    word-break: break-word;
}

.ticket-link span {
    color: #17ead9;
}

.ticket-description {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #d2d9e8;
    white-space: pre-line;
}

.ticket-image {
    width: 100%;
    display: block;
    border-radius: 14px;
    box-shadow:
    0 5px 20px rgba(0,0,0,0.5);
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.ticket-image:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 20px rgba(23, 234, 217, 0.3),
        0 0 40px rgba(96, 120, 234, 0.2);
}

.ticket-note {
    background: rgba(230, 76, 76, 0.08);
    border: 1px solid rgba(230, 76, 76, 0.22);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

.ticket-note strong {
    display: block;
    margin-bottom: 6px;
    color: #ffd0d0;
    font-size: 13px;
}

.ticket-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #f7dede;
}

.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ticket-actions form {
    margin: 0;
}

.return-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.input,
.textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #2d3650;
    background: #0c1018;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
}

.input:focus,
.textarea:focus {
    border-color: #6078ea;
    box-shadow: 0 0 0 3px rgba(96, 120, 234, 0.16);
}

.empty {
    margin: 0;
    color: #95a1ba;
    font-size: 14px;
}

.image-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

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

.page-form {
    max-width: 1280px;
}

.form-shell {
    position: relative;
    z-index: 1;
}

.form-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17ead9;
}

.form-title {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1.05;
    background: linear-gradient(135deg, #17ead9, #ef32fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    margin: 0;
    color: #aab3c5;
    font-size: 16px;
}

.form-card {
    background: rgba(15, 19, 28, 0.55);
    border-radius: 26px;
    padding: 24px;
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 0 0 1px rgba(96,120,234,0.08),
        0 20px 60px rgba(0,0,0,0.7),
        0 0 40px rgba(96,120,234,0.08);
}

.ticket-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}

.form-main,
.form-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-label {
    font-size: 14px;
    font-weight: 800;
    color: #f5f7fb;
}

.field-help {
    margin: 0;
    font-size: 13px;
    color: #95a1ba;
}

.upload-card {
    background: linear-gradient(145deg, #0c1018, #0f131c);
    border-radius: 22px;
    padding: 18px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.02);
}

.upload-card-head {
    margin-bottom: 14px;
}

.upload-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #f5f7fb;
}

.upload-subtitle {
    margin: 0;
    font-size: 13px;
    color: #95a1ba;
}

.upload-dropzone {
    position: relative;
    display: block;
    border-radius: 18px;
    padding: 22px 18px;
    min-height: 220px;
    background:
        linear-gradient(145deg, rgba(23,234,217,0.06), rgba(239,50,251,0.06)),
        #0a0e16;
    box-shadow:
        inset 0 0 0 1px rgba(96,120,234,0.16),
        0 0 20px rgba(96,120,234,0.08);
    cursor: pointer;
    transition: 0.25s ease;
}

.upload-dropzone:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(23,234,217,0.28),
        0 0 24px rgba(23,234,217,0.12);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone-content {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.upload-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 400;
    background: linear-gradient(135deg, #17ead9, #6078ea);
    color: #fff;
    box-shadow:
        0 0 12px rgba(23,234,217,0.6),
        0 0 24px rgba(96,120,234,0.3);
}

.upload-main-text {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #f5f7fb;
}

.upload-help-text {
    margin: 0;
    font-size: 13px;
    color: #95a1ba;
}

.upload-preview-wrap {
    margin-top: 16px;
}

.preview-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: #17ead9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.upload-preview {
    width: 100%;
    display: block;
    border-radius: 16px;
    box-shadow:
        0 5px 20px rgba(0,0,0,0.5),
        0 0 18px rgba(23,234,217,0.08);
}

.upload-file-name {
    margin: 10px 0 0;
    font-size: 13px;
    color: #c7d1e6;
    word-break: break-word;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-lg {
    min-height: 52px;
    font-size: 15px;
    border-radius: 14px;
}

.full-width {
    width: 100%;
}

.form-error-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.form-error-list li + li {
    margin-top: 4px;
}

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


.ticket-history {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ticket-history-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: #17ead9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket-history-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 10px;
}

.ticket-history-item p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #d7deee;
}

.ticket-history-item p:last-child {
    margin-bottom: 0;
}

.history-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.history-modal.is-open {
    display: block;
}

.history-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.history-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100vw - 32px));
    max-height: 85vh;
    margin: 6vh auto 0;
    border-radius: 24px;
    background: linear-gradient(145deg, #0c1018, #101521);
    box-shadow:
        0 20px 80px rgba(0,0,0,0.75),
        0 0 0 1px rgba(255,255,255,0.04),
        0 0 30px rgba(96,120,234,0.14);
    overflow: hidden;
}

.history-modal-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.history-modal-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17ead9;
}

.history-modal-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    background: linear-gradient(135deg, #17ead9, #ef32fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.history-modal-body {
    max-height: calc(85vh - 90px);
    overflow-y: auto;
    padding: 20px 24px 24px;
}

.history-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.history-modal-close:hover {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 18px rgba(23,234,217,0.15);
}

.ticket-history-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 8px;
}

.ticket-history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(23, 234, 217, 0.35),
        rgba(96, 120, 234, 0.25),
        rgba(239, 50, 251, 0.25)
    );
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    margin-top: 14px;
    margin-left: -2px;
    border-radius: 999px;
    background: #6078ea;
    box-shadow:
        0 0 0 4px rgba(96, 120, 234, 0.12),
        0 0 18px rgba(96, 120, 234, 0.45);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 8px 24px rgba(0,0,0,0.35);
}

.timeline-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(96, 120, 234, 0.15);
    color: #c7d2ff;
    border: 1px solid rgba(96, 120, 234, 0.28);
}

.timeline-date {
    font-size: 12px;
    color: #96a3bd;
}

.timeline-message {
    font-size: 14px;
    line-height: 1.55;
    color: #dbe3f3;
    white-space: pre-line;
}

.timeline-image-block {
    margin-top: 12px;
}

.timeline-image-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17ead9;
}

/* Variantes par type */
.timeline-item.is-created .timeline-dot {
    background: #17ead9;
    box-shadow:
        0 0 0 4px rgba(23, 234, 217, 0.12),
        0 0 18px rgba(23, 234, 217, 0.45);
}

.timeline-item.is-created .timeline-badge {
    background: rgba(23, 234, 217, 0.14);
    color: #9ff9ee;
    border-color: rgba(23, 234, 217, 0.26);
}

.timeline-item.is-treated .timeline-dot {
    background: #6078ea;
    box-shadow:
        0 0 0 4px rgba(96, 120, 234, 0.12),
        0 0 18px rgba(96, 120, 234, 0.45);
}

.timeline-item.is-treated .timeline-badge {
    background: rgba(96, 120, 234, 0.14);
    color: #c7d2ff;
    border-color: rgba(96, 120, 234, 0.28);
}

.timeline-item.is-returned .timeline-dot {
    background: #ef32fb;
    box-shadow:
        0 0 0 4px rgba(239, 50, 251, 0.12),
        0 0 18px rgba(239, 50, 251, 0.45);
}

.timeline-item.is-returned .timeline-badge {
    background: rgba(239, 50, 251, 0.14);
    color: #ffd2ff;
    border-color: rgba(239, 50, 251, 0.28);
}

.timeline-item.is-validated .timeline-dot {
    background: #45e994;
    box-shadow:
        0 0 0 4px rgba(69, 233, 148, 0.12),
        0 0 18px rgba(69, 233, 148, 0.45);
}

.timeline-item.is-validated .timeline-badge {
    background: rgba(69, 233, 148, 0.14);
    color: #cffff0;
    border-color: rgba(69, 233, 148, 0.28);
}

@media (max-width: 640px) {
    .timeline-card-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    background: linear-gradient(145deg, #0c1018, #0f131c);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.02);
    transition: 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(23,234,217,0.2),
        0 0 20px rgba(23,234,217,0.16),
        0 10px 40px rgba(0,0,0,0.7);
}

.project-card-body {
    padding: 20px;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.project-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17ead9;
}

.project-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: #f5f7fb;
}

.project-counter {
    min-width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96,120,234,0.14);
    color: #dbe4ff;
    font-weight: 800;
    box-shadow:
        0 0 18px rgba(96,120,234,0.18);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.project-meta p {
    margin: 0;
    font-size: 14px;
    color: #cbd5ea;
    word-break: break-word;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border-radius: 24px;
    background: rgba(15, 19, 28, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(96,120,234,0.08),
        0 20px 60px rgba(0,0,0,0.7);
    text-align: center;
}

.empty-state p {
    margin: 0 0 16px;
    color: #c7d1e6;
}

.single-column {
    grid-template-columns: 1fr;
}

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

.project-manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.section-title {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.2;
    color: #f5f7fb;
}

.members-card {
    margin-top: 0;
}

.members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.members-count {
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(96,120,234,0.14);
    color: #dbe4ff;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(96,120,234,0.18);
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.member-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.member-infos {
    min-width: 0;
}

.member-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #f5f7fb;
}

.member-email {
    margin: 0 0 4px;
    font-size: 14px;
    color: #cbd5ea;
    word-break: break-word;
}

.member-role {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17ead9;
}

@media (max-width: 980px) {
    .project-manage-grid {
        grid-template-columns: 1fr;
    }

    .member-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


.users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.user-card {
    background: linear-gradient(145deg, #0c1018, #0f131c);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.02);
    transition: 0.25s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(23,234,217,0.2),
        0 0 20px rgba(23,234,217,0.16),
        0 10px 40px rgba(0,0,0,0.7);
}

.user-card-body {
    padding: 20px;
}

.user-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.user-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17ead9;
}

.user-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: #f5f7fb;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.user-role-badge.is-admin {
    background: rgba(239, 50, 251, 0.14);
    color: #ffd2ff;
    border: 1px solid rgba(239, 50, 251, 0.28);
}

.user-role-badge.is-client {
    background: rgba(23, 234, 217, 0.14);
    color: #9ff9ee;
    border: 1px solid rgba(23, 234, 217, 0.26);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.user-meta p {
    margin: 0;
    font-size: 14px;
    color: #cbd5ea;
    word-break: break-word;
}

.user-project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-project-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(96,120,234,0.14);
    color: #dbe4ff;
    border: 1px solid rgba(96,120,234,0.22);
}

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

.member-actions {
    display: flex;
    gap: 8px;
}