        /* --- GERAL E RESET --- */
        body {
            font-family: 'Inter', sans-serif;
            background-color: #14161A;
            color: #A0A2A4;
            margin: 0;
            padding: 1rem;
        }

        * {
            box-sizing: border-box;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
            font-family: inherit;
        }

        a {
            color: #4A9CFF;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
        
        /* --- CUSTOM SCROLLBAR --- */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #1C1C1C; }
        ::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #6b7280; }

        /* --- LAYOUT PRINCIPAL --- */
        .container {
            max-width: 1280px;
            margin: 0 auto;
         
        }

        header {
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        header h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #ffffff;
            margin: 0;
        }

        header p {
            color: #9ca3af;
            margin-top: 0.25rem;
            margin-bottom: 0;
        }

        #logout-btn {
            padding: 0.625rem 1.25rem;
            background-color: transparent;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #FFFFFF;
            border: 1px solid #FFFFFF;
        }

        #logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.08);
        }

        #go-complaints-btn,
        #go-applications-btn {
            padding: 0.625rem 1.25rem;
            background-color: transparent;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #FFFFFF;
            border: 1px solid #FFFFFF;
        }

        #go-complaints-btn:hover,
        #go-applications-btn:hover {
            background-color: rgba(255, 255, 255, 0.08);
        }

        /* --- SEARCH BAR --- */
        .search-container {
            margin-bottom: 1.5rem;
        }

        #search-bar {
            width: 100%;
            padding: 0.75rem 1rem;
            background-color: #1C1F2A;
            border: 1px solid #3A3D4A;
            border-radius: 0.5rem;
            color: #E5E7EB;
            font-size: 1rem;
            transition: border-color 0.2s;
        }

        #search-bar:focus {
            outline: none;
            border-color: #4A9CFF;
        }

        #search-bar::placeholder {
            color: #6b7280;
        }

        /* --- FILTROS --- */
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #9ca3af;
        }
        .filter-btn:hover {
            background-color: #1f2937;
            color: #e5e7eb;
        }
        .filter-btn-active {
            background-color: #374151;
            color: #f9fafb;
        }

        /* --- LISTA DE APLICAÇÕES / REPORTS --- */
        #applications-list,
        #complaints-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.25rem;
        }
        
        #no-applications, #loader {
            text-align: center;
            padding: 2.5rem 0;
            color: #6b7280;
        }

        #loader svg {
            animation: spin 1s linear infinite;
            height: 2rem;
            width: 2rem;
            color: white;
            margin: 0 auto;
        }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        /* --- CARD DE APLICAÇÃO --- */
        .app-card {
            background-color: #1C1F2A;
            border-radius: 0.5rem;
            padding: 0.75rem 0.9rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border: 1px solid #3A3D4A;
        }
        .app-card-content {
            flex-grow: 1;
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .card-user-info {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        .card-avatar {
            width: 3rem;
            height: 3rem;
            border-radius: 9999px;
            object-fit: cover;
        }
        .card-user-details h3 { font-weight: 700; font-size: 1.125rem; color: #fff; }
        .card-user-details p { font-size: 0.875rem; color: #9ca3af; }
        .card-user-details p.city { color: #6b7280; }
        .card-section { margin-top: 1rem; }
        .card-section h4 { font-size: 0.875rem; color: #9ca3af; }
        .card-industries { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
        .industry-tag { background-color: #2D2F34; color: #d1d5db; font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 9999px; }
        .card-bio { color: #fff; font-size: 0.875rem; margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card-submitted { margin-top: 1rem; font-size: 0.75rem; color: #6b7280; }
        .card-footer {
            margin-top: 1rem;
            border-top: 1px solid #3A3D4A;
            padding-top: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* --- BOTÕES DO CARD --- */
        .card-btn {
            font-size: 0.875rem;
            border-radius: 0.5rem;
            padding: 0.625rem 1rem;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .btn-details { color: #4A9CFF; border: 1px solid #4A9CFF; }
        .btn-details:hover { background-color: rgba(74, 156, 255, 0.1); }
        .btn-approve { color: #d1d5db; }
        .btn-approve:hover { background-color: #374151; }
        .btn-deny { color: #fff; background-color: #B91C1C; }
        .btn-deny:hover { background-color: #991b1b; }
        @keyframes sync-spin {
            to { transform: rotate(360deg); }
        }
        
        /* --- BADGE DE STATUS --- */
        .status-badge {
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.25rem 0.625rem;
            border-radius: 9999px;
        }
        .status-pending { background-color: #3A3D4A; color: #d1d5db; border: 1px solid #4b5563; }
        .status-approved { background-color: #05966970; color: #fff; }
        .status-rejected { background-color: #dc262670; color: #fff; }

        /* --- CLOUT SCORE BADGE --- */
        .clout-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 600;
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            color: #000;
        }
        .clout-badge svg {
            width: 12px;
            height: 12px;
        }
        .clout-score-large {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            color: #000;
            font-weight: 700;
            font-size: 1rem;
        }
        .clout-score-large svg {
            width: 16px;
            height: 16px;
        }
        .clout-score-label {
            font-size: 0.75rem;
            font-weight: 500;
            opacity: 0.8;
        }

        /* --- FRIENDS IN APP BADGE --- */
        .friends-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 600;
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
            color: #fff;
            margin-left: 0.5rem;
        }
        .friends-badge svg {
            width: 12px;
            height: 12px;
        }
        .friends-score-large {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
        }
        .friends-score-large svg {
            width: 16px;
            height: 16px;
        }

        /* --- INSTAGRAM MUTUALS BADGE & SCORE --- */
        .instagram-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 600;
            background: linear-gradient(135deg, #833AB4 0%, #E1306C 70%, #F77737 100%);
            color: #fff;
            margin-left: 0.5rem;
        }
        .instagram-badge svg {
            width: 12px;
            height: 12px;
        }
        .instagram-mutuals-large {
            background: linear-gradient(135deg, #833AB4 0%, #E1306C 70%, #F77737 100%);
        }
        .card-social-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-top: 0.5rem;
        }
        .card-social-badges .friends-badge,
        .card-social-badges .instagram-badge {
            margin-left: 0;
        }

        /* --- LIST POPUP (acima do modal de detalhes) --- */
        #list-popup {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.85);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        #list-popup.visible {
            opacity: 1;
        }
        .list-popup-inner {
            background-color: #1C1C1C;
            border-radius: 0.75rem;
            border: 1px solid #374151;
            width: 100%;
            max-width: 32rem;
            max-height: 80vh;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            position: relative;
            transform: translateY(8px);
            transition: transform 0.2s ease;
        }
        #list-popup.visible .list-popup-inner {
            transform: translateY(0);
        }
        .list-popup-inner .close-popup-btn {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            width: 2rem;
            height: 2rem;
            border-radius: 9999px;
            border: none;
            background-color: transparent;
            color: #9ca3af;
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
        }
        .list-popup-inner .close-popup-btn:hover {
            background-color: #2D3340;
            color: #fff;
        }
        .list-popup-inner h3 {
            color: #fff;
            font-size: 1.125rem;
            font-weight: 700;
            margin: 0 2rem 0.25rem 0;
        }
        .list-popup-count {
            color: #9ca3af;
            font-size: 0.8125rem;
            margin-bottom: 1rem;
        }
        .list-popup-list {
            overflow-y: auto;
            display: grid;
            gap: 0.625rem;
            padding-right: 0.25rem;
        }
        button.list-popup-trigger,
        .list-popup-trigger {
            cursor: pointer !important;
            border: none !important;
            text-align: left !important;
            font: inherit;
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            box-sizing: border-box !important;
            transition: filter 0.15s ease, transform 0.15s ease;
        }
        .list-popup-trigger:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .list-popup-trigger:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }
        .list-popup-trigger .contact-count-action {
            margin-left: auto;
            font-size: 0.75rem;
            font-weight: 600;
            opacity: 0.85;
        }

        /* --- INSTAGRAM SYNC BUTTON (within modal) --- */
        button.modal-sync-ig-btn,
        .modal-sync-ig-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.5rem !important;
            width: 100% !important;
            padding: 0.625rem 1rem !important;
            border-radius: 0.5rem !important;
            font-size: 0.875rem !important;
            font-weight: 700 !important;
            color: #fff !important;
            background: linear-gradient(135deg, #833AB4 0%, #E1306C 70%, #F77737 100%) !important;
            border: 1px solid transparent !important;
            cursor: pointer !important;
            transition: filter 0.15s, transform 0.15s !important;
            font-family: inherit !important;
            box-sizing: border-box !important;
            line-height: 1.2 !important;
        }
        .modal-sync-ig-btn:hover:not(:disabled) {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .modal-sync-ig-btn:disabled {
            cursor: not-allowed !important;
            opacity: 0.55 !important;
        }
        .modal-sync-ig-btn svg,
        .modal-sync-ig-btn .sync-ig-icon {
            width: 16px !important;
            height: 16px !important;
            flex-shrink: 0 !important;
        }
        .modal-sync-ig-btn.syncing {
            pointer-events: none;
            opacity: 0.85;
        }
        .modal-sync-ig-btn.syncing .sync-ig-icon {
            animation: sync-spin 0.9s linear infinite;
        }
        .modal-sync-ig-hint {
            color: #9ca3af;
            font-size: 0.75rem;
            margin: 0.5rem 0 0;
            line-height: 1.4;
        }
        .modal-sync-ig-status {
            color: #d1d5db;
            font-size: 0.75rem;
            font-weight: 600;
            margin: 0.375rem 0 0;
            line-height: 1.4;
        }
        .modal-sync-ig-status:empty {
            display: none;
        }
        .contact-count-toggle {
            width: 100%;
            justify-content: flex-start;
            transition: filter 0.2s, transform 0.2s;
        }
        .contact-count-toggle:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .contact-count-action {
            margin-left: auto;
            font-size: 0.75rem;
            font-weight: 600;
            opacity: 0.85;
        }
        .contacts-in-app-panel {
            margin-top: 0.75rem;
            border: 1px solid #2D3340;
            border-radius: 0.5rem;
            background-color: #171A20;
            overflow: hidden;
        }
        .contacts-in-app-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.625rem 0.75rem;
            color: #d1d5db;
            font-size: 0.8125rem;
            font-weight: 600;
            border-bottom: 1px solid #2D3340;
        }
        .contacts-in-app-header strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.5rem;
            height: 1.5rem;
            border-radius: 9999px;
            background-color: #2D2F34;
            color: #ffffff;
            font-size: 0.75rem;
        }
        .contacts-in-app-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            padding: 0.75rem;
        }
        .contacts-in-app-item {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            min-width: 0;
        }
        .contacts-in-app-avatar {
            width: 2rem;
            height: 2rem;
            border-radius: 9999px;
            object-fit: cover;
            flex: 0 0 auto;
        }
        .contacts-in-app-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
            line-height: 1.25;
        }
        .contacts-in-app-info span,
        .contacts-in-app-info a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .contacts-in-app-info > span:first-child {
            color: #f3f4f6;
            font-weight: 600;
        }
        .contacts-in-app-info a {
            color: #93c5fd;
            font-size: 0.75rem;
        }
        .contacts-in-app-saved-name,
        .contacts-in-app-empty {
            color: #9ca3af;
            font-size: 0.75rem;
        }
        .contacts-in-app-empty {
            margin: 0;
            padding: 0.75rem;
        }
        .instagram-mutuals {
            margin-top: 0.75rem;
            border: 1px solid #2D3340;
            border-radius: 0.5rem;
            background-color: #171A20;
            overflow: hidden;
        }
        .instagram-mutuals-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.625rem 0.75rem;
            color: #d1d5db;
            font-size: 0.8125rem;
            font-weight: 600;
            border-bottom: 1px solid #2D3340;
        }
        .instagram-mutuals-header strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.5rem;
            height: 1.5rem;
            border-radius: 9999px;
            background-color: #2D2F34;
            color: #ffffff;
            font-size: 0.75rem;
        }
        .instagram-mutuals-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            padding: 0.75rem;
        }
        .instagram-mutual-item {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            min-width: 0;
        }
        .instagram-mutual-avatar {
            width: 2rem;
            height: 2rem;
            border-radius: 9999px;
            object-fit: cover;
            flex: 0 0 auto;
        }
        .instagram-mutual-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
            line-height: 1.25;
        }
        .instagram-mutual-info span,
        .instagram-mutual-info a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .instagram-mutual-info span {
            color: #f3f4f6;
            font-weight: 600;
        }
        .instagram-mutual-info a {
            color: #93c5fd;
            font-size: 0.75rem;
        }
        .instagram-mutuals-empty {
            margin: 0;
            padding: 0.75rem;
            color: #6b7280;
            font-size: 0.8125rem;
        }
        .scores-container {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        /* --- MODAL --- */
        .modal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 50;
            display: none; /* Initially hidden */
        }
        .modal-content-wrapper {
            background-color: #1C1C1C;
            border-radius: 0.75rem;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 42rem;
            min-width: 0;
            border: 1px solid #374151;
            transform: scale(0.95);

            transition: transform 0.3s, opacity 0.3s;
        }
        .modal.visible .modal-content-wrapper {
            transform: scale(1);
            opacity: 1;
        }
        .modal-content {
            padding: 1.5rem;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
        }
        #close-modal-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: #6b7280;
            font-size: 2rem;
            line-height: 1;
            font-weight: 300;
        }
        #close-modal-btn:hover { color: #fff; }

        #modal-content-wrapper{
            background-color: #14161A;
        }

        .modal-header { display: flex; align-items: flex-start; gap: 1rem; }
        .modal-avatar { width: 3.5rem; height: 3.5rem; border-radius: 9999px; object-fit: cover; }
        .profile-photo-clickable { cursor: pointer; transition: opacity 0.2s; }
        .profile-photo-clickable:hover { opacity: 0.8; }
        .modal-header .status-badge { margin-bottom: 0.25rem; }

        /* Troca manual da foto pelo admin. Botao proprio, e nao um overlay sobre
           o avatar: no celular nao existe hover, e a area de toque precisa ser
           grande o bastante para nao competir com o clique que abre o lightbox. */
        .modal-header-details { min-width: 0; }
        /* E-mails longos nao tem espaco onde quebrar; sem isso eles vazam para
           fora do modal no celular. */
        .modal-header-details h2,
        .modal-header-details > p { overflow-wrap: anywhere; }
        .replace-photo-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 2.75rem;
            margin-top: 0.75rem;
            padding: 0 1rem;
            background-color: #2D2F34;
            color: #E5E7EB;
            border: 1px solid #374151;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .replace-photo-btn:hover:not(:disabled) { background-color: #3E4045; }
        .replace-photo-btn:disabled { cursor: progress; color: #9ca3af; }
        .replace-photo-feedback { margin-top: 0.5rem; font-size: 0.75rem; color: #9ca3af; }
        .replace-photo-feedback-error { color: #F87171; }
        .replace-photo-feedback-success { color: #34D399; }

        /* No celular o botao ocupa a linha inteira: com o avatar ao lado, sobra
           pouca largura para um alvo de toque confortavel. */
        @media (max-width: 480px) {
            .replace-photo-btn { display: flex; width: 100%; }
        }
        .modal-header h2 { font-size: 1.25rem; font-weight: 700; color: #fff; }
        .modal-header p { color: #9ca3af; margin-top: 0.25rem; }
        .modal-body { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 0.875rem; }
        .modal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem; }
        @media (min-width: 768px) { .modal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
        .modal-section { min-width: 0; }
        .modal-section h4 { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
        .modal-section p { line-height: 1.5; }
        .modal-section p span:first-child { color: #6b7280; }
        .modal-section p span:last-child { color: #d1d5db; }
        .input-display { background-color: #14161A; border: 1px solid #374151; border-radius: 0.5rem; padding: 0.75rem; color: #A0A2A4; word-wrap: break-word; }
        .modal-footer {
            padding: 1rem;
            background-color: rgba(0,0,0,0.2);
            border-bottom-left-radius: 0.75rem;
            border-bottom-right-radius: 0.75rem;
            display: flex;
            gap: 0.75rem;
        }
        .modal-footer button {
            flex: 1;
            font-weight: 700;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
        }
        .btn-modal-reject {
            background-color: #4B1B1B;
            color: #F87171;
            border: 1px solid #7f1d1d;
            transition: background-color 0.2s;
        }
        .btn-modal-reject:hover { background-color: #5F2121; }
        .btn-modal-approve {
            background-color: #2D2F34;
            color: #E5E7EB;
            transition: background-color 0.2s;
        }
        .btn-modal-approve:hover { background-color: #3E4045; }

        .impact-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.5rem;
            padding: 0.5rem;
        }
        .impact-link a {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .copy-btn {
            flex: 0 0 auto;
            margin-left: 1rem;
            background-color: #374151;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.25rem 0.75rem;
            border-radius: 0.375rem;
        }
        .copy-btn:hover {
            background-color: #4b5563;
        }
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 1rem;
            margin-top: 0.5rem;
        }
        .photo-gallery img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 0.5rem;
            transition: opacity 0.2s;
        }
        .photo-gallery img:hover {
            opacity: 0.8;
        }
        .gallery-photo-clickable {
            cursor: pointer;
        }

        /* --- MEMBER MAGAZINE --- */
        .magazine-hint {
            color: #6b7280;
            font-size: 0.85rem;
            line-height: 1.4;
            margin-bottom: 0.75rem;
        }
        .magazine-dropzone {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            padding: 1.5rem 1rem;
            border: 1px dashed #374151;
            border-radius: 0.5rem;
            background-color: #14161A;
            cursor: pointer;
            text-align: center;
            transition: border-color 0.2s, background-color 0.2s;
        }
        .magazine-dropzone:hover,
        .magazine-dropzone:focus-visible,
        .magazine-dropzone.dragging {
            border-color: #E8C998;
            background-color: #1a1d22;
            outline: none;
        }
        .magazine-dropzone.disabled {
            opacity: 0.5;
            pointer-events: none;
        }
        .magazine-dropzone-title {
            color: #d1d5db;
            font-weight: 600;
            font-size: 0.9rem;
        }
        .magazine-dropzone-hint {
            color: #6b7280;
            font-size: 0.78rem;
        }
        .magazine-feedback {
            font-size: 0.82rem;
            line-height: 1.4;
            min-height: 1.1rem;
            margin-top: 0.5rem;
            color: #6b7280;
        }
        .magazine-feedback-success { color: #4ade80; }
        .magazine-feedback-warning { color: #E8C998; }
        .magazine-feedback-error { color: #f87171; }
        .magazine-empty {
            color: #6b7280;
            font-size: 0.85rem;
        }
        .magazine-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        /* Escrita em voo: bloqueia novo arrasto e deixa visivel que ainda nao
           terminou, para o admin nao achar que a acao ja foi confirmada. */
        .magazine-gallery.busy {
            opacity: 0.55;
            pointer-events: none;
        }
        .magazine-page {
            position: relative;
            margin: 0;
            border-radius: 0.5rem;
            overflow: hidden;
            background-color: #14161A;
            border: 1px solid #374151;
            cursor: grab;
            transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
        }
        .magazine-page:hover { border-color: #4b5563; }
        .magazine-page.dragging { opacity: 0.4; cursor: grabbing; }
        .magazine-page.drop-target {
            border-color: #E8C998;
            transform: translateY(-2px);
        }
        .magazine-page img {
            display: block;
            width: 100%;
            /* 4:5 fixo com cover: espelha exatamente o carrossel do app, para
               o admin ver o mesmo enquadramento — e o mesmo corte — que o
               membro vai ver. */
            aspect-ratio: 4 / 5;
            object-fit: cover;
            cursor: zoom-in;
        }
        .magazine-page figcaption {
            padding: 0.35rem 0.5rem;
            font-size: 0.72rem;
            color: #A0A2A4;
            text-align: center;
        }
        .magazine-remove-btn {
            position: absolute;
            top: 0.35rem;
            right: 0.35rem;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            border: none;
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            font-size: 1.1rem;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s, background-color 0.2s;
        }
        .magazine-page:hover .magazine-remove-btn { opacity: 1; }
        .magazine-remove-btn:hover { background: #b91c1c; }

        /* --- IMAGE LIGHTBOX --- */
        .image-lightbox {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .image-lightbox.visible {
            display: flex;
            opacity: 1;
        }
        .image-lightbox img {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 0.5rem;
        }
        #close-lightbox-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: #fff;
            font-size: 3rem;
            line-height: 1;
            font-weight: 300;
            background: rgba(0, 0, 0, 0.5);
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s;
        }
        #close-lightbox-btn:hover {
            background: rgba(0, 0, 0, 0.7);
        }
        .lightbox-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 3rem;
            height: 3rem;
            border: none;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            font-size: 2.25rem;
            line-height: 1;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .lightbox-nav-btn:hover { background: rgba(0, 0, 0, 0.8); }
        #lightbox-prev-btn { left: 1rem; }
        #lightbox-next-btn { right: 1rem; }
        #lightbox-counter {
            position: absolute;
            bottom: 1.25rem;
            left: 50%;
            transform: translateX(-50%);
            color: #d1d5db;
            font-size: 0.85rem;
            letter-spacing: 0.05em;
            display: none;
        }

        @media (max-width: 375px) { 
            .container{
                 max-width: 90vw;
            }
            .modal-grid { grid-template-columns: 1fr 1fr; } 
            .app-card {
                max-width: 90%;
            }
            .card-user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }

    }
