    .patient-editor-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 50000;
        padding: 20px;
    }
    
    .patient-editor-modal {
        background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
        border: 1px solid rgba(34, 211, 238, 0.3);
        border-radius: 20px;
        width: 100%;
        max-width: 800px;
        max-height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(34, 211, 238, 0.1);
    }
    
    .patient-editor-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        background: linear-gradient(90deg, rgba(34, 211, 238, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    }
    
    .patient-editor-close {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        color: var(--gray-400);
        font-size: 24px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .patient-editor-close:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
        color: var(--red-500);
    }
    
    .patient-editor-content {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }
    
    .patient-editor-grid {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 24px;
    }
    
    .patient-photo-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .patient-photo-container {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        border: 3px solid rgba(34, 211, 238, 0.4);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s;
        background: rgba(30, 41, 59, 0.8);
    }
    
    .patient-photo-container:hover {
        border-color: var(--cyan-400);
        box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    }
    
    .patient-photo-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--gray-500);
        font-size: 32px;
        gap: 8px;
    }
    
    .patient-photo-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .patient-photo-btn {
        padding: 8px 16px;
        border-radius: 8px;
        border: 1px solid rgba(34, 211, 238, 0.4);
        background: rgba(34, 211, 238, 0.1);
        color: var(--cyan-400);
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .patient-photo-btn:hover {
        background: rgba(34, 211, 238, 0.2);
    }
    
    .patient-photo-remove-btn {
        padding: 6px 12px;
        border-radius: 6px;
        border: none;
        background: rgba(239, 68, 68, 0.15);
        color: var(--red-400);
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .patient-photo-remove-btn:hover {
        background: rgba(239, 68, 68, 0.25);
    }
    
    .patient-form-section {
        background: rgba(30, 41, 59, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
    }
    
    .patient-section-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--cyan-400);
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    }
    
    .patient-form-row {
        display: flex;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .patient-form-row:last-child {
        margin-bottom: 0;
    }
    
    .patient-form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .patient-form-group.full {
        flex: 100%;
    }
    
    .patient-form-group label {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .patient-form-group input,
    .patient-form-group select,
    .patient-form-section textarea {
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(15, 23, 42, 0.6);
        color: var(--gray-200);
        font-size: 14px;
        transition: all 0.2s;
    }
    
    .patient-form-group input:focus,
    .patient-form-group select:focus,
    .patient-form-section textarea:focus {
        outline: none;
        border-color: var(--cyan-400);
        box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
    }
    
    .patient-form-section textarea {
        resize: vertical;
        min-height: 80px;
    }
    
    .patient-location-input {
        display: flex;
        gap: 8px;
    }
    
    .patient-location-input input {
        flex: 1;
    }
    
    .patient-geocode-btn {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid rgba(34, 197, 94, 0.4);
        background: rgba(34, 197, 94, 0.15);
        color: var(--green-500);
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .patient-geocode-btn:hover {
        background: rgba(34, 197, 94, 0.25);
        border-color: var(--green-500);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    }
    
    .patient-geocode-btn.loading .geocode-icon { display: none; }
    .patient-geocode-btn.loading .geocode-loading { display: block !important; animation: spin 1s linear infinite; }
    
    @keyframes spin { to { transform: rotate(360deg); } }
    
    .geocode-result {
        margin-top: 12px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(34, 197, 94, 0.1);
        border: 1px solid rgba(34, 197, 94, 0.3);
        font-size: 13px;
    }
    
    .geocode-result.error {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
        color: var(--red-400);
    }
    
    .geocode-result.success {
        color: var(--green-400);
    }
    
    .patient-measurement-input {
        display: flex;
        gap: 8px;
    }
    
    .patient-measurement-input input {
        flex: 1;
    }
    
    .patient-measurement-input select {
        width: 80px;
    }
    
    .patient-editor-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        background: rgba(15, 23, 42, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .patient-editor-footer-left,
    .patient-editor-footer-right {
        display: flex;
        gap: 12px;
    }
    
    .patient-astrology-btn {
        padding: 10px 20px;
        border-radius: 10px;
        border: 1px solid rgba(251, 191, 36, 0.4);
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
        color: #FCD34D;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .patient-astrology-btn:hover {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    }
    
    .patient-cancel-btn {
        padding: 10px 24px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: transparent;
        color: var(--gray-400);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .patient-cancel-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--gray-200);
    }
    
    .patient-save-btn {
        padding: 10px 24px;
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, var(--cyan-400) 0%, var(--blue-500) 100%);
        color: white;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .patient-save-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4);
    }
    
    @media (max-width: 640px) {
        .patient-editor-grid {
            grid-template-columns: 1fr;
        }
        
        .patient-photo-section {
            flex-direction: row;
            justify-content: center;
        }
        
        .patient-photo-container {
            width: 100px;
            height: 100px;
        }
        
        .patient-form-row {
            flex-direction: column;
        }
        
        .patient-editor-footer {
            flex-direction: column;
            gap: 12px;
        }
    }
    
    /* Group Editor Styles */
    .group-editor-overlay,
    .group-analysis-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 51000;
        padding: 20px;
    }
    
    .group-editor-modal,
    .group-analysis-modal {
        background: linear-gradient(135deg, #1e1b4b 0%, var(--slate-900) 100%);
        border: 1px solid rgba(168, 85, 247, 0.4);
        border-radius: 20px;
        width: 100%;
        max-width: 700px;
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(168, 85, 247, 0.15);
    }
    
    .group-editor-header,
    .group-analysis-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .group-editor-close {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        color: var(--gray-400);
        font-size: 24px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .group-editor-close:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
        color: var(--red-500);
    }
    
    .group-editor-content,
    .group-analysis-content {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }
    
    .group-form-section {
        background: rgba(30, 41, 59, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
    }
    
    .group-section-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--violet-400);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .group-form-row {
        display: flex;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .group-form-row:last-child { margin-bottom: 0; }
    
    .group-form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .group-form-group.full { flex: 100%; }
    
    .group-form-group label {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .group-form-group input,
    .group-form-group select {
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(15, 23, 42, 0.6);
        color: var(--gray-200);
        font-size: 14px;
        transition: all 0.2s;
    }
    
    .group-form-group input:focus,
    .group-form-group select:focus {
        outline: none;
        border-color: var(--violet-400);
        box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    }
    
    .group-members-checklist,
    .patient-groups-checklist {
        max-height: 250px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .group-member-item,
    .patient-group-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .group-member-item:hover,
    .patient-group-item:hover {
        background: rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.3);
    }
    
    .group-member-item.selected,
    .patient-group-item.selected {
        background: rgba(168, 85, 247, 0.15);
        border-color: rgba(168, 85, 247, 0.5);
    }
    
    .group-member-checkbox {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        cursor: pointer;
        accent-color: var(--violet-400);
    }
    
    .group-member-photo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(168, 85, 247, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--violet-400);
        overflow: hidden;
    }
    
    .group-member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .group-member-info {
        flex: 1;
    }
    
    .group-member-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-200);
    }
    
    .group-member-meta {
        font-size: 12px;
        color: var(--gray-500);
    }
    
    .family-roles-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .family-role-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        background: rgba(15, 23, 42, 0.4);
        border-radius: 8px;
    }
    
    .family-role-row select {
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(15, 23, 42, 0.8);
        color: var(--gray-200);
        font-size: 13px;
    }
    
    .group-editor-footer,
    .group-analysis-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        background: rgba(15, 23, 42, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .group-editor-footer-left,
    .group-editor-footer-right {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .group-cancel-btn {
        padding: 10px 24px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: transparent;
        color: var(--gray-400);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .group-cancel-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--gray-200);
    }
    
    .group-save-btn,
    .group-copy-btn {
        padding: 10px 24px;
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, var(--violet-400) 0%, var(--violet-500) 100%);
        color: white;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .group-save-btn:hover,
    .group-copy-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    }
    
    /* Group Cards */
    .group-card {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 12px;
        padding: 16px;
        transition: all 0.2s;
    }
    
    .group-card:hover {
        border-color: rgba(168, 85, 247, 0.5);
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
    }
    
    .group-card-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 12px;
    }
    
    .group-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(168, 85, 247, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
    
    .group-card-actions {
        display: flex;
        gap: 6px;
    }
    
    .group-card-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        color: var(--gray-400);
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .group-card-btn:hover {
        background: rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.4);
        color: var(--violet-400);
    }
    
    .group-card-btn.delete:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
        color: var(--red-500);
    }
    
    .group-card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-200);
        margin-bottom: 4px;
    }
    
    .group-card-type {
        font-size: 12px;
        color: var(--violet-400);
        text-transform: capitalize;
    }
    
    .group-card-members {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .group-member-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid rgba(168, 85, 247, 0.4);
        background: rgba(30, 41, 59, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--violet-400);
        overflow: hidden;
    }
    
    .group-member-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .group-card-analyze {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: none;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
        color: var(--gray-200);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .group-card-analyze:hover {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.5) 0%, rgba(139, 92, 246, 0.3) 100%);
    }
    
    .group-analysis-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(168, 85, 247, 0.2);
        border-top-color: var(--violet-400);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }
    
    .group-analysis-result {
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(168, 85, 247, 0.2);
        border-radius: 12px;
        padding: 20px;
    }
    
    .group-analysis-result h2 {
        color: var(--violet-400);
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .group-analysis-result h3 {
        color: var(--violet-500);
        font-size: 16px;
        margin-top: 16px;
        margin-bottom: 8px;
    }
    
    .group-analysis-result h4 {
        color: var(--violet-300);
        font-size: 14px;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .group-analysis-result p {
        color: var(--gray-300);
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    .group-analysis-result strong {
        color: var(--gray-200);
    }

    /* ═══════════════════════════════════════════════════════════════════════════════
       IRIS IMAGES SECTION
       ═══════════════════════════════════════════════════════════════════════════════ */

    .patient-iris-images-container {
        display: flex;
        gap: 24px;
        justify-content: center;
        padding: 16px 0;
    }

    .patient-iris-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .patient-iris-label {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--slate-400);
    }

    .patient-iris-preview {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
        border: 2px dashed rgba(34, 211, 238, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .patient-iris-preview:hover {
        border-color: rgba(34, 211, 238, 0.5);
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
    }

    .patient-iris-preview.has-image {
        border-style: solid;
        border-color: rgba(34, 211, 238, 0.5);
    }

    .patient-iris-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .patient-iris-placeholder {
        font-size: 2rem;
        opacity: 0.4;
    }

    .patient-iris-upload-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        background: rgba(34, 211, 238, 0.1);
        border: 1px solid rgba(34, 211, 238, 0.3);
        border-radius: 6px;
        color: var(--cyan-400);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .patient-iris-upload-btn:hover {
        background: rgba(34, 211, 238, 0.2);
        border-color: rgba(34, 211, 238, 0.5);
    }

    .patient-iris-actions {
        display: flex;
        justify-content: center;
    }

    .patient-iris-scanner-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2));
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 10px;
        color: var(--slate-200);
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .patient-iris-scanner-btn:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3));
        border-color: rgba(139, 92, 246, 0.5);
        transform: translateY(-1px);
    }

    .patient-iris-scanner-btn span {
        font-size: 1.1rem;
    }
